{"version":3,"file":"main.bundle.js","sources":["webpack:///./~/moment/moment.js","webpack:///./~/ng2-bs4-modal/ng2-bs4-modal.js","webpack:///./src/app/services/http.ts","webpack:///./src/app/services/company.ts","webpack:///./src/app/services/errors.ts","webpack:///./src/app/services/accounts.ts","webpack:///./src/app/services/event.ts","webpack:///./~/rxjs/scheduler/async.js","webpack:///./~/ng2-webstorage/dist/app.js","webpack:///./src/app/components/datepicker.ts","webpack:///./src/app/services/activity.ts","webpack:///./src/app/services/support.ts","webpack:///./src/app/components/orderinfo.ts","webpack:///./src/app/services/domain.ts","webpack:///./~/ng2-webstorage/dist/enums/storage.js","webpack:///./src/app/services/storage.ts","webpack:///./src/app/components/accountinfo.ts","webpack:///./src/app/components/invoiceinfo.ts","webpack:///./~/ng2-bs4-modal/components/modal.js","webpack:///./~/rxjs/operator/multicast.js","webpack:///./src/app/components/createactivitymodal.ts","webpack:///./src/app/components/customerinfo.ts","webpack:///./src/app/components/domaininfo.ts","webpack:///./src/app/components/mailcomposer.ts","webpack:///./~/rxjs/scheduler/AsyncAction.js","webpack:///./~/rxjs/scheduler/AsyncScheduler.js","webpack:///./~/angular2-infinite-scroll/src/axis-resolver.js","webpack:///./~/angular2-infinite-scroll/src/position-resolver.js","webpack:///./~/deep-object-diff/mjs/utils.js","webpack:///./~/ng2-webstorage/dist/constants/lib.js","webpack:///./~/rxjs/AsyncSubject.js","webpack:///./~/rxjs/util/ArgumentOutOfRangeError.js","webpack:///./~/rxjs/util/isDate.js","webpack:///./src/app/components/addressinfo.ts","webpack:///./src/app/components/communicationhistory.ts","webpack:///./src/app/components/emailutils.ts","webpack:///./src/app/components/fileupload.ts","webpack:///./src/app/components/phoneinfo.ts","webpack:///./src/app/components/supportdetails.ts","webpack:///./~/angular2-infinite-scroll/src/infinite-scroll.js","webpack:///./~/angular2-infinite-scroll/src/scroll-register.js","webpack:///./~/angular2-infinite-scroll/src/scroll-resolver.js","webpack:///./~/ng2-webstorage/dist/decorators/webStorage.js","webpack:///./~/ng2-webstorage/dist/helpers/keyStorage.js","webpack:///./~/ng2-webstorage/dist/services/webStorage.js","webpack:///./~/promise.waterfall/index.js","webpack:///./~/rxjs/ReplaySubject.js","webpack:///./~/rxjs/Rx.js","webpack:///./~/rxjs/add/observable/fromEvent.js","webpack:///./~/rxjs/add/observable/of.js","webpack:///./~/rxjs/operator/combineLatest.js","webpack:///./~/rxjs/operator/concat.js","webpack:///./~/rxjs/operator/zip.js","webpack:///./~/rxjs/util/isNumeric.js","webpack:///./src/app/environment.ts","webpack:///./src/app/components/activitydetails.ts","webpack:///./src/app/components/createaccountmodal.ts","webpack:///./src/app/components/customerfullinfo.ts","webpack:///./src/app/components/dateformatter.ts","webpack:///./src/app/components/htmlsource.ts","webpack:///./src/app/components/linechartcomponent.ts","webpack:///./src/app/components/prospectdetails.ts","webpack:///./src/app/components/searchsidebar.ts","webpack:///./src/app/components/smscomposer.ts","webpack:///./src/app/components/subscriptioninfo.ts","webpack:///./src/app/no-content/index.ts","webpack:///./src/app/services/imap.ts","webpack:///./src/app/views/activities.ts","webpack:///./src/app/views/activitylog.ts","webpack:///./src/app/views/companies.ts","webpack:///./src/app/views/dashboard.ts","webpack:///./src/app/views/domains.ts","webpack:///./src/app/views/imapsync.ts","webpack:///./src/app/views/invoices.ts","webpack:///./src/app/views/layouts.ts","webpack:///./src/app/views/orders.ts","webpack:///./src/app/views/phones.ts","webpack:///./src/app/views/prospects.ts","webpack:///./src/app/views/salesreport.ts","webpack:///./src/app/views/storage.ts","webpack:///./src/app/views/subscriptions.ts","webpack:///./src/app/views/support.ts","webpack:///./~/buffer/index.js","webpack:///./~/deep-object-diff/mjs/added.js","webpack:///./~/deep-object-diff/mjs/deleted.js","webpack:///./~/deep-object-diff/mjs/updated.js","webpack:///./~/moment/locale/af.js","webpack:///./~/moment/locale/ar-dz.js","webpack:///./~/moment/locale/ar-kw.js","webpack:///./~/moment/locale/ar-ly.js","webpack:///./~/moment/locale/ar-ma.js","webpack:///./~/moment/locale/ar-sa.js","webpack:///./~/moment/locale/ar-tn.js","webpack:///./~/moment/locale/ar.js","webpack:///./~/moment/locale/az.js","webpack:///./~/moment/locale/be.js","webpack:///./~/moment/locale/bg.js","webpack:///./~/moment/locale/bm.js","webpack:///./~/moment/locale/bn-bd.js","webpack:///./~/moment/locale/bn.js","webpack:///./~/moment/locale/bo.js","webpack:///./~/moment/locale/br.js","webpack:///./~/moment/locale/bs.js","webpack:///./~/moment/locale/ca.js","webpack:///./~/moment/locale/cs.js","webpack:///./~/moment/locale/cv.js","webpack:///./~/moment/locale/cy.js","webpack:///./~/moment/locale/da.js","webpack:///./~/moment/locale/de-at.js","webpack:///./~/moment/locale/de-ch.js","webpack:///./~/moment/locale/de.js","webpack:///./~/moment/locale/dv.js","webpack:///./~/moment/locale/el.js","webpack:///./~/moment/locale/en-au.js","webpack:///./~/moment/locale/en-ca.js","webpack:///./~/moment/locale/en-gb.js","webpack:///./~/moment/locale/en-ie.js","webpack:///./~/moment/locale/en-il.js","webpack:///./~/moment/locale/en-in.js","webpack:///./~/moment/locale/en-nz.js","webpack:///./~/moment/locale/en-sg.js","webpack:///./~/moment/locale/eo.js","webpack:///./~/moment/locale/es-do.js","webpack:///./~/moment/locale/es-mx.js","webpack:///./~/moment/locale/es-us.js","webpack:///./~/moment/locale/es.js","webpack:///./~/moment/locale/et.js","webpack:///./~/moment/locale/eu.js","webpack:///./~/moment/locale/fa.js","webpack:///./~/moment/locale/fi.js","webpack:///./~/moment/locale/fil.js","webpack:///./~/moment/locale/fo.js","webpack:///./~/moment/locale/fr-ca.js","webpack:///./~/moment/locale/fr-ch.js","webpack:///./~/moment/locale/fr.js","webpack:///./~/moment/locale/fy.js","webpack:///./~/moment/locale/ga.js","webpack:///./~/moment/locale/gd.js","webpack:///./~/moment/locale/gl.js","webpack:///./~/moment/locale/gom-deva.js","webpack:///./~/moment/locale/gom-latn.js","webpack:///./~/moment/locale/gu.js","webpack:///./~/moment/locale/he.js","webpack:///./~/moment/locale/hi.js","webpack:///./~/moment/locale/hr.js","webpack:///./~/moment/locale/hu.js","webpack:///./~/moment/locale/hy-am.js","webpack:///./~/moment/locale/id.js","webpack:///./~/moment/locale/is.js","webpack:///./~/moment/locale/it-ch.js","webpack:///./~/moment/locale/it.js","webpack:///./~/moment/locale/ja.js","webpack:///./~/moment/locale/jv.js","webpack:///./~/moment/locale/ka.js","webpack:///./~/moment/locale/kk.js","webpack:///./~/moment/locale/km.js","webpack:///./~/moment/locale/kn.js","webpack:///./~/moment/locale/ko.js","webpack:///./~/moment/locale/ku.js","webpack:///./~/moment/locale/ky.js","webpack:///./~/moment/locale/lb.js","webpack:///./~/moment/locale/lo.js","webpack:///./~/moment/locale/lt.js","webpack:///./~/moment/locale/lv.js","webpack:///./~/moment/locale/me.js","webpack:///./~/moment/locale/mi.js","webpack:///./~/moment/locale/mk.js","webpack:///./~/moment/locale/ml.js","webpack:///./~/moment/locale/mn.js","webpack:///./~/moment/locale/mr.js","webpack:///./~/moment/locale/ms-my.js","webpack:///./~/moment/locale/ms.js","webpack:///./~/moment/locale/mt.js","webpack:///./~/moment/locale/my.js","webpack:///./~/moment/locale/nb.js","webpack:///./~/moment/locale/ne.js","webpack:///./~/moment/locale/nl-be.js","webpack:///./~/moment/locale/nl.js","webpack:///./~/moment/locale/nn.js","webpack:///./~/moment/locale/oc-lnc.js","webpack:///./~/moment/locale/pa-in.js","webpack:///./~/moment/locale/pl.js","webpack:///./~/moment/locale/pt-br.js","webpack:///./~/moment/locale/pt.js","webpack:///./~/moment/locale/ro.js","webpack:///./~/moment/locale/ru.js","webpack:///./~/moment/locale/sd.js","webpack:///./~/moment/locale/se.js","webpack:///./~/moment/locale/si.js","webpack:///./~/moment/locale/sk.js","webpack:///./~/moment/locale/sl.js","webpack:///./~/moment/locale/sq.js","webpack:///./~/moment/locale/sr-cyrl.js","webpack:///./~/moment/locale/sr.js","webpack:///./~/moment/locale/ss.js","webpack:///./~/moment/locale/sv.js","webpack:///./~/moment/locale/sw.js","webpack:///./~/moment/locale/ta.js","webpack:///./~/moment/locale/te.js","webpack:///./~/moment/locale/tet.js","webpack:///./~/moment/locale/tg.js","webpack:///./~/moment/locale/th.js","webpack:///./~/moment/locale/tk.js","webpack:///./~/moment/locale/tl-ph.js","webpack:///./~/moment/locale/tlh.js","webpack:///./~/moment/locale/tr.js","webpack:///./~/moment/locale/tzl.js","webpack:///./~/moment/locale/tzm-latn.js","webpack:///./~/moment/locale/tzm.js","webpack:///./~/moment/locale/ug-cn.js","webpack:///./~/moment/locale/uk.js","webpack:///./~/moment/locale/ur.js","webpack:///./~/moment/locale/uz-latn.js","webpack:///./~/moment/locale/uz.js","webpack:///./~/moment/locale/vi.js","webpack:///./~/moment/locale/x-pseudo.js","webpack:///./~/moment/locale/yo.js","webpack:///./~/moment/locale/zh-cn.js","webpack:///./~/moment/locale/zh-hk.js","webpack:///./~/moment/locale/zh-mo.js","webpack:///./~/moment/locale/zh-tw.js","webpack:///./~/ng2-bs4-modal/components/modal-body.js","webpack:///./~/ng2-bs4-modal/components/modal-footer.js","webpack:///./~/ng2-bs4-modal/components/modal-header.js","webpack:///./~/ng2-bs4-modal/components/modal-instance.js","webpack:///./~/ng2-file-upload/file-upload/file-drop.directive.js","webpack:///./~/ng2-file-upload/file-upload/file-item.class.js","webpack:///./~/ng2-file-upload/file-upload/file-like-object.class.js","webpack:///./~/ng2-file-upload/file-upload/file-select.directive.js","webpack:///./~/ng2-file-upload/index.js","webpack:///./~/ng2-webstorage/dist/helpers/index.js","webpack:///./~/ng2-webstorage/dist/helpers/storageObserver.js","webpack:///./~/ng2-webstorage/dist/helpers/webStorage.js","webpack:///./~/ng2-webstorage/dist/interfaces/config.js","webpack:///./~/ng2-webstorage/dist/services/index.js","webpack:///./~/rxjs/add/observable/defer.js","webpack:///./~/rxjs/add/observable/fromPromise.js","webpack:///./~/rxjs/add/observable/timer.js","webpack:///./~/rxjs/add/operator/debounce.js","webpack:///./~/rxjs/add/operator/filter.js","webpack:///./~/rxjs/add/operator/throttle.js","webpack:///./~/rxjs/add/operator/toPromise.js","webpack:///./~/rxjs/observable/ConnectableObservable.js","webpack:///./~/rxjs/observable/dom/AjaxObservable.js","webpack:///./~/rxjs/operator/distinctUntilChanged.js","webpack:///./~/rxjs/operator/find.js","webpack:///./~/rxjs/operator/merge.js","webpack:///./~/rxjs/operator/mergeMapTo.js","webpack:///./~/rxjs/operator/onErrorResumeNext.js","webpack:///./~/rxjs/operator/race.js","webpack:///./~/rxjs/operator/timeInterval.js","webpack:///./~/rxjs/operator/timestamp.js","webpack:///./~/rxjs/scheduler/VirtualTimeScheduler.js","webpack:///./~/rxjs/scheduler/asap.js","webpack:///./~/rxjs/scheduler/queue.js","webpack:///./~/rxjs/testing/SubscriptionLog.js","webpack:///./~/rxjs/testing/SubscriptionLoggable.js","webpack:///./~/rxjs/util/TimeoutError.js","webpack:///./~/rxjs/util/applyMixins.js","webpack:///./~/rxjs/util/noop.js","webpack:///./src/app/index.ts","webpack:///./src/app/app.component.ts","webpack:///./src/app/app.module.ts","webpack:///./src/app/app.resolver.ts","webpack:///./src/app/app.routes.ts","webpack:///./src/app/app.service.ts","webpack:///./src/app/components/activitylist.ts","webpack:///./src/app/components/activitylog.ts","webpack:///./src/app/components/companylist.ts","webpack:///./src/app/components/domainlist.ts","webpack:///./src/app/components/header.ts","webpack:///./src/app/components/invoicelist.ts","webpack:///./src/app/components/mxinfo.ts","webpack:///./src/app/components/numberformatter.ts","webpack:///./src/app/components/orderlist.ts","webpack:///./src/app/components/storagelist.ts","webpack:///./src/app/components/subscriptionlist.ts","webpack:///./src/app/components/supportlist.ts","webpack:///./src/app/models/account.ts","webpack:///./src/app/models/activity.ts","webpack:///./src/app/models/domain.ts","webpack:///./src/app/models/supportissue.ts","webpack:///./src/app/no-content/no-content.component.ts","webpack:///./src/app/pipes/nl2br.ts","webpack:///./src/app/pipes/truncate.ts","webpack:///./~/angular2-infinite-scroll/angular2-infinite-scroll.js","webpack:///./~/angular2-infinite-scroll/src/index.js","webpack:///./~/angular2-jwt/angular2-jwt.js","webpack:///./~/base64-js/index.js","webpack:///./~/chart.js/dist/Chart.js","webpack:///./~/deep-object-diff/mjs/detailed.js","webpack:///./~/deep-object-diff/mjs/diff.js","webpack:///./~/deep-object-diff/mjs/index.js","webpack:///./~/ieee754/index.js","webpack:///./~/isarray/index.js","webpack:///./~/moment/locale ^\\.\\/.*$","webpack:///./~/ng2-bs4-modal/directives/autofocus.js","webpack:///./~/ng2-bs4-modal/module/ng2-bs4-modal.module.js","webpack:///./~/ng2-charts/charts/charts.js","webpack:///./~/ng2-charts/index.js","webpack:///./~/ng2-file-upload/file-upload/file-type.class.js","webpack:///./~/ng2-file-upload/file-upload/file-upload.module.js","webpack:///./~/ng2-file-upload/file-upload/file-uploader.class.js","webpack:///./~/ng2-file-upload/ng2-file-upload.js","webpack:///./~/ng2-webstorage/dist/decorators/index.js","webpack:///./~/ng2-webstorage/dist/decorators/localStorage.js","webpack:///./~/ng2-webstorage/dist/decorators/sessionStorage.js","webpack:///./~/ng2-webstorage/dist/helpers/mockStorage.js","webpack:///./~/ng2-webstorage/dist/interfaces/index.js","webpack:///./~/ng2-webstorage/dist/interfaces/storage.js","webpack:///./~/ng2-webstorage/dist/interfaces/webStorage.js","webpack:///./~/ng2-webstorage/dist/services/localStorage.js","webpack:///./~/ng2-webstorage/dist/services/sessionStorage.js","webpack:///./src/app/app.component.html","webpack:///./src/app/components/templates/accountinfo.html","webpack:///./src/app/components/templates/accountinfomodal.html","webpack:///./src/app/components/templates/activitydetails.html","webpack:///./src/app/components/templates/activitylist.html","webpack:///./src/app/components/templates/activitylog.html","webpack:///./src/app/components/templates/addressinfo.html","webpack:///./src/app/components/templates/communicationhistory.html","webpack:///./src/app/components/templates/companylist.html","webpack:///./src/app/components/templates/createaccountmodal.html","webpack:///./src/app/components/templates/createactivitymodal.html","webpack:///./src/app/components/templates/customerfullinfo.html","webpack:///./src/app/components/templates/customerinfo.html","webpack:///./src/app/components/templates/datepicker.html","webpack:///./src/app/components/templates/domaininfo.html","webpack:///./src/app/components/templates/domainlist.html","webpack:///./src/app/components/templates/emailutils.html","webpack:///./src/app/components/templates/fileupload.html","webpack:///./src/app/components/templates/header.html","webpack:///./src/app/components/templates/htmlsource.html","webpack:///./src/app/components/templates/invoiceinfo.html","webpack:///./src/app/components/templates/invoicelist.html","webpack:///./src/app/components/templates/line-chart.html","webpack:///./src/app/components/templates/mailcomposer.html","webpack:///./src/app/components/templates/mxinfo.html","webpack:///./src/app/components/templates/orderinfo.html","webpack:///./src/app/components/templates/orderlist.html","webpack:///./src/app/components/templates/phoneinfo.html","webpack:///./src/app/components/templates/prospectdetails.html","webpack:///./src/app/components/templates/searchsidebar.html","webpack:///./src/app/components/templates/smscomposer.html","webpack:///./src/app/components/templates/storagelist.html","webpack:///./src/app/components/templates/subscriptioninfo.html","webpack:///./src/app/components/templates/subscriptionlist.html","webpack:///./src/app/components/templates/supportdetails.html","webpack:///./src/app/components/templates/supportlist.html","webpack:///./src/app/views/templates/activities.html","webpack:///./src/app/views/templates/activitylog.html","webpack:///./src/app/views/templates/companies.html","webpack:///./src/app/views/templates/dashboard.html","webpack:///./src/app/views/templates/domains.html","webpack:///./src/app/views/templates/imapsync.html","webpack:///./src/app/views/templates/invoices.html","webpack:///./src/app/views/templates/layouts.html","webpack:///./src/app/views/templates/orders.html","webpack:///./src/app/views/templates/phones.html","webpack:///./src/app/views/templates/prospects.html","webpack:///./src/app/views/templates/salesreport.html","webpack:///./src/app/views/templates/storage.html","webpack:///./src/app/views/templates/subscriptions.html","webpack:///./src/app/views/templates/support.html","webpack:///./~/rxjs/Scheduler.js","webpack:///./~/rxjs/add/observable/bindCallback.js","webpack:///./~/rxjs/add/observable/bindNodeCallback.js","webpack:///./~/rxjs/add/observable/combineLatest.js","webpack:///./~/rxjs/add/observable/concat.js","webpack:///./~/rxjs/add/observable/dom/ajax.js","webpack:///./~/rxjs/add/observable/dom/webSocket.js","webpack:///./~/rxjs/add/observable/empty.js","webpack:///./~/rxjs/add/observable/forkJoin.js","webpack:///./~/rxjs/add/observable/from.js","webpack:///./~/rxjs/add/observable/fromEventPattern.js","webpack:///./~/rxjs/add/observable/generate.js","webpack:///./~/rxjs/add/observable/if.js","webpack:///./~/rxjs/add/observable/interval.js","webpack:///./~/rxjs/add/observable/merge.js","webpack:///./~/rxjs/add/observable/never.js","webpack:///./~/rxjs/add/observable/onErrorResumeNext.js","webpack:///./~/rxjs/add/observable/pairs.js","webpack:///./~/rxjs/add/observable/race.js","webpack:///./~/rxjs/add/observable/range.js","webpack:///./~/rxjs/add/observable/throw.js","webpack:///./~/rxjs/add/observable/using.js","webpack:///./~/rxjs/add/observable/zip.js","webpack:///./~/rxjs/add/operator/audit.js","webpack:///./~/rxjs/add/operator/auditTime.js","webpack:///./~/rxjs/add/operator/buffer.js","webpack:///./~/rxjs/add/operator/bufferCount.js","webpack:///./~/rxjs/add/operator/bufferTime.js","webpack:///./~/rxjs/add/operator/bufferToggle.js","webpack:///./~/rxjs/add/operator/bufferWhen.js","webpack:///./~/rxjs/add/operator/catch.js","webpack:///./~/rxjs/add/operator/combineAll.js","webpack:///./~/rxjs/add/operator/combineLatest.js","webpack:///./~/rxjs/add/operator/concat.js","webpack:///./~/rxjs/add/operator/concatAll.js","webpack:///./~/rxjs/add/operator/concatMap.js","webpack:///./~/rxjs/add/operator/concatMapTo.js","webpack:///./~/rxjs/add/operator/count.js","webpack:///./~/rxjs/add/operator/debounceTime.js","webpack:///./~/rxjs/add/operator/defaultIfEmpty.js","webpack:///./~/rxjs/add/operator/delay.js","webpack:///./~/rxjs/add/operator/delayWhen.js","webpack:///./~/rxjs/add/operator/dematerialize.js","webpack:///./~/rxjs/add/operator/distinct.js","webpack:///./~/rxjs/add/operator/distinctUntilChanged.js","webpack:///./~/rxjs/add/operator/distinctUntilKeyChanged.js","webpack:///./~/rxjs/add/operator/do.js","webpack:///./~/rxjs/add/operator/elementAt.js","webpack:///./~/rxjs/add/operator/every.js","webpack:///./~/rxjs/add/operator/exhaust.js","webpack:///./~/rxjs/add/operator/exhaustMap.js","webpack:///./~/rxjs/add/operator/expand.js","webpack:///./~/rxjs/add/operator/finally.js","webpack:///./~/rxjs/add/operator/find.js","webpack:///./~/rxjs/add/operator/findIndex.js","webpack:///./~/rxjs/add/operator/first.js","webpack:///./~/rxjs/add/operator/groupBy.js","webpack:///./~/rxjs/add/operator/ignoreElements.js","webpack:///./~/rxjs/add/operator/isEmpty.js","webpack:///./~/rxjs/add/operator/last.js","webpack:///./~/rxjs/add/operator/let.js","webpack:///./~/rxjs/add/operator/mapTo.js","webpack:///./~/rxjs/add/operator/materialize.js","webpack:///./~/rxjs/add/operator/max.js","webpack:///./~/rxjs/add/operator/merge.js","webpack:///./~/rxjs/add/operator/mergeAll.js","webpack:///./~/rxjs/add/operator/mergeMapTo.js","webpack:///./~/rxjs/add/operator/mergeScan.js","webpack:///./~/rxjs/add/operator/min.js","webpack:///./~/rxjs/add/operator/multicast.js","webpack:///./~/rxjs/add/operator/observeOn.js","webpack:///./~/rxjs/add/operator/onErrorResumeNext.js","webpack:///./~/rxjs/add/operator/pairwise.js","webpack:///./~/rxjs/add/operator/partition.js","webpack:///./~/rxjs/add/operator/pluck.js","webpack:///./~/rxjs/add/operator/publish.js","webpack:///./~/rxjs/add/operator/publishBehavior.js","webpack:///./~/rxjs/add/operator/publishLast.js","webpack:///./~/rxjs/add/operator/publishReplay.js","webpack:///./~/rxjs/add/operator/race.js","webpack:///./~/rxjs/add/operator/reduce.js","webpack:///./~/rxjs/add/operator/repeat.js","webpack:///./~/rxjs/add/operator/repeatWhen.js","webpack:///./~/rxjs/add/operator/retry.js","webpack:///./~/rxjs/add/operator/retryWhen.js","webpack:///./~/rxjs/add/operator/sample.js","webpack:///./~/rxjs/add/operator/sampleTime.js","webpack:///./~/rxjs/add/operator/scan.js","webpack:///./~/rxjs/add/operator/sequenceEqual.js","webpack:///./~/rxjs/add/operator/share.js","webpack:///./~/rxjs/add/operator/single.js","webpack:///./~/rxjs/add/operator/skip.js","webpack:///./~/rxjs/add/operator/skipUntil.js","webpack:///./~/rxjs/add/operator/skipWhile.js","webpack:///./~/rxjs/add/operator/startWith.js","webpack:///./~/rxjs/add/operator/subscribeOn.js","webpack:///./~/rxjs/add/operator/switch.js","webpack:///./~/rxjs/add/operator/switchMap.js","webpack:///./~/rxjs/add/operator/switchMapTo.js","webpack:///./~/rxjs/add/operator/take.js","webpack:///./~/rxjs/add/operator/takeLast.js","webpack:///./~/rxjs/add/operator/takeUntil.js","webpack:///./~/rxjs/add/operator/takeWhile.js","webpack:///./~/rxjs/add/operator/throttleTime.js","webpack:///./~/rxjs/add/operator/timeInterval.js","webpack:///./~/rxjs/add/operator/timeout.js","webpack:///./~/rxjs/add/operator/timeoutWith.js","webpack:///./~/rxjs/add/operator/timestamp.js","webpack:///./~/rxjs/add/operator/toArray.js","webpack:///./~/rxjs/add/operator/window.js","webpack:///./~/rxjs/add/operator/windowCount.js","webpack:///./~/rxjs/add/operator/windowTime.js","webpack:///./~/rxjs/add/operator/windowToggle.js","webpack:///./~/rxjs/add/operator/windowWhen.js","webpack:///./~/rxjs/add/operator/withLatestFrom.js","webpack:///./~/rxjs/add/operator/zip.js","webpack:///./~/rxjs/add/operator/zipAll.js","webpack:///./~/rxjs/observable/BoundCallbackObservable.js","webpack:///./~/rxjs/observable/BoundNodeCallbackObservable.js","webpack:///./~/rxjs/observable/DeferObservable.js","webpack:///./~/rxjs/observable/ErrorObservable.js","webpack:///./~/rxjs/observable/ForkJoinObservable.js","webpack:///./~/rxjs/observable/FromEventObservable.js","webpack:///./~/rxjs/observable/FromEventPatternObservable.js","webpack:///./~/rxjs/observable/GenerateObservable.js","webpack:///./~/rxjs/observable/IfObservable.js","webpack:///./~/rxjs/observable/IntervalObservable.js","webpack:///./~/rxjs/observable/NeverObservable.js","webpack:///./~/rxjs/observable/PairsObservable.js","webpack:///./~/rxjs/observable/RangeObservable.js","webpack:///./~/rxjs/observable/SubscribeOnObservable.js","webpack:///./~/rxjs/observable/TimerObservable.js","webpack:///./~/rxjs/observable/UsingObservable.js","webpack:///./~/rxjs/observable/bindCallback.js","webpack:///./~/rxjs/observable/bindNodeCallback.js","webpack:///./~/rxjs/observable/combineLatest.js","webpack:///./~/rxjs/observable/concat.js","webpack:///./~/rxjs/observable/defer.js","webpack:///./~/rxjs/observable/dom/WebSocketSubject.js","webpack:///./~/rxjs/observable/dom/ajax.js","webpack:///./~/rxjs/observable/dom/webSocket.js","webpack:///./~/rxjs/observable/empty.js","webpack:///./~/rxjs/observable/forkJoin.js","webpack:///./~/rxjs/observable/fromEvent.js","webpack:///./~/rxjs/observable/fromEventPattern.js","webpack:///./~/rxjs/observable/if.js","webpack:///./~/rxjs/observable/interval.js","webpack:///./~/rxjs/observable/merge.js","webpack:///./~/rxjs/observable/never.js","webpack:///./~/rxjs/observable/pairs.js","webpack:///./~/rxjs/observable/range.js","webpack:///./~/rxjs/observable/throw.js","webpack:///./~/rxjs/observable/timer.js","webpack:///./~/rxjs/observable/using.js","webpack:///./~/rxjs/observable/zip.js","webpack:///./~/rxjs/operator/audit.js","webpack:///./~/rxjs/operator/auditTime.js","webpack:///./~/rxjs/operator/buffer.js","webpack:///./~/rxjs/operator/bufferCount.js","webpack:///./~/rxjs/operator/bufferTime.js","webpack:///./~/rxjs/operator/bufferToggle.js","webpack:///./~/rxjs/operator/bufferWhen.js","webpack:///./~/rxjs/operator/combineAll.js","webpack:///./~/rxjs/operator/concatMapTo.js","webpack:///./~/rxjs/operator/count.js","webpack:///./~/rxjs/operator/debounce.js","webpack:///./~/rxjs/operator/debounceTime.js","webpack:///./~/rxjs/operator/defaultIfEmpty.js","webpack:///./~/rxjs/operator/delay.js","webpack:///./~/rxjs/operator/delayWhen.js","webpack:///./~/rxjs/operator/dematerialize.js","webpack:///./~/rxjs/operator/distinct.js","webpack:///./~/rxjs/operator/distinctUntilKeyChanged.js","webpack:///./~/rxjs/operator/do.js","webpack:///./~/rxjs/operator/elementAt.js","webpack:///./~/rxjs/operator/exhaust.js","webpack:///./~/rxjs/operator/exhaustMap.js","webpack:///./~/rxjs/operator/expand.js","webpack:///./~/rxjs/operator/finally.js","webpack:///./~/rxjs/operator/findIndex.js","webpack:///./~/rxjs/operator/groupBy.js","webpack:///./~/rxjs/operator/ignoreElements.js","webpack:///./~/rxjs/operator/isEmpty.js","webpack:///./~/rxjs/operator/let.js","webpack:///./~/rxjs/operator/mapTo.js","webpack:///./~/rxjs/operator/materialize.js","webpack:///./~/rxjs/operator/max.js","webpack:///./~/rxjs/operator/mergeScan.js","webpack:///./~/rxjs/operator/min.js","webpack:///./~/rxjs/operator/pairwise.js","webpack:///./~/rxjs/operator/partition.js","webpack:///./~/rxjs/operator/pluck.js","webpack:///./~/rxjs/operator/publish.js","webpack:///./~/rxjs/operator/publishBehavior.js","webpack:///./~/rxjs/operator/publishLast.js","webpack:///./~/rxjs/operator/publishReplay.js","webpack:///./~/rxjs/operator/repeat.js","webpack:///./~/rxjs/operator/repeatWhen.js","webpack:///./~/rxjs/operator/retry.js","webpack:///./~/rxjs/operator/retryWhen.js","webpack:///./~/rxjs/operator/sample.js","webpack:///./~/rxjs/operator/sampleTime.js","webpack:///./~/rxjs/operator/scan.js","webpack:///./~/rxjs/operator/sequenceEqual.js","webpack:///./~/rxjs/operator/share.js","webpack:///./~/rxjs/operator/single.js","webpack:///./~/rxjs/operator/skip.js","webpack:///./~/rxjs/operator/skipUntil.js","webpack:///./~/rxjs/operator/skipWhile.js","webpack:///./~/rxjs/operator/startWith.js","webpack:///./~/rxjs/operator/subscribeOn.js","webpack:///./~/rxjs/operator/switch.js","webpack:///./~/rxjs/operator/switchMap.js","webpack:///./~/rxjs/operator/switchMapTo.js","webpack:///./~/rxjs/operator/take.js","webpack:///./~/rxjs/operator/takeLast.js","webpack:///./~/rxjs/operator/takeUntil.js","webpack:///./~/rxjs/operator/takeWhile.js","webpack:///./~/rxjs/operator/throttle.js","webpack:///./~/rxjs/operator/throttleTime.js","webpack:///./~/rxjs/operator/timeout.js","webpack:///./~/rxjs/operator/timeoutWith.js","webpack:///./~/rxjs/operator/toArray.js","webpack:///./~/rxjs/operator/window.js","webpack:///./~/rxjs/operator/windowCount.js","webpack:///./~/rxjs/operator/windowTime.js","webpack:///./~/rxjs/operator/windowToggle.js","webpack:///./~/rxjs/operator/windowWhen.js","webpack:///./~/rxjs/operator/withLatestFrom.js","webpack:///./~/rxjs/operator/zipAll.js","webpack:///./~/rxjs/scheduler/Action.js","webpack:///./~/rxjs/scheduler/AnimationFrameAction.js","webpack:///./~/rxjs/scheduler/AnimationFrameScheduler.js","webpack:///./~/rxjs/scheduler/AsapAction.js","webpack:///./~/rxjs/scheduler/AsapScheduler.js","webpack:///./~/rxjs/scheduler/QueueAction.js","webpack:///./~/rxjs/scheduler/QueueScheduler.js","webpack:///./~/rxjs/scheduler/animationFrame.js","webpack:///./~/rxjs/testing/ColdObservable.js","webpack:///./~/rxjs/testing/HotObservable.js","webpack:///./~/rxjs/testing/TestScheduler.js","webpack:///./~/rxjs/util/AnimationFrame.js","webpack:///./~/rxjs/util/FastMap.js","webpack:///./~/rxjs/util/Immediate.js","webpack:///./~/rxjs/util/Map.js","webpack:///./~/rxjs/util/MapPolyfill.js","webpack:///./~/rxjs/util/Set.js","webpack:///./~/rxjs/util/assign.js","webpack:///./~/rxjs/util/not.js","webpack:///./~/ts-md5/dist/md5.js","webpack:///(webpack)/buildin/module.js","webpack:///./src/main.browser.ts"],"sourcesContent":["//! moment.js\n//! version : 2.29.4\n//! authors : Tim Wood, Iskren Chernev, Moment.js contributors\n//! license : MIT\n//! momentjs.com\n\n;(function (global, factory) {\n    typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :\n    typeof define === 'function' && define.amd ? define(factory) :\n    global.moment = factory()\n}(this, (function () { 'use strict';\n\n    var hookCallback;\n\n    function hooks() {\n        return hookCallback.apply(null, arguments);\n    }\n\n    // This is done to register the method called with moment()\n    // without creating circular dependencies.\n    function setHookCallback(callback) {\n        hookCallback = callback;\n    }\n\n    function isArray(input) {\n        return (\n            input instanceof Array ||\n            Object.prototype.toString.call(input) === '[object Array]'\n        );\n    }\n\n    function isObject(input) {\n        // IE8 will treat undefined and null as object if it wasn't for\n        // input != null\n        return (\n            input != null &&\n            Object.prototype.toString.call(input) === '[object Object]'\n        );\n    }\n\n    function hasOwnProp(a, b) {\n        return Object.prototype.hasOwnProperty.call(a, b);\n    }\n\n    function isObjectEmpty(obj) {\n        if (Object.getOwnPropertyNames) {\n            return Object.getOwnPropertyNames(obj).length === 0;\n        } else {\n            var k;\n            for (k in obj) {\n                if (hasOwnProp(obj, k)) {\n                    return false;\n                }\n            }\n            return true;\n        }\n    }\n\n    function isUndefined(input) {\n        return input === void 0;\n    }\n\n    function isNumber(input) {\n        return (\n            typeof input === 'number' ||\n            Object.prototype.toString.call(input) === '[object Number]'\n        );\n    }\n\n    function isDate(input) {\n        return (\n            input instanceof Date ||\n            Object.prototype.toString.call(input) === '[object Date]'\n        );\n    }\n\n    function map(arr, fn) {\n        var res = [],\n            i,\n            arrLen = arr.length;\n        for (i = 0; i < arrLen; ++i) {\n            res.push(fn(arr[i], i));\n        }\n        return res;\n    }\n\n    function extend(a, b) {\n        for (var i in b) {\n            if (hasOwnProp(b, i)) {\n                a[i] = b[i];\n            }\n        }\n\n        if (hasOwnProp(b, 'toString')) {\n            a.toString = b.toString;\n        }\n\n        if (hasOwnProp(b, 'valueOf')) {\n            a.valueOf = b.valueOf;\n        }\n\n        return a;\n    }\n\n    function createUTC(input, format, locale, strict) {\n        return createLocalOrUTC(input, format, locale, strict, true).utc();\n    }\n\n    function defaultParsingFlags() {\n        // We need to deep clone this object.\n        return {\n            empty: false,\n            unusedTokens: [],\n            unusedInput: [],\n            overflow: -2,\n            charsLeftOver: 0,\n            nullInput: false,\n            invalidEra: null,\n            invalidMonth: null,\n            invalidFormat: false,\n            userInvalidated: false,\n            iso: false,\n            parsedDateParts: [],\n            era: null,\n            meridiem: null,\n            rfc2822: false,\n            weekdayMismatch: false,\n        };\n    }\n\n    function getParsingFlags(m) {\n        if (m._pf == null) {\n            m._pf = defaultParsingFlags();\n        }\n        return m._pf;\n    }\n\n    var some;\n    if (Array.prototype.some) {\n        some = Array.prototype.some;\n    } else {\n        some = function (fun) {\n            var t = Object(this),\n                len = t.length >>> 0,\n                i;\n\n            for (i = 0; i < len; i++) {\n                if (i in t && fun.call(this, t[i], i, t)) {\n                    return true;\n                }\n            }\n\n            return false;\n        };\n    }\n\n    function isValid(m) {\n        if (m._isValid == null) {\n            var flags = getParsingFlags(m),\n                parsedParts = some.call(flags.parsedDateParts, function (i) {\n                    return i != null;\n                }),\n                isNowValid =\n                    !isNaN(m._d.getTime()) &&\n                    flags.overflow < 0 &&\n                    !flags.empty &&\n                    !flags.invalidEra &&\n                    !flags.invalidMonth &&\n                    !flags.invalidWeekday &&\n                    !flags.weekdayMismatch &&\n                    !flags.nullInput &&\n                    !flags.invalidFormat &&\n                    !flags.userInvalidated &&\n                    (!flags.meridiem || (flags.meridiem && parsedParts));\n\n            if (m._strict) {\n                isNowValid =\n                    isNowValid &&\n                    flags.charsLeftOver === 0 &&\n                    flags.unusedTokens.length === 0 &&\n                    flags.bigHour === undefined;\n            }\n\n            if (Object.isFrozen == null || !Object.isFrozen(m)) {\n                m._isValid = isNowValid;\n            } else {\n                return isNowValid;\n            }\n        }\n        return m._isValid;\n    }\n\n    function createInvalid(flags) {\n        var m = createUTC(NaN);\n        if (flags != null) {\n            extend(getParsingFlags(m), flags);\n        } else {\n            getParsingFlags(m).userInvalidated = true;\n        }\n\n        return m;\n    }\n\n    // Plugins that add properties should also add the key here (null value),\n    // so we can properly clone ourselves.\n    var momentProperties = (hooks.momentProperties = []),\n        updateInProgress = false;\n\n    function copyConfig(to, from) {\n        var i,\n            prop,\n            val,\n            momentPropertiesLen = momentProperties.length;\n\n        if (!isUndefined(from._isAMomentObject)) {\n            to._isAMomentObject = from._isAMomentObject;\n        }\n        if (!isUndefined(from._i)) {\n            to._i = from._i;\n        }\n        if (!isUndefined(from._f)) {\n            to._f = from._f;\n        }\n        if (!isUndefined(from._l)) {\n            to._l = from._l;\n        }\n        if (!isUndefined(from._strict)) {\n            to._strict = from._strict;\n        }\n        if (!isUndefined(from._tzm)) {\n            to._tzm = from._tzm;\n        }\n        if (!isUndefined(from._isUTC)) {\n            to._isUTC = from._isUTC;\n        }\n        if (!isUndefined(from._offset)) {\n            to._offset = from._offset;\n        }\n        if (!isUndefined(from._pf)) {\n            to._pf = getParsingFlags(from);\n        }\n        if (!isUndefined(from._locale)) {\n            to._locale = from._locale;\n        }\n\n        if (momentPropertiesLen > 0) {\n            for (i = 0; i < momentPropertiesLen; i++) {\n                prop = momentProperties[i];\n                val = from[prop];\n                if (!isUndefined(val)) {\n                    to[prop] = val;\n                }\n            }\n        }\n\n        return to;\n    }\n\n    // Moment prototype object\n    function Moment(config) {\n        copyConfig(this, config);\n        this._d = new Date(config._d != null ? config._d.getTime() : NaN);\n        if (!this.isValid()) {\n            this._d = new Date(NaN);\n        }\n        // Prevent infinite loop in case updateOffset creates new moment\n        // objects.\n        if (updateInProgress === false) {\n            updateInProgress = true;\n            hooks.updateOffset(this);\n            updateInProgress = false;\n        }\n    }\n\n    function isMoment(obj) {\n        return (\n            obj instanceof Moment || (obj != null && obj._isAMomentObject != null)\n        );\n    }\n\n    function warn(msg) {\n        if (\n            hooks.suppressDeprecationWarnings === false &&\n            typeof console !== 'undefined' &&\n            console.warn\n        ) {\n            console.warn('Deprecation warning: ' + msg);\n        }\n    }\n\n    function deprecate(msg, fn) {\n        var firstTime = true;\n\n        return extend(function () {\n            if (hooks.deprecationHandler != null) {\n                hooks.deprecationHandler(null, msg);\n            }\n            if (firstTime) {\n                var args = [],\n                    arg,\n                    i,\n                    key,\n                    argLen = arguments.length;\n                for (i = 0; i < argLen; i++) {\n                    arg = '';\n                    if (typeof arguments[i] === 'object') {\n                        arg += '\\n[' + i + '] ';\n                        for (key in arguments[0]) {\n                            if (hasOwnProp(arguments[0], key)) {\n                                arg += key + ': ' + arguments[0][key] + ', ';\n                            }\n                        }\n                        arg = arg.slice(0, -2); // Remove trailing comma and space\n                    } else {\n                        arg = arguments[i];\n                    }\n                    args.push(arg);\n                }\n                warn(\n                    msg +\n                        '\\nArguments: ' +\n                        Array.prototype.slice.call(args).join('') +\n                        '\\n' +\n                        new Error().stack\n                );\n                firstTime = false;\n            }\n            return fn.apply(this, arguments);\n        }, fn);\n    }\n\n    var deprecations = {};\n\n    function deprecateSimple(name, msg) {\n        if (hooks.deprecationHandler != null) {\n            hooks.deprecationHandler(name, msg);\n        }\n        if (!deprecations[name]) {\n            warn(msg);\n            deprecations[name] = true;\n        }\n    }\n\n    hooks.suppressDeprecationWarnings = false;\n    hooks.deprecationHandler = null;\n\n    function isFunction(input) {\n        return (\n            (typeof Function !== 'undefined' && input instanceof Function) ||\n            Object.prototype.toString.call(input) === '[object Function]'\n        );\n    }\n\n    function set(config) {\n        var prop, i;\n        for (i in config) {\n            if (hasOwnProp(config, i)) {\n                prop = config[i];\n                if (isFunction(prop)) {\n                    this[i] = prop;\n                } else {\n                    this['_' + i] = prop;\n                }\n            }\n        }\n        this._config = config;\n        // Lenient ordinal parsing accepts just a number in addition to\n        // number + (possibly) stuff coming from _dayOfMonthOrdinalParse.\n        // TODO: Remove \"ordinalParse\" fallback in next major release.\n        this._dayOfMonthOrdinalParseLenient = new RegExp(\n            (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) +\n                '|' +\n                /\\d{1,2}/.source\n        );\n    }\n\n    function mergeConfigs(parentConfig, childConfig) {\n        var res = extend({}, parentConfig),\n            prop;\n        for (prop in childConfig) {\n            if (hasOwnProp(childConfig, prop)) {\n                if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) {\n                    res[prop] = {};\n                    extend(res[prop], parentConfig[prop]);\n                    extend(res[prop], childConfig[prop]);\n                } else if (childConfig[prop] != null) {\n                    res[prop] = childConfig[prop];\n                } else {\n                    delete res[prop];\n                }\n            }\n        }\n        for (prop in parentConfig) {\n            if (\n                hasOwnProp(parentConfig, prop) &&\n                !hasOwnProp(childConfig, prop) &&\n                isObject(parentConfig[prop])\n            ) {\n                // make sure changes to properties don't modify parent config\n                res[prop] = extend({}, res[prop]);\n            }\n        }\n        return res;\n    }\n\n    function Locale(config) {\n        if (config != null) {\n            this.set(config);\n        }\n    }\n\n    var keys;\n\n    if (Object.keys) {\n        keys = Object.keys;\n    } else {\n        keys = function (obj) {\n            var i,\n                res = [];\n            for (i in obj) {\n                if (hasOwnProp(obj, i)) {\n                    res.push(i);\n                }\n            }\n            return res;\n        };\n    }\n\n    var defaultCalendar = {\n        sameDay: '[Today at] LT',\n        nextDay: '[Tomorrow at] LT',\n        nextWeek: 'dddd [at] LT',\n        lastDay: '[Yesterday at] LT',\n        lastWeek: '[Last] dddd [at] LT',\n        sameElse: 'L',\n    };\n\n    function calendar(key, mom, now) {\n        var output = this._calendar[key] || this._calendar['sameElse'];\n        return isFunction(output) ? output.call(mom, now) : output;\n    }\n\n    function zeroFill(number, targetLength, forceSign) {\n        var absNumber = '' + Math.abs(number),\n            zerosToFill = targetLength - absNumber.length,\n            sign = number >= 0;\n        return (\n            (sign ? (forceSign ? '+' : '') : '-') +\n            Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) +\n            absNumber\n        );\n    }\n\n    var formattingTokens =\n            /(\\[[^\\[]*\\])|(\\\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,\n        localFormattingTokens = /(\\[[^\\[]*\\])|(\\\\)?(LTS|LT|LL?L?L?|l{1,4})/g,\n        formatFunctions = {},\n        formatTokenFunctions = {};\n\n    // token:    'M'\n    // padded:   ['MM', 2]\n    // ordinal:  'Mo'\n    // callback: function () { this.month() + 1 }\n    function addFormatToken(token, padded, ordinal, callback) {\n        var func = callback;\n        if (typeof callback === 'string') {\n            func = function () {\n                return this[callback]();\n            };\n        }\n        if (token) {\n            formatTokenFunctions[token] = func;\n        }\n        if (padded) {\n            formatTokenFunctions[padded[0]] = function () {\n                return zeroFill(func.apply(this, arguments), padded[1], padded[2]);\n            };\n        }\n        if (ordinal) {\n            formatTokenFunctions[ordinal] = function () {\n                return this.localeData().ordinal(\n                    func.apply(this, arguments),\n                    token\n                );\n            };\n        }\n    }\n\n    function removeFormattingTokens(input) {\n        if (input.match(/\\[[\\s\\S]/)) {\n            return input.replace(/^\\[|\\]$/g, '');\n        }\n        return input.replace(/\\\\/g, '');\n    }\n\n    function makeFormatFunction(format) {\n        var array = format.match(formattingTokens),\n            i,\n            length;\n\n        for (i = 0, length = array.length; i < length; i++) {\n            if (formatTokenFunctions[array[i]]) {\n                array[i] = formatTokenFunctions[array[i]];\n            } else {\n                array[i] = removeFormattingTokens(array[i]);\n            }\n        }\n\n        return function (mom) {\n            var output = '',\n                i;\n            for (i = 0; i < length; i++) {\n                output += isFunction(array[i])\n                    ? array[i].call(mom, format)\n                    : array[i];\n            }\n            return output;\n        };\n    }\n\n    // format date using native date object\n    function formatMoment(m, format) {\n        if (!m.isValid()) {\n            return m.localeData().invalidDate();\n        }\n\n        format = expandFormat(format, m.localeData());\n        formatFunctions[format] =\n            formatFunctions[format] || makeFormatFunction(format);\n\n        return formatFunctions[format](m);\n    }\n\n    function expandFormat(format, locale) {\n        var i = 5;\n\n        function replaceLongDateFormatTokens(input) {\n            return locale.longDateFormat(input) || input;\n        }\n\n        localFormattingTokens.lastIndex = 0;\n        while (i >= 0 && localFormattingTokens.test(format)) {\n            format = format.replace(\n                localFormattingTokens,\n                replaceLongDateFormatTokens\n            );\n            localFormattingTokens.lastIndex = 0;\n            i -= 1;\n        }\n\n        return format;\n    }\n\n    var defaultLongDateFormat = {\n        LTS: 'h:mm:ss A',\n        LT: 'h:mm A',\n        L: 'MM/DD/YYYY',\n        LL: 'MMMM D, YYYY',\n        LLL: 'MMMM D, YYYY h:mm A',\n        LLLL: 'dddd, MMMM D, YYYY h:mm A',\n    };\n\n    function longDateFormat(key) {\n        var format = this._longDateFormat[key],\n            formatUpper = this._longDateFormat[key.toUpperCase()];\n\n        if (format || !formatUpper) {\n            return format;\n        }\n\n        this._longDateFormat[key] = formatUpper\n            .match(formattingTokens)\n            .map(function (tok) {\n                if (\n                    tok === 'MMMM' ||\n                    tok === 'MM' ||\n                    tok === 'DD' ||\n                    tok === 'dddd'\n                ) {\n                    return tok.slice(1);\n                }\n                return tok;\n            })\n            .join('');\n\n        return this._longDateFormat[key];\n    }\n\n    var defaultInvalidDate = 'Invalid date';\n\n    function invalidDate() {\n        return this._invalidDate;\n    }\n\n    var defaultOrdinal = '%d',\n        defaultDayOfMonthOrdinalParse = /\\d{1,2}/;\n\n    function ordinal(number) {\n        return this._ordinal.replace('%d', number);\n    }\n\n    var defaultRelativeTime = {\n        future: 'in %s',\n        past: '%s ago',\n        s: 'a few seconds',\n        ss: '%d seconds',\n        m: 'a minute',\n        mm: '%d minutes',\n        h: 'an hour',\n        hh: '%d hours',\n        d: 'a day',\n        dd: '%d days',\n        w: 'a week',\n        ww: '%d weeks',\n        M: 'a month',\n        MM: '%d months',\n        y: 'a year',\n        yy: '%d years',\n    };\n\n    function relativeTime(number, withoutSuffix, string, isFuture) {\n        var output = this._relativeTime[string];\n        return isFunction(output)\n            ? output(number, withoutSuffix, string, isFuture)\n            : output.replace(/%d/i, number);\n    }\n\n    function pastFuture(diff, output) {\n        var format = this._relativeTime[diff > 0 ? 'future' : 'past'];\n        return isFunction(format) ? format(output) : format.replace(/%s/i, output);\n    }\n\n    var aliases = {};\n\n    function addUnitAlias(unit, shorthand) {\n        var lowerCase = unit.toLowerCase();\n        aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit;\n    }\n\n    function normalizeUnits(units) {\n        return typeof units === 'string'\n            ? aliases[units] || aliases[units.toLowerCase()]\n            : undefined;\n    }\n\n    function normalizeObjectUnits(inputObject) {\n        var normalizedInput = {},\n            normalizedProp,\n            prop;\n\n        for (prop in inputObject) {\n            if (hasOwnProp(inputObject, prop)) {\n                normalizedProp = normalizeUnits(prop);\n                if (normalizedProp) {\n                    normalizedInput[normalizedProp] = inputObject[prop];\n                }\n            }\n        }\n\n        return normalizedInput;\n    }\n\n    var priorities = {};\n\n    function addUnitPriority(unit, priority) {\n        priorities[unit] = priority;\n    }\n\n    function getPrioritizedUnits(unitsObj) {\n        var units = [],\n            u;\n        for (u in unitsObj) {\n            if (hasOwnProp(unitsObj, u)) {\n                units.push({ unit: u, priority: priorities[u] });\n            }\n        }\n        units.sort(function (a, b) {\n            return a.priority - b.priority;\n        });\n        return units;\n    }\n\n    function isLeapYear(year) {\n        return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;\n    }\n\n    function absFloor(number) {\n        if (number < 0) {\n            // -0 -> 0\n            return Math.ceil(number) || 0;\n        } else {\n            return Math.floor(number);\n        }\n    }\n\n    function toInt(argumentForCoercion) {\n        var coercedNumber = +argumentForCoercion,\n            value = 0;\n\n        if (coercedNumber !== 0 && isFinite(coercedNumber)) {\n            value = absFloor(coercedNumber);\n        }\n\n        return value;\n    }\n\n    function makeGetSet(unit, keepTime) {\n        return function (value) {\n            if (value != null) {\n                set$1(this, unit, value);\n                hooks.updateOffset(this, keepTime);\n                return this;\n            } else {\n                return get(this, unit);\n            }\n        };\n    }\n\n    function get(mom, unit) {\n        return mom.isValid()\n            ? mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]()\n            : NaN;\n    }\n\n    function set$1(mom, unit, value) {\n        if (mom.isValid() && !isNaN(value)) {\n            if (\n                unit === 'FullYear' &&\n                isLeapYear(mom.year()) &&\n                mom.month() === 1 &&\n                mom.date() === 29\n            ) {\n                value = toInt(value);\n                mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](\n                    value,\n                    mom.month(),\n                    daysInMonth(value, mom.month())\n                );\n            } else {\n                mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value);\n            }\n        }\n    }\n\n    // MOMENTS\n\n    function stringGet(units) {\n        units = normalizeUnits(units);\n        if (isFunction(this[units])) {\n            return this[units]();\n        }\n        return this;\n    }\n\n    function stringSet(units, value) {\n        if (typeof units === 'object') {\n            units = normalizeObjectUnits(units);\n            var prioritized = getPrioritizedUnits(units),\n                i,\n                prioritizedLen = prioritized.length;\n            for (i = 0; i < prioritizedLen; i++) {\n                this[prioritized[i].unit](units[prioritized[i].unit]);\n            }\n        } else {\n            units = normalizeUnits(units);\n            if (isFunction(this[units])) {\n                return this[units](value);\n            }\n        }\n        return this;\n    }\n\n    var match1 = /\\d/, //       0 - 9\n        match2 = /\\d\\d/, //      00 - 99\n        match3 = /\\d{3}/, //     000 - 999\n        match4 = /\\d{4}/, //    0000 - 9999\n        match6 = /[+-]?\\d{6}/, // -999999 - 999999\n        match1to2 = /\\d\\d?/, //       0 - 99\n        match3to4 = /\\d\\d\\d\\d?/, //     999 - 9999\n        match5to6 = /\\d\\d\\d\\d\\d\\d?/, //   99999 - 999999\n        match1to3 = /\\d{1,3}/, //       0 - 999\n        match1to4 = /\\d{1,4}/, //       0 - 9999\n        match1to6 = /[+-]?\\d{1,6}/, // -999999 - 999999\n        matchUnsigned = /\\d+/, //       0 - inf\n        matchSigned = /[+-]?\\d+/, //    -inf - inf\n        matchOffset = /Z|[+-]\\d\\d:?\\d\\d/gi, // +00:00 -00:00 +0000 -0000 or Z\n        matchShortOffset = /Z|[+-]\\d\\d(?::?\\d\\d)?/gi, // +00 -00 +00:00 -00:00 +0000 -0000 or Z\n        matchTimestamp = /[+-]?\\d+(\\.\\d{1,3})?/, // 123456789 123456789.123\n        // any word (or two) characters or numbers including two/three word month in arabic.\n        // includes scottish gaelic two word and hyphenated months\n        matchWord =\n            /[0-9]{0,256}['a-z\\u00A0-\\u05FF\\u0700-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFF07\\uFF10-\\uFFEF]{1,256}|[\\u0600-\\u06FF\\/]{1,256}(\\s*?[\\u0600-\\u06FF]{1,256}){1,2}/i,\n        regexes;\n\n    regexes = {};\n\n    function addRegexToken(token, regex, strictRegex) {\n        regexes[token] = isFunction(regex)\n            ? regex\n            : function (isStrict, localeData) {\n                  return isStrict && strictRegex ? strictRegex : regex;\n              };\n    }\n\n    function getParseRegexForToken(token, config) {\n        if (!hasOwnProp(regexes, token)) {\n            return new RegExp(unescapeFormat(token));\n        }\n\n        return regexes[token](config._strict, config._locale);\n    }\n\n    // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript\n    function unescapeFormat(s) {\n        return regexEscape(\n            s\n                .replace('\\\\', '')\n                .replace(\n                    /\\\\(\\[)|\\\\(\\])|\\[([^\\]\\[]*)\\]|\\\\(.)/g,\n                    function (matched, p1, p2, p3, p4) {\n                        return p1 || p2 || p3 || p4;\n                    }\n                )\n        );\n    }\n\n    function regexEscape(s) {\n        return s.replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g, '\\\\$&');\n    }\n\n    var tokens = {};\n\n    function addParseToken(token, callback) {\n        var i,\n            func = callback,\n            tokenLen;\n        if (typeof token === 'string') {\n            token = [token];\n        }\n        if (isNumber(callback)) {\n            func = function (input, array) {\n                array[callback] = toInt(input);\n            };\n        }\n        tokenLen = token.length;\n        for (i = 0; i < tokenLen; i++) {\n            tokens[token[i]] = func;\n        }\n    }\n\n    function addWeekParseToken(token, callback) {\n        addParseToken(token, function (input, array, config, token) {\n            config._w = config._w || {};\n            callback(input, config._w, config, token);\n        });\n    }\n\n    function addTimeToArrayFromToken(token, input, config) {\n        if (input != null && hasOwnProp(tokens, token)) {\n            tokens[token](input, config._a, config, token);\n        }\n    }\n\n    var YEAR = 0,\n        MONTH = 1,\n        DATE = 2,\n        HOUR = 3,\n        MINUTE = 4,\n        SECOND = 5,\n        MILLISECOND = 6,\n        WEEK = 7,\n        WEEKDAY = 8;\n\n    function mod(n, x) {\n        return ((n % x) + x) % x;\n    }\n\n    var indexOf;\n\n    if (Array.prototype.indexOf) {\n        indexOf = Array.prototype.indexOf;\n    } else {\n        indexOf = function (o) {\n            // I know\n            var i;\n            for (i = 0; i < this.length; ++i) {\n                if (this[i] === o) {\n                    return i;\n                }\n            }\n            return -1;\n        };\n    }\n\n    function daysInMonth(year, month) {\n        if (isNaN(year) || isNaN(month)) {\n            return NaN;\n        }\n        var modMonth = mod(month, 12);\n        year += (month - modMonth) / 12;\n        return modMonth === 1\n            ? isLeapYear(year)\n                ? 29\n                : 28\n            : 31 - ((modMonth % 7) % 2);\n    }\n\n    // FORMATTING\n\n    addFormatToken('M', ['MM', 2], 'Mo', function () {\n        return this.month() + 1;\n    });\n\n    addFormatToken('MMM', 0, 0, function (format) {\n        return this.localeData().monthsShort(this, format);\n    });\n\n    addFormatToken('MMMM', 0, 0, function (format) {\n        return this.localeData().months(this, format);\n    });\n\n    // ALIASES\n\n    addUnitAlias('month', 'M');\n\n    // PRIORITY\n\n    addUnitPriority('month', 8);\n\n    // PARSING\n\n    addRegexToken('M', match1to2);\n    addRegexToken('MM', match1to2, match2);\n    addRegexToken('MMM', function (isStrict, locale) {\n        return locale.monthsShortRegex(isStrict);\n    });\n    addRegexToken('MMMM', function (isStrict, locale) {\n        return locale.monthsRegex(isStrict);\n    });\n\n    addParseToken(['M', 'MM'], function (input, array) {\n        array[MONTH] = toInt(input) - 1;\n    });\n\n    addParseToken(['MMM', 'MMMM'], function (input, array, config, token) {\n        var month = config._locale.monthsParse(input, token, config._strict);\n        // if we didn't find a month name, mark the date as invalid.\n        if (month != null) {\n            array[MONTH] = month;\n        } else {\n            getParsingFlags(config).invalidMonth = input;\n        }\n    });\n\n    // LOCALES\n\n    var defaultLocaleMonths =\n            'January_February_March_April_May_June_July_August_September_October_November_December'.split(\n                '_'\n            ),\n        defaultLocaleMonthsShort =\n            'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n        MONTHS_IN_FORMAT = /D[oD]?(\\[[^\\[\\]]*\\]|\\s)+MMMM?/,\n        defaultMonthsShortRegex = matchWord,\n        defaultMonthsRegex = matchWord;\n\n    function localeMonths(m, format) {\n        if (!m) {\n            return isArray(this._months)\n                ? this._months\n                : this._months['standalone'];\n        }\n        return isArray(this._months)\n            ? this._months[m.month()]\n            : this._months[\n                  (this._months.isFormat || MONTHS_IN_FORMAT).test(format)\n                      ? 'format'\n                      : 'standalone'\n              ][m.month()];\n    }\n\n    function localeMonthsShort(m, format) {\n        if (!m) {\n            return isArray(this._monthsShort)\n                ? this._monthsShort\n                : this._monthsShort['standalone'];\n        }\n        return isArray(this._monthsShort)\n            ? this._monthsShort[m.month()]\n            : this._monthsShort[\n                  MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone'\n              ][m.month()];\n    }\n\n    function handleStrictParse(monthName, format, strict) {\n        var i,\n            ii,\n            mom,\n            llc = monthName.toLocaleLowerCase();\n        if (!this._monthsParse) {\n            // this is not used\n            this._monthsParse = [];\n            this._longMonthsParse = [];\n            this._shortMonthsParse = [];\n            for (i = 0; i < 12; ++i) {\n                mom = createUTC([2000, i]);\n                this._shortMonthsParse[i] = this.monthsShort(\n                    mom,\n                    ''\n                ).toLocaleLowerCase();\n                this._longMonthsParse[i] = this.months(mom, '').toLocaleLowerCase();\n            }\n        }\n\n        if (strict) {\n            if (format === 'MMM') {\n                ii = indexOf.call(this._shortMonthsParse, llc);\n                return ii !== -1 ? ii : null;\n            } else {\n                ii = indexOf.call(this._longMonthsParse, llc);\n                return ii !== -1 ? ii : null;\n            }\n        } else {\n            if (format === 'MMM') {\n                ii = indexOf.call(this._shortMonthsParse, llc);\n                if (ii !== -1) {\n                    return ii;\n                }\n                ii = indexOf.call(this._longMonthsParse, llc);\n                return ii !== -1 ? ii : null;\n            } else {\n                ii = indexOf.call(this._longMonthsParse, llc);\n                if (ii !== -1) {\n                    return ii;\n                }\n                ii = indexOf.call(this._shortMonthsParse, llc);\n                return ii !== -1 ? ii : null;\n            }\n        }\n    }\n\n    function localeMonthsParse(monthName, format, strict) {\n        var i, mom, regex;\n\n        if (this._monthsParseExact) {\n            return handleStrictParse.call(this, monthName, format, strict);\n        }\n\n        if (!this._monthsParse) {\n            this._monthsParse = [];\n            this._longMonthsParse = [];\n            this._shortMonthsParse = [];\n        }\n\n        // TODO: add sorting\n        // Sorting makes sure if one month (or abbr) is a prefix of another\n        // see sorting in computeMonthsParse\n        for (i = 0; i < 12; i++) {\n            // make the regex if we don't have it already\n            mom = createUTC([2000, i]);\n            if (strict && !this._longMonthsParse[i]) {\n                this._longMonthsParse[i] = new RegExp(\n                    '^' + this.months(mom, '').replace('.', '') + '$',\n                    'i'\n                );\n                this._shortMonthsParse[i] = new RegExp(\n                    '^' + this.monthsShort(mom, '').replace('.', '') + '$',\n                    'i'\n                );\n            }\n            if (!strict && !this._monthsParse[i]) {\n                regex =\n                    '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, '');\n                this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i');\n            }\n            // test the regex\n            if (\n                strict &&\n                format === 'MMMM' &&\n                this._longMonthsParse[i].test(monthName)\n            ) {\n                return i;\n            } else if (\n                strict &&\n                format === 'MMM' &&\n                this._shortMonthsParse[i].test(monthName)\n            ) {\n                return i;\n            } else if (!strict && this._monthsParse[i].test(monthName)) {\n                return i;\n            }\n        }\n    }\n\n    // MOMENTS\n\n    function setMonth(mom, value) {\n        var dayOfMonth;\n\n        if (!mom.isValid()) {\n            // No op\n            return mom;\n        }\n\n        if (typeof value === 'string') {\n            if (/^\\d+$/.test(value)) {\n                value = toInt(value);\n            } else {\n                value = mom.localeData().monthsParse(value);\n                // TODO: Another silent failure?\n                if (!isNumber(value)) {\n                    return mom;\n                }\n            }\n        }\n\n        dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value));\n        mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth);\n        return mom;\n    }\n\n    function getSetMonth(value) {\n        if (value != null) {\n            setMonth(this, value);\n            hooks.updateOffset(this, true);\n            return this;\n        } else {\n            return get(this, 'Month');\n        }\n    }\n\n    function getDaysInMonth() {\n        return daysInMonth(this.year(), this.month());\n    }\n\n    function monthsShortRegex(isStrict) {\n        if (this._monthsParseExact) {\n            if (!hasOwnProp(this, '_monthsRegex')) {\n                computeMonthsParse.call(this);\n            }\n            if (isStrict) {\n                return this._monthsShortStrictRegex;\n            } else {\n                return this._monthsShortRegex;\n            }\n        } else {\n            if (!hasOwnProp(this, '_monthsShortRegex')) {\n                this._monthsShortRegex = defaultMonthsShortRegex;\n            }\n            return this._monthsShortStrictRegex && isStrict\n                ? this._monthsShortStrictRegex\n                : this._monthsShortRegex;\n        }\n    }\n\n    function monthsRegex(isStrict) {\n        if (this._monthsParseExact) {\n            if (!hasOwnProp(this, '_monthsRegex')) {\n                computeMonthsParse.call(this);\n            }\n            if (isStrict) {\n                return this._monthsStrictRegex;\n            } else {\n                return this._monthsRegex;\n            }\n        } else {\n            if (!hasOwnProp(this, '_monthsRegex')) {\n                this._monthsRegex = defaultMonthsRegex;\n            }\n            return this._monthsStrictRegex && isStrict\n                ? this._monthsStrictRegex\n                : this._monthsRegex;\n        }\n    }\n\n    function computeMonthsParse() {\n        function cmpLenRev(a, b) {\n            return b.length - a.length;\n        }\n\n        var shortPieces = [],\n            longPieces = [],\n            mixedPieces = [],\n            i,\n            mom;\n        for (i = 0; i < 12; i++) {\n            // make the regex if we don't have it already\n            mom = createUTC([2000, i]);\n            shortPieces.push(this.monthsShort(mom, ''));\n            longPieces.push(this.months(mom, ''));\n            mixedPieces.push(this.months(mom, ''));\n            mixedPieces.push(this.monthsShort(mom, ''));\n        }\n        // Sorting makes sure if one month (or abbr) is a prefix of another it\n        // will match the longer piece.\n        shortPieces.sort(cmpLenRev);\n        longPieces.sort(cmpLenRev);\n        mixedPieces.sort(cmpLenRev);\n        for (i = 0; i < 12; i++) {\n            shortPieces[i] = regexEscape(shortPieces[i]);\n            longPieces[i] = regexEscape(longPieces[i]);\n        }\n        for (i = 0; i < 24; i++) {\n            mixedPieces[i] = regexEscape(mixedPieces[i]);\n        }\n\n        this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');\n        this._monthsShortRegex = this._monthsRegex;\n        this._monthsStrictRegex = new RegExp(\n            '^(' + longPieces.join('|') + ')',\n            'i'\n        );\n        this._monthsShortStrictRegex = new RegExp(\n            '^(' + shortPieces.join('|') + ')',\n            'i'\n        );\n    }\n\n    // FORMATTING\n\n    addFormatToken('Y', 0, 0, function () {\n        var y = this.year();\n        return y <= 9999 ? zeroFill(y, 4) : '+' + y;\n    });\n\n    addFormatToken(0, ['YY', 2], 0, function () {\n        return this.year() % 100;\n    });\n\n    addFormatToken(0, ['YYYY', 4], 0, 'year');\n    addFormatToken(0, ['YYYYY', 5], 0, 'year');\n    addFormatToken(0, ['YYYYYY', 6, true], 0, 'year');\n\n    // ALIASES\n\n    addUnitAlias('year', 'y');\n\n    // PRIORITIES\n\n    addUnitPriority('year', 1);\n\n    // PARSING\n\n    addRegexToken('Y', matchSigned);\n    addRegexToken('YY', match1to2, match2);\n    addRegexToken('YYYY', match1to4, match4);\n    addRegexToken('YYYYY', match1to6, match6);\n    addRegexToken('YYYYYY', match1to6, match6);\n\n    addParseToken(['YYYYY', 'YYYYYY'], YEAR);\n    addParseToken('YYYY', function (input, array) {\n        array[YEAR] =\n            input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);\n    });\n    addParseToken('YY', function (input, array) {\n        array[YEAR] = hooks.parseTwoDigitYear(input);\n    });\n    addParseToken('Y', function (input, array) {\n        array[YEAR] = parseInt(input, 10);\n    });\n\n    // HELPERS\n\n    function daysInYear(year) {\n        return isLeapYear(year) ? 366 : 365;\n    }\n\n    // HOOKS\n\n    hooks.parseTwoDigitYear = function (input) {\n        return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);\n    };\n\n    // MOMENTS\n\n    var getSetYear = makeGetSet('FullYear', true);\n\n    function getIsLeapYear() {\n        return isLeapYear(this.year());\n    }\n\n    function createDate(y, m, d, h, M, s, ms) {\n        // can't just apply() to create a date:\n        // https://stackoverflow.com/q/181348\n        var date;\n        // the date constructor remaps years 0-99 to 1900-1999\n        if (y < 100 && y >= 0) {\n            // preserve leap years using a full 400 year cycle, then reset\n            date = new Date(y + 400, m, d, h, M, s, ms);\n            if (isFinite(date.getFullYear())) {\n                date.setFullYear(y);\n            }\n        } else {\n            date = new Date(y, m, d, h, M, s, ms);\n        }\n\n        return date;\n    }\n\n    function createUTCDate(y) {\n        var date, args;\n        // the Date.UTC function remaps years 0-99 to 1900-1999\n        if (y < 100 && y >= 0) {\n            args = Array.prototype.slice.call(arguments);\n            // preserve leap years using a full 400 year cycle, then reset\n            args[0] = y + 400;\n            date = new Date(Date.UTC.apply(null, args));\n            if (isFinite(date.getUTCFullYear())) {\n                date.setUTCFullYear(y);\n            }\n        } else {\n            date = new Date(Date.UTC.apply(null, arguments));\n        }\n\n        return date;\n    }\n\n    // start-of-first-week - start-of-year\n    function firstWeekOffset(year, dow, doy) {\n        var // first-week day -- which january is always in the first week (4 for iso, 1 for other)\n            fwd = 7 + dow - doy,\n            // first-week day local weekday -- which local weekday is fwd\n            fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7;\n\n        return -fwdlw + fwd - 1;\n    }\n\n    // https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday\n    function dayOfYearFromWeeks(year, week, weekday, dow, doy) {\n        var localWeekday = (7 + weekday - dow) % 7,\n            weekOffset = firstWeekOffset(year, dow, doy),\n            dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset,\n            resYear,\n            resDayOfYear;\n\n        if (dayOfYear <= 0) {\n            resYear = year - 1;\n            resDayOfYear = daysInYear(resYear) + dayOfYear;\n        } else if (dayOfYear > daysInYear(year)) {\n            resYear = year + 1;\n            resDayOfYear = dayOfYear - daysInYear(year);\n        } else {\n            resYear = year;\n            resDayOfYear = dayOfYear;\n        }\n\n        return {\n            year: resYear,\n            dayOfYear: resDayOfYear,\n        };\n    }\n\n    function weekOfYear(mom, dow, doy) {\n        var weekOffset = firstWeekOffset(mom.year(), dow, doy),\n            week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1,\n            resWeek,\n            resYear;\n\n        if (week < 1) {\n            resYear = mom.year() - 1;\n            resWeek = week + weeksInYear(resYear, dow, doy);\n        } else if (week > weeksInYear(mom.year(), dow, doy)) {\n            resWeek = week - weeksInYear(mom.year(), dow, doy);\n            resYear = mom.year() + 1;\n        } else {\n            resYear = mom.year();\n            resWeek = week;\n        }\n\n        return {\n            week: resWeek,\n            year: resYear,\n        };\n    }\n\n    function weeksInYear(year, dow, doy) {\n        var weekOffset = firstWeekOffset(year, dow, doy),\n            weekOffsetNext = firstWeekOffset(year + 1, dow, doy);\n        return (daysInYear(year) - weekOffset + weekOffsetNext) / 7;\n    }\n\n    // FORMATTING\n\n    addFormatToken('w', ['ww', 2], 'wo', 'week');\n    addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek');\n\n    // ALIASES\n\n    addUnitAlias('week', 'w');\n    addUnitAlias('isoWeek', 'W');\n\n    // PRIORITIES\n\n    addUnitPriority('week', 5);\n    addUnitPriority('isoWeek', 5);\n\n    // PARSING\n\n    addRegexToken('w', match1to2);\n    addRegexToken('ww', match1to2, match2);\n    addRegexToken('W', match1to2);\n    addRegexToken('WW', match1to2, match2);\n\n    addWeekParseToken(\n        ['w', 'ww', 'W', 'WW'],\n        function (input, week, config, token) {\n            week[token.substr(0, 1)] = toInt(input);\n        }\n    );\n\n    // HELPERS\n\n    // LOCALES\n\n    function localeWeek(mom) {\n        return weekOfYear(mom, this._week.dow, this._week.doy).week;\n    }\n\n    var defaultLocaleWeek = {\n        dow: 0, // Sunday is the first day of the week.\n        doy: 6, // The week that contains Jan 6th is the first week of the year.\n    };\n\n    function localeFirstDayOfWeek() {\n        return this._week.dow;\n    }\n\n    function localeFirstDayOfYear() {\n        return this._week.doy;\n    }\n\n    // MOMENTS\n\n    function getSetWeek(input) {\n        var week = this.localeData().week(this);\n        return input == null ? week : this.add((input - week) * 7, 'd');\n    }\n\n    function getSetISOWeek(input) {\n        var week = weekOfYear(this, 1, 4).week;\n        return input == null ? week : this.add((input - week) * 7, 'd');\n    }\n\n    // FORMATTING\n\n    addFormatToken('d', 0, 'do', 'day');\n\n    addFormatToken('dd', 0, 0, function (format) {\n        return this.localeData().weekdaysMin(this, format);\n    });\n\n    addFormatToken('ddd', 0, 0, function (format) {\n        return this.localeData().weekdaysShort(this, format);\n    });\n\n    addFormatToken('dddd', 0, 0, function (format) {\n        return this.localeData().weekdays(this, format);\n    });\n\n    addFormatToken('e', 0, 0, 'weekday');\n    addFormatToken('E', 0, 0, 'isoWeekday');\n\n    // ALIASES\n\n    addUnitAlias('day', 'd');\n    addUnitAlias('weekday', 'e');\n    addUnitAlias('isoWeekday', 'E');\n\n    // PRIORITY\n    addUnitPriority('day', 11);\n    addUnitPriority('weekday', 11);\n    addUnitPriority('isoWeekday', 11);\n\n    // PARSING\n\n    addRegexToken('d', match1to2);\n    addRegexToken('e', match1to2);\n    addRegexToken('E', match1to2);\n    addRegexToken('dd', function (isStrict, locale) {\n        return locale.weekdaysMinRegex(isStrict);\n    });\n    addRegexToken('ddd', function (isStrict, locale) {\n        return locale.weekdaysShortRegex(isStrict);\n    });\n    addRegexToken('dddd', function (isStrict, locale) {\n        return locale.weekdaysRegex(isStrict);\n    });\n\n    addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) {\n        var weekday = config._locale.weekdaysParse(input, token, config._strict);\n        // if we didn't get a weekday name, mark the date as invalid\n        if (weekday != null) {\n            week.d = weekday;\n        } else {\n            getParsingFlags(config).invalidWeekday = input;\n        }\n    });\n\n    addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) {\n        week[token] = toInt(input);\n    });\n\n    // HELPERS\n\n    function parseWeekday(input, locale) {\n        if (typeof input !== 'string') {\n            return input;\n        }\n\n        if (!isNaN(input)) {\n            return parseInt(input, 10);\n        }\n\n        input = locale.weekdaysParse(input);\n        if (typeof input === 'number') {\n            return input;\n        }\n\n        return null;\n    }\n\n    function parseIsoWeekday(input, locale) {\n        if (typeof input === 'string') {\n            return locale.weekdaysParse(input) % 7 || 7;\n        }\n        return isNaN(input) ? null : input;\n    }\n\n    // LOCALES\n    function shiftWeekdays(ws, n) {\n        return ws.slice(n, 7).concat(ws.slice(0, n));\n    }\n\n    var defaultLocaleWeekdays =\n            'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),\n        defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n        defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n        defaultWeekdaysRegex = matchWord,\n        defaultWeekdaysShortRegex = matchWord,\n        defaultWeekdaysMinRegex = matchWord;\n\n    function localeWeekdays(m, format) {\n        var weekdays = isArray(this._weekdays)\n            ? this._weekdays\n            : this._weekdays[\n                  m && m !== true && this._weekdays.isFormat.test(format)\n                      ? 'format'\n                      : 'standalone'\n              ];\n        return m === true\n            ? shiftWeekdays(weekdays, this._week.dow)\n            : m\n            ? weekdays[m.day()]\n            : weekdays;\n    }\n\n    function localeWeekdaysShort(m) {\n        return m === true\n            ? shiftWeekdays(this._weekdaysShort, this._week.dow)\n            : m\n            ? this._weekdaysShort[m.day()]\n            : this._weekdaysShort;\n    }\n\n    function localeWeekdaysMin(m) {\n        return m === true\n            ? shiftWeekdays(this._weekdaysMin, this._week.dow)\n            : m\n            ? this._weekdaysMin[m.day()]\n            : this._weekdaysMin;\n    }\n\n    function handleStrictParse$1(weekdayName, format, strict) {\n        var i,\n            ii,\n            mom,\n            llc = weekdayName.toLocaleLowerCase();\n        if (!this._weekdaysParse) {\n            this._weekdaysParse = [];\n            this._shortWeekdaysParse = [];\n            this._minWeekdaysParse = [];\n\n            for (i = 0; i < 7; ++i) {\n                mom = createUTC([2000, 1]).day(i);\n                this._minWeekdaysParse[i] = this.weekdaysMin(\n                    mom,\n                    ''\n                ).toLocaleLowerCase();\n                this._shortWeekdaysParse[i] = this.weekdaysShort(\n                    mom,\n                    ''\n                ).toLocaleLowerCase();\n                this._weekdaysParse[i] = this.weekdays(mom, '').toLocaleLowerCase();\n            }\n        }\n\n        if (strict) {\n            if (format === 'dddd') {\n                ii = indexOf.call(this._weekdaysParse, llc);\n                return ii !== -1 ? ii : null;\n            } else if (format === 'ddd') {\n                ii = indexOf.call(this._shortWeekdaysParse, llc);\n                return ii !== -1 ? ii : null;\n            } else {\n                ii = indexOf.call(this._minWeekdaysParse, llc);\n                return ii !== -1 ? ii : null;\n            }\n        } else {\n            if (format === 'dddd') {\n                ii = indexOf.call(this._weekdaysParse, llc);\n                if (ii !== -1) {\n                    return ii;\n                }\n                ii = indexOf.call(this._shortWeekdaysParse, llc);\n                if (ii !== -1) {\n                    return ii;\n                }\n                ii = indexOf.call(this._minWeekdaysParse, llc);\n                return ii !== -1 ? ii : null;\n            } else if (format === 'ddd') {\n                ii = indexOf.call(this._shortWeekdaysParse, llc);\n                if (ii !== -1) {\n                    return ii;\n                }\n                ii = indexOf.call(this._weekdaysParse, llc);\n                if (ii !== -1) {\n                    return ii;\n                }\n                ii = indexOf.call(this._minWeekdaysParse, llc);\n                return ii !== -1 ? ii : null;\n            } else {\n                ii = indexOf.call(this._minWeekdaysParse, llc);\n                if (ii !== -1) {\n                    return ii;\n                }\n                ii = indexOf.call(this._weekdaysParse, llc);\n                if (ii !== -1) {\n                    return ii;\n                }\n                ii = indexOf.call(this._shortWeekdaysParse, llc);\n                return ii !== -1 ? ii : null;\n            }\n        }\n    }\n\n    function localeWeekdaysParse(weekdayName, format, strict) {\n        var i, mom, regex;\n\n        if (this._weekdaysParseExact) {\n            return handleStrictParse$1.call(this, weekdayName, format, strict);\n        }\n\n        if (!this._weekdaysParse) {\n            this._weekdaysParse = [];\n            this._minWeekdaysParse = [];\n            this._shortWeekdaysParse = [];\n            this._fullWeekdaysParse = [];\n        }\n\n        for (i = 0; i < 7; i++) {\n            // make the regex if we don't have it already\n\n            mom = createUTC([2000, 1]).day(i);\n            if (strict && !this._fullWeekdaysParse[i]) {\n                this._fullWeekdaysParse[i] = new RegExp(\n                    '^' + this.weekdays(mom, '').replace('.', '\\\\.?') + '$',\n                    'i'\n                );\n                this._shortWeekdaysParse[i] = new RegExp(\n                    '^' + this.weekdaysShort(mom, '').replace('.', '\\\\.?') + '$',\n                    'i'\n                );\n                this._minWeekdaysParse[i] = new RegExp(\n                    '^' + this.weekdaysMin(mom, '').replace('.', '\\\\.?') + '$',\n                    'i'\n                );\n            }\n            if (!this._weekdaysParse[i]) {\n                regex =\n                    '^' +\n                    this.weekdays(mom, '') +\n                    '|^' +\n                    this.weekdaysShort(mom, '') +\n                    '|^' +\n                    this.weekdaysMin(mom, '');\n                this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i');\n            }\n            // test the regex\n            if (\n                strict &&\n                format === 'dddd' &&\n                this._fullWeekdaysParse[i].test(weekdayName)\n            ) {\n                return i;\n            } else if (\n                strict &&\n                format === 'ddd' &&\n                this._shortWeekdaysParse[i].test(weekdayName)\n            ) {\n                return i;\n            } else if (\n                strict &&\n                format === 'dd' &&\n                this._minWeekdaysParse[i].test(weekdayName)\n            ) {\n                return i;\n            } else if (!strict && this._weekdaysParse[i].test(weekdayName)) {\n                return i;\n            }\n        }\n    }\n\n    // MOMENTS\n\n    function getSetDayOfWeek(input) {\n        if (!this.isValid()) {\n            return input != null ? this : NaN;\n        }\n        var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay();\n        if (input != null) {\n            input = parseWeekday(input, this.localeData());\n            return this.add(input - day, 'd');\n        } else {\n            return day;\n        }\n    }\n\n    function getSetLocaleDayOfWeek(input) {\n        if (!this.isValid()) {\n            return input != null ? this : NaN;\n        }\n        var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;\n        return input == null ? weekday : this.add(input - weekday, 'd');\n    }\n\n    function getSetISODayOfWeek(input) {\n        if (!this.isValid()) {\n            return input != null ? this : NaN;\n        }\n\n        // behaves the same as moment#day except\n        // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)\n        // as a setter, sunday should belong to the previous week.\n\n        if (input != null) {\n            var weekday = parseIsoWeekday(input, this.localeData());\n            return this.day(this.day() % 7 ? weekday : weekday - 7);\n        } else {\n            return this.day() || 7;\n        }\n    }\n\n    function weekdaysRegex(isStrict) {\n        if (this._weekdaysParseExact) {\n            if (!hasOwnProp(this, '_weekdaysRegex')) {\n                computeWeekdaysParse.call(this);\n            }\n            if (isStrict) {\n                return this._weekdaysStrictRegex;\n            } else {\n                return this._weekdaysRegex;\n            }\n        } else {\n            if (!hasOwnProp(this, '_weekdaysRegex')) {\n                this._weekdaysRegex = defaultWeekdaysRegex;\n            }\n            return this._weekdaysStrictRegex && isStrict\n                ? this._weekdaysStrictRegex\n                : this._weekdaysRegex;\n        }\n    }\n\n    function weekdaysShortRegex(isStrict) {\n        if (this._weekdaysParseExact) {\n            if (!hasOwnProp(this, '_weekdaysRegex')) {\n                computeWeekdaysParse.call(this);\n            }\n            if (isStrict) {\n                return this._weekdaysShortStrictRegex;\n            } else {\n                return this._weekdaysShortRegex;\n            }\n        } else {\n            if (!hasOwnProp(this, '_weekdaysShortRegex')) {\n                this._weekdaysShortRegex = defaultWeekdaysShortRegex;\n            }\n            return this._weekdaysShortStrictRegex && isStrict\n                ? this._weekdaysShortStrictRegex\n                : this._weekdaysShortRegex;\n        }\n    }\n\n    function weekdaysMinRegex(isStrict) {\n        if (this._weekdaysParseExact) {\n            if (!hasOwnProp(this, '_weekdaysRegex')) {\n                computeWeekdaysParse.call(this);\n            }\n            if (isStrict) {\n                return this._weekdaysMinStrictRegex;\n            } else {\n                return this._weekdaysMinRegex;\n            }\n        } else {\n            if (!hasOwnProp(this, '_weekdaysMinRegex')) {\n                this._weekdaysMinRegex = defaultWeekdaysMinRegex;\n            }\n            return this._weekdaysMinStrictRegex && isStrict\n                ? this._weekdaysMinStrictRegex\n                : this._weekdaysMinRegex;\n        }\n    }\n\n    function computeWeekdaysParse() {\n        function cmpLenRev(a, b) {\n            return b.length - a.length;\n        }\n\n        var minPieces = [],\n            shortPieces = [],\n            longPieces = [],\n            mixedPieces = [],\n            i,\n            mom,\n            minp,\n            shortp,\n            longp;\n        for (i = 0; i < 7; i++) {\n            // make the regex if we don't have it already\n            mom = createUTC([2000, 1]).day(i);\n            minp = regexEscape(this.weekdaysMin(mom, ''));\n            shortp = regexEscape(this.weekdaysShort(mom, ''));\n            longp = regexEscape(this.weekdays(mom, ''));\n            minPieces.push(minp);\n            shortPieces.push(shortp);\n            longPieces.push(longp);\n            mixedPieces.push(minp);\n            mixedPieces.push(shortp);\n            mixedPieces.push(longp);\n        }\n        // Sorting makes sure if one weekday (or abbr) is a prefix of another it\n        // will match the longer piece.\n        minPieces.sort(cmpLenRev);\n        shortPieces.sort(cmpLenRev);\n        longPieces.sort(cmpLenRev);\n        mixedPieces.sort(cmpLenRev);\n\n        this._weekdaysRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');\n        this._weekdaysShortRegex = this._weekdaysRegex;\n        this._weekdaysMinRegex = this._weekdaysRegex;\n\n        this._weekdaysStrictRegex = new RegExp(\n            '^(' + longPieces.join('|') + ')',\n            'i'\n        );\n        this._weekdaysShortStrictRegex = new RegExp(\n            '^(' + shortPieces.join('|') + ')',\n            'i'\n        );\n        this._weekdaysMinStrictRegex = new RegExp(\n            '^(' + minPieces.join('|') + ')',\n            'i'\n        );\n    }\n\n    // FORMATTING\n\n    function hFormat() {\n        return this.hours() % 12 || 12;\n    }\n\n    function kFormat() {\n        return this.hours() || 24;\n    }\n\n    addFormatToken('H', ['HH', 2], 0, 'hour');\n    addFormatToken('h', ['hh', 2], 0, hFormat);\n    addFormatToken('k', ['kk', 2], 0, kFormat);\n\n    addFormatToken('hmm', 0, 0, function () {\n        return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2);\n    });\n\n    addFormatToken('hmmss', 0, 0, function () {\n        return (\n            '' +\n            hFormat.apply(this) +\n            zeroFill(this.minutes(), 2) +\n            zeroFill(this.seconds(), 2)\n        );\n    });\n\n    addFormatToken('Hmm', 0, 0, function () {\n        return '' + this.hours() + zeroFill(this.minutes(), 2);\n    });\n\n    addFormatToken('Hmmss', 0, 0, function () {\n        return (\n            '' +\n            this.hours() +\n            zeroFill(this.minutes(), 2) +\n            zeroFill(this.seconds(), 2)\n        );\n    });\n\n    function meridiem(token, lowercase) {\n        addFormatToken(token, 0, 0, function () {\n            return this.localeData().meridiem(\n                this.hours(),\n                this.minutes(),\n                lowercase\n            );\n        });\n    }\n\n    meridiem('a', true);\n    meridiem('A', false);\n\n    // ALIASES\n\n    addUnitAlias('hour', 'h');\n\n    // PRIORITY\n    addUnitPriority('hour', 13);\n\n    // PARSING\n\n    function matchMeridiem(isStrict, locale) {\n        return locale._meridiemParse;\n    }\n\n    addRegexToken('a', matchMeridiem);\n    addRegexToken('A', matchMeridiem);\n    addRegexToken('H', match1to2);\n    addRegexToken('h', match1to2);\n    addRegexToken('k', match1to2);\n    addRegexToken('HH', match1to2, match2);\n    addRegexToken('hh', match1to2, match2);\n    addRegexToken('kk', match1to2, match2);\n\n    addRegexToken('hmm', match3to4);\n    addRegexToken('hmmss', match5to6);\n    addRegexToken('Hmm', match3to4);\n    addRegexToken('Hmmss', match5to6);\n\n    addParseToken(['H', 'HH'], HOUR);\n    addParseToken(['k', 'kk'], function (input, array, config) {\n        var kInput = toInt(input);\n        array[HOUR] = kInput === 24 ? 0 : kInput;\n    });\n    addParseToken(['a', 'A'], function (input, array, config) {\n        config._isPm = config._locale.isPM(input);\n        config._meridiem = input;\n    });\n    addParseToken(['h', 'hh'], function (input, array, config) {\n        array[HOUR] = toInt(input);\n        getParsingFlags(config).bigHour = true;\n    });\n    addParseToken('hmm', function (input, array, config) {\n        var pos = input.length - 2;\n        array[HOUR] = toInt(input.substr(0, pos));\n        array[MINUTE] = toInt(input.substr(pos));\n        getParsingFlags(config).bigHour = true;\n    });\n    addParseToken('hmmss', function (input, array, config) {\n        var pos1 = input.length - 4,\n            pos2 = input.length - 2;\n        array[HOUR] = toInt(input.substr(0, pos1));\n        array[MINUTE] = toInt(input.substr(pos1, 2));\n        array[SECOND] = toInt(input.substr(pos2));\n        getParsingFlags(config).bigHour = true;\n    });\n    addParseToken('Hmm', function (input, array, config) {\n        var pos = input.length - 2;\n        array[HOUR] = toInt(input.substr(0, pos));\n        array[MINUTE] = toInt(input.substr(pos));\n    });\n    addParseToken('Hmmss', function (input, array, config) {\n        var pos1 = input.length - 4,\n            pos2 = input.length - 2;\n        array[HOUR] = toInt(input.substr(0, pos1));\n        array[MINUTE] = toInt(input.substr(pos1, 2));\n        array[SECOND] = toInt(input.substr(pos2));\n    });\n\n    // LOCALES\n\n    function localeIsPM(input) {\n        // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays\n        // Using charAt should be more compatible.\n        return (input + '').toLowerCase().charAt(0) === 'p';\n    }\n\n    var defaultLocaleMeridiemParse = /[ap]\\.?m?\\.?/i,\n        // Setting the hour should keep the time, because the user explicitly\n        // specified which hour they want. So trying to maintain the same hour (in\n        // a new timezone) makes sense. Adding/subtracting hours does not follow\n        // this rule.\n        getSetHour = makeGetSet('Hours', true);\n\n    function localeMeridiem(hours, minutes, isLower) {\n        if (hours > 11) {\n            return isLower ? 'pm' : 'PM';\n        } else {\n            return isLower ? 'am' : 'AM';\n        }\n    }\n\n    var baseConfig = {\n        calendar: defaultCalendar,\n        longDateFormat: defaultLongDateFormat,\n        invalidDate: defaultInvalidDate,\n        ordinal: defaultOrdinal,\n        dayOfMonthOrdinalParse: defaultDayOfMonthOrdinalParse,\n        relativeTime: defaultRelativeTime,\n\n        months: defaultLocaleMonths,\n        monthsShort: defaultLocaleMonthsShort,\n\n        week: defaultLocaleWeek,\n\n        weekdays: defaultLocaleWeekdays,\n        weekdaysMin: defaultLocaleWeekdaysMin,\n        weekdaysShort: defaultLocaleWeekdaysShort,\n\n        meridiemParse: defaultLocaleMeridiemParse,\n    };\n\n    // internal storage for locale config files\n    var locales = {},\n        localeFamilies = {},\n        globalLocale;\n\n    function commonPrefix(arr1, arr2) {\n        var i,\n            minl = Math.min(arr1.length, arr2.length);\n        for (i = 0; i < minl; i += 1) {\n            if (arr1[i] !== arr2[i]) {\n                return i;\n            }\n        }\n        return minl;\n    }\n\n    function normalizeLocale(key) {\n        return key ? key.toLowerCase().replace('_', '-') : key;\n    }\n\n    // pick the locale from the array\n    // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each\n    // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root\n    function chooseLocale(names) {\n        var i = 0,\n            j,\n            next,\n            locale,\n            split;\n\n        while (i < names.length) {\n            split = normalizeLocale(names[i]).split('-');\n            j = split.length;\n            next = normalizeLocale(names[i + 1]);\n            next = next ? next.split('-') : null;\n            while (j > 0) {\n                locale = loadLocale(split.slice(0, j).join('-'));\n                if (locale) {\n                    return locale;\n                }\n                if (\n                    next &&\n                    next.length >= j &&\n                    commonPrefix(split, next) >= j - 1\n                ) {\n                    //the next array item is better than a shallower substring of this one\n                    break;\n                }\n                j--;\n            }\n            i++;\n        }\n        return globalLocale;\n    }\n\n    function isLocaleNameSane(name) {\n        // Prevent names that look like filesystem paths, i.e contain '/' or '\\'\n        return name.match('^[^/\\\\\\\\]*$') != null;\n    }\n\n    function loadLocale(name) {\n        var oldLocale = null,\n            aliasedRequire;\n        // TODO: Find a better way to register and load all the locales in Node\n        if (\n            locales[name] === undefined &&\n            typeof module !== 'undefined' &&\n            module &&\n            module.exports &&\n            isLocaleNameSane(name)\n        ) {\n            try {\n                oldLocale = globalLocale._abbr;\n                aliasedRequire = require;\n                aliasedRequire('./locale/' + name);\n                getSetGlobalLocale(oldLocale);\n            } catch (e) {\n                // mark as not found to avoid repeating expensive file require call causing high CPU\n                // when trying to find en-US, en_US, en-us for every format call\n                locales[name] = null; // null means not found\n            }\n        }\n        return locales[name];\n    }\n\n    // This function will load locale and then set the global locale.  If\n    // no arguments are passed in, it will simply return the current global\n    // locale key.\n    function getSetGlobalLocale(key, values) {\n        var data;\n        if (key) {\n            if (isUndefined(values)) {\n                data = getLocale(key);\n            } else {\n                data = defineLocale(key, values);\n            }\n\n            if (data) {\n                // moment.duration._locale = moment._locale = data;\n                globalLocale = data;\n            } else {\n                if (typeof console !== 'undefined' && console.warn) {\n                    //warn user if arguments are passed but the locale could not be set\n                    console.warn(\n                        'Locale ' + key + ' not found. Did you forget to load it?'\n                    );\n                }\n            }\n        }\n\n        return globalLocale._abbr;\n    }\n\n    function defineLocale(name, config) {\n        if (config !== null) {\n            var locale,\n                parentConfig = baseConfig;\n            config.abbr = name;\n            if (locales[name] != null) {\n                deprecateSimple(\n                    'defineLocaleOverride',\n                    'use moment.updateLocale(localeName, config) to change ' +\n                        'an existing locale. moment.defineLocale(localeName, ' +\n                        'config) should only be used for creating a new locale ' +\n                        'See http://momentjs.com/guides/#/warnings/define-locale/ for more info.'\n                );\n                parentConfig = locales[name]._config;\n            } else if (config.parentLocale != null) {\n                if (locales[config.parentLocale] != null) {\n                    parentConfig = locales[config.parentLocale]._config;\n                } else {\n                    locale = loadLocale(config.parentLocale);\n                    if (locale != null) {\n                        parentConfig = locale._config;\n                    } else {\n                        if (!localeFamilies[config.parentLocale]) {\n                            localeFamilies[config.parentLocale] = [];\n                        }\n                        localeFamilies[config.parentLocale].push({\n                            name: name,\n                            config: config,\n                        });\n                        return null;\n                    }\n                }\n            }\n            locales[name] = new Locale(mergeConfigs(parentConfig, config));\n\n            if (localeFamilies[name]) {\n                localeFamilies[name].forEach(function (x) {\n                    defineLocale(x.name, x.config);\n                });\n            }\n\n            // backwards compat for now: also set the locale\n            // make sure we set the locale AFTER all child locales have been\n            // created, so we won't end up with the child locale set.\n            getSetGlobalLocale(name);\n\n            return locales[name];\n        } else {\n            // useful for testing\n            delete locales[name];\n            return null;\n        }\n    }\n\n    function updateLocale(name, config) {\n        if (config != null) {\n            var locale,\n                tmpLocale,\n                parentConfig = baseConfig;\n\n            if (locales[name] != null && locales[name].parentLocale != null) {\n                // Update existing child locale in-place to avoid memory-leaks\n                locales[name].set(mergeConfigs(locales[name]._config, config));\n            } else {\n                // MERGE\n                tmpLocale = loadLocale(name);\n                if (tmpLocale != null) {\n                    parentConfig = tmpLocale._config;\n                }\n                config = mergeConfigs(parentConfig, config);\n                if (tmpLocale == null) {\n                    // updateLocale is called for creating a new locale\n                    // Set abbr so it will have a name (getters return\n                    // undefined otherwise).\n                    config.abbr = name;\n                }\n                locale = new Locale(config);\n                locale.parentLocale = locales[name];\n                locales[name] = locale;\n            }\n\n            // backwards compat for now: also set the locale\n            getSetGlobalLocale(name);\n        } else {\n            // pass null for config to unupdate, useful for tests\n            if (locales[name] != null) {\n                if (locales[name].parentLocale != null) {\n                    locales[name] = locales[name].parentLocale;\n                    if (name === getSetGlobalLocale()) {\n                        getSetGlobalLocale(name);\n                    }\n                } else if (locales[name] != null) {\n                    delete locales[name];\n                }\n            }\n        }\n        return locales[name];\n    }\n\n    // returns locale data\n    function getLocale(key) {\n        var locale;\n\n        if (key && key._locale && key._locale._abbr) {\n            key = key._locale._abbr;\n        }\n\n        if (!key) {\n            return globalLocale;\n        }\n\n        if (!isArray(key)) {\n            //short-circuit everything else\n            locale = loadLocale(key);\n            if (locale) {\n                return locale;\n            }\n            key = [key];\n        }\n\n        return chooseLocale(key);\n    }\n\n    function listLocales() {\n        return keys(locales);\n    }\n\n    function checkOverflow(m) {\n        var overflow,\n            a = m._a;\n\n        if (a && getParsingFlags(m).overflow === -2) {\n            overflow =\n                a[MONTH] < 0 || a[MONTH] > 11\n                    ? MONTH\n                    : a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH])\n                    ? DATE\n                    : a[HOUR] < 0 ||\n                      a[HOUR] > 24 ||\n                      (a[HOUR] === 24 &&\n                          (a[MINUTE] !== 0 ||\n                              a[SECOND] !== 0 ||\n                              a[MILLISECOND] !== 0))\n                    ? HOUR\n                    : a[MINUTE] < 0 || a[MINUTE] > 59\n                    ? MINUTE\n                    : a[SECOND] < 0 || a[SECOND] > 59\n                    ? SECOND\n                    : a[MILLISECOND] < 0 || a[MILLISECOND] > 999\n                    ? MILLISECOND\n                    : -1;\n\n            if (\n                getParsingFlags(m)._overflowDayOfYear &&\n                (overflow < YEAR || overflow > DATE)\n            ) {\n                overflow = DATE;\n            }\n            if (getParsingFlags(m)._overflowWeeks && overflow === -1) {\n                overflow = WEEK;\n            }\n            if (getParsingFlags(m)._overflowWeekday && overflow === -1) {\n                overflow = WEEKDAY;\n            }\n\n            getParsingFlags(m).overflow = overflow;\n        }\n\n        return m;\n    }\n\n    // iso 8601 regex\n    // 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00)\n    var extendedIsoRegex =\n            /^\\s*((?:[+-]\\d{6}|\\d{4})-(?:\\d\\d-\\d\\d|W\\d\\d-\\d|W\\d\\d|\\d\\d\\d|\\d\\d))(?:(T| )(\\d\\d(?::\\d\\d(?::\\d\\d(?:[.,]\\d+)?)?)?)([+-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?$/,\n        basicIsoRegex =\n            /^\\s*((?:[+-]\\d{6}|\\d{4})(?:\\d\\d\\d\\d|W\\d\\d\\d|W\\d\\d|\\d\\d\\d|\\d\\d|))(?:(T| )(\\d\\d(?:\\d\\d(?:\\d\\d(?:[.,]\\d+)?)?)?)([+-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?$/,\n        tzRegex = /Z|[+-]\\d\\d(?::?\\d\\d)?/,\n        isoDates = [\n            ['YYYYYY-MM-DD', /[+-]\\d{6}-\\d\\d-\\d\\d/],\n            ['YYYY-MM-DD', /\\d{4}-\\d\\d-\\d\\d/],\n            ['GGGG-[W]WW-E', /\\d{4}-W\\d\\d-\\d/],\n            ['GGGG-[W]WW', /\\d{4}-W\\d\\d/, false],\n            ['YYYY-DDD', /\\d{4}-\\d{3}/],\n            ['YYYY-MM', /\\d{4}-\\d\\d/, false],\n            ['YYYYYYMMDD', /[+-]\\d{10}/],\n            ['YYYYMMDD', /\\d{8}/],\n            ['GGGG[W]WWE', /\\d{4}W\\d{3}/],\n            ['GGGG[W]WW', /\\d{4}W\\d{2}/, false],\n            ['YYYYDDD', /\\d{7}/],\n            ['YYYYMM', /\\d{6}/, false],\n            ['YYYY', /\\d{4}/, false],\n        ],\n        // iso time formats and regexes\n        isoTimes = [\n            ['HH:mm:ss.SSSS', /\\d\\d:\\d\\d:\\d\\d\\.\\d+/],\n            ['HH:mm:ss,SSSS', /\\d\\d:\\d\\d:\\d\\d,\\d+/],\n            ['HH:mm:ss', /\\d\\d:\\d\\d:\\d\\d/],\n            ['HH:mm', /\\d\\d:\\d\\d/],\n            ['HHmmss.SSSS', /\\d\\d\\d\\d\\d\\d\\.\\d+/],\n            ['HHmmss,SSSS', /\\d\\d\\d\\d\\d\\d,\\d+/],\n            ['HHmmss', /\\d\\d\\d\\d\\d\\d/],\n            ['HHmm', /\\d\\d\\d\\d/],\n            ['HH', /\\d\\d/],\n        ],\n        aspNetJsonRegex = /^\\/?Date\\((-?\\d+)/i,\n        // RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3\n        rfc2822 =\n            /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\\s)?(\\d{1,2})\\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\\s(\\d{2,4})\\s(\\d\\d):(\\d\\d)(?::(\\d\\d))?\\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\\d{4}))$/,\n        obsOffsets = {\n            UT: 0,\n            GMT: 0,\n            EDT: -4 * 60,\n            EST: -5 * 60,\n            CDT: -5 * 60,\n            CST: -6 * 60,\n            MDT: -6 * 60,\n            MST: -7 * 60,\n            PDT: -7 * 60,\n            PST: -8 * 60,\n        };\n\n    // date from iso format\n    function configFromISO(config) {\n        var i,\n            l,\n            string = config._i,\n            match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string),\n            allowTime,\n            dateFormat,\n            timeFormat,\n            tzFormat,\n            isoDatesLen = isoDates.length,\n            isoTimesLen = isoTimes.length;\n\n        if (match) {\n            getParsingFlags(config).iso = true;\n            for (i = 0, l = isoDatesLen; i < l; i++) {\n                if (isoDates[i][1].exec(match[1])) {\n                    dateFormat = isoDates[i][0];\n                    allowTime = isoDates[i][2] !== false;\n                    break;\n                }\n            }\n            if (dateFormat == null) {\n                config._isValid = false;\n                return;\n            }\n            if (match[3]) {\n                for (i = 0, l = isoTimesLen; i < l; i++) {\n                    if (isoTimes[i][1].exec(match[3])) {\n                        // match[2] should be 'T' or space\n                        timeFormat = (match[2] || ' ') + isoTimes[i][0];\n                        break;\n                    }\n                }\n                if (timeFormat == null) {\n                    config._isValid = false;\n                    return;\n                }\n            }\n            if (!allowTime && timeFormat != null) {\n                config._isValid = false;\n                return;\n            }\n            if (match[4]) {\n                if (tzRegex.exec(match[4])) {\n                    tzFormat = 'Z';\n                } else {\n                    config._isValid = false;\n                    return;\n                }\n            }\n            config._f = dateFormat + (timeFormat || '') + (tzFormat || '');\n            configFromStringAndFormat(config);\n        } else {\n            config._isValid = false;\n        }\n    }\n\n    function extractFromRFC2822Strings(\n        yearStr,\n        monthStr,\n        dayStr,\n        hourStr,\n        minuteStr,\n        secondStr\n    ) {\n        var result = [\n            untruncateYear(yearStr),\n            defaultLocaleMonthsShort.indexOf(monthStr),\n            parseInt(dayStr, 10),\n            parseInt(hourStr, 10),\n            parseInt(minuteStr, 10),\n        ];\n\n        if (secondStr) {\n            result.push(parseInt(secondStr, 10));\n        }\n\n        return result;\n    }\n\n    function untruncateYear(yearStr) {\n        var year = parseInt(yearStr, 10);\n        if (year <= 49) {\n            return 2000 + year;\n        } else if (year <= 999) {\n            return 1900 + year;\n        }\n        return year;\n    }\n\n    function preprocessRFC2822(s) {\n        // Remove comments and folding whitespace and replace multiple-spaces with a single space\n        return s\n            .replace(/\\([^()]*\\)|[\\n\\t]/g, ' ')\n            .replace(/(\\s\\s+)/g, ' ')\n            .replace(/^\\s\\s*/, '')\n            .replace(/\\s\\s*$/, '');\n    }\n\n    function checkWeekday(weekdayStr, parsedInput, config) {\n        if (weekdayStr) {\n            // TODO: Replace the vanilla JS Date object with an independent day-of-week check.\n            var weekdayProvided = defaultLocaleWeekdaysShort.indexOf(weekdayStr),\n                weekdayActual = new Date(\n                    parsedInput[0],\n                    parsedInput[1],\n                    parsedInput[2]\n                ).getDay();\n            if (weekdayProvided !== weekdayActual) {\n                getParsingFlags(config).weekdayMismatch = true;\n                config._isValid = false;\n                return false;\n            }\n        }\n        return true;\n    }\n\n    function calculateOffset(obsOffset, militaryOffset, numOffset) {\n        if (obsOffset) {\n            return obsOffsets[obsOffset];\n        } else if (militaryOffset) {\n            // the only allowed military tz is Z\n            return 0;\n        } else {\n            var hm = parseInt(numOffset, 10),\n                m = hm % 100,\n                h = (hm - m) / 100;\n            return h * 60 + m;\n        }\n    }\n\n    // date and time from ref 2822 format\n    function configFromRFC2822(config) {\n        var match = rfc2822.exec(preprocessRFC2822(config._i)),\n            parsedArray;\n        if (match) {\n            parsedArray = extractFromRFC2822Strings(\n                match[4],\n                match[3],\n                match[2],\n                match[5],\n                match[6],\n                match[7]\n            );\n            if (!checkWeekday(match[1], parsedArray, config)) {\n                return;\n            }\n\n            config._a = parsedArray;\n            config._tzm = calculateOffset(match[8], match[9], match[10]);\n\n            config._d = createUTCDate.apply(null, config._a);\n            config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);\n\n            getParsingFlags(config).rfc2822 = true;\n        } else {\n            config._isValid = false;\n        }\n    }\n\n    // date from 1) ASP.NET, 2) ISO, 3) RFC 2822 formats, or 4) optional fallback if parsing isn't strict\n    function configFromString(config) {\n        var matched = aspNetJsonRegex.exec(config._i);\n        if (matched !== null) {\n            config._d = new Date(+matched[1]);\n            return;\n        }\n\n        configFromISO(config);\n        if (config._isValid === false) {\n            delete config._isValid;\n        } else {\n            return;\n        }\n\n        configFromRFC2822(config);\n        if (config._isValid === false) {\n            delete config._isValid;\n        } else {\n            return;\n        }\n\n        if (config._strict) {\n            config._isValid = false;\n        } else {\n            // Final attempt, use Input Fallback\n            hooks.createFromInputFallback(config);\n        }\n    }\n\n    hooks.createFromInputFallback = deprecate(\n        'value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), ' +\n            'which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are ' +\n            'discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.',\n        function (config) {\n            config._d = new Date(config._i + (config._useUTC ? ' UTC' : ''));\n        }\n    );\n\n    // Pick the first defined of two or three arguments.\n    function defaults(a, b, c) {\n        if (a != null) {\n            return a;\n        }\n        if (b != null) {\n            return b;\n        }\n        return c;\n    }\n\n    function currentDateArray(config) {\n        // hooks is actually the exported moment object\n        var nowValue = new Date(hooks.now());\n        if (config._useUTC) {\n            return [\n                nowValue.getUTCFullYear(),\n                nowValue.getUTCMonth(),\n                nowValue.getUTCDate(),\n            ];\n        }\n        return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()];\n    }\n\n    // convert an array to a date.\n    // the array should mirror the parameters below\n    // note: all values past the year are optional and will default to the lowest possible value.\n    // [year, month, day , hour, minute, second, millisecond]\n    function configFromArray(config) {\n        var i,\n            date,\n            input = [],\n            currentDate,\n            expectedWeekday,\n            yearToUse;\n\n        if (config._d) {\n            return;\n        }\n\n        currentDate = currentDateArray(config);\n\n        //compute day of the year from weeks and weekdays\n        if (config._w && config._a[DATE] == null && config._a[MONTH] == null) {\n            dayOfYearFromWeekInfo(config);\n        }\n\n        //if the day of the year is set, figure out what it is\n        if (config._dayOfYear != null) {\n            yearToUse = defaults(config._a[YEAR], currentDate[YEAR]);\n\n            if (\n                config._dayOfYear > daysInYear(yearToUse) ||\n                config._dayOfYear === 0\n            ) {\n                getParsingFlags(config)._overflowDayOfYear = true;\n            }\n\n            date = createUTCDate(yearToUse, 0, config._dayOfYear);\n            config._a[MONTH] = date.getUTCMonth();\n            config._a[DATE] = date.getUTCDate();\n        }\n\n        // Default to current date.\n        // * if no year, month, day of month are given, default to today\n        // * if day of month is given, default month and year\n        // * if month is given, default only year\n        // * if year is given, don't default anything\n        for (i = 0; i < 3 && config._a[i] == null; ++i) {\n            config._a[i] = input[i] = currentDate[i];\n        }\n\n        // Zero out whatever was not defaulted, including time\n        for (; i < 7; i++) {\n            config._a[i] = input[i] =\n                config._a[i] == null ? (i === 2 ? 1 : 0) : config._a[i];\n        }\n\n        // Check for 24:00:00.000\n        if (\n            config._a[HOUR] === 24 &&\n            config._a[MINUTE] === 0 &&\n            config._a[SECOND] === 0 &&\n            config._a[MILLISECOND] === 0\n        ) {\n            config._nextDay = true;\n            config._a[HOUR] = 0;\n        }\n\n        config._d = (config._useUTC ? createUTCDate : createDate).apply(\n            null,\n            input\n        );\n        expectedWeekday = config._useUTC\n            ? config._d.getUTCDay()\n            : config._d.getDay();\n\n        // Apply timezone offset from input. The actual utcOffset can be changed\n        // with parseZone.\n        if (config._tzm != null) {\n            config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);\n        }\n\n        if (config._nextDay) {\n            config._a[HOUR] = 24;\n        }\n\n        // check for mismatching day of week\n        if (\n            config._w &&\n            typeof config._w.d !== 'undefined' &&\n            config._w.d !== expectedWeekday\n        ) {\n            getParsingFlags(config).weekdayMismatch = true;\n        }\n    }\n\n    function dayOfYearFromWeekInfo(config) {\n        var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow, curWeek;\n\n        w = config._w;\n        if (w.GG != null || w.W != null || w.E != null) {\n            dow = 1;\n            doy = 4;\n\n            // TODO: We need to take the current isoWeekYear, but that depends on\n            // how we interpret now (local, utc, fixed offset). So create\n            // a now version of current config (take local/utc/offset flags, and\n            // create now).\n            weekYear = defaults(\n                w.GG,\n                config._a[YEAR],\n                weekOfYear(createLocal(), 1, 4).year\n            );\n            week = defaults(w.W, 1);\n            weekday = defaults(w.E, 1);\n            if (weekday < 1 || weekday > 7) {\n                weekdayOverflow = true;\n            }\n        } else {\n            dow = config._locale._week.dow;\n            doy = config._locale._week.doy;\n\n            curWeek = weekOfYear(createLocal(), dow, doy);\n\n            weekYear = defaults(w.gg, config._a[YEAR], curWeek.year);\n\n            // Default to current week.\n            week = defaults(w.w, curWeek.week);\n\n            if (w.d != null) {\n                // weekday -- low day numbers are considered next week\n                weekday = w.d;\n                if (weekday < 0 || weekday > 6) {\n                    weekdayOverflow = true;\n                }\n            } else if (w.e != null) {\n                // local weekday -- counting starts from beginning of week\n                weekday = w.e + dow;\n                if (w.e < 0 || w.e > 6) {\n                    weekdayOverflow = true;\n                }\n            } else {\n                // default to beginning of week\n                weekday = dow;\n            }\n        }\n        if (week < 1 || week > weeksInYear(weekYear, dow, doy)) {\n            getParsingFlags(config)._overflowWeeks = true;\n        } else if (weekdayOverflow != null) {\n            getParsingFlags(config)._overflowWeekday = true;\n        } else {\n            temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy);\n            config._a[YEAR] = temp.year;\n            config._dayOfYear = temp.dayOfYear;\n        }\n    }\n\n    // constant that refers to the ISO standard\n    hooks.ISO_8601 = function () {};\n\n    // constant that refers to the RFC 2822 form\n    hooks.RFC_2822 = function () {};\n\n    // date from string and format string\n    function configFromStringAndFormat(config) {\n        // TODO: Move this to another part of the creation flow to prevent circular deps\n        if (config._f === hooks.ISO_8601) {\n            configFromISO(config);\n            return;\n        }\n        if (config._f === hooks.RFC_2822) {\n            configFromRFC2822(config);\n            return;\n        }\n        config._a = [];\n        getParsingFlags(config).empty = true;\n\n        // This array is used to make a Date, either with `new Date` or `Date.UTC`\n        var string = '' + config._i,\n            i,\n            parsedInput,\n            tokens,\n            token,\n            skipped,\n            stringLength = string.length,\n            totalParsedInputLength = 0,\n            era,\n            tokenLen;\n\n        tokens =\n            expandFormat(config._f, config._locale).match(formattingTokens) || [];\n        tokenLen = tokens.length;\n        for (i = 0; i < tokenLen; i++) {\n            token = tokens[i];\n            parsedInput = (string.match(getParseRegexForToken(token, config)) ||\n                [])[0];\n            if (parsedInput) {\n                skipped = string.substr(0, string.indexOf(parsedInput));\n                if (skipped.length > 0) {\n                    getParsingFlags(config).unusedInput.push(skipped);\n                }\n                string = string.slice(\n                    string.indexOf(parsedInput) + parsedInput.length\n                );\n                totalParsedInputLength += parsedInput.length;\n            }\n            // don't parse if it's not a known token\n            if (formatTokenFunctions[token]) {\n                if (parsedInput) {\n                    getParsingFlags(config).empty = false;\n                } else {\n                    getParsingFlags(config).unusedTokens.push(token);\n                }\n                addTimeToArrayFromToken(token, parsedInput, config);\n            } else if (config._strict && !parsedInput) {\n                getParsingFlags(config).unusedTokens.push(token);\n            }\n        }\n\n        // add remaining unparsed input length to the string\n        getParsingFlags(config).charsLeftOver =\n            stringLength - totalParsedInputLength;\n        if (string.length > 0) {\n            getParsingFlags(config).unusedInput.push(string);\n        }\n\n        // clear _12h flag if hour is <= 12\n        if (\n            config._a[HOUR] <= 12 &&\n            getParsingFlags(config).bigHour === true &&\n            config._a[HOUR] > 0\n        ) {\n            getParsingFlags(config).bigHour = undefined;\n        }\n\n        getParsingFlags(config).parsedDateParts = config._a.slice(0);\n        getParsingFlags(config).meridiem = config._meridiem;\n        // handle meridiem\n        config._a[HOUR] = meridiemFixWrap(\n            config._locale,\n            config._a[HOUR],\n            config._meridiem\n        );\n\n        // handle era\n        era = getParsingFlags(config).era;\n        if (era !== null) {\n            config._a[YEAR] = config._locale.erasConvertYear(era, config._a[YEAR]);\n        }\n\n        configFromArray(config);\n        checkOverflow(config);\n    }\n\n    function meridiemFixWrap(locale, hour, meridiem) {\n        var isPm;\n\n        if (meridiem == null) {\n            // nothing to do\n            return hour;\n        }\n        if (locale.meridiemHour != null) {\n            return locale.meridiemHour(hour, meridiem);\n        } else if (locale.isPM != null) {\n            // Fallback\n            isPm = locale.isPM(meridiem);\n            if (isPm && hour < 12) {\n                hour += 12;\n            }\n            if (!isPm && hour === 12) {\n                hour = 0;\n            }\n            return hour;\n        } else {\n            // this is not supposed to happen\n            return hour;\n        }\n    }\n\n    // date from string and array of format strings\n    function configFromStringAndArray(config) {\n        var tempConfig,\n            bestMoment,\n            scoreToBeat,\n            i,\n            currentScore,\n            validFormatFound,\n            bestFormatIsValid = false,\n            configfLen = config._f.length;\n\n        if (configfLen === 0) {\n            getParsingFlags(config).invalidFormat = true;\n            config._d = new Date(NaN);\n            return;\n        }\n\n        for (i = 0; i < configfLen; i++) {\n            currentScore = 0;\n            validFormatFound = false;\n            tempConfig = copyConfig({}, config);\n            if (config._useUTC != null) {\n                tempConfig._useUTC = config._useUTC;\n            }\n            tempConfig._f = config._f[i];\n            configFromStringAndFormat(tempConfig);\n\n            if (isValid(tempConfig)) {\n                validFormatFound = true;\n            }\n\n            // if there is any input that was not parsed add a penalty for that format\n            currentScore += getParsingFlags(tempConfig).charsLeftOver;\n\n            //or tokens\n            currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10;\n\n            getParsingFlags(tempConfig).score = currentScore;\n\n            if (!bestFormatIsValid) {\n                if (\n                    scoreToBeat == null ||\n                    currentScore < scoreToBeat ||\n                    validFormatFound\n                ) {\n                    scoreToBeat = currentScore;\n                    bestMoment = tempConfig;\n                    if (validFormatFound) {\n                        bestFormatIsValid = true;\n                    }\n                }\n            } else {\n                if (currentScore < scoreToBeat) {\n                    scoreToBeat = currentScore;\n                    bestMoment = tempConfig;\n                }\n            }\n        }\n\n        extend(config, bestMoment || tempConfig);\n    }\n\n    function configFromObject(config) {\n        if (config._d) {\n            return;\n        }\n\n        var i = normalizeObjectUnits(config._i),\n            dayOrDate = i.day === undefined ? i.date : i.day;\n        config._a = map(\n            [i.year, i.month, dayOrDate, i.hour, i.minute, i.second, i.millisecond],\n            function (obj) {\n                return obj && parseInt(obj, 10);\n            }\n        );\n\n        configFromArray(config);\n    }\n\n    function createFromConfig(config) {\n        var res = new Moment(checkOverflow(prepareConfig(config)));\n        if (res._nextDay) {\n            // Adding is smart enough around DST\n            res.add(1, 'd');\n            res._nextDay = undefined;\n        }\n\n        return res;\n    }\n\n    function prepareConfig(config) {\n        var input = config._i,\n            format = config._f;\n\n        config._locale = config._locale || getLocale(config._l);\n\n        if (input === null || (format === undefined && input === '')) {\n            return createInvalid({ nullInput: true });\n        }\n\n        if (typeof input === 'string') {\n            config._i = input = config._locale.preparse(input);\n        }\n\n        if (isMoment(input)) {\n            return new Moment(checkOverflow(input));\n        } else if (isDate(input)) {\n            config._d = input;\n        } else if (isArray(format)) {\n            configFromStringAndArray(config);\n        } else if (format) {\n            configFromStringAndFormat(config);\n        } else {\n            configFromInput(config);\n        }\n\n        if (!isValid(config)) {\n            config._d = null;\n        }\n\n        return config;\n    }\n\n    function configFromInput(config) {\n        var input = config._i;\n        if (isUndefined(input)) {\n            config._d = new Date(hooks.now());\n        } else if (isDate(input)) {\n            config._d = new Date(input.valueOf());\n        } else if (typeof input === 'string') {\n            configFromString(config);\n        } else if (isArray(input)) {\n            config._a = map(input.slice(0), function (obj) {\n                return parseInt(obj, 10);\n            });\n            configFromArray(config);\n        } else if (isObject(input)) {\n            configFromObject(config);\n        } else if (isNumber(input)) {\n            // from milliseconds\n            config._d = new Date(input);\n        } else {\n            hooks.createFromInputFallback(config);\n        }\n    }\n\n    function createLocalOrUTC(input, format, locale, strict, isUTC) {\n        var c = {};\n\n        if (format === true || format === false) {\n            strict = format;\n            format = undefined;\n        }\n\n        if (locale === true || locale === false) {\n            strict = locale;\n            locale = undefined;\n        }\n\n        if (\n            (isObject(input) && isObjectEmpty(input)) ||\n            (isArray(input) && input.length === 0)\n        ) {\n            input = undefined;\n        }\n        // object construction must be done this way.\n        // https://github.com/moment/moment/issues/1423\n        c._isAMomentObject = true;\n        c._useUTC = c._isUTC = isUTC;\n        c._l = locale;\n        c._i = input;\n        c._f = format;\n        c._strict = strict;\n\n        return createFromConfig(c);\n    }\n\n    function createLocal(input, format, locale, strict) {\n        return createLocalOrUTC(input, format, locale, strict, false);\n    }\n\n    var prototypeMin = deprecate(\n            'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/',\n            function () {\n                var other = createLocal.apply(null, arguments);\n                if (this.isValid() && other.isValid()) {\n                    return other < this ? this : other;\n                } else {\n                    return createInvalid();\n                }\n            }\n        ),\n        prototypeMax = deprecate(\n            'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/',\n            function () {\n                var other = createLocal.apply(null, arguments);\n                if (this.isValid() && other.isValid()) {\n                    return other > this ? this : other;\n                } else {\n                    return createInvalid();\n                }\n            }\n        );\n\n    // Pick a moment m from moments so that m[fn](other) is true for all\n    // other. This relies on the function fn to be transitive.\n    //\n    // moments should either be an array of moment objects or an array, whose\n    // first element is an array of moment objects.\n    function pickBy(fn, moments) {\n        var res, i;\n        if (moments.length === 1 && isArray(moments[0])) {\n            moments = moments[0];\n        }\n        if (!moments.length) {\n            return createLocal();\n        }\n        res = moments[0];\n        for (i = 1; i < moments.length; ++i) {\n            if (!moments[i].isValid() || moments[i][fn](res)) {\n                res = moments[i];\n            }\n        }\n        return res;\n    }\n\n    // TODO: Use [].sort instead?\n    function min() {\n        var args = [].slice.call(arguments, 0);\n\n        return pickBy('isBefore', args);\n    }\n\n    function max() {\n        var args = [].slice.call(arguments, 0);\n\n        return pickBy('isAfter', args);\n    }\n\n    var now = function () {\n        return Date.now ? Date.now() : +new Date();\n    };\n\n    var ordering = [\n        'year',\n        'quarter',\n        'month',\n        'week',\n        'day',\n        'hour',\n        'minute',\n        'second',\n        'millisecond',\n    ];\n\n    function isDurationValid(m) {\n        var key,\n            unitHasDecimal = false,\n            i,\n            orderLen = ordering.length;\n        for (key in m) {\n            if (\n                hasOwnProp(m, key) &&\n                !(\n                    indexOf.call(ordering, key) !== -1 &&\n                    (m[key] == null || !isNaN(m[key]))\n                )\n            ) {\n                return false;\n            }\n        }\n\n        for (i = 0; i < orderLen; ++i) {\n            if (m[ordering[i]]) {\n                if (unitHasDecimal) {\n                    return false; // only allow non-integers for smallest unit\n                }\n                if (parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]])) {\n                    unitHasDecimal = true;\n                }\n            }\n        }\n\n        return true;\n    }\n\n    function isValid$1() {\n        return this._isValid;\n    }\n\n    function createInvalid$1() {\n        return createDuration(NaN);\n    }\n\n    function Duration(duration) {\n        var normalizedInput = normalizeObjectUnits(duration),\n            years = normalizedInput.year || 0,\n            quarters = normalizedInput.quarter || 0,\n            months = normalizedInput.month || 0,\n            weeks = normalizedInput.week || normalizedInput.isoWeek || 0,\n            days = normalizedInput.day || 0,\n            hours = normalizedInput.hour || 0,\n            minutes = normalizedInput.minute || 0,\n            seconds = normalizedInput.second || 0,\n            milliseconds = normalizedInput.millisecond || 0;\n\n        this._isValid = isDurationValid(normalizedInput);\n\n        // representation for dateAddRemove\n        this._milliseconds =\n            +milliseconds +\n            seconds * 1e3 + // 1000\n            minutes * 6e4 + // 1000 * 60\n            hours * 1000 * 60 * 60; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978\n        // Because of dateAddRemove treats 24 hours as different from a\n        // day when working around DST, we need to store them separately\n        this._days = +days + weeks * 7;\n        // It is impossible to translate months into days without knowing\n        // which months you are are talking about, so we have to store\n        // it separately.\n        this._months = +months + quarters * 3 + years * 12;\n\n        this._data = {};\n\n        this._locale = getLocale();\n\n        this._bubble();\n    }\n\n    function isDuration(obj) {\n        return obj instanceof Duration;\n    }\n\n    function absRound(number) {\n        if (number < 0) {\n            return Math.round(-1 * number) * -1;\n        } else {\n            return Math.round(number);\n        }\n    }\n\n    // compare two arrays, return the number of differences\n    function compareArrays(array1, array2, dontConvert) {\n        var len = Math.min(array1.length, array2.length),\n            lengthDiff = Math.abs(array1.length - array2.length),\n            diffs = 0,\n            i;\n        for (i = 0; i < len; i++) {\n            if (\n                (dontConvert && array1[i] !== array2[i]) ||\n                (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))\n            ) {\n                diffs++;\n            }\n        }\n        return diffs + lengthDiff;\n    }\n\n    // FORMATTING\n\n    function offset(token, separator) {\n        addFormatToken(token, 0, 0, function () {\n            var offset = this.utcOffset(),\n                sign = '+';\n            if (offset < 0) {\n                offset = -offset;\n                sign = '-';\n            }\n            return (\n                sign +\n                zeroFill(~~(offset / 60), 2) +\n                separator +\n                zeroFill(~~offset % 60, 2)\n            );\n        });\n    }\n\n    offset('Z', ':');\n    offset('ZZ', '');\n\n    // PARSING\n\n    addRegexToken('Z', matchShortOffset);\n    addRegexToken('ZZ', matchShortOffset);\n    addParseToken(['Z', 'ZZ'], function (input, array, config) {\n        config._useUTC = true;\n        config._tzm = offsetFromString(matchShortOffset, input);\n    });\n\n    // HELPERS\n\n    // timezone chunker\n    // '+10:00' > ['10',  '00']\n    // '-1530'  > ['-15', '30']\n    var chunkOffset = /([\\+\\-]|\\d\\d)/gi;\n\n    function offsetFromString(matcher, string) {\n        var matches = (string || '').match(matcher),\n            chunk,\n            parts,\n            minutes;\n\n        if (matches === null) {\n            return null;\n        }\n\n        chunk = matches[matches.length - 1] || [];\n        parts = (chunk + '').match(chunkOffset) || ['-', 0, 0];\n        minutes = +(parts[1] * 60) + toInt(parts[2]);\n\n        return minutes === 0 ? 0 : parts[0] === '+' ? minutes : -minutes;\n    }\n\n    // Return a moment from input, that is local/utc/zone equivalent to model.\n    function cloneWithOffset(input, model) {\n        var res, diff;\n        if (model._isUTC) {\n            res = model.clone();\n            diff =\n                (isMoment(input) || isDate(input)\n                    ? input.valueOf()\n                    : createLocal(input).valueOf()) - res.valueOf();\n            // Use low-level api, because this fn is low-level api.\n            res._d.setTime(res._d.valueOf() + diff);\n            hooks.updateOffset(res, false);\n            return res;\n        } else {\n            return createLocal(input).local();\n        }\n    }\n\n    function getDateOffset(m) {\n        // On Firefox.24 Date#getTimezoneOffset returns a floating point.\n        // https://github.com/moment/moment/pull/1871\n        return -Math.round(m._d.getTimezoneOffset());\n    }\n\n    // HOOKS\n\n    // This function will be called whenever a moment is mutated.\n    // It is intended to keep the offset in sync with the timezone.\n    hooks.updateOffset = function () {};\n\n    // MOMENTS\n\n    // keepLocalTime = true means only change the timezone, without\n    // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->\n    // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset\n    // +0200, so we adjust the time as needed, to be valid.\n    //\n    // Keeping the time actually adds/subtracts (one hour)\n    // from the actual represented time. That is why we call updateOffset\n    // a second time. In case it wants us to change the offset again\n    // _changeInProgress == true case, then we have to adjust, because\n    // there is no such time in the given timezone.\n    function getSetOffset(input, keepLocalTime, keepMinutes) {\n        var offset = this._offset || 0,\n            localAdjust;\n        if (!this.isValid()) {\n            return input != null ? this : NaN;\n        }\n        if (input != null) {\n            if (typeof input === 'string') {\n                input = offsetFromString(matchShortOffset, input);\n                if (input === null) {\n                    return this;\n                }\n            } else if (Math.abs(input) < 16 && !keepMinutes) {\n                input = input * 60;\n            }\n            if (!this._isUTC && keepLocalTime) {\n                localAdjust = getDateOffset(this);\n            }\n            this._offset = input;\n            this._isUTC = true;\n            if (localAdjust != null) {\n                this.add(localAdjust, 'm');\n            }\n            if (offset !== input) {\n                if (!keepLocalTime || this._changeInProgress) {\n                    addSubtract(\n                        this,\n                        createDuration(input - offset, 'm'),\n                        1,\n                        false\n                    );\n                } else if (!this._changeInProgress) {\n                    this._changeInProgress = true;\n                    hooks.updateOffset(this, true);\n                    this._changeInProgress = null;\n                }\n            }\n            return this;\n        } else {\n            return this._isUTC ? offset : getDateOffset(this);\n        }\n    }\n\n    function getSetZone(input, keepLocalTime) {\n        if (input != null) {\n            if (typeof input !== 'string') {\n                input = -input;\n            }\n\n            this.utcOffset(input, keepLocalTime);\n\n            return this;\n        } else {\n            return -this.utcOffset();\n        }\n    }\n\n    function setOffsetToUTC(keepLocalTime) {\n        return this.utcOffset(0, keepLocalTime);\n    }\n\n    function setOffsetToLocal(keepLocalTime) {\n        if (this._isUTC) {\n            this.utcOffset(0, keepLocalTime);\n            this._isUTC = false;\n\n            if (keepLocalTime) {\n                this.subtract(getDateOffset(this), 'm');\n            }\n        }\n        return this;\n    }\n\n    function setOffsetToParsedOffset() {\n        if (this._tzm != null) {\n            this.utcOffset(this._tzm, false, true);\n        } else if (typeof this._i === 'string') {\n            var tZone = offsetFromString(matchOffset, this._i);\n            if (tZone != null) {\n                this.utcOffset(tZone);\n            } else {\n                this.utcOffset(0, true);\n            }\n        }\n        return this;\n    }\n\n    function hasAlignedHourOffset(input) {\n        if (!this.isValid()) {\n            return false;\n        }\n        input = input ? createLocal(input).utcOffset() : 0;\n\n        return (this.utcOffset() - input) % 60 === 0;\n    }\n\n    function isDaylightSavingTime() {\n        return (\n            this.utcOffset() > this.clone().month(0).utcOffset() ||\n            this.utcOffset() > this.clone().month(5).utcOffset()\n        );\n    }\n\n    function isDaylightSavingTimeShifted() {\n        if (!isUndefined(this._isDSTShifted)) {\n            return this._isDSTShifted;\n        }\n\n        var c = {},\n            other;\n\n        copyConfig(c, this);\n        c = prepareConfig(c);\n\n        if (c._a) {\n            other = c._isUTC ? createUTC(c._a) : createLocal(c._a);\n            this._isDSTShifted =\n                this.isValid() && compareArrays(c._a, other.toArray()) > 0;\n        } else {\n            this._isDSTShifted = false;\n        }\n\n        return this._isDSTShifted;\n    }\n\n    function isLocal() {\n        return this.isValid() ? !this._isUTC : false;\n    }\n\n    function isUtcOffset() {\n        return this.isValid() ? this._isUTC : false;\n    }\n\n    function isUtc() {\n        return this.isValid() ? this._isUTC && this._offset === 0 : false;\n    }\n\n    // ASP.NET json date format regex\n    var aspNetRegex = /^(-|\\+)?(?:(\\d*)[. ])?(\\d+):(\\d+)(?::(\\d+)(\\.\\d*)?)?$/,\n        // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html\n        // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere\n        // and further modified to allow for strings containing both week and day\n        isoRegex =\n            /^(-|\\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;\n\n    function createDuration(input, key) {\n        var duration = input,\n            // matching against regexp is expensive, do it on demand\n            match = null,\n            sign,\n            ret,\n            diffRes;\n\n        if (isDuration(input)) {\n            duration = {\n                ms: input._milliseconds,\n                d: input._days,\n                M: input._months,\n            };\n        } else if (isNumber(input) || !isNaN(+input)) {\n            duration = {};\n            if (key) {\n                duration[key] = +input;\n            } else {\n                duration.milliseconds = +input;\n            }\n        } else if ((match = aspNetRegex.exec(input))) {\n            sign = match[1] === '-' ? -1 : 1;\n            duration = {\n                y: 0,\n                d: toInt(match[DATE]) * sign,\n                h: toInt(match[HOUR]) * sign,\n                m: toInt(match[MINUTE]) * sign,\n                s: toInt(match[SECOND]) * sign,\n                ms: toInt(absRound(match[MILLISECOND] * 1000)) * sign, // the millisecond decimal point is included in the match\n            };\n        } else if ((match = isoRegex.exec(input))) {\n            sign = match[1] === '-' ? -1 : 1;\n            duration = {\n                y: parseIso(match[2], sign),\n                M: parseIso(match[3], sign),\n                w: parseIso(match[4], sign),\n                d: parseIso(match[5], sign),\n                h: parseIso(match[6], sign),\n                m: parseIso(match[7], sign),\n                s: parseIso(match[8], sign),\n            };\n        } else if (duration == null) {\n            // checks for null or undefined\n            duration = {};\n        } else if (\n            typeof duration === 'object' &&\n            ('from' in duration || 'to' in duration)\n        ) {\n            diffRes = momentsDifference(\n                createLocal(duration.from),\n                createLocal(duration.to)\n            );\n\n            duration = {};\n            duration.ms = diffRes.milliseconds;\n            duration.M = diffRes.months;\n        }\n\n        ret = new Duration(duration);\n\n        if (isDuration(input) && hasOwnProp(input, '_locale')) {\n            ret._locale = input._locale;\n        }\n\n        if (isDuration(input) && hasOwnProp(input, '_isValid')) {\n            ret._isValid = input._isValid;\n        }\n\n        return ret;\n    }\n\n    createDuration.fn = Duration.prototype;\n    createDuration.invalid = createInvalid$1;\n\n    function parseIso(inp, sign) {\n        // We'd normally use ~~inp for this, but unfortunately it also\n        // converts floats to ints.\n        // inp may be undefined, so careful calling replace on it.\n        var res = inp && parseFloat(inp.replace(',', '.'));\n        // apply sign while we're at it\n        return (isNaN(res) ? 0 : res) * sign;\n    }\n\n    function positiveMomentsDifference(base, other) {\n        var res = {};\n\n        res.months =\n            other.month() - base.month() + (other.year() - base.year()) * 12;\n        if (base.clone().add(res.months, 'M').isAfter(other)) {\n            --res.months;\n        }\n\n        res.milliseconds = +other - +base.clone().add(res.months, 'M');\n\n        return res;\n    }\n\n    function momentsDifference(base, other) {\n        var res;\n        if (!(base.isValid() && other.isValid())) {\n            return { milliseconds: 0, months: 0 };\n        }\n\n        other = cloneWithOffset(other, base);\n        if (base.isBefore(other)) {\n            res = positiveMomentsDifference(base, other);\n        } else {\n            res = positiveMomentsDifference(other, base);\n            res.milliseconds = -res.milliseconds;\n            res.months = -res.months;\n        }\n\n        return res;\n    }\n\n    // TODO: remove 'name' arg after deprecation is removed\n    function createAdder(direction, name) {\n        return function (val, period) {\n            var dur, tmp;\n            //invert the arguments, but complain about it\n            if (period !== null && !isNaN(+period)) {\n                deprecateSimple(\n                    name,\n                    'moment().' +\n                        name +\n                        '(period, number) is deprecated. Please use moment().' +\n                        name +\n                        '(number, period). ' +\n                        'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.'\n                );\n                tmp = val;\n                val = period;\n                period = tmp;\n            }\n\n            dur = createDuration(val, period);\n            addSubtract(this, dur, direction);\n            return this;\n        };\n    }\n\n    function addSubtract(mom, duration, isAdding, updateOffset) {\n        var milliseconds = duration._milliseconds,\n            days = absRound(duration._days),\n            months = absRound(duration._months);\n\n        if (!mom.isValid()) {\n            // No op\n            return;\n        }\n\n        updateOffset = updateOffset == null ? true : updateOffset;\n\n        if (months) {\n            setMonth(mom, get(mom, 'Month') + months * isAdding);\n        }\n        if (days) {\n            set$1(mom, 'Date', get(mom, 'Date') + days * isAdding);\n        }\n        if (milliseconds) {\n            mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding);\n        }\n        if (updateOffset) {\n            hooks.updateOffset(mom, days || months);\n        }\n    }\n\n    var add = createAdder(1, 'add'),\n        subtract = createAdder(-1, 'subtract');\n\n    function isString(input) {\n        return typeof input === 'string' || input instanceof String;\n    }\n\n    // type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined\n    function isMomentInput(input) {\n        return (\n            isMoment(input) ||\n            isDate(input) ||\n            isString(input) ||\n            isNumber(input) ||\n            isNumberOrStringArray(input) ||\n            isMomentInputObject(input) ||\n            input === null ||\n            input === undefined\n        );\n    }\n\n    function isMomentInputObject(input) {\n        var objectTest = isObject(input) && !isObjectEmpty(input),\n            propertyTest = false,\n            properties = [\n                'years',\n                'year',\n                'y',\n                'months',\n                'month',\n                'M',\n                'days',\n                'day',\n                'd',\n                'dates',\n                'date',\n                'D',\n                'hours',\n                'hour',\n                'h',\n                'minutes',\n                'minute',\n                'm',\n                'seconds',\n                'second',\n                's',\n                'milliseconds',\n                'millisecond',\n                'ms',\n            ],\n            i,\n            property,\n            propertyLen = properties.length;\n\n        for (i = 0; i < propertyLen; i += 1) {\n            property = properties[i];\n            propertyTest = propertyTest || hasOwnProp(input, property);\n        }\n\n        return objectTest && propertyTest;\n    }\n\n    function isNumberOrStringArray(input) {\n        var arrayTest = isArray(input),\n            dataTypeTest = false;\n        if (arrayTest) {\n            dataTypeTest =\n                input.filter(function (item) {\n                    return !isNumber(item) && isString(input);\n                }).length === 0;\n        }\n        return arrayTest && dataTypeTest;\n    }\n\n    function isCalendarSpec(input) {\n        var objectTest = isObject(input) && !isObjectEmpty(input),\n            propertyTest = false,\n            properties = [\n                'sameDay',\n                'nextDay',\n                'lastDay',\n                'nextWeek',\n                'lastWeek',\n                'sameElse',\n            ],\n            i,\n            property;\n\n        for (i = 0; i < properties.length; i += 1) {\n            property = properties[i];\n            propertyTest = propertyTest || hasOwnProp(input, property);\n        }\n\n        return objectTest && propertyTest;\n    }\n\n    function getCalendarFormat(myMoment, now) {\n        var diff = myMoment.diff(now, 'days', true);\n        return diff < -6\n            ? 'sameElse'\n            : diff < -1\n            ? 'lastWeek'\n            : diff < 0\n            ? 'lastDay'\n            : diff < 1\n            ? 'sameDay'\n            : diff < 2\n            ? 'nextDay'\n            : diff < 7\n            ? 'nextWeek'\n            : 'sameElse';\n    }\n\n    function calendar$1(time, formats) {\n        // Support for single parameter, formats only overload to the calendar function\n        if (arguments.length === 1) {\n            if (!arguments[0]) {\n                time = undefined;\n                formats = undefined;\n            } else if (isMomentInput(arguments[0])) {\n                time = arguments[0];\n                formats = undefined;\n            } else if (isCalendarSpec(arguments[0])) {\n                formats = arguments[0];\n                time = undefined;\n            }\n        }\n        // We want to compare the start of today, vs this.\n        // Getting start-of-today depends on whether we're local/utc/offset or not.\n        var now = time || createLocal(),\n            sod = cloneWithOffset(now, this).startOf('day'),\n            format = hooks.calendarFormat(this, sod) || 'sameElse',\n            output =\n                formats &&\n                (isFunction(formats[format])\n                    ? formats[format].call(this, now)\n                    : formats[format]);\n\n        return this.format(\n            output || this.localeData().calendar(format, this, createLocal(now))\n        );\n    }\n\n    function clone() {\n        return new Moment(this);\n    }\n\n    function isAfter(input, units) {\n        var localInput = isMoment(input) ? input : createLocal(input);\n        if (!(this.isValid() && localInput.isValid())) {\n            return false;\n        }\n        units = normalizeUnits(units) || 'millisecond';\n        if (units === 'millisecond') {\n            return this.valueOf() > localInput.valueOf();\n        } else {\n            return localInput.valueOf() < this.clone().startOf(units).valueOf();\n        }\n    }\n\n    function isBefore(input, units) {\n        var localInput = isMoment(input) ? input : createLocal(input);\n        if (!(this.isValid() && localInput.isValid())) {\n            return false;\n        }\n        units = normalizeUnits(units) || 'millisecond';\n        if (units === 'millisecond') {\n            return this.valueOf() < localInput.valueOf();\n        } else {\n            return this.clone().endOf(units).valueOf() < localInput.valueOf();\n        }\n    }\n\n    function isBetween(from, to, units, inclusivity) {\n        var localFrom = isMoment(from) ? from : createLocal(from),\n            localTo = isMoment(to) ? to : createLocal(to);\n        if (!(this.isValid() && localFrom.isValid() && localTo.isValid())) {\n            return false;\n        }\n        inclusivity = inclusivity || '()';\n        return (\n            (inclusivity[0] === '('\n                ? this.isAfter(localFrom, units)\n                : !this.isBefore(localFrom, units)) &&\n            (inclusivity[1] === ')'\n                ? this.isBefore(localTo, units)\n                : !this.isAfter(localTo, units))\n        );\n    }\n\n    function isSame(input, units) {\n        var localInput = isMoment(input) ? input : createLocal(input),\n            inputMs;\n        if (!(this.isValid() && localInput.isValid())) {\n            return false;\n        }\n        units = normalizeUnits(units) || 'millisecond';\n        if (units === 'millisecond') {\n            return this.valueOf() === localInput.valueOf();\n        } else {\n            inputMs = localInput.valueOf();\n            return (\n                this.clone().startOf(units).valueOf() <= inputMs &&\n                inputMs <= this.clone().endOf(units).valueOf()\n            );\n        }\n    }\n\n    function isSameOrAfter(input, units) {\n        return this.isSame(input, units) || this.isAfter(input, units);\n    }\n\n    function isSameOrBefore(input, units) {\n        return this.isSame(input, units) || this.isBefore(input, units);\n    }\n\n    function diff(input, units, asFloat) {\n        var that, zoneDelta, output;\n\n        if (!this.isValid()) {\n            return NaN;\n        }\n\n        that = cloneWithOffset(input, this);\n\n        if (!that.isValid()) {\n            return NaN;\n        }\n\n        zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4;\n\n        units = normalizeUnits(units);\n\n        switch (units) {\n            case 'year':\n                output = monthDiff(this, that) / 12;\n                break;\n            case 'month':\n                output = monthDiff(this, that);\n                break;\n            case 'quarter':\n                output = monthDiff(this, that) / 3;\n                break;\n            case 'second':\n                output = (this - that) / 1e3;\n                break; // 1000\n            case 'minute':\n                output = (this - that) / 6e4;\n                break; // 1000 * 60\n            case 'hour':\n                output = (this - that) / 36e5;\n                break; // 1000 * 60 * 60\n            case 'day':\n                output = (this - that - zoneDelta) / 864e5;\n                break; // 1000 * 60 * 60 * 24, negate dst\n            case 'week':\n                output = (this - that - zoneDelta) / 6048e5;\n                break; // 1000 * 60 * 60 * 24 * 7, negate dst\n            default:\n                output = this - that;\n        }\n\n        return asFloat ? output : absFloor(output);\n    }\n\n    function monthDiff(a, b) {\n        if (a.date() < b.date()) {\n            // end-of-month calculations work correct when the start month has more\n            // days than the end month.\n            return -monthDiff(b, a);\n        }\n        // difference in months\n        var wholeMonthDiff = (b.year() - a.year()) * 12 + (b.month() - a.month()),\n            // b is in (anchor - 1 month, anchor + 1 month)\n            anchor = a.clone().add(wholeMonthDiff, 'months'),\n            anchor2,\n            adjust;\n\n        if (b - anchor < 0) {\n            anchor2 = a.clone().add(wholeMonthDiff - 1, 'months');\n            // linear across the month\n            adjust = (b - anchor) / (anchor - anchor2);\n        } else {\n            anchor2 = a.clone().add(wholeMonthDiff + 1, 'months');\n            // linear across the month\n            adjust = (b - anchor) / (anchor2 - anchor);\n        }\n\n        //check for negative zero, return zero if negative zero\n        return -(wholeMonthDiff + adjust) || 0;\n    }\n\n    hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ';\n    hooks.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]';\n\n    function toString() {\n        return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ');\n    }\n\n    function toISOString(keepOffset) {\n        if (!this.isValid()) {\n            return null;\n        }\n        var utc = keepOffset !== true,\n            m = utc ? this.clone().utc() : this;\n        if (m.year() < 0 || m.year() > 9999) {\n            return formatMoment(\n                m,\n                utc\n                    ? 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]'\n                    : 'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ'\n            );\n        }\n        if (isFunction(Date.prototype.toISOString)) {\n            // native implementation is ~50x faster, use it when we can\n            if (utc) {\n                return this.toDate().toISOString();\n            } else {\n                return new Date(this.valueOf() + this.utcOffset() * 60 * 1000)\n                    .toISOString()\n                    .replace('Z', formatMoment(m, 'Z'));\n            }\n        }\n        return formatMoment(\n            m,\n            utc ? 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYY-MM-DD[T]HH:mm:ss.SSSZ'\n        );\n    }\n\n    /**\n     * Return a human readable representation of a moment that can\n     * also be evaluated to get a new moment which is the same\n     *\n     * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects\n     */\n    function inspect() {\n        if (!this.isValid()) {\n            return 'moment.invalid(/* ' + this._i + ' */)';\n        }\n        var func = 'moment',\n            zone = '',\n            prefix,\n            year,\n            datetime,\n            suffix;\n        if (!this.isLocal()) {\n            func = this.utcOffset() === 0 ? 'moment.utc' : 'moment.parseZone';\n            zone = 'Z';\n        }\n        prefix = '[' + func + '(\"]';\n        year = 0 <= this.year() && this.year() <= 9999 ? 'YYYY' : 'YYYYYY';\n        datetime = '-MM-DD[T]HH:mm:ss.SSS';\n        suffix = zone + '[\")]';\n\n        return this.format(prefix + year + datetime + suffix);\n    }\n\n    function format(inputString) {\n        if (!inputString) {\n            inputString = this.isUtc()\n                ? hooks.defaultFormatUtc\n                : hooks.defaultFormat;\n        }\n        var output = formatMoment(this, inputString);\n        return this.localeData().postformat(output);\n    }\n\n    function from(time, withoutSuffix) {\n        if (\n            this.isValid() &&\n            ((isMoment(time) && time.isValid()) || createLocal(time).isValid())\n        ) {\n            return createDuration({ to: this, from: time })\n                .locale(this.locale())\n                .humanize(!withoutSuffix);\n        } else {\n            return this.localeData().invalidDate();\n        }\n    }\n\n    function fromNow(withoutSuffix) {\n        return this.from(createLocal(), withoutSuffix);\n    }\n\n    function to(time, withoutSuffix) {\n        if (\n            this.isValid() &&\n            ((isMoment(time) && time.isValid()) || createLocal(time).isValid())\n        ) {\n            return createDuration({ from: this, to: time })\n                .locale(this.locale())\n                .humanize(!withoutSuffix);\n        } else {\n            return this.localeData().invalidDate();\n        }\n    }\n\n    function toNow(withoutSuffix) {\n        return this.to(createLocal(), withoutSuffix);\n    }\n\n    // If passed a locale key, it will set the locale for this\n    // instance.  Otherwise, it will return the locale configuration\n    // variables for this instance.\n    function locale(key) {\n        var newLocaleData;\n\n        if (key === undefined) {\n            return this._locale._abbr;\n        } else {\n            newLocaleData = getLocale(key);\n            if (newLocaleData != null) {\n                this._locale = newLocaleData;\n            }\n            return this;\n        }\n    }\n\n    var lang = deprecate(\n        'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.',\n        function (key) {\n            if (key === undefined) {\n                return this.localeData();\n            } else {\n                return this.locale(key);\n            }\n        }\n    );\n\n    function localeData() {\n        return this._locale;\n    }\n\n    var MS_PER_SECOND = 1000,\n        MS_PER_MINUTE = 60 * MS_PER_SECOND,\n        MS_PER_HOUR = 60 * MS_PER_MINUTE,\n        MS_PER_400_YEARS = (365 * 400 + 97) * 24 * MS_PER_HOUR;\n\n    // actual modulo - handles negative numbers (for dates before 1970):\n    function mod$1(dividend, divisor) {\n        return ((dividend % divisor) + divisor) % divisor;\n    }\n\n    function localStartOfDate(y, m, d) {\n        // the date constructor remaps years 0-99 to 1900-1999\n        if (y < 100 && y >= 0) {\n            // preserve leap years using a full 400 year cycle, then reset\n            return new Date(y + 400, m, d) - MS_PER_400_YEARS;\n        } else {\n            return new Date(y, m, d).valueOf();\n        }\n    }\n\n    function utcStartOfDate(y, m, d) {\n        // Date.UTC remaps years 0-99 to 1900-1999\n        if (y < 100 && y >= 0) {\n            // preserve leap years using a full 400 year cycle, then reset\n            return Date.UTC(y + 400, m, d) - MS_PER_400_YEARS;\n        } else {\n            return Date.UTC(y, m, d);\n        }\n    }\n\n    function startOf(units) {\n        var time, startOfDate;\n        units = normalizeUnits(units);\n        if (units === undefined || units === 'millisecond' || !this.isValid()) {\n            return this;\n        }\n\n        startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;\n\n        switch (units) {\n            case 'year':\n                time = startOfDate(this.year(), 0, 1);\n                break;\n            case 'quarter':\n                time = startOfDate(\n                    this.year(),\n                    this.month() - (this.month() % 3),\n                    1\n                );\n                break;\n            case 'month':\n                time = startOfDate(this.year(), this.month(), 1);\n                break;\n            case 'week':\n                time = startOfDate(\n                    this.year(),\n                    this.month(),\n                    this.date() - this.weekday()\n                );\n                break;\n            case 'isoWeek':\n                time = startOfDate(\n                    this.year(),\n                    this.month(),\n                    this.date() - (this.isoWeekday() - 1)\n                );\n                break;\n            case 'day':\n            case 'date':\n                time = startOfDate(this.year(), this.month(), this.date());\n                break;\n            case 'hour':\n                time = this._d.valueOf();\n                time -= mod$1(\n                    time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE),\n                    MS_PER_HOUR\n                );\n                break;\n            case 'minute':\n                time = this._d.valueOf();\n                time -= mod$1(time, MS_PER_MINUTE);\n                break;\n            case 'second':\n                time = this._d.valueOf();\n                time -= mod$1(time, MS_PER_SECOND);\n                break;\n        }\n\n        this._d.setTime(time);\n        hooks.updateOffset(this, true);\n        return this;\n    }\n\n    function endOf(units) {\n        var time, startOfDate;\n        units = normalizeUnits(units);\n        if (units === undefined || units === 'millisecond' || !this.isValid()) {\n            return this;\n        }\n\n        startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;\n\n        switch (units) {\n            case 'year':\n                time = startOfDate(this.year() + 1, 0, 1) - 1;\n                break;\n            case 'quarter':\n                time =\n                    startOfDate(\n                        this.year(),\n                        this.month() - (this.month() % 3) + 3,\n                        1\n                    ) - 1;\n                break;\n            case 'month':\n                time = startOfDate(this.year(), this.month() + 1, 1) - 1;\n                break;\n            case 'week':\n                time =\n                    startOfDate(\n                        this.year(),\n                        this.month(),\n                        this.date() - this.weekday() + 7\n                    ) - 1;\n                break;\n            case 'isoWeek':\n                time =\n                    startOfDate(\n                        this.year(),\n                        this.month(),\n                        this.date() - (this.isoWeekday() - 1) + 7\n                    ) - 1;\n                break;\n            case 'day':\n            case 'date':\n                time = startOfDate(this.year(), this.month(), this.date() + 1) - 1;\n                break;\n            case 'hour':\n                time = this._d.valueOf();\n                time +=\n                    MS_PER_HOUR -\n                    mod$1(\n                        time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE),\n                        MS_PER_HOUR\n                    ) -\n                    1;\n                break;\n            case 'minute':\n                time = this._d.valueOf();\n                time += MS_PER_MINUTE - mod$1(time, MS_PER_MINUTE) - 1;\n                break;\n            case 'second':\n                time = this._d.valueOf();\n                time += MS_PER_SECOND - mod$1(time, MS_PER_SECOND) - 1;\n                break;\n        }\n\n        this._d.setTime(time);\n        hooks.updateOffset(this, true);\n        return this;\n    }\n\n    function valueOf() {\n        return this._d.valueOf() - (this._offset || 0) * 60000;\n    }\n\n    function unix() {\n        return Math.floor(this.valueOf() / 1000);\n    }\n\n    function toDate() {\n        return new Date(this.valueOf());\n    }\n\n    function toArray() {\n        var m = this;\n        return [\n            m.year(),\n            m.month(),\n            m.date(),\n            m.hour(),\n            m.minute(),\n            m.second(),\n            m.millisecond(),\n        ];\n    }\n\n    function toObject() {\n        var m = this;\n        return {\n            years: m.year(),\n            months: m.month(),\n            date: m.date(),\n            hours: m.hours(),\n            minutes: m.minutes(),\n            seconds: m.seconds(),\n            milliseconds: m.milliseconds(),\n        };\n    }\n\n    function toJSON() {\n        // new Date(NaN).toJSON() === null\n        return this.isValid() ? this.toISOString() : null;\n    }\n\n    function isValid$2() {\n        return isValid(this);\n    }\n\n    function parsingFlags() {\n        return extend({}, getParsingFlags(this));\n    }\n\n    function invalidAt() {\n        return getParsingFlags(this).overflow;\n    }\n\n    function creationData() {\n        return {\n            input: this._i,\n            format: this._f,\n            locale: this._locale,\n            isUTC: this._isUTC,\n            strict: this._strict,\n        };\n    }\n\n    addFormatToken('N', 0, 0, 'eraAbbr');\n    addFormatToken('NN', 0, 0, 'eraAbbr');\n    addFormatToken('NNN', 0, 0, 'eraAbbr');\n    addFormatToken('NNNN', 0, 0, 'eraName');\n    addFormatToken('NNNNN', 0, 0, 'eraNarrow');\n\n    addFormatToken('y', ['y', 1], 'yo', 'eraYear');\n    addFormatToken('y', ['yy', 2], 0, 'eraYear');\n    addFormatToken('y', ['yyy', 3], 0, 'eraYear');\n    addFormatToken('y', ['yyyy', 4], 0, 'eraYear');\n\n    addRegexToken('N', matchEraAbbr);\n    addRegexToken('NN', matchEraAbbr);\n    addRegexToken('NNN', matchEraAbbr);\n    addRegexToken('NNNN', matchEraName);\n    addRegexToken('NNNNN', matchEraNarrow);\n\n    addParseToken(\n        ['N', 'NN', 'NNN', 'NNNN', 'NNNNN'],\n        function (input, array, config, token) {\n            var era = config._locale.erasParse(input, token, config._strict);\n            if (era) {\n                getParsingFlags(config).era = era;\n            } else {\n                getParsingFlags(config).invalidEra = input;\n            }\n        }\n    );\n\n    addRegexToken('y', matchUnsigned);\n    addRegexToken('yy', matchUnsigned);\n    addRegexToken('yyy', matchUnsigned);\n    addRegexToken('yyyy', matchUnsigned);\n    addRegexToken('yo', matchEraYearOrdinal);\n\n    addParseToken(['y', 'yy', 'yyy', 'yyyy'], YEAR);\n    addParseToken(['yo'], function (input, array, config, token) {\n        var match;\n        if (config._locale._eraYearOrdinalRegex) {\n            match = input.match(config._locale._eraYearOrdinalRegex);\n        }\n\n        if (config._locale.eraYearOrdinalParse) {\n            array[YEAR] = config._locale.eraYearOrdinalParse(input, match);\n        } else {\n            array[YEAR] = parseInt(input, 10);\n        }\n    });\n\n    function localeEras(m, format) {\n        var i,\n            l,\n            date,\n            eras = this._eras || getLocale('en')._eras;\n        for (i = 0, l = eras.length; i < l; ++i) {\n            switch (typeof eras[i].since) {\n                case 'string':\n                    // truncate time\n                    date = hooks(eras[i].since).startOf('day');\n                    eras[i].since = date.valueOf();\n                    break;\n            }\n\n            switch (typeof eras[i].until) {\n                case 'undefined':\n                    eras[i].until = +Infinity;\n                    break;\n                case 'string':\n                    // truncate time\n                    date = hooks(eras[i].until).startOf('day').valueOf();\n                    eras[i].until = date.valueOf();\n                    break;\n            }\n        }\n        return eras;\n    }\n\n    function localeErasParse(eraName, format, strict) {\n        var i,\n            l,\n            eras = this.eras(),\n            name,\n            abbr,\n            narrow;\n        eraName = eraName.toUpperCase();\n\n        for (i = 0, l = eras.length; i < l; ++i) {\n            name = eras[i].name.toUpperCase();\n            abbr = eras[i].abbr.toUpperCase();\n            narrow = eras[i].narrow.toUpperCase();\n\n            if (strict) {\n                switch (format) {\n                    case 'N':\n                    case 'NN':\n                    case 'NNN':\n                        if (abbr === eraName) {\n                            return eras[i];\n                        }\n                        break;\n\n                    case 'NNNN':\n                        if (name === eraName) {\n                            return eras[i];\n                        }\n                        break;\n\n                    case 'NNNNN':\n                        if (narrow === eraName) {\n                            return eras[i];\n                        }\n                        break;\n                }\n            } else if ([name, abbr, narrow].indexOf(eraName) >= 0) {\n                return eras[i];\n            }\n        }\n    }\n\n    function localeErasConvertYear(era, year) {\n        var dir = era.since <= era.until ? +1 : -1;\n        if (year === undefined) {\n            return hooks(era.since).year();\n        } else {\n            return hooks(era.since).year() + (year - era.offset) * dir;\n        }\n    }\n\n    function getEraName() {\n        var i,\n            l,\n            val,\n            eras = this.localeData().eras();\n        for (i = 0, l = eras.length; i < l; ++i) {\n            // truncate time\n            val = this.clone().startOf('day').valueOf();\n\n            if (eras[i].since <= val && val <= eras[i].until) {\n                return eras[i].name;\n            }\n            if (eras[i].until <= val && val <= eras[i].since) {\n                return eras[i].name;\n            }\n        }\n\n        return '';\n    }\n\n    function getEraNarrow() {\n        var i,\n            l,\n            val,\n            eras = this.localeData().eras();\n        for (i = 0, l = eras.length; i < l; ++i) {\n            // truncate time\n            val = this.clone().startOf('day').valueOf();\n\n            if (eras[i].since <= val && val <= eras[i].until) {\n                return eras[i].narrow;\n            }\n            if (eras[i].until <= val && val <= eras[i].since) {\n                return eras[i].narrow;\n            }\n        }\n\n        return '';\n    }\n\n    function getEraAbbr() {\n        var i,\n            l,\n            val,\n            eras = this.localeData().eras();\n        for (i = 0, l = eras.length; i < l; ++i) {\n            // truncate time\n            val = this.clone().startOf('day').valueOf();\n\n            if (eras[i].since <= val && val <= eras[i].until) {\n                return eras[i].abbr;\n            }\n            if (eras[i].until <= val && val <= eras[i].since) {\n                return eras[i].abbr;\n            }\n        }\n\n        return '';\n    }\n\n    function getEraYear() {\n        var i,\n            l,\n            dir,\n            val,\n            eras = this.localeData().eras();\n        for (i = 0, l = eras.length; i < l; ++i) {\n            dir = eras[i].since <= eras[i].until ? +1 : -1;\n\n            // truncate time\n            val = this.clone().startOf('day').valueOf();\n\n            if (\n                (eras[i].since <= val && val <= eras[i].until) ||\n                (eras[i].until <= val && val <= eras[i].since)\n            ) {\n                return (\n                    (this.year() - hooks(eras[i].since).year()) * dir +\n                    eras[i].offset\n                );\n            }\n        }\n\n        return this.year();\n    }\n\n    function erasNameRegex(isStrict) {\n        if (!hasOwnProp(this, '_erasNameRegex')) {\n            computeErasParse.call(this);\n        }\n        return isStrict ? this._erasNameRegex : this._erasRegex;\n    }\n\n    function erasAbbrRegex(isStrict) {\n        if (!hasOwnProp(this, '_erasAbbrRegex')) {\n            computeErasParse.call(this);\n        }\n        return isStrict ? this._erasAbbrRegex : this._erasRegex;\n    }\n\n    function erasNarrowRegex(isStrict) {\n        if (!hasOwnProp(this, '_erasNarrowRegex')) {\n            computeErasParse.call(this);\n        }\n        return isStrict ? this._erasNarrowRegex : this._erasRegex;\n    }\n\n    function matchEraAbbr(isStrict, locale) {\n        return locale.erasAbbrRegex(isStrict);\n    }\n\n    function matchEraName(isStrict, locale) {\n        return locale.erasNameRegex(isStrict);\n    }\n\n    function matchEraNarrow(isStrict, locale) {\n        return locale.erasNarrowRegex(isStrict);\n    }\n\n    function matchEraYearOrdinal(isStrict, locale) {\n        return locale._eraYearOrdinalRegex || matchUnsigned;\n    }\n\n    function computeErasParse() {\n        var abbrPieces = [],\n            namePieces = [],\n            narrowPieces = [],\n            mixedPieces = [],\n            i,\n            l,\n            eras = this.eras();\n\n        for (i = 0, l = eras.length; i < l; ++i) {\n            namePieces.push(regexEscape(eras[i].name));\n            abbrPieces.push(regexEscape(eras[i].abbr));\n            narrowPieces.push(regexEscape(eras[i].narrow));\n\n            mixedPieces.push(regexEscape(eras[i].name));\n            mixedPieces.push(regexEscape(eras[i].abbr));\n            mixedPieces.push(regexEscape(eras[i].narrow));\n        }\n\n        this._erasRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');\n        this._erasNameRegex = new RegExp('^(' + namePieces.join('|') + ')', 'i');\n        this._erasAbbrRegex = new RegExp('^(' + abbrPieces.join('|') + ')', 'i');\n        this._erasNarrowRegex = new RegExp(\n            '^(' + narrowPieces.join('|') + ')',\n            'i'\n        );\n    }\n\n    // FORMATTING\n\n    addFormatToken(0, ['gg', 2], 0, function () {\n        return this.weekYear() % 100;\n    });\n\n    addFormatToken(0, ['GG', 2], 0, function () {\n        return this.isoWeekYear() % 100;\n    });\n\n    function addWeekYearFormatToken(token, getter) {\n        addFormatToken(0, [token, token.length], 0, getter);\n    }\n\n    addWeekYearFormatToken('gggg', 'weekYear');\n    addWeekYearFormatToken('ggggg', 'weekYear');\n    addWeekYearFormatToken('GGGG', 'isoWeekYear');\n    addWeekYearFormatToken('GGGGG', 'isoWeekYear');\n\n    // ALIASES\n\n    addUnitAlias('weekYear', 'gg');\n    addUnitAlias('isoWeekYear', 'GG');\n\n    // PRIORITY\n\n    addUnitPriority('weekYear', 1);\n    addUnitPriority('isoWeekYear', 1);\n\n    // PARSING\n\n    addRegexToken('G', matchSigned);\n    addRegexToken('g', matchSigned);\n    addRegexToken('GG', match1to2, match2);\n    addRegexToken('gg', match1to2, match2);\n    addRegexToken('GGGG', match1to4, match4);\n    addRegexToken('gggg', match1to4, match4);\n    addRegexToken('GGGGG', match1to6, match6);\n    addRegexToken('ggggg', match1to6, match6);\n\n    addWeekParseToken(\n        ['gggg', 'ggggg', 'GGGG', 'GGGGG'],\n        function (input, week, config, token) {\n            week[token.substr(0, 2)] = toInt(input);\n        }\n    );\n\n    addWeekParseToken(['gg', 'GG'], function (input, week, config, token) {\n        week[token] = hooks.parseTwoDigitYear(input);\n    });\n\n    // MOMENTS\n\n    function getSetWeekYear(input) {\n        return getSetWeekYearHelper.call(\n            this,\n            input,\n            this.week(),\n            this.weekday(),\n            this.localeData()._week.dow,\n            this.localeData()._week.doy\n        );\n    }\n\n    function getSetISOWeekYear(input) {\n        return getSetWeekYearHelper.call(\n            this,\n            input,\n            this.isoWeek(),\n            this.isoWeekday(),\n            1,\n            4\n        );\n    }\n\n    function getISOWeeksInYear() {\n        return weeksInYear(this.year(), 1, 4);\n    }\n\n    function getISOWeeksInISOWeekYear() {\n        return weeksInYear(this.isoWeekYear(), 1, 4);\n    }\n\n    function getWeeksInYear() {\n        var weekInfo = this.localeData()._week;\n        return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy);\n    }\n\n    function getWeeksInWeekYear() {\n        var weekInfo = this.localeData()._week;\n        return weeksInYear(this.weekYear(), weekInfo.dow, weekInfo.doy);\n    }\n\n    function getSetWeekYearHelper(input, week, weekday, dow, doy) {\n        var weeksTarget;\n        if (input == null) {\n            return weekOfYear(this, dow, doy).year;\n        } else {\n            weeksTarget = weeksInYear(input, dow, doy);\n            if (week > weeksTarget) {\n                week = weeksTarget;\n            }\n            return setWeekAll.call(this, input, week, weekday, dow, doy);\n        }\n    }\n\n    function setWeekAll(weekYear, week, weekday, dow, doy) {\n        var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy),\n            date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear);\n\n        this.year(date.getUTCFullYear());\n        this.month(date.getUTCMonth());\n        this.date(date.getUTCDate());\n        return this;\n    }\n\n    // FORMATTING\n\n    addFormatToken('Q', 0, 'Qo', 'quarter');\n\n    // ALIASES\n\n    addUnitAlias('quarter', 'Q');\n\n    // PRIORITY\n\n    addUnitPriority('quarter', 7);\n\n    // PARSING\n\n    addRegexToken('Q', match1);\n    addParseToken('Q', function (input, array) {\n        array[MONTH] = (toInt(input) - 1) * 3;\n    });\n\n    // MOMENTS\n\n    function getSetQuarter(input) {\n        return input == null\n            ? Math.ceil((this.month() + 1) / 3)\n            : this.month((input - 1) * 3 + (this.month() % 3));\n    }\n\n    // FORMATTING\n\n    addFormatToken('D', ['DD', 2], 'Do', 'date');\n\n    // ALIASES\n\n    addUnitAlias('date', 'D');\n\n    // PRIORITY\n    addUnitPriority('date', 9);\n\n    // PARSING\n\n    addRegexToken('D', match1to2);\n    addRegexToken('DD', match1to2, match2);\n    addRegexToken('Do', function (isStrict, locale) {\n        // TODO: Remove \"ordinalParse\" fallback in next major release.\n        return isStrict\n            ? locale._dayOfMonthOrdinalParse || locale._ordinalParse\n            : locale._dayOfMonthOrdinalParseLenient;\n    });\n\n    addParseToken(['D', 'DD'], DATE);\n    addParseToken('Do', function (input, array) {\n        array[DATE] = toInt(input.match(match1to2)[0]);\n    });\n\n    // MOMENTS\n\n    var getSetDayOfMonth = makeGetSet('Date', true);\n\n    // FORMATTING\n\n    addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear');\n\n    // ALIASES\n\n    addUnitAlias('dayOfYear', 'DDD');\n\n    // PRIORITY\n    addUnitPriority('dayOfYear', 4);\n\n    // PARSING\n\n    addRegexToken('DDD', match1to3);\n    addRegexToken('DDDD', match3);\n    addParseToken(['DDD', 'DDDD'], function (input, array, config) {\n        config._dayOfYear = toInt(input);\n    });\n\n    // HELPERS\n\n    // MOMENTS\n\n    function getSetDayOfYear(input) {\n        var dayOfYear =\n            Math.round(\n                (this.clone().startOf('day') - this.clone().startOf('year')) / 864e5\n            ) + 1;\n        return input == null ? dayOfYear : this.add(input - dayOfYear, 'd');\n    }\n\n    // FORMATTING\n\n    addFormatToken('m', ['mm', 2], 0, 'minute');\n\n    // ALIASES\n\n    addUnitAlias('minute', 'm');\n\n    // PRIORITY\n\n    addUnitPriority('minute', 14);\n\n    // PARSING\n\n    addRegexToken('m', match1to2);\n    addRegexToken('mm', match1to2, match2);\n    addParseToken(['m', 'mm'], MINUTE);\n\n    // MOMENTS\n\n    var getSetMinute = makeGetSet('Minutes', false);\n\n    // FORMATTING\n\n    addFormatToken('s', ['ss', 2], 0, 'second');\n\n    // ALIASES\n\n    addUnitAlias('second', 's');\n\n    // PRIORITY\n\n    addUnitPriority('second', 15);\n\n    // PARSING\n\n    addRegexToken('s', match1to2);\n    addRegexToken('ss', match1to2, match2);\n    addParseToken(['s', 'ss'], SECOND);\n\n    // MOMENTS\n\n    var getSetSecond = makeGetSet('Seconds', false);\n\n    // FORMATTING\n\n    addFormatToken('S', 0, 0, function () {\n        return ~~(this.millisecond() / 100);\n    });\n\n    addFormatToken(0, ['SS', 2], 0, function () {\n        return ~~(this.millisecond() / 10);\n    });\n\n    addFormatToken(0, ['SSS', 3], 0, 'millisecond');\n    addFormatToken(0, ['SSSS', 4], 0, function () {\n        return this.millisecond() * 10;\n    });\n    addFormatToken(0, ['SSSSS', 5], 0, function () {\n        return this.millisecond() * 100;\n    });\n    addFormatToken(0, ['SSSSSS', 6], 0, function () {\n        return this.millisecond() * 1000;\n    });\n    addFormatToken(0, ['SSSSSSS', 7], 0, function () {\n        return this.millisecond() * 10000;\n    });\n    addFormatToken(0, ['SSSSSSSS', 8], 0, function () {\n        return this.millisecond() * 100000;\n    });\n    addFormatToken(0, ['SSSSSSSSS', 9], 0, function () {\n        return this.millisecond() * 1000000;\n    });\n\n    // ALIASES\n\n    addUnitAlias('millisecond', 'ms');\n\n    // PRIORITY\n\n    addUnitPriority('millisecond', 16);\n\n    // PARSING\n\n    addRegexToken('S', match1to3, match1);\n    addRegexToken('SS', match1to3, match2);\n    addRegexToken('SSS', match1to3, match3);\n\n    var token, getSetMillisecond;\n    for (token = 'SSSS'; token.length <= 9; token += 'S') {\n        addRegexToken(token, matchUnsigned);\n    }\n\n    function parseMs(input, array) {\n        array[MILLISECOND] = toInt(('0.' + input) * 1000);\n    }\n\n    for (token = 'S'; token.length <= 9; token += 'S') {\n        addParseToken(token, parseMs);\n    }\n\n    getSetMillisecond = makeGetSet('Milliseconds', false);\n\n    // FORMATTING\n\n    addFormatToken('z', 0, 0, 'zoneAbbr');\n    addFormatToken('zz', 0, 0, 'zoneName');\n\n    // MOMENTS\n\n    function getZoneAbbr() {\n        return this._isUTC ? 'UTC' : '';\n    }\n\n    function getZoneName() {\n        return this._isUTC ? 'Coordinated Universal Time' : '';\n    }\n\n    var proto = Moment.prototype;\n\n    proto.add = add;\n    proto.calendar = calendar$1;\n    proto.clone = clone;\n    proto.diff = diff;\n    proto.endOf = endOf;\n    proto.format = format;\n    proto.from = from;\n    proto.fromNow = fromNow;\n    proto.to = to;\n    proto.toNow = toNow;\n    proto.get = stringGet;\n    proto.invalidAt = invalidAt;\n    proto.isAfter = isAfter;\n    proto.isBefore = isBefore;\n    proto.isBetween = isBetween;\n    proto.isSame = isSame;\n    proto.isSameOrAfter = isSameOrAfter;\n    proto.isSameOrBefore = isSameOrBefore;\n    proto.isValid = isValid$2;\n    proto.lang = lang;\n    proto.locale = locale;\n    proto.localeData = localeData;\n    proto.max = prototypeMax;\n    proto.min = prototypeMin;\n    proto.parsingFlags = parsingFlags;\n    proto.set = stringSet;\n    proto.startOf = startOf;\n    proto.subtract = subtract;\n    proto.toArray = toArray;\n    proto.toObject = toObject;\n    proto.toDate = toDate;\n    proto.toISOString = toISOString;\n    proto.inspect = inspect;\n    if (typeof Symbol !== 'undefined' && Symbol.for != null) {\n        proto[Symbol.for('nodejs.util.inspect.custom')] = function () {\n            return 'Moment<' + this.format() + '>';\n        };\n    }\n    proto.toJSON = toJSON;\n    proto.toString = toString;\n    proto.unix = unix;\n    proto.valueOf = valueOf;\n    proto.creationData = creationData;\n    proto.eraName = getEraName;\n    proto.eraNarrow = getEraNarrow;\n    proto.eraAbbr = getEraAbbr;\n    proto.eraYear = getEraYear;\n    proto.year = getSetYear;\n    proto.isLeapYear = getIsLeapYear;\n    proto.weekYear = getSetWeekYear;\n    proto.isoWeekYear = getSetISOWeekYear;\n    proto.quarter = proto.quarters = getSetQuarter;\n    proto.month = getSetMonth;\n    proto.daysInMonth = getDaysInMonth;\n    proto.week = proto.weeks = getSetWeek;\n    proto.isoWeek = proto.isoWeeks = getSetISOWeek;\n    proto.weeksInYear = getWeeksInYear;\n    proto.weeksInWeekYear = getWeeksInWeekYear;\n    proto.isoWeeksInYear = getISOWeeksInYear;\n    proto.isoWeeksInISOWeekYear = getISOWeeksInISOWeekYear;\n    proto.date = getSetDayOfMonth;\n    proto.day = proto.days = getSetDayOfWeek;\n    proto.weekday = getSetLocaleDayOfWeek;\n    proto.isoWeekday = getSetISODayOfWeek;\n    proto.dayOfYear = getSetDayOfYear;\n    proto.hour = proto.hours = getSetHour;\n    proto.minute = proto.minutes = getSetMinute;\n    proto.second = proto.seconds = getSetSecond;\n    proto.millisecond = proto.milliseconds = getSetMillisecond;\n    proto.utcOffset = getSetOffset;\n    proto.utc = setOffsetToUTC;\n    proto.local = setOffsetToLocal;\n    proto.parseZone = setOffsetToParsedOffset;\n    proto.hasAlignedHourOffset = hasAlignedHourOffset;\n    proto.isDST = isDaylightSavingTime;\n    proto.isLocal = isLocal;\n    proto.isUtcOffset = isUtcOffset;\n    proto.isUtc = isUtc;\n    proto.isUTC = isUtc;\n    proto.zoneAbbr = getZoneAbbr;\n    proto.zoneName = getZoneName;\n    proto.dates = deprecate(\n        'dates accessor is deprecated. Use date instead.',\n        getSetDayOfMonth\n    );\n    proto.months = deprecate(\n        'months accessor is deprecated. Use month instead',\n        getSetMonth\n    );\n    proto.years = deprecate(\n        'years accessor is deprecated. Use year instead',\n        getSetYear\n    );\n    proto.zone = deprecate(\n        'moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/',\n        getSetZone\n    );\n    proto.isDSTShifted = deprecate(\n        'isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information',\n        isDaylightSavingTimeShifted\n    );\n\n    function createUnix(input) {\n        return createLocal(input * 1000);\n    }\n\n    function createInZone() {\n        return createLocal.apply(null, arguments).parseZone();\n    }\n\n    function preParsePostFormat(string) {\n        return string;\n    }\n\n    var proto$1 = Locale.prototype;\n\n    proto$1.calendar = calendar;\n    proto$1.longDateFormat = longDateFormat;\n    proto$1.invalidDate = invalidDate;\n    proto$1.ordinal = ordinal;\n    proto$1.preparse = preParsePostFormat;\n    proto$1.postformat = preParsePostFormat;\n    proto$1.relativeTime = relativeTime;\n    proto$1.pastFuture = pastFuture;\n    proto$1.set = set;\n    proto$1.eras = localeEras;\n    proto$1.erasParse = localeErasParse;\n    proto$1.erasConvertYear = localeErasConvertYear;\n    proto$1.erasAbbrRegex = erasAbbrRegex;\n    proto$1.erasNameRegex = erasNameRegex;\n    proto$1.erasNarrowRegex = erasNarrowRegex;\n\n    proto$1.months = localeMonths;\n    proto$1.monthsShort = localeMonthsShort;\n    proto$1.monthsParse = localeMonthsParse;\n    proto$1.monthsRegex = monthsRegex;\n    proto$1.monthsShortRegex = monthsShortRegex;\n    proto$1.week = localeWeek;\n    proto$1.firstDayOfYear = localeFirstDayOfYear;\n    proto$1.firstDayOfWeek = localeFirstDayOfWeek;\n\n    proto$1.weekdays = localeWeekdays;\n    proto$1.weekdaysMin = localeWeekdaysMin;\n    proto$1.weekdaysShort = localeWeekdaysShort;\n    proto$1.weekdaysParse = localeWeekdaysParse;\n\n    proto$1.weekdaysRegex = weekdaysRegex;\n    proto$1.weekdaysShortRegex = weekdaysShortRegex;\n    proto$1.weekdaysMinRegex = weekdaysMinRegex;\n\n    proto$1.isPM = localeIsPM;\n    proto$1.meridiem = localeMeridiem;\n\n    function get$1(format, index, field, setter) {\n        var locale = getLocale(),\n            utc = createUTC().set(setter, index);\n        return locale[field](utc, format);\n    }\n\n    function listMonthsImpl(format, index, field) {\n        if (isNumber(format)) {\n            index = format;\n            format = undefined;\n        }\n\n        format = format || '';\n\n        if (index != null) {\n            return get$1(format, index, field, 'month');\n        }\n\n        var i,\n            out = [];\n        for (i = 0; i < 12; i++) {\n            out[i] = get$1(format, i, field, 'month');\n        }\n        return out;\n    }\n\n    // ()\n    // (5)\n    // (fmt, 5)\n    // (fmt)\n    // (true)\n    // (true, 5)\n    // (true, fmt, 5)\n    // (true, fmt)\n    function listWeekdaysImpl(localeSorted, format, index, field) {\n        if (typeof localeSorted === 'boolean') {\n            if (isNumber(format)) {\n                index = format;\n                format = undefined;\n            }\n\n            format = format || '';\n        } else {\n            format = localeSorted;\n            index = format;\n            localeSorted = false;\n\n            if (isNumber(format)) {\n                index = format;\n                format = undefined;\n            }\n\n            format = format || '';\n        }\n\n        var locale = getLocale(),\n            shift = localeSorted ? locale._week.dow : 0,\n            i,\n            out = [];\n\n        if (index != null) {\n            return get$1(format, (index + shift) % 7, field, 'day');\n        }\n\n        for (i = 0; i < 7; i++) {\n            out[i] = get$1(format, (i + shift) % 7, field, 'day');\n        }\n        return out;\n    }\n\n    function listMonths(format, index) {\n        return listMonthsImpl(format, index, 'months');\n    }\n\n    function listMonthsShort(format, index) {\n        return listMonthsImpl(format, index, 'monthsShort');\n    }\n\n    function listWeekdays(localeSorted, format, index) {\n        return listWeekdaysImpl(localeSorted, format, index, 'weekdays');\n    }\n\n    function listWeekdaysShort(localeSorted, format, index) {\n        return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort');\n    }\n\n    function listWeekdaysMin(localeSorted, format, index) {\n        return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin');\n    }\n\n    getSetGlobalLocale('en', {\n        eras: [\n            {\n                since: '0001-01-01',\n                until: +Infinity,\n                offset: 1,\n                name: 'Anno Domini',\n                narrow: 'AD',\n                abbr: 'AD',\n            },\n            {\n                since: '0000-12-31',\n                until: -Infinity,\n                offset: 1,\n                name: 'Before Christ',\n                narrow: 'BC',\n                abbr: 'BC',\n            },\n        ],\n        dayOfMonthOrdinalParse: /\\d{1,2}(th|st|nd|rd)/,\n        ordinal: function (number) {\n            var b = number % 10,\n                output =\n                    toInt((number % 100) / 10) === 1\n                        ? 'th'\n                        : b === 1\n                        ? 'st'\n                        : b === 2\n                        ? 'nd'\n                        : b === 3\n                        ? 'rd'\n                        : 'th';\n            return number + output;\n        },\n    });\n\n    // Side effect imports\n\n    hooks.lang = deprecate(\n        'moment.lang is deprecated. Use moment.locale instead.',\n        getSetGlobalLocale\n    );\n    hooks.langData = deprecate(\n        'moment.langData is deprecated. Use moment.localeData instead.',\n        getLocale\n    );\n\n    var mathAbs = Math.abs;\n\n    function abs() {\n        var data = this._data;\n\n        this._milliseconds = mathAbs(this._milliseconds);\n        this._days = mathAbs(this._days);\n        this._months = mathAbs(this._months);\n\n        data.milliseconds = mathAbs(data.milliseconds);\n        data.seconds = mathAbs(data.seconds);\n        data.minutes = mathAbs(data.minutes);\n        data.hours = mathAbs(data.hours);\n        data.months = mathAbs(data.months);\n        data.years = mathAbs(data.years);\n\n        return this;\n    }\n\n    function addSubtract$1(duration, input, value, direction) {\n        var other = createDuration(input, value);\n\n        duration._milliseconds += direction * other._milliseconds;\n        duration._days += direction * other._days;\n        duration._months += direction * other._months;\n\n        return duration._bubble();\n    }\n\n    // supports only 2.0-style add(1, 's') or add(duration)\n    function add$1(input, value) {\n        return addSubtract$1(this, input, value, 1);\n    }\n\n    // supports only 2.0-style subtract(1, 's') or subtract(duration)\n    function subtract$1(input, value) {\n        return addSubtract$1(this, input, value, -1);\n    }\n\n    function absCeil(number) {\n        if (number < 0) {\n            return Math.floor(number);\n        } else {\n            return Math.ceil(number);\n        }\n    }\n\n    function bubble() {\n        var milliseconds = this._milliseconds,\n            days = this._days,\n            months = this._months,\n            data = this._data,\n            seconds,\n            minutes,\n            hours,\n            years,\n            monthsFromDays;\n\n        // if we have a mix of positive and negative values, bubble down first\n        // check: https://github.com/moment/moment/issues/2166\n        if (\n            !(\n                (milliseconds >= 0 && days >= 0 && months >= 0) ||\n                (milliseconds <= 0 && days <= 0 && months <= 0)\n            )\n        ) {\n            milliseconds += absCeil(monthsToDays(months) + days) * 864e5;\n            days = 0;\n            months = 0;\n        }\n\n        // The following code bubbles up values, see the tests for\n        // examples of what that means.\n        data.milliseconds = milliseconds % 1000;\n\n        seconds = absFloor(milliseconds / 1000);\n        data.seconds = seconds % 60;\n\n        minutes = absFloor(seconds / 60);\n        data.minutes = minutes % 60;\n\n        hours = absFloor(minutes / 60);\n        data.hours = hours % 24;\n\n        days += absFloor(hours / 24);\n\n        // convert days to months\n        monthsFromDays = absFloor(daysToMonths(days));\n        months += monthsFromDays;\n        days -= absCeil(monthsToDays(monthsFromDays));\n\n        // 12 months -> 1 year\n        years = absFloor(months / 12);\n        months %= 12;\n\n        data.days = days;\n        data.months = months;\n        data.years = years;\n\n        return this;\n    }\n\n    function daysToMonths(days) {\n        // 400 years have 146097 days (taking into account leap year rules)\n        // 400 years have 12 months === 4800\n        return (days * 4800) / 146097;\n    }\n\n    function monthsToDays(months) {\n        // the reverse of daysToMonths\n        return (months * 146097) / 4800;\n    }\n\n    function as(units) {\n        if (!this.isValid()) {\n            return NaN;\n        }\n        var days,\n            months,\n            milliseconds = this._milliseconds;\n\n        units = normalizeUnits(units);\n\n        if (units === 'month' || units === 'quarter' || units === 'year') {\n            days = this._days + milliseconds / 864e5;\n            months = this._months + daysToMonths(days);\n            switch (units) {\n                case 'month':\n                    return months;\n                case 'quarter':\n                    return months / 3;\n                case 'year':\n                    return months / 12;\n            }\n        } else {\n            // handle milliseconds separately because of floating point math errors (issue #1867)\n            days = this._days + Math.round(monthsToDays(this._months));\n            switch (units) {\n                case 'week':\n                    return days / 7 + milliseconds / 6048e5;\n                case 'day':\n                    return days + milliseconds / 864e5;\n                case 'hour':\n                    return days * 24 + milliseconds / 36e5;\n                case 'minute':\n                    return days * 1440 + milliseconds / 6e4;\n                case 'second':\n                    return days * 86400 + milliseconds / 1000;\n                // Math.floor prevents floating point math errors here\n                case 'millisecond':\n                    return Math.floor(days * 864e5) + milliseconds;\n                default:\n                    throw new Error('Unknown unit ' + units);\n            }\n        }\n    }\n\n    // TODO: Use this.as('ms')?\n    function valueOf$1() {\n        if (!this.isValid()) {\n            return NaN;\n        }\n        return (\n            this._milliseconds +\n            this._days * 864e5 +\n            (this._months % 12) * 2592e6 +\n            toInt(this._months / 12) * 31536e6\n        );\n    }\n\n    function makeAs(alias) {\n        return function () {\n            return this.as(alias);\n        };\n    }\n\n    var asMilliseconds = makeAs('ms'),\n        asSeconds = makeAs('s'),\n        asMinutes = makeAs('m'),\n        asHours = makeAs('h'),\n        asDays = makeAs('d'),\n        asWeeks = makeAs('w'),\n        asMonths = makeAs('M'),\n        asQuarters = makeAs('Q'),\n        asYears = makeAs('y');\n\n    function clone$1() {\n        return createDuration(this);\n    }\n\n    function get$2(units) {\n        units = normalizeUnits(units);\n        return this.isValid() ? this[units + 's']() : NaN;\n    }\n\n    function makeGetter(name) {\n        return function () {\n            return this.isValid() ? this._data[name] : NaN;\n        };\n    }\n\n    var milliseconds = makeGetter('milliseconds'),\n        seconds = makeGetter('seconds'),\n        minutes = makeGetter('minutes'),\n        hours = makeGetter('hours'),\n        days = makeGetter('days'),\n        months = makeGetter('months'),\n        years = makeGetter('years');\n\n    function weeks() {\n        return absFloor(this.days() / 7);\n    }\n\n    var round = Math.round,\n        thresholds = {\n            ss: 44, // a few seconds to seconds\n            s: 45, // seconds to minute\n            m: 45, // minutes to hour\n            h: 22, // hours to day\n            d: 26, // days to month/week\n            w: null, // weeks to month\n            M: 11, // months to year\n        };\n\n    // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize\n    function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {\n        return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture);\n    }\n\n    function relativeTime$1(posNegDuration, withoutSuffix, thresholds, locale) {\n        var duration = createDuration(posNegDuration).abs(),\n            seconds = round(duration.as('s')),\n            minutes = round(duration.as('m')),\n            hours = round(duration.as('h')),\n            days = round(duration.as('d')),\n            months = round(duration.as('M')),\n            weeks = round(duration.as('w')),\n            years = round(duration.as('y')),\n            a =\n                (seconds <= thresholds.ss && ['s', seconds]) ||\n                (seconds < thresholds.s && ['ss', seconds]) ||\n                (minutes <= 1 && ['m']) ||\n                (minutes < thresholds.m && ['mm', minutes]) ||\n                (hours <= 1 && ['h']) ||\n                (hours < thresholds.h && ['hh', hours]) ||\n                (days <= 1 && ['d']) ||\n                (days < thresholds.d && ['dd', days]);\n\n        if (thresholds.w != null) {\n            a =\n                a ||\n                (weeks <= 1 && ['w']) ||\n                (weeks < thresholds.w && ['ww', weeks]);\n        }\n        a = a ||\n            (months <= 1 && ['M']) ||\n            (months < thresholds.M && ['MM', months]) ||\n            (years <= 1 && ['y']) || ['yy', years];\n\n        a[2] = withoutSuffix;\n        a[3] = +posNegDuration > 0;\n        a[4] = locale;\n        return substituteTimeAgo.apply(null, a);\n    }\n\n    // This function allows you to set the rounding function for relative time strings\n    function getSetRelativeTimeRounding(roundingFunction) {\n        if (roundingFunction === undefined) {\n            return round;\n        }\n        if (typeof roundingFunction === 'function') {\n            round = roundingFunction;\n            return true;\n        }\n        return false;\n    }\n\n    // This function allows you to set a threshold for relative time strings\n    function getSetRelativeTimeThreshold(threshold, limit) {\n        if (thresholds[threshold] === undefined) {\n            return false;\n        }\n        if (limit === undefined) {\n            return thresholds[threshold];\n        }\n        thresholds[threshold] = limit;\n        if (threshold === 's') {\n            thresholds.ss = limit - 1;\n        }\n        return true;\n    }\n\n    function humanize(argWithSuffix, argThresholds) {\n        if (!this.isValid()) {\n            return this.localeData().invalidDate();\n        }\n\n        var withSuffix = false,\n            th = thresholds,\n            locale,\n            output;\n\n        if (typeof argWithSuffix === 'object') {\n            argThresholds = argWithSuffix;\n            argWithSuffix = false;\n        }\n        if (typeof argWithSuffix === 'boolean') {\n            withSuffix = argWithSuffix;\n        }\n        if (typeof argThresholds === 'object') {\n            th = Object.assign({}, thresholds, argThresholds);\n            if (argThresholds.s != null && argThresholds.ss == null) {\n                th.ss = argThresholds.s - 1;\n            }\n        }\n\n        locale = this.localeData();\n        output = relativeTime$1(this, !withSuffix, th, locale);\n\n        if (withSuffix) {\n            output = locale.pastFuture(+this, output);\n        }\n\n        return locale.postformat(output);\n    }\n\n    var abs$1 = Math.abs;\n\n    function sign(x) {\n        return (x > 0) - (x < 0) || +x;\n    }\n\n    function toISOString$1() {\n        // for ISO strings we do not use the normal bubbling rules:\n        //  * milliseconds bubble up until they become hours\n        //  * days do not bubble at all\n        //  * months bubble up until they become years\n        // This is because there is no context-free conversion between hours and days\n        // (think of clock changes)\n        // and also not between days and months (28-31 days per month)\n        if (!this.isValid()) {\n            return this.localeData().invalidDate();\n        }\n\n        var seconds = abs$1(this._milliseconds) / 1000,\n            days = abs$1(this._days),\n            months = abs$1(this._months),\n            minutes,\n            hours,\n            years,\n            s,\n            total = this.asSeconds(),\n            totalSign,\n            ymSign,\n            daysSign,\n            hmsSign;\n\n        if (!total) {\n            // this is the same as C#'s (Noda) and python (isodate)...\n            // but not other JS (goog.date)\n            return 'P0D';\n        }\n\n        // 3600 seconds -> 60 minutes -> 1 hour\n        minutes = absFloor(seconds / 60);\n        hours = absFloor(minutes / 60);\n        seconds %= 60;\n        minutes %= 60;\n\n        // 12 months -> 1 year\n        years = absFloor(months / 12);\n        months %= 12;\n\n        // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js\n        s = seconds ? seconds.toFixed(3).replace(/\\.?0+$/, '') : '';\n\n        totalSign = total < 0 ? '-' : '';\n        ymSign = sign(this._months) !== sign(total) ? '-' : '';\n        daysSign = sign(this._days) !== sign(total) ? '-' : '';\n        hmsSign = sign(this._milliseconds) !== sign(total) ? '-' : '';\n\n        return (\n            totalSign +\n            'P' +\n            (years ? ymSign + years + 'Y' : '') +\n            (months ? ymSign + months + 'M' : '') +\n            (days ? daysSign + days + 'D' : '') +\n            (hours || minutes || seconds ? 'T' : '') +\n            (hours ? hmsSign + hours + 'H' : '') +\n            (minutes ? hmsSign + minutes + 'M' : '') +\n            (seconds ? hmsSign + s + 'S' : '')\n        );\n    }\n\n    var proto$2 = Duration.prototype;\n\n    proto$2.isValid = isValid$1;\n    proto$2.abs = abs;\n    proto$2.add = add$1;\n    proto$2.subtract = subtract$1;\n    proto$2.as = as;\n    proto$2.asMilliseconds = asMilliseconds;\n    proto$2.asSeconds = asSeconds;\n    proto$2.asMinutes = asMinutes;\n    proto$2.asHours = asHours;\n    proto$2.asDays = asDays;\n    proto$2.asWeeks = asWeeks;\n    proto$2.asMonths = asMonths;\n    proto$2.asQuarters = asQuarters;\n    proto$2.asYears = asYears;\n    proto$2.valueOf = valueOf$1;\n    proto$2._bubble = bubble;\n    proto$2.clone = clone$1;\n    proto$2.get = get$2;\n    proto$2.milliseconds = milliseconds;\n    proto$2.seconds = seconds;\n    proto$2.minutes = minutes;\n    proto$2.hours = hours;\n    proto$2.days = days;\n    proto$2.weeks = weeks;\n    proto$2.months = months;\n    proto$2.years = years;\n    proto$2.humanize = humanize;\n    proto$2.toISOString = toISOString$1;\n    proto$2.toString = toISOString$1;\n    proto$2.toJSON = toISOString$1;\n    proto$2.locale = locale;\n    proto$2.localeData = localeData;\n\n    proto$2.toIsoString = deprecate(\n        'toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)',\n        toISOString$1\n    );\n    proto$2.lang = lang;\n\n    // FORMATTING\n\n    addFormatToken('X', 0, 0, 'unix');\n    addFormatToken('x', 0, 0, 'valueOf');\n\n    // PARSING\n\n    addRegexToken('x', matchSigned);\n    addRegexToken('X', matchTimestamp);\n    addParseToken('X', function (input, array, config) {\n        config._d = new Date(parseFloat(input) * 1000);\n    });\n    addParseToken('x', function (input, array, config) {\n        config._d = new Date(toInt(input));\n    });\n\n    //! moment.js\n\n    hooks.version = '2.29.4';\n\n    setHookCallback(createLocal);\n\n    hooks.fn = proto;\n    hooks.min = min;\n    hooks.max = max;\n    hooks.now = now;\n    hooks.utc = createUTC;\n    hooks.unix = createUnix;\n    hooks.months = listMonths;\n    hooks.isDate = isDate;\n    hooks.locale = getSetGlobalLocale;\n    hooks.invalid = createInvalid;\n    hooks.duration = createDuration;\n    hooks.isMoment = isMoment;\n    hooks.weekdays = listWeekdays;\n    hooks.parseZone = createInZone;\n    hooks.localeData = getLocale;\n    hooks.isDuration = isDuration;\n    hooks.monthsShort = listMonthsShort;\n    hooks.weekdaysMin = listWeekdaysMin;\n    hooks.defineLocale = defineLocale;\n    hooks.updateLocale = updateLocale;\n    hooks.locales = listLocales;\n    hooks.weekdaysShort = listWeekdaysShort;\n    hooks.normalizeUnits = normalizeUnits;\n    hooks.relativeTimeRounding = getSetRelativeTimeRounding;\n    hooks.relativeTimeThreshold = getSetRelativeTimeThreshold;\n    hooks.calendarFormat = getCalendarFormat;\n    hooks.prototype = proto;\n\n    // currently HTML5 input type only supports 24-hour formats\n    hooks.HTML5_FMT = {\n        DATETIME_LOCAL: 'YYYY-MM-DDTHH:mm', // <input type=\"datetime-local\" />\n        DATETIME_LOCAL_SECONDS: 'YYYY-MM-DDTHH:mm:ss', // <input type=\"datetime-local\" step=\"1\" />\n        DATETIME_LOCAL_MS: 'YYYY-MM-DDTHH:mm:ss.SSS', // <input type=\"datetime-local\" step=\"0.001\" />\n        DATE: 'YYYY-MM-DD', // <input type=\"date\" />\n        TIME: 'HH:mm', // <input type=\"time\" />\n        TIME_SECONDS: 'HH:mm:ss', // <input type=\"time\" step=\"1\" />\n        TIME_MS: 'HH:mm:ss.SSS', // <input type=\"time\" step=\"0.001\" />\n        WEEK: 'GGGG-[W]WW', // <input type=\"week\" />\n        MONTH: 'YYYY-MM', // <input type=\"month\" />\n    };\n\n    return hooks;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/moment.js\n// module id = 2\n// module chunks = 0","\"use strict\";\nfunction __export(m) {\n    for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\n}\n__export(require('./components/modal'));\n__export(require('./components/modal-header'));\n__export(require('./components/modal-body'));\n__export(require('./components/modal-footer'));\n__export(require('./components/modal-instance'));\nvar ng2_bs4_modal_module_1 = require('./module/ng2-bs4-modal.module');\nexports.ModalModule = ng2_bs4_modal_module_1.ModalModule;\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmcyLWJzNC1tb2RhbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInNyYy9uZzItYnM0LW1vZGFsL25nMi1iczQtbW9kYWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLGlCQUFjLG9CQUFvQixDQUFDLEVBQUE7QUFDbkMsaUJBQWMsMkJBQTJCLENBQUMsRUFBQTtBQUMxQyxpQkFBYyx5QkFBeUIsQ0FBQyxFQUFBO0FBQ3hDLGlCQUFjLDJCQUEyQixDQUFDLEVBQUE7QUFDMUMsaUJBQWMsNkJBQTZCLENBQUMsRUFBQTtBQUU1QyxxQ0FBMEIsK0JBQStCLENBQUM7QUFBbEQseURBQWtEIn0=\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ng2-bs4-modal/ng2-bs4-modal.js\n// module id = 9\n// module chunks = 0","import { Injectable }     from '@angular/core';\nimport { Http, Headers } from '@angular/http';\nimport { URLSearchParams } from '@angular/http';\nimport 'rxjs/add/operator/toPromise';\nimport { ModalComponent } from 'ng2-bs4-modal/ng2-bs4-modal';\nimport { LocalStorageService } from 'ng2-webstorage';\nimport { ErrorsService } from '../services/errors';\nimport { tokenNotExpired } from 'angular2-jwt';\nimport * as Rx from 'rxjs/Rx';\n\n@Injectable()\n\nexport class HttpService {\n\n\tloginModal: ModalComponent;\n\tapiUrl : string = \"https://kddwgfvxcb.execute-api.eu-west-1.amazonaws.com/prod\";\n\tnewApiUrl : string = \"https://f5cpldyrj0.execute-api.eu-north-1.amazonaws.com/prod\";\n\tpyApiUrl : string = \"https://hsdpy.hemsidadirekt.se\";\n\t//pyApiUrl : string = \"http://localhost:8000\";\n\t//apiUrl : string = \"https://l187bladf5.execute-api.eu-west-1.amazonaws.com/dev\";\n\tinvoiceApiUrl : string = \"https://ra6d8rl8y4.execute-api.eu-north-1.amazonaws.com/prod\";\n\t//invoiceApiUrl : string = \"https://ra6d8rl8y4.execute-api.eu-north-1.amazonaws.com/dev\";\n\n\tloginSuccessResolve : Function;\n\tloginModalOpened : boolean;\n\tloginSubject : any;\n  loginEvents : any;\n\n  constructor(private http: Http,\n\t\t\t\t\t\t\tprivate localStorage: LocalStorageService,\n\t\t\t\t\t\t\tprivate errorsService: ErrorsService\n\t\t)\n\t\t{\n\t\tthis.loginSubject = new Rx.Subject();\n\t\tthis.loginEvents = Rx.Observable.from(this.loginSubject);\n  }\n\n\tgetHeaders() : Headers {\n\t  var headers = new Headers();\n\t\theaders.append('Authorization', this.getAuthToken());\n\t\treturn headers;\n\t}\n\n\tgetPyHeaders() : Headers {\n\t  var headers = new Headers();\n\t\theaders.append('Authorization', \"Bearer \"+this.getAuthToken());\n\t\treturn headers;\n\t}\n  \n  setLoginModal(modal: ModalComponent) {\n\t  this.loginModal = modal;\n  }\n  \n  isLoggedIn() : boolean {\n\t  var token = this.getAuthToken();\n\t\treturn token != '' && token != null && tokenNotExpired(null, token);\n  }\n  \n  performLogin(username, password): Promise<any> {\n\t  return this.postNoAuth(\"/auth\", { authorize : { username : username, password : password } }).then((response) => {\n\t\t  var r = response.json();\n\t\t\tconsole.log(r);\n\t\t  if(r.success) {\n\t\t  \tthis.setAuthToken(r.token);\n\t\t  \tthis.setUser(r.user);\n\t\t\t\tthis.loginSubject.next(r);\n\t\t\t\treturn Promise.resolve(r);\n\t\t  } else {\n\t\t\t\tconsole.log('login failed');\n\t\t\t\treturn Promise.resolve(r);\n\t\t\t}\n\t  });\n  }\n  \n  getAllUsers() : Promise<any> {\n\t  return this.post(\"/user\", { Search : { \n\t  \tFilter : { all : true } } \n\t\t}).then((response) => {\n\t\t  return Promise.resolve(response.json());\n\t  });\n\t }\n  \n  login() : Promise<any> {\n\t\treturn new Promise((resolve) => {\n\t\t\tif(!this.loginModal) {\n\t\t\t\tconsole.error('LoginModal is not set');\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif(!this.loginModalOpened) {\n\t\t\t\tthis.loginModalOpened = true;\n\t\t  \tthis.loginModal.open().then(() => {\n\t\t\t\t\tconsole.log('showing login modal');\n\t\t\t\t})\n\t\t\t} else {\n\t\t\t\tconsole.log('not showing login modal, its open');\n\t\t\t}\n\t\t\tthis.loginEvents.subscribe((loginResult) => {\n\t\t\t\tconsole.log('logged in');\n\t\t\t\tconsole.log(loginResult);\n\t\t\t\tlocalStorage.setItem('owe-reminders', '[]');\n\t\t\t\tresolve();\n\t\t\t});\n\t\t})\n  }\n  \n  logout() {\n\t  this.localStorage.store('jwt', '');\n  }\n  \n  getAuthToken() {\n\t  var jwt = this.localStorage.retrieve('jwt');\n\t  return(jwt);\n  }\n  \n  getUser() {\n\t  var user = this.localStorage.retrieve('user');\n\t\tif(!user) {\n\t\t\treturn {};\n\t\t}\n\t  return(user);\n  }\n\n\tgetUserId() : number {\n\t  var user = this.localStorage.retrieve('user');\n\t\tif(!user) {\n\t\t\treturn 0;\n\t\t}\n\t  return(user.userId);\n  }\n  \n  setUser(user) {\n\t  this.localStorage.store('user', user);\n  }\n  \n  setAuthToken(token) {\n\t  this.localStorage.store('jwt', token);\n  }\n\n\tverifyJWT() {\n\t\tvar jwt = this.localStorage.retrieve('jwt');\n\t\tif(!jwt) {\n\t\t\treturn new Promise((resolve) => {\n\t\t\t\tresolve(false);\n\t\t\t})\n\t\t}\n\t\treturn this.postNoAuth(\"/auth\", { verify : { jwt : jwt } }).then((response) => {\n\t\t  var r = response.json();\n\t\t\treturn r.verified;\n\t\t});\n\t}\n\n  postNoAuth(_f, data) : Promise<any> {\n\t\tvar url = this.apiUrl + _f;\n\t  return this.http.post(url, data, { headers : this.getHeaders() }).toPromise();\t  \n\t}\n\t\n\tauthorize() : Promise<any> {\n\t\treturn new Promise((resolve) => {\n\t\t\tif(!tokenNotExpired(null, this.getAuthToken())) {\n\t\t\t\tconsole.log('not logged in, need to auth');\n\t\t\t\tthis.login().then(() => {\n\t\t\t\t\tresolve(null);\n\t\t\t\t})\n\t\t\t} else {\n\t\t\t\tresolve(null);\n\t\t\t}\n\t\t});\n\t}\n\n\tpost_invoice_api(uri, data) : Promise<any> {\n\t\tvar url = this.invoiceApiUrl + uri;\n\t\tvar p = new Promise((resolve, cancel) => {\n\t\t\tthis.authorize().then(() => {\n\t\t\t\tthis.http.post(url, data, { headers : this.getHeaders() }).\t\t\t\n\t\t\t\t\tsubscribe((data) => {\n\t\t\t\t\t\tresolve(data);\n\t\t\t\t\t},\n\t\t\t\t\t(err) => {\n\t\t\t\t\t\tconsole.log('err', err);\n\t\t\t\t\t\tif(err._body)\n\t\t\t\t\t\t\terr = JSON.parse(err._body)\n\t\t\t\t\t\tthis.handleError(err);\n\t\t\t\t\t\tcancel(err.errorMessage || { errorMessage : 'could not complete API-call' });\n\t\t\t\t\t});\n\t\t\t});\n\t\t});\n\t\treturn(p);\n\t}\n\n\tget_invoice_api(uri) : Promise<any> {\n\t\tvar url = this.invoiceApiUrl + uri;\n\t\tvar p = new Promise((resolve, cancel) => {\n\t\t\tthis.authorize().then(() => {\n\t\t\t\tthis.http.get(url, { headers : this.getHeaders() }).\t\t\t\n\t\t\t\t\tsubscribe((data) => {\n\t\t\t\t\t\tresolve(data);\n\t\t\t\t\t},\n\t\t\t\t\t(err) => {\n\t\t\t\t\t\tconsole.log('err', err);\n\t\t\t\t\t\tif(err._body)\n\t\t\t\t\t\t\terr = JSON.parse(err._body)\n\t\t\t\t\t\tthis.handleError(err);\n\t\t\t\t\t\tcancel(err.errorMessage || { errorMessage : 'could not complete API-call' });\n\t\t\t\t\t});\n\t\t\t});\n\t\t});\n\t\treturn(p);\n\t}\n\t\n\tput_invoice_api(uri) : Promise<any> {\n\t\tvar url = this.invoiceApiUrl + uri;\n\t\tvar p = new Promise((resolve, cancel) => {\n\t\t\tthis.authorize().then(() => {\n\t\t\t\tthis.http.put(url, { headers : this.getHeaders() }).\t\t\t\n\t\t\t\t\tsubscribe((data) => {\n\t\t\t\t\t\tresolve(data);\n\t\t\t\t\t},\n\t\t\t\t\t(err) => {\n\t\t\t\t\t\tconsole.log('err', err);\n\t\t\t\t\t\tif(err._body)\n\t\t\t\t\t\t\terr = JSON.parse(err._body)\n\t\t\t\t\t\tthis.handleError(err);\n\t\t\t\t\t\tcancel(err.errorMessage || { errorMessage : 'could not complete API-call' });\n\t\t\t\t\t});\n\t\t\t});\n\t\t});\n\t\treturn(p);\n\t}\n\n  postPyApi(_f, data) : Promise<any> {\n\t  var url = this.pyApiUrl + _f;\n\t\tconsole.log(\"POST to \"+url);\n\t\tvar p = new Promise((resolve, cancel) => {\n\t\t\tthis.authorize().then(() => {\n\t\t\t\tthis.http.post(url, data, { headers : this.getPyHeaders() }).\t\t\t\n\t\t\t\t\tsubscribe((data) => {\n\t\t\t\t\t\tresolve(data);\n\t\t\t\t\t},\n\t\t\t\t\t(err) => {\n\t\t\t\t\t\tlet errorInfo = err;\n\t\t\t\t\t\tif(typeof(err) === 'object' && err._body) {\n\t\t\t\t\t\t\tlet body = JSON.parse(err._body);\n\t\t\t\t\t\t\tif(err.status === 422) errorInfo = JSON.stringify(body.detail);\n\t\t\t\t\t\t\telse if(err.status === 400) errorInfo = body.detail;\n\t\t\t\t\t\t\telse if(err.status === 500) errorInfo = body.detail;\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tconsole.log(\"Don't know how to parse error\", err);\n\t\t\t\t\t\t\t\terrorInfo = JSON.stringify(err);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcancel({ errorMessage: errorInfo });\n\t\t\t\t\t});\n\t\t\t});\n\t\t});\n\t\treturn(p);\n\t}\n\n  putPyApi(_f, data={}) : Promise<any> {\n\t  var url = this.pyApiUrl + _f;\n\t\tconsole.log(\"PUT to \"+url);\n\t\tvar p = new Promise((resolve, cancel) => {\n\t\t\tthis.authorize().then(() => {\n\t\t\t\tthis.http.put(url, data, { headers : this.getPyHeaders() }).\t\t\t\n\t\t\t\t\tsubscribe((data) => {\n\t\t\t\t\t\tresolve(data);\n\t\t\t\t\t},\n\t\t\t\t\t(err) => {\n\t\t\t\t\t\tlet errorInfo = err;\n\t\t\t\t\t\tif(typeof(err) === 'object' && err._body) {\n\t\t\t\t\t\t\tlet body = JSON.parse(err._body);\n\t\t\t\t\t\t\tif(err.status === 422) errorInfo = JSON.stringify(body.detail);\n\t\t\t\t\t\t\telse if(err.status === 400) errorInfo = body.detail;\n\t\t\t\t\t\t\telse if(err.status === 500) errorInfo = body.detail;\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tconsole.log(\"Don't know how to parse error\", err);\n\t\t\t\t\t\t\t\terrorInfo = JSON.stringify(err);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcancel({ errorMessage: errorInfo });\n\t\t\t\t\t});\n\t\t\t});\n\t\t});\n\t\treturn(p);\n\t}\n\n  postNew(_f, data) : Promise<any> {\n\t  var url = this.newApiUrl + _f;\n\t\tvar p = new Promise((resolve, cancel) => {\n\t\t\tthis.authorize().then(() => {\n\t\t\t\tthis.http.post(url, data, { headers : this.getHeaders() }).\t\t\t\n\t\t\t\t\tsubscribe((data) => {\n\t\t\t\t\t\tresolve(data);\n\t\t\t\t\t},\n\t\t\t\t\t(err) => {\n\t\t\t\t\t\tconsole.log('err', err);\n\t\t\t\t\t\tthis.handleError(err);\n\t\t\t\t\t\tcancel(err.errorMessage || { errorMessage : 'could not complete API-call' });\n\t\t\t\t\t});\n\t\t\t});\n\t\t});\n\t\treturn(p);\n\t}\n\n  post(_f, data) : Promise<any> {\n\t  var url = this.apiUrl + _f;\n\t\tvar p = new Promise((resolve, cancel) => {\n\t\t\tthis.authorize().then(() => {\n\t\t\t\tthis.http.post(url, data, { headers : this.getHeaders() }).\t\t\t\n\t\t\t\t\tsubscribe((data) => {\n\t\t\t\t\t\tresolve(data);\n\t\t\t\t\t},\n\t\t\t\t\t(err) => {\n\t\t\t\t\t\tconsole.log('err', err);\n\t\t\t\t\t\tthis.handleError(err);\n\t\t\t\t\t\tcancel(err.errorMessage || { errorMessage : 'could not complete API-call' });\n\t\t\t\t\t});\n\t\t\t});\n\t\t});\n\t\treturn(p);\n\t}\n\n\tput(url, data, headers) : Promise<any> {\n\t\tvar p = new Promise((resolve, cancel) => {\n\t\t\tthis.authorize().then(() => {\n\t\t\t\tlet _headers = new Headers();\n\t\t\t\tfor(const h in headers) {\n\t\t\t\t\t_headers.append(h, headers[h]);\n\t\t\t\t}\n\t\t\t\tthis.http.put(url, data, { headers: _headers }).\t\t\t\n\t\t\t\t\tsubscribe((data) => {\n\t\t\t\t\t\tresolve(data);\n\t\t\t\t\t},\n\t\t\t\t\t(err) => {\n\t\t\t\t\t\tconsole.log('err', err);\n\t\t\t\t\t\tthis.handleError(err);\n\t\t\t\t\t\tcancel(err.errorMessage || { errorMessage : 'could not complete API-call' });\n\t\t\t\t\t});\n\t\t\t});\n\t\t});\n\t\treturn(p);\n\t}\n\t\n\tget(_f) : Promise<any> {\n\t  var url = this.apiUrl + _f;\n\t\tvar p = new Promise((resolve, cancel) => {\n\t\t\tthis.authorize().then(() => {\n\t\t\t\tthis.http.get(url, { headers : this.getHeaders() }).\t\t\t\n\t\t\t\t\tsubscribe((data) => {\n\t\t\t\t\t\tresolve(data);\n\t\t\t\t\t},\n\t\t\t\t\t(err) => {\n\t\t\t\t\t\tthis.handleError(err);\n\t\t\t\t\t});\n\t\t\t});\n\t\t});\n\t\treturn(p);\n\t}\n\n\tgetNew(_f, params={}) : Promise<any> {\n\t  var url = this.newApiUrl + _f;\n\t\tlet queryParams = new URLSearchParams();\n\t\tObject.keys(params).forEach(k => queryParams.append(k, params[k]));\n\t\tvar p = new Promise((resolve, cancel) => {\n\n\t\t\tthis.authorize().then(() => {\n\t\t\t\tthis.http.get(url, { search: queryParams, headers : this.getHeaders() }).\t\t\t\n\t\t\t\t\tsubscribe((data) => {\n\t\t\t\t\t\tresolve(data);\n\t\t\t\t\t},\n\t\t\t\t\t(err) => {\n\t\t\t\t\t\tthis.handleError(err);\n\t\t\t\t\t});\n\t\t\t});\n\t\t});\n\t\treturn(p);\n\t}\n\n\tgetPyApi(_f, params={}) : Promise<any> {\n\t  var url = this.pyApiUrl + _f;\n\t\tlet queryParams = new URLSearchParams();\n\t\tObject.keys(params).forEach(k => queryParams.append(k, params[k]));\n\t\tvar p = new Promise((resolve, cancel) => {\n\n\t\t\tthis.authorize().then(() => {\n\t\t\t\tthis.http.get(url, { search: queryParams, headers : this.getPyHeaders() }).\t\t\t\n\t\t\t\t\tsubscribe((data) => {\n\t\t\t\t\t\tresolve(data);\n\t\t\t\t\t},\n\t\t\t\t\t(err) => {\n\t\t\t\t\t\tthis.handleError({ error: err});\n\t\t\t\t\t});\n\t\t\t});\n\t\t});\n\t\treturn(p);\n\t}\n\n\tgetURL(url) : Promise<any> {\n\t\tvar p = new Promise((resolve, cancel) => {\n\t\t\tthis.http.get(url).\t\t\t\n\t\t\t\tsubscribe((data) => {\n\t\t\t\t\tresolve(data);\n\t\t\t\t},\n\t\t\t\t(err) => {\n\t\t\t\t\tconsole.log(err);\n\t\t\t\t});\n\t\t});\n\t\treturn(p);\n\t}\n\n\tprivate handleError(error : any): void {\n\t\tthis.errorsService.broadcast('error', error);\n\t}\n\n}\n\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/services/http.ts","import { Injectable }     from '@angular/core';\nimport { Observable } from 'rxjs';\n\nimport { HttpService } from './http';\n\nimport { Company, CompanyList, OrderList, SubscriptionList, InvoiceList } from '../models/company';\n\n@Injectable()\n\nexport class CompanyService {\n\t\n  constructor(private httpService: HttpService) {}\n\n\tupdateInvoiceAddressAtSvea(companyId, address) {\n\t\treturn this.httpService.post_invoice_api(`/update-address/`, { companyId, address })\n\t\t.then(function(response)\n\t\t{\n\t\t\treturn(response.json())\n\t\t});\n\t}\n\n\tupdateCompanyInvoiceEmail(companyId, email) {\n\t\treturn this.httpService.post('/companies', { UpdateEfaktura : { companyId, email } })\n\t\t.then(function(response)\n\t\t{\n\t\t\tif(response.json().errorMessage)\n\t\t\t\treturn Promise.reject(response.json());\n\t\t\telse\n\t\t\t\treturn Promise.resolve(response.json());\n\t\t});\n\t}\n\n\tupdateInvoicePaymentState(invoiceId) {\n\t\treturn this.httpService.post_invoice_api(`/refresh/${invoiceId}`, { dataToUpdate : 'paymentStatus' })\n\t\t.then(function(response)\n\t\t{\n\t\t\treturn(response.json())\n\t\t});\n\t}\n\n\tcreateSystemInvoice(invoiceId, systemId) : Promise<any> {\n\t\treturn this.httpService.post_invoice_api('/create', { invoiceId, systemId })\n\t\t.then(function(response)\n\t\t{\n\t\t\treturn(response.json())\n\t\t});\n\t}\n\n\tupdateSystemInvoiceEmail(companyId, email) : Promise<any> {\n\t\treturn this.httpService.post_invoice_api('/update-email', { companyId, email })\n\t\t.then(function(response)\n\t\t{\n\t\t\treturn(response.json())\n\t\t});\n\t}\n\n\trollbackInvoice(invoiceId) : Promise<any> {\n\t\treturn this.httpService.post_invoice_api('/rollback', { invoiceId })\n\t\t.then(function(response)\n\t\t{\n\t\t\treturn(response.json())\n\t\t});\n\t}\n\n\tsendInvoice(invoiceId) : Promise<any> {\n\t\treturn this.httpService.post_invoice_api('/send', { invoiceId })\n\t\t.then(function(response)\n\t\t{\n\t\t\treturn(response.json())\n\t\t});\n\t}\n\n\tgetInvoicePdf(invoiceId) : Promise<any> {\n\t\treturn this.httpService.get_invoice_api(`/pdf/${invoiceId}`)\n\t\t.then(function(response)\n\t\t{\n\t\t\treturn(response.json())\n\t\t});\n\t}\n\n\tgetInvoiceData(invoiceId) : Promise<any> {\n\t\treturn this.httpService.get_invoice_api(`/${invoiceId}`)\n\t\t.then(function(response)\n\t\t{\n\t\t\treturn(response.json())\n\t\t});\n\t}\n\n\tmarkInvoiceAsSent(invoiceId) : Promise<any> {\n\t\treturn this.httpService.put_invoice_api(`/mark/${invoiceId}/sent`)\n\t\t.then(function(response)\n\t\t{\n\t\t\treturn(response.json())\n\t\t});\n\t}\n\n\tgetProspects(userId : number, filter : any) : Promise<[any]> {\n\t\treturn this.httpService.post('/companies', { GetProspects : { userId, filter } })\n\t\t\t.then(function(response)\n\t\t\t{\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n        \treturn Promise.resolve(response.json() as any);\n\t\t\t});\n\t}\n\n\tgetProspectLog(prospectId) : Promise<[any]> {\n\t\treturn this.httpService.post('/companies', { GetProspectLog : { prospectId } })\n\t\t.then(function(response)\n\t\t{\n\t\t\tif(response.json().errorMessage)\n\t\t\t\treturn Promise.reject(response.json());\n\t\t\telse\n\t\t\t\treturn Promise.resolve(response.json() as any);\n\t\t});\n\t}\n\n\tgetProspectById(prospectId): Promise<Company> {\n\t\treturn this.httpService.post('/companies', { GetProspectById : { prospectId } })\n\t\t\t.then(function(response)\n\t\t\t{\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n        \treturn Promise.resolve(response.json() as Company);\n\t\t\t});\n  }\n\n\tupdateProspect(prospectId, data): Promise<Company> {\n\t\treturn this.httpService.post('/companies', { UpdateProspect : { prospectId, ...data } })\n\t\t\t.then(function(response)\n\t\t\t{\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n        \treturn Promise.resolve(response.json() as Company);\n\t\t\t});\n  }\n\n\tgetOrders(filter, start, length) : Promise<OrderList> {\n\t\treturn this.httpService.post('/companies', { GetOrders : { Filter : filter, Start : start, Size : length } })\n\t\t\t.then(function(response)\n\t\t\t{\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n        \treturn Promise.resolve(response.json() as OrderList);\n\t\t\t});\n\t}\n\n\tgetInvoiceById(invoiceId) : Promise<any> {\n\t\treturn this.httpService.post('/companies', { GetInvoiceById : { invoiceId } })\n\t\t\t.then(function(response)\n\t\t\t{\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n        \treturn Promise.resolve(response.json() as InvoiceList);\n\t\t\t});\n\t}\n\n\tgetInvoices(filter, start, length) : Promise<InvoiceList> {\n\t\treturn this.httpService.post('/companies', { GetInvoices : { Filter : filter, Start : start, Size : length } })\n\t\t\t.then(function(response)\n\t\t\t{\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n        \treturn Promise.resolve(response.json() as InvoiceList);\n\t\t\t});\n\t}\n\t\t\t\n\tgetExpiredSubscriptions(filter, start, length) : Promise<SubscriptionList> {\n\t\treturn this.httpService.post('/companies', { GetExpiredSubscriptions : { Filter : filter, Start : start, Size : length } })\n\t\t\t.then(function(response)\n\t\t\t{\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n        \treturn Promise.resolve(response.json());\n\t\t\t});\n\t}\n\n\trenewSubscription(subscriptionId) : Promise<any> {\n\t\treturn this.httpService.post('/companies', { RenewSubscription : { subscriptionId } })\n\t\t.then(function(response)\n\t\t{\n\t\t\tif(response.json().errorMessage)\n\t\t\t\treturn Promise.reject(response.json());\n\t\t\telse\n\t\t\t\treturn Promise.resolve(response.json());\n\t\t});\n\t}\n\n\tgetSubscriptions(companyId) : Promise<any[]> {\n\t\treturn this.httpService.post('/companies', { GetSubscriptions : { companyId : companyId } })\n\t\t\t.then(function(response)\n\t\t\t{\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n        \treturn Promise.resolve(response.json());\n\t\t\t});\n\t}\n\n\tcreditInvoice(invoiceId, products) : Promise<any> {\n\t\treturn this.httpService.post('/companies', { CreditInvoice : { invoiceId, products } })\n\t\t\t.then(function(response)\n\t\t\t{\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n        \treturn Promise.resolve(response.json());\n\t\t\t});\n\t}\n\n\tcreateInvoice(orderId : number, subscriptionId : number, invoiceDate : number, expireTime : number) : Promise<any> {\n\t\treturn this.httpService.post('/companies', { CreateInvoice : { orderId, subscriptionId, invoiceDate, expireTime } })\n\t\t\t.then(function(response)\n\t\t\t{\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n        \treturn Promise.resolve(response.json());\n\t\t\t});\n\t}\n\n\tcreateOrder(orderObject) : Promise<any> {\n\t\treturn this.httpService.post('/companies', { CreateOrder : { order : orderObject } })\n\t\t\t.then(function(response)\n\t\t\t{\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n        \treturn Promise.resolve(response.json());\n\t\t\t});\n\t}\n\n\tcancelOrder(orderId, orderNr, companyId) : Promise<any> {\n\t\treturn this.httpService.post('/companies', { CancelOrder : { orderId, orderNr, companyId } })\n\t\t\t.then(function(response)\n\t\t\t{\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n        \treturn Promise.resolve(response.json());\n\t\t\t});\n\t}\n\n\tupdateInvoiceDate(companyId, invoiceId, invoiceNr, invoiceDate) : Promise<any> {\n\t\treturn this.httpService.post('/companies', { UpdateInvoiceDate : { companyId, invoiceId, invoiceNr, invoiceDate } })\n\t\t\t.then(function(response)\n\t\t\t{\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n        \treturn Promise.resolve(response.json());\n\t\t\t});\n\t}\n\n\tcancelInvoice(invoiceId, invoiceNr, companyId) : Promise<any> {\n\t\treturn this.httpService.post('/companies', { CancelInvoice : { invoiceId, invoiceNr, companyId } })\n\t\t\t.then(function(response)\n\t\t\t{\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n        \treturn Promise.resolve(response.json());\n\t\t\t});\n\t}\n\n\tconfirmOrder(orderId, orderNr, companyId) : Promise<any> {\n\t\treturn this.httpService.post('/companies', { ConfirmOrder : { orderId : orderId, orderNr : orderNr, companyId : companyId } })\n\t\t\t.then(function(response)\n\t\t\t{\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n        \treturn Promise.resolve(response.json());\n\t\t\t});\n\t}\n\n\tgetAvailableProducts() : Promise<any> {\n\t\treturn this.httpService.post('/companies', { GetProducts : {  } })\n\t\t\t.then(function(response)\n\t\t\t{\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n        \treturn Promise.resolve(response.json());\n\t\t\t});\n\t}\n\n\tsaveCompanyDetails(companyInfo) : Promise<any> {\n\t\treturn this.httpService.post('/companies', { SaveCompanyInfo : { companyInfo : companyInfo } })\n\t\t\t.then(function(response)\n\t\t\t{\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n        \treturn Promise.resolve(response.json());\n\t\t\t});\n\t}\n\n\tsavePhone(phoneInfo) : Promise<any> {\n\t\treturn this.httpService.post('/companies', { SavePhone : { phoneInfo : phoneInfo } })\n\t\t\t.then(function(response)\n\t\t\t{\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n        \treturn Promise.resolve(response.json());\n\t\t\t});\n\t}\n\n\tdeletePhone(phoneInfo) : Promise<any> {\n\t\treturn this.httpService.post('/companies', { DeletePhone : { phoneInfo : phoneInfo } })\n\t\t\t.then(function(response)\n\t\t\t{\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n        \treturn Promise.resolve(response.json());\n\t\t\t});\n\t}\n\n\tsaveAddres(addressInfo) : Promise<any> {\n\t\treturn this.httpService.post('/companies', { SaveAddress : { addressInfo : addressInfo } })\n\t\t\t.then(function(response)\n\t\t\t{\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n        \treturn Promise.resolve(response.json());\n\t\t\t});\n\t}\n\n\tdeleteAddress(addressInfo) : Promise<any> {\n\t\treturn this.httpService.post('/companies', { DeleteAddress : { addressInfo : addressInfo } })\n\t\t\t.then(function(response)\n\t\t\t{\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n        \treturn Promise.resolve(response.json());\n\t\t\t});\n\t}\n\n\tgetTelnrTypes() : Promise<any> {\n\t\treturn this.httpService.post('/companies', { GetTelnrTypes : { } })\n\t\t\t.then(function(response)\n\t\t\t{\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n        \treturn Promise.resolve(response.json());\n\t\t\t});\n\t}\n\n\tgetCountries() : Promise<any> {\n\t\treturn this.httpService.post('/companies', { GetCountryList : { } })\n\t\t\t.then(function(response)\n\t\t\t{\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n        \treturn Promise.resolve(response.json());\n\t\t\t});\n\t}\n\n\tgetAddressTypes() : Promise<any> {\n\t\treturn this.httpService.post('/companies', { GetAdressTypes : { } })\n\t\t\t.then(function(response)\n\t\t\t{\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n        \treturn Promise.resolve(response.json());\n\t\t\t});\n\t}\n\n\n\tgetMarkets() : Promise<any> {\n\t\treturn this.httpService.post('/companies', { GetMarketList : { } })\n\t\t\t.then(function(response)\n\t\t\t{\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n        \treturn Promise.resolve(response.json());\n\t\t\t});\n\t}\n\n\tgetStatuses() : Promise<any> {\n\t\treturn this.httpService.post('/companies', { GetStatusList : { } })\n\t\t\t.then(function(response)\n\t\t\t{\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n        \treturn Promise.resolve(response.json());\n\t\t\t});\n\t}\n\n\tgetSupportHistory(companyId, startDate = 0, endDate = 0) : Promise<any> {\n\t\treturn this.httpService.post('/companies', { Support : { companyId : companyId, startDate, endDate } })\n\t\t\t.then(function(response)\n\t\t\t{\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n        \treturn Promise.resolve(response.json());\n\t\t\t}).catch((e) => {\n\t  \t  return Promise.resolve([]);\n\t\t});\n\t}\n\n\tgetCompanies(filter, start, size): Promise<CompanyList> {\n\t\treturn this.httpService.postNew('/companies/search', { Search : { Filter : filter, Start : start || 0, Size : size || 10 } })\n\t\t\t.then(function(response)\n\t\t\t{\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n        \treturn Promise.resolve(response.json() as CompanyList);\n\t\t\t}).catch((e) => {\n\t  \t  return Promise.resolve([]);\n\t\t\t}) as Promise<CompanyList>;\n  }\n\n  getById(id, params = null): Promise<Company> {\n\t\tlet promise;\n\t\tif(params)  promise = this.httpService.getNew(`/companies/${id}`, params)\n\t\telse promise = this.httpService.post('/companies', { GetById : { id : id } });\n\t\treturn promise.then(function(response)\n\t\t\t{\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n        \treturn Promise.resolve(response.json() as Company);\n\t\t\t});\n  }\n\n\n\n  findByEmail(email): Promise<Company[]> {\n\t\treturn this.httpService.post('/companies', { FindByEmail : { email : email } })\n\t\t\t.then(function(response)\n\t\t\t{\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n        \treturn Promise.resolve(response.json() as Company[]);\n\t\t\t});\n  }\n      \n  findByText(text, start, size): Promise<Company[]> {\n\t\treturn this.httpService.post('/companies', { FindByText : { text : text, start : start, size: size } })\n\t\t\t.then(function(response)\n\t\t\t{\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n        \treturn Promise.resolve(response.json() as Company[]);\n\t\t\t});\n  }\n\n\tgetEmailAccounts(companyId): Promise<any> {\n\t\treturn this.httpService.post('/companies', { GetEmailAccounts : { companyId : companyId } })\n\t\t\t.then(function(response)\n\t\t\t{\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n\t\t  \t  return Promise.resolve(response.json());\n\t\t\t});\n  }  \n\n\tgetExpired() : Promise<any> {\n\t\treturn this.httpService.post('/companies', { GetExpired : { } })\n\t\t\t.then(function(response)\n\t\t\t{\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n\t\t  \t  return Promise.resolve(response.json());\n\t\t\t});\n\t}\n\n\taddContact(contact) : Promise<any> {\n\t\treturn this.httpService.post('/companies', { AddContact : { contact } })\n\t\t\t.then(function(response)\n\t\t\t{\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n\t\t  \t  return Promise.resolve(response.json());\n\t\t\t});\n\t}\n\t\n}\n\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/services/company.ts","import * as Rx from 'rxjs/Rx';\n\nexport class ErrorsService {\n\n    listeners : any;\n    eventsSubject : any;\n    events : any;\n\n    constructor() {\n\t\t\tthis.listeners = {};\n\t\t\tthis.eventsSubject = new Rx.Subject();\n\n\t\t\tthis.events = Rx.Observable.from(this.eventsSubject);\n\n\t\t\tthis.events.subscribe(\n\t\t\t({name, args}) => {\n\t\t\t\tif (this.listeners[name]) {\n\t\t\t\t\tfor (let listener of this.listeners[name]) {\n\t\t\t\t\t\tlistener(...args);\n\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n    }\n\n    on(name, listener) {\n\t\t\tif (!this.listeners[name]) {\n\t\t\t\t\tthis.listeners[name] = [];\n\t\t\t}\n\t\t\tthis.listeners[name].push(listener);\n    }\n\n    broadcast(name, ...args) {\n\t\t\tthis.eventsSubject.next({\n\t\t\t\tname,\n\t\t\t\targs\n\t\t\t});\n    }\n}\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/services/errors.ts","import { Injectable } from \"@angular/core\";\nimport { Domain } from \"domain\";\nimport { Observable } from \"rxjs\";\n\nimport { HttpService } from \"./http\";\n\n@Injectable()\nexport class AccountsService {\n  constructor(private httpService: HttpService) {}\n\n  confirmBlockedAuthenticatedEmailAccount(blockedAccount): Promise<any> {\n    return this.httpService\n      .post(\"/accounts\", {\n        confirmBlockedAuthenticatedEmailAccount: blockedAccount,\n        User: this.httpService.getUser(),\n      })\n      .then((response) => {\n        if (response.json().errorMessage)\n          return Promise.reject(response.json());\n        else return response.json();\n      });\n  }\n\n  deleteBlockedAuthenticatedEmailAccount(blockedAccount): Promise<any> {\n    return this.httpService\n      .post(\"/accounts\", {\n        deleteBlockedAuthenticatedEmailAccount: blockedAccount,\n        User: this.httpService.getUser(),\n      })\n      .then((response) => {\n        if (response.json().errorMessage)\n          return Promise.reject(response.json());\n        else return response.json();\n      });\n  }\n\n  getBlockedAuthenticatedEmailAccounts(status): Promise<any> {\n    return this.httpService\n      .getNew(\"/accounts/blocked_authenticated_emailaccounts\", { status })\n      .then((response) => {\n        if (response.json().errorMessage)\n          return Promise.reject(response.json());\n        else return response.json();\n      });\n  }\n\n  getEximLogs(email, nextToken): Promise<any> {\n    return this.httpService\n      .post(\"/accounts\", {\n        SearchEximLogs: { filterPattern: `\"${email}\"`, nextToken },\n        User: this.httpService.getUser(),\n      })\n      .then((response) => {\n        if (response.json().errorMessage)\n          return Promise.reject(response.json());\n        else return response.json();\n      });\n  }\n\n  getMailLogs(email, nextToken): Promise<any> {\n    return this.httpService\n      .post(\"/accounts\", {\n        SearchMailLogs: { filterPattern: `\"${email}\"`, nextToken },\n        User: this.httpService.getUser(),\n      })\n      .then((response) => {\n        if (response.json().errorMessage)\n          return Promise.reject(response.json());\n        else return response.json();\n      });\n  }\n\n  getCloudWatchMetrics(whattoGet): Promise<any> {\n    return this.httpService\n      .postNew(\"/accounts/cloudwatchmetrics\", whattoGet)\n      .then((response) => {\n        if (response.json().errorMessage)\n          return Promise.reject(response.json());\n        else return response.json();\n      });\n  }\n\n  getServers(): Promise<any> {\n    return this.httpService.getPyApi(\"/server/\").then((response) => {\n      if (response.json().errorMessage) return Promise.reject(response.json());\n      else return response.json();\n    });\n  }\n\n  getServer(host): Promise<any> {\n    return this.httpService.getPyApi(\"/server/\" + host).then((response) => {\n      if (response.json().errorMessage) return Promise.reject(response.json());\n      else return response.json();\n    });\n  }\n\n  createWphostInstance(\n    accountDetails: any,\n    wphostHost: string,\n    wphostTemplate: string\n  ): Promise<any> {\n    return this.httpService\n      .postPyApi(\"/wp/\", {\n        companyId: accountDetails.companyId,\n        prefix: accountDetails.prefix,\n\t\t\t\tconvert: accountDetails.skipAccount ? true : false,\n        wphost: wphostHost,\n        template: wphostTemplate,\n      })\n      .then((response) => {\n        if (response.json().errorMessage)\n          return Promise.reject(response.json());\n        else return response.json();\n      });\n  }\n\n  publishWp(accountDetails: any): Promise<any> {\n    return this.httpService.putPyApi(`/wp/publish`, {\n      prefix: accountDetails.prefix,\n    });\n  }\n\n  getWordPressSnapshots(): Promise<any> {\n    return this.httpService\n      .post(\"/accounts\", {\n        GetWordPressSnapshots: {},\n        User: this.httpService.getUser(),\n      })\n      .then((response) => {\n        if (response.json().errorMessage)\n          return Promise.reject(response.json());\n        else return response.json();\n      });\n  }\n\n  createWordpressInstance(\n    accountDetails: any,\n    instanceSnapshotName: string,\n    availabilityZone: string\n  ): Promise<any> {\n    return this.httpService\n      .post(\"/accounts\", {\n        CreateWordpressInstance: {\n          accountDetails: accountDetails,\n          instanceSnapshotName,\n          availabilityZone,\n        },\n        User: this.httpService.getUser(),\n      })\n      .then((response) => {\n        if (response.json().errorMessage)\n          return Promise.reject(response.json());\n        else return response.json();\n      });\n  }\n\n  createAccount(accountDetails: any): Promise<any> {\n    return this.httpService\n      .post(\"/accounts\", {\n        CreateAccount: { accountDetails: accountDetails },\n        User: this.httpService.getUser(),\n      })\n      .then((response) => {\n        if (response.json().errorMessage)\n          return Promise.reject(response.json());\n        else return response.json();\n      });\n  }\n\n  getCertificates(name: String): Promise<any> {\n    return this.httpService\n      .post(\"/accounts\", {\n        GetCertificates: { name },\n        User: this.httpService.getUser(),\n      })\n      .then((response) => {\n        if (response.json().errorMessage)\n          return Promise.reject(response.json());\n        else return response.json();\n      });\n  }\n\n  processCertificates(name: String): Promise<any> {\n    return this.httpService\n      .post(\"/accounts\", {\n        ProcessCertificates: { name },\n        User: this.httpService.getUser(),\n      })\n      .then((response) => {\n        if (response.json().errorMessage)\n          return Promise.reject(response.json());\n        else return response.json();\n      });\n  }\n\n  deleteCertificate(name: String): Promise<any> {\n    return this.httpService\n      .post(\"/accounts\", {\n        DeleteCertificate: { name },\n        User: this.httpService.getUser(),\n      })\n      .then((response) => {\n        if (response.json().errorMessage)\n          return Promise.reject(response.json());\n        else return response.json();\n      });\n  }\n\n  createCertificate(\n    name: String,\n    domain: String,\n    alternativeDomains: [String]\n  ): Promise<any> {\n    return this.httpService\n      .post(\"/accounts\", {\n        CreateCertificate: { name, domain, alternativeDomains },\n        User: this.httpService.getUser(),\n      })\n      .then((response) => {\n        if (response.json().errorMessage)\n          return Promise.reject(response.json());\n        else return response.json();\n      });\n  }\n\n  createDistribution(\n    name: string,\n    originName: String,\n    originIp: string\n  ): Promise<any> {\n    return this.httpService\n      .post(\"/accounts\", {\n        CreateDistribution: { name, originName, originIp },\n        User: this.httpService.getUser(),\n      })\n      .then((response) => {\n        if (response.json().errorMessage)\n          return Promise.reject(response.json());\n        else return response.json();\n      });\n  }\n\n  attachCertificate(\n    distributionName: string,\n    certificateName: string\n  ): Promise<any> {\n    return this.httpService\n      .post(\"/accounts\", {\n        AttachCertificate: { distributionName, certificateName },\n        User: this.httpService.getUser(),\n      })\n      .then((response) => {\n        if (response.json().errorMessage)\n          return Promise.reject(response.json());\n        else return response.json();\n      });\n  }\n\n  deleteAccount(\n    accountId: number,\n    companyId: number,\n    prefix: string\n  ): Promise<any> {\n    return this.httpService\n      .post(\"/accounts\", {\n        DeleteAccount: {\n          accountId: accountId,\n          companyId: companyId,\n          prefix: prefix,\n        },\n        User: this.httpService.getUser(),\n      })\n      .then((response) => {\n        if (response.json().errorMessage)\n          return Promise.reject(response.json());\n        else return response.json();\n      });\n  }\n\n  GetWordpressInstance(instanceId: string): Promise<any> {\n    return this.httpService\n      .post(\"/accounts\", {\n        GetWordpressInstance: { instanceId },\n        User: this.httpService.getUser(),\n      })\n      .then((response) => {\n        if (response.json().errorMessage)\n          return Promise.reject(response.json());\n        else return response.json();\n      });\n  }\n\n  GetWphostInfo(prefix: string): Promise<any> {\n    return this.httpService.getPyApi(\"/wp/\" + prefix).then((response) => {\n      if (response.json().errorMessage) return Promise.reject(response.json());\n      else return response.json();\n    });\n  }\n\n  DeleteWordpressInstance(\n    accountId: number,\n    companyId: number,\n    instanceId: string\n  ): Promise<any> {\n    return this.httpService\n      .post(\"/accounts\", {\n        DeleteWordpressInstance: {\n          accountId: accountId,\n          companyId: companyId,\n          instanceId: instanceId,\n        },\n        User: this.httpService.getUser(),\n      })\n      .then((response) => {\n        if (response.json().errorMessage)\n          return Promise.reject(response.json());\n        else return response.json();\n      });\n  }\n\n  StopWordpressInstance(\n    accountId: number,\n    companyId: number,\n    instanceId: string\n  ): Promise<any> {\n    return this.httpService\n      .post(\"/accounts\", {\n        StopWordpressInstance: {\n          accountId: accountId,\n          companyId: companyId,\n          instanceId: instanceId,\n        },\n        User: this.httpService.getUser(),\n      })\n      .then((response) => {\n        if (response.json().errorMessage)\n          return Promise.reject(response.json());\n        else return response.json();\n      });\n  }\n\n  StartWordpressInstance(\n    accountId: number,\n    companyId: number,\n    instanceId: string\n  ): Promise<any> {\n    return this.httpService\n      .post(\"/accounts\", {\n        StartWordpressInstance: {\n          accountId: accountId,\n          companyId: companyId,\n          instanceId: instanceId,\n        },\n        User: this.httpService.getUser(),\n      })\n      .then((response) => {\n        if (response.json().errorMessage)\n          return Promise.reject(response.json());\n        else return response.json();\n      });\n  }\n\n  RebootWordpressInstance(\n    accountId: number,\n    companyId: number,\n    instanceId: string\n  ): Promise<any> {\n    return this.httpService\n      .post(\"/accounts\", {\n        RebootWordpressInstance: {\n          accountId: accountId,\n          companyId: companyId,\n          instanceId: instanceId,\n        },\n        User: this.httpService.getUser(),\n      })\n      .then((response) => {\n        if (response.json().errorMessage)\n          return Promise.reject(response.json());\n        else return response.json();\n      });\n  }\n\n  CreateWordpressIP(\n    accountId: number,\n    companyId: number,\n    instanceId: string\n  ): Promise<any> {\n    return this.httpService\n      .post(\"/accounts\", {\n        CreateWordpressIP: {\n          accountId: accountId,\n          companyId: companyId,\n          instanceId: instanceId,\n        },\n        User: this.httpService.getUser(),\n      })\n      .then((response) => {\n        if (response.json().errorMessage)\n          return Promise.reject(response.json());\n        else return response.json();\n      });\n  }\n\n  lookupPrefix(prefix: string): Promise<any> {\n    return this.httpService\n      .post(\"/accounts\", {\n        LookupPrefix: { prefix: prefix },\n        User: this.httpService.getUser(),\n      })\n      .then((response) => {\n        if (response.json().errorMessage)\n          return Promise.reject(response.json());\n        else return response.json();\n      });\n  }\n\n  lookupDomain(domainname: string): Promise<any> {\n    return this.httpService\n      .post(\"/accounts\", {\n        LookupDomain: { domainname: domainname },\n        User: this.httpService.getUser(),\n      })\n      .then((response) => {\n        if (response.json().errorMessage)\n          return Promise.reject(response.json());\n        else return response.json();\n      });\n  }\n\n  deleteSubscription(subscription): Promise<any> {\n    return this.httpService\n      .post(\"/accounts\", {\n        DeleteSubscription: { subscription: subscription },\n        User: this.httpService.getUser(),\n      })\n      .then((response) => {\n        if (response.json().errorMessage)\n          return Promise.reject(response.json());\n        else return response.json();\n      });\n  }\n\n  updateSubscription(data): Promise<any> {\n    return this.httpService\n      .post(\"/accounts\", {\n        UpdateSubscription: data,\n        User: this.httpService.getUser(),\n      })\n      .then((response) => {\n        if (response.json().errorMessage)\n          return Promise.reject(response.json());\n        else return response.json();\n      });\n  }\n\n  getAvailablePlugins(accountId): Promise<any> {\n    return this.httpService\n      .post(\"/accounts\", {\n        AvailablePlugins: { accountId: accountId },\n        User: this.httpService.getUser(),\n      })\n      .then((response) => {\n        if (response.json().errorMessage)\n          return Promise.reject(response.json());\n        else return response.json();\n      });\n  }\n\n  setModuleStatus(accountId, moduleId, status): Promise<any> {\n    return this.httpService\n      .post(\"/accounts\", {\n        SetModuleStatus: {\n          accountId: accountId,\n          moduleId: moduleId,\n          status: status,\n        },\n        User: this.httpService.getUser(),\n      })\n      .then((response) => {\n        if (response.json().errorMessage)\n          return Promise.reject(response.json());\n        else return response.json();\n      });\n  }\n\n  searchAccounts(filter, start, size): Promise<any> {\n    return this.httpService\n      .postNew(\"/accounts/search\", {\n        Search: { filter: filter, size: size, start: start },\n        User: this.httpService.getUser(),\n      })\n      .then((response) => {\n        if (response.json().errorMessage)\n          return Promise.reject(response.json());\n        else return response.json();\n      });\n  }\n\n  getAccounts(filter, start, size): Promise<any> {\n    return this.httpService\n      .post(\"/accounts\", {\n        Search: { filter: filter, size: size, start: start },\n        User: this.httpService.getUser(),\n      })\n      .then((response) => {\n        if (response.json().errorMessage)\n          return Promise.reject(response.json());\n        else return response.json();\n      });\n  }\n\n  getAccount(accountId): Promise<any> {\n    return this.httpService\n      .post(\"/accounts\", {\n        GetAccount: { accountId: accountId },\n        User: this.httpService.getUser(),\n      })\n      .then((response) => {\n        if (response.json().errorMessage)\n          return Promise.reject(response.json());\n        else return response.json();\n      });\n  }\n\n  getQuota(email): Promise<any> {\n    return this.httpService\n      .getNew(\"/accounts/emailquota\", { email: email })\n      .then((response) => {\n        if (response.json().errorMessage)\n          return Promise.reject(response.json());\n        else return response.json();\n      });\n  }\n\n  addCommunication(companyId, id, userId, typeId, note): Promise<any> {\n    return this.httpService\n      .post(\"/accounts\", {\n        AddCommunication: {\n          id: id,\n          companyId: companyId,\n          typeId: typeId,\n          note: note,\n        },\n        User: this.httpService.getUser(),\n      })\n      .then((response) => {\n        if (response.json().errorMessage)\n          return Promise.reject(response.json());\n        else return response.json();\n      });\n  }\n\n  setNote(account, note): Promise<any> {\n    return this.httpService\n      .post(\"/accounts\", {\n        SetNote: { account: account, note: note },\n        User: this.httpService.getUser(),\n      })\n      .then((response) => {\n        if (response.json().errorMessage)\n          return Promise.reject(response.json());\n        else return response.json();\n      });\n  }\n\n  addUser(user): Promise<any> {\n    return this.httpService\n      .post(\"/accounts\", {\n        AddUser: { user: user },\n        User: this.httpService.getUser(),\n      })\n      .then((response) => {\n        if (response.json().errorMessage)\n          return Promise.reject(response.json());\n        else return response.json();\n      });\n  }\n\n  deleteUser(user): Promise<any> {\n    return this.httpService\n      .post(\"/accounts\", {\n        DeleteUser: { user: user },\n        User: this.httpService.getUser(),\n      })\n      .then((response) => {\n        if (response.json().errorMessage)\n          return Promise.reject(response.json());\n        else return response.json();\n      });\n  }\n\n  setUserPassword(user, password): Promise<any> {\n    return this.httpService\n      .post(\"/accounts\", {\n        SetUserPassword: { user: user, newPassword: password },\n        User: this.httpService.getUser(),\n      })\n      .then((response) => {\n        if (response.json().errorMessage)\n          return Promise.reject(response.json());\n        else return response.json();\n      });\n  }\n\n  setUserEmail(user, email): Promise<any> {\n    return this.httpService\n      .post(\"/accounts\", {\n        SetUserEmail: { user: user, newEmail: email },\n        User: this.httpService.getUser(),\n      })\n      .then((response) => {\n        if (response.json().errorMessage)\n          return Promise.reject(response.json());\n        else return response.json();\n      });\n  }\n\n  setOwner(account, user): Promise<any> {\n    return this.httpService\n      .post(\"/accounts\", {\n        SetOwner: { account: account, user: user },\n        User: this.httpService.getUser(),\n      })\n      .then((response) => {\n        if (response.json().errorMessage)\n          return Promise.reject(response.json());\n        else return response.json();\n      });\n  }\n\n  createAccountStatus(accountId, statusId) {\n    return this.httpService\n      .post(\"/accounts\", {\n        CreateStatus: { accountId: accountId, statusId: statusId },\n        User: this.httpService.getUser(),\n      })\n      .then((response) => {\n        if (response.json().errorMessage)\n          return Promise.reject(response.json());\n        else return response.json();\n      });\n  }\n\n  setStatus(account, newStatusId, companyId): Promise<any> {\n    return this.httpService\n      .post(\"/accounts\", {\n        SetStatus: {\n          account: account,\n          statusId: newStatusId,\n          companyId: companyId,\n        },\n        User: this.httpService.getUser(),\n      })\n      .then((response) => {\n        if (response.json().errorMessage)\n          return Promise.reject(response.json());\n        else return response.json();\n      });\n  }\n\n  setActive(account): Promise<any> {\n    return this.httpService\n      .post(\"/accounts\", {\n        SetActive: {\n          accountId: account.accountId,\n          companyId: account.companyId,\n          prefix: account.prefix,\n        },\n        User: this.httpService.getUser(),\n      })\n      .then((response) => {\n        if (response.json().errorMessage)\n          return Promise.reject(response.json());\n        else return response.json();\n      });\n  }\n\n  setInactive(account): Promise<any> {\n    return this.httpService\n      .post(\"/accounts\", {\n        SetInactive: {\n          accountId: account.accountId,\n          companyId: account.companyId,\n          prefix: account.prefix,\n        },\n        User: this.httpService.getUser(),\n      })\n      .then((response) => {\n        if (response.json().errorMessage)\n          return Promise.reject(response.json());\n        else return response.json();\n      });\n  }\n\n  createEmailAccount(account, companyId): Promise<any> {\n    return this.httpService\n      .post(\"/accounts\", {\n        CreateEmailAccount: { account: account, companyId: companyId },\n        User: this.httpService.getUser(),\n      })\n      .then((response) => {\n        if (response.json().errorMessage)\n          return Promise.reject(response.json());\n        else return response.json();\n      });\n  }\n\n  updateEmailAccount(account, companyId): Promise<any> {\n    return this.httpService\n      .post(\"/accounts\", {\n        UpdateEmailAccount: { account: account, companyId: companyId },\n        User: this.httpService.getUser(),\n      })\n      .then((response) => {\n        if (response.json().errorMessage)\n          return Promise.reject(response.json());\n        else return response.json();\n      });\n  }\n\n  createEmailAlias(alias, companyId): Promise<any> {\n    return this.httpService\n      .post(\"/accounts\", {\n        CreateEmailAlias: { alias: alias, companyId: companyId },\n        User: this.httpService.getUser(),\n      })\n      .then((response) => {\n        if (response.json().errorMessage)\n          return Promise.reject(response.json());\n        else return response.json();\n      });\n  }\n\n  createEmailForward(forward, companyId): Promise<any> {\n    return this.httpService\n      .post(\"/accounts\", {\n        CreateEmailForward: { forward: forward, companyId: companyId },\n        User: this.httpService.getUser(),\n      })\n      .then((response) => {\n        if (response.json().errorMessage)\n          return Promise.reject(response.json());\n        else return response.json();\n      });\n  }\n\n  updateEmailAlias(alias, companyId): Promise<any> {\n    return this.httpService\n      .post(\"/accounts\", {\n        UpdateEmailAlias: { alias: alias, companyId: companyId },\n        User: this.httpService.getUser(),\n      })\n      .then((response) => {\n        if (response.json().errorMessage)\n          return Promise.reject(response.json());\n        else return response.json();\n      });\n  }\n\n  updateEmailForward(forward, companyId): Promise<any> {\n    return this.httpService\n      .post(\"/accounts\", {\n        UpdateEmailForward: { forward: forward, companyId: companyId },\n        User: this.httpService.getUser(),\n      })\n      .then((response) => {\n        if (response.json().errorMessage)\n          return Promise.reject(response.json());\n        else return response.json();\n      });\n  }\n\n  deleteEmailAccount(account, companyId): Promise<any> {\n    return this.httpService\n      .post(\"/accounts\", {\n        DeleteEmailAccount: { account: account, companyId: companyId },\n        User: this.httpService.getUser(),\n      })\n      .then((response) => {\n        if (response.json().errorMessage)\n          return Promise.reject(response.json());\n        else return response.json();\n      });\n  }\n\n  deleteEmailAlias(alias, companyId): Promise<any> {\n    return this.httpService\n      .post(\"/accounts\", {\n        DeleteEmailAlias: { alias: alias, companyId: companyId },\n        User: this.httpService.getUser(),\n      })\n      .then((response) => {\n        if (response.json().errorMessage)\n          return Promise.reject(response.json());\n        else return response.json();\n      });\n  }\n\n  deleteEmailForward(forward, companyId): Promise<any> {\n    return this.httpService\n      .post(\"/accounts\", {\n        DeleteEmailForward: { forward: forward, companyId: companyId },\n        User: this.httpService.getUser(),\n      })\n      .then((response) => {\n        if (response.json().errorMessage)\n          return Promise.reject(response.json());\n        else return response.json();\n      });\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/services/accounts.ts","import * as Rx from 'rxjs/Rx';\n\nexport class EventsService {\n\n    listeners : any;\n    eventsSubject : any;\n    events : any;\n\n    constructor() {\n\t\t\tthis.listeners = {};\n\t\t\tthis.eventsSubject = new Rx.Subject();\n\n\t\t\tthis.events = Rx.Observable.from(this.eventsSubject);\n\n\t\t\tthis.events.subscribe(\n\t\t\t({name, args}) => {\n\t\t\t\tif (this.listeners[name]) {\n\t\t\t\t\tfor (let listener of this.listeners[name]) {\n\t\t\t\t\t\tlistener(...args);\n\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n    }\n\n    on(name, listener) {\n\t\t\tif (!this.listeners[name]) {\n\t\t\t\t\tthis.listeners[name] = [];\n\t\t\t}\n\t\t\tthis.listeners[name].push(listener);\n\t\t\treturn { unsubscribe : () => {\n\t\t\t\tthis.listeners[name].splice(this.listeners[name].indexOf(listener, 1));\n\t\t\t}}\n    }\n\n    broadcast(name, ...args) {\n\t\t\tthis.eventsSubject.next({\n\t\t\t\tname,\n\t\t\t\targs\n\t\t\t});\n    }\n}\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/services/event.ts","\"use strict\";\nvar AsyncAction_1 = require('./AsyncAction');\nvar AsyncScheduler_1 = require('./AsyncScheduler');\nexports.async = new AsyncScheduler_1.AsyncScheduler(AsyncAction_1.AsyncAction);\n//# sourceMappingURL=async.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/scheduler/async.js\n// module id = 37\n// module chunks = 0","import { NgModule, NgZone, OpaqueToken, Inject, Optional } from '@angular/core';\r\nimport { LIB_KEY, LIB_KEY_SEPARATOR } from './constants/lib';\r\nimport { STORAGE } from './enums/storage';\r\nimport { LocalStorageService, SessionStorageService } from './services/index';\r\nimport { WebStorageHelper } from './helpers/webStorage';\r\nimport { WebstorageConfig } from './interfaces/config';\r\nimport { KeyStorageHelper } from './helpers/keyStorage';\r\nexport * from './interfaces/index';\r\nexport * from './decorators/index';\r\nexport * from './services/index';\r\nexport var WEBSTORAGE_CONFIG = new OpaqueToken('WEBSTORAGE_CONFIG');\r\nexport var Ng2Webstorage = (function () {\r\n    function Ng2Webstorage(ngZone, config) {\r\n        this.ngZone = ngZone;\r\n        if (config) {\r\n            KeyStorageHelper.setStorageKeyPrefix(config.prefix);\r\n            KeyStorageHelper.setStorageKeySeparator(config.separator);\r\n        }\r\n        this.initStorageListener();\r\n    }\r\n    Ng2Webstorage.forRoot = function (config) {\r\n        return {\r\n            ngModule: Ng2Webstorage,\r\n            providers: [\r\n                {\r\n                    provide: WEBSTORAGE_CONFIG,\r\n                    useValue: config\r\n                },\r\n                {\r\n                    provide: WebstorageConfig,\r\n                    useFactory: provideConfig,\r\n                    deps: [\r\n                        WEBSTORAGE_CONFIG\r\n                    ]\r\n                }\r\n            ]\r\n        };\r\n    };\r\n    Ng2Webstorage.prototype.initStorageListener = function () {\r\n        var _this = this;\r\n        if (window) {\r\n            window.addEventListener('storage', function (event) { return _this.ngZone.run(function () {\r\n                var storage = window.sessionStorage === event.storageArea ? STORAGE.session : STORAGE.local;\r\n                WebStorageHelper.refresh(storage, event.key);\r\n            }); });\r\n        }\r\n    };\r\n    Ng2Webstorage.decorators = [\r\n        { type: NgModule, args: [{\r\n                    declarations: [],\r\n                    providers: [SessionStorageService, LocalStorageService],\r\n                    imports: []\r\n                },] },\r\n    ];\r\n    /** @nocollapse */\r\n    Ng2Webstorage.ctorParameters = function () { return [\r\n        { type: NgZone, },\r\n        { type: WebstorageConfig, decorators: [{ type: Optional }, { type: Inject, args: [WebstorageConfig,] },] },\r\n    ]; };\r\n    return Ng2Webstorage;\r\n}());\r\nexport function provideConfig(config) {\r\n    return new WebstorageConfig(config);\r\n}\r\nexport function configure(_a) {\r\n    var _b = _a === void 0 ? { prefix: LIB_KEY, separator: LIB_KEY_SEPARATOR } : _a, prefix = _b.prefix, separator = _b.separator;\r\n    /*@Deprecation*/\r\n    console.warn('[ng2-webstorage:deprecation] The configure method is deprecated since the v1.5.0, consider to use forRoot instead');\r\n    KeyStorageHelper.setStorageKeyPrefix(prefix);\r\n    KeyStorageHelper.setStorageKeySeparator(separator);\r\n}\r\n//# sourceMappingURL=app.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ng2-webstorage/dist/app.js\n// module id = 41\n// module chunks = 0","import { Component, Input, Output, ElementRef, EventEmitter } from '@angular/core';\n\nfunction _window() : any {\n   // return the global native browser window object\n   return window;\n}\n\n@Component({\n\tselector : 'datepicker',\n  template: require('./templates/datepicker.html')\n})\n\nexport class DatePicker {\n\n  _field : any;\n  _placeholder : string;\n\t@Output() onDateChanged = new EventEmitter();\n\n  constructor(\n\t\tprivate myElement: ElementRef\n  ) {\n    setTimeout(() => {\n      _window().datePicker(this.myElement.nativeElement, (d) => {\n\t\t\t\tthis.dateChanged(d)\n\t\t\t});\n    }, 500);\n  }\n\t\n\tdateChanged(date) {\n\t\tthis.fireOnDateChange(date);\n\t}\n\n  get Date() : Date {\n    var val = this.myElement.nativeElement.getElementsByTagName('input').item(0).value;\n    if(!val) return null;\n    var m = val.match(/([0-9]{2})\\/([0-9]{2})\\/([0-9]{4})/);\n    var d = new Date(m[3], m[2] - 1, m[1], 0, 0, 0, 0);\n    return d;\n  }\n\n  @Input()\n  set date(val : any) {\n    var d = new Date(val);\n    var str = (d.getDate() < 10 ? ('0' + d.getDate()) : d.getDate()) + '/' + ( (d.getMonth() + 1) < 10 ? ('0' + (d.getMonth() + 1)) : (d.getMonth() + 1)) + '/' + d.getFullYear();\n    this.myElement.nativeElement.getElementsByTagName('input').item(0).value = str;\n  }\n\n  @Input()\n  set placeholder(val) {\n    this._placeholder = val;\n  }\n  \n  fireOnDateChange(date) {\n\t  this.onDateChanged.next(date);\n  }\n\n}\n\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/components/datepicker.ts","import { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\n\nimport { HttpService } from './http';\n\nimport { Activity, ActivityList } from '../models/activity';\n\n\n@Injectable()\n\nexport class ActivityService {\n\t\n\tprojectId : number;\n\n\ttypes = [\n\t\t{ value : 'Hemsida, Ändring', text : 'Hemsida, Ändring' },\n\t\t{ value : 'Hemsida, Klipp upp', text : 'Hemsida, Klipp upp' },\n\t\t{ value : 'Hemsida, Re-design', text : 'Hemsida, Re-design' },\n\t\t{ value : 'Hemsida, Nydesign', text : 'Hemsida, Nydesign' },\n\t\t{ value : 'Hemsida, Mobilanpassning', text : 'Hemsida, Mobilanpassning' },\n\t\t{ value : 'Hemsida, Under produktion', text : 'Hemsida, Under produktion' },\n\t\t{ value : 'Hemsida, Publicering', text : 'Hemsida, Publicering' },\n\t\t{ value : 'Hemsida, Googleoptimering', text : 'Hemsida, Googleoptimering' },\n\t\t{ value : 'Hemsida, Övrigt', text : 'Hemsida, Övrigt' },\n\t\t{ value : 'Logotype, Skapa', text : 'Logotype, Skapa' },\n\t\t{ value : 'Facebook, Integration', text : 'Facebook, Integration' },\n\t\t{ value : 'Facebook, Övrigt', text : 'Facebook, Övrigt' },\n\t\t{ value : 'Instagram, Integration', text : 'Instagram, Integration' },\n\t\t{ value : 'Instagram, Övrigt', text : 'Instagram, Övrigt' },\n\t\t{ value : 'Domän, Flytt (regtransfer)', text : 'Domän, Flytt (regtransfer)' },\n\t\t{ value : 'Domän, Inaktivering', text : 'Domän, Inaktivering' },\n\t\t{ value : 'Domän, Namnserver', text : 'Domän, Namnserver' },\n\t\t{ value : 'Domän, Registrering', text : 'Domän, Registrering' },\n\t\t{ value : 'Domän, Ändring', text : 'Domän, Ändring' },\n\t\t{ value : 'Epost, Nytt konto', text : 'Epost, Nytt konto' },\n\t\t{ value : 'Epost, Ta bort', text : 'Epost, Ta bort' },\n\t\t{ value : 'Annat', text : 'Annat' }\n\t];\n\n  constructor(private httpService: HttpService) {\n\t\tthis.projectId = 24;\n\t}\n\n\tcreateReminder(id : string, startDate : Date, endDate : Date, title: string) : void {\n\t\tvar reminders = JSON.parse(localStorage.getItem('owe-reminders') || '[]');\n\t\tconsole.log('create reminder for ' + id);\n\t\tvar exists = false;\n\t\treminders.forEach((r) => {\n\t\t\tif(r.id == id) {\n\t\t\t\tr.id = id;\n\t\t\t\tr.title = title;\n\t\t\t\tr.startDate = startDate;\n\t\t\t\tr.endDate = endDate;\n\t\t\t\texists = true;\n\t\t\t}\n\t\t});\n\t\tif(!exists) {\n\t\t\treminders.push({ id : id, startDate : startDate, endDate : endDate, title : title });\n\t\t}\n\t\tconsole.log(reminders);\n\t\tlocalStorage.setItem('owe-reminders', JSON.stringify(reminders));\n\t}\n\n\tdeleteReminder(id) {\n\t\tvar reminders = JSON.parse(localStorage.getItem('owe-reminders') || '[]');\n\t\tconsole.log('delete reminder for ' + id);\n\t\tvar reminderToRemove = null;\n\t\treminders.forEach((r) => {\n\t\t\tif(r.id == id) {\n\t\t\t\treminderToRemove = r;\n\t\t\t}\n\t\t});\n\t\tif(reminderToRemove) {\n\t\t\treminders.splice(reminders.indexOf(reminderToRemove), 1);\n\t\t}\n\t\tlocalStorage.setItem('owe-reminders', JSON.stringify(reminders));\n\t}\n\n\tgetSalesReport(userId : number, orderTypes : [number], periodStart : number, periodEnd : number) : Promise<any> {\n\t\treturn this.httpService.post(\"/activity\", { GetSalesReport : { userId, orderTypes, periodStart, periodEnd }, User : this.httpService.getUser() }).then((response) => {\n\t\t\tif(response.json().errorMessage)\n\t\t\t\treturn Promise.reject(response.json());\n\t\t\telse\n\t\t\t\treturn response.json();\n\t\t});\t\t\n\t}\n\n\tgetUserActivity(userId : number) : Promise<any> {\n\t\treturn this.httpService.post(\"/activity\", { GetUserActivity : { userId : userId }, User : this.httpService.getUser() }).then((response) => {\n\t\t\tif(response.json().errorMessage)\n\t\t\t\treturn Promise.reject(response.json());\n\t\t\telse\n\t\t\t\treturn response.json();\n\t\t})\n\t}\n\n  getActivities(filter, start, size): Promise<ActivityList> {\n\t\tif(!filter.projectId) {\n\t\t\tfilter.projectId = this.projectId;\n\t\t}\n\t\treturn this.httpService.post('/activity', { Search : { Filter : filter, Start : start || 0, Size : size || 50 }})\n\t\t\t.then(function(response)\n\t\t\t{\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n\t  \t  \treturn Promise.resolve(response.json() as ActivityList);\n\t\t\t});\n  }\n  \n\tgetActivityById(id): Promise<Activity> {\n\t\tvar filter = {\n\t\t\ttaskId : id,\n\t\t\tprojectId : this.projectId\n\t\t}\t\t\t\n\t\treturn this.httpService.post('/activity', { Search : { Filter : filter, Start : 0, Size : 50 }})\n\t\t\t.then(function(response)\n\t\t\t{\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n\t\t\t\t\treturn Promise.resolve((response.json() as ActivityList).list[0]);\n\t\t\t});\n  }\n\n\tcreateActivity(name, description, userId, accountId, statusId) : Promise<any> {\n\t\treturn this.httpService.post('/activity', { \n\t\t\tCreate : { \n\t\t\t\tname : name,\n\t\t\t\tdescription : description, \n\t\t\t\tuserId : userId, \n\t\t\t\taccountId : accountId,\n\t\t\t\tprojectId : this.projectId,\n\t\t\t\tstatusId : statusId\n\t\t\t},\n\t\t\tUser : this.httpService.getUser() \n\t\t})\n\t\t\t.then(function(response)\n\t\t\t{\n\t  \t  if(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n\t  \t  \treturn Promise.resolve(response.json());\n\t\t\t});\n\t}\n\n  saveActivity(activity : Activity, notificationType : string) : Promise<any> {\n\t  return this.httpService.post('/activity', { Save : activity, NotificationType : notificationType })\n\t\t\t.then((response) =>\n\t\t\t{\n\t  \t  if(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n\t  \t  \treturn Promise.resolve(response.json());\n\t\t\t});\n  }\n  \n  setStatus(taskId, statusId) : Promise<any> {\n\t  return this.httpService.post('/activity', { SetStatus : { statusId : statusId , taskId : taskId } })\n\t\t\t.then((response) =>\n\t\t\t{\n\t  \t  if(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n\t  \t  \treturn Promise.resolve(response.json());\n\t\t\t});\n  }\n  \n  assignUser(taskId, userId) : Promise<any> {\n\t  return this.httpService.post('/activity', { AssignUser : { userId : userId , taskId : taskId } })\n\t\t\t.then((response) =>\n\t\t\t{\n\t  \t  if(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n\t  \t  \treturn Promise.resolve(response.json());\n\t\t\t});\n  }\n  \n  assignCompany(taskId, accountId) : Promise<any> {\n\t  return this.httpService.post('/activity', { AssignCompany : { accountId : accountId , taskId : taskId } })\n\t\t\t.then((response) =>\n\t\t\t{\n\t\t\t\tconsole.log(response);\n\t  \t  if(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n\t  \t  \treturn Promise.resolve(response.json());\n\t\t\t});\n  }\n  \n  unSetCompany(taskId) : Promise<any> {\n\t  return this.httpService.post('/activity', { UnassignCompany : { taskId : taskId } })\n\t\t\t.then((response) =>\n\t\t\t{\n\t  \t  if(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n\t  \t  \treturn Promise.resolve(response.json());\n\t\t\t});\n  }\n  \n\tsearchTasks(startDate : Date, endDate : Date) : Promise<any[]> {\n\t\treturn this.httpService.post('/activity', { SearchTasks : { startDate : startDate.getTime() / 1000, endDate : endDate.getTime() / 1000 } })\n\t\t\t.then((response) =>\n\t\t\t{\n\t  \t  if(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n\t  \t  \treturn Promise.resolve(response.json());\n\t\t\t});\n\t}\n\n\tcreateTask(task) : Promise<any> {\n\t\treturn this.httpService.post('/activity', { CreateTask : { task : task } })\n\t\t\t.then((response) =>\n\t\t\t{\n\t  \t  if(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n\t  \t  \treturn Promise.resolve(response.json());\n\t\t\t});\n\t}\n\n\tsaveTask(task) : Promise<any> {\n\t\treturn this.httpService.post('/activity', { SaveTask : { task : task } })\n\t\t\t.then((response) =>\n\t\t\t{\n\t  \t  if(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n\t  \t  \treturn Promise.resolve(response.json());\n\t\t\t});\n\t}\n\n\tdeleteTask(task) : Promise<any> {\n\t\treturn this.httpService.post('/activity', { DeleteTask : { task : task } })\n\t\t\t.then((response) =>\n\t\t\t{\n\t  \t  if(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n\t  \t  \treturn Promise.resolve(response.json());\n\t\t\t});\n\t}\n\n}\n\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/services/activity.ts","import { Injectable }     from '@angular/core';\nimport { HttpService }           from './http';\nimport { SupportIssue }           from '../models/supportissue';\n\n@Injectable()\n\nexport class SupportIssueService {\n\t\n  constructor(private httpService: HttpService) {}\n\n  uploadLargeAttachment(data, fileName, contentType) : Promise<any> {\n\t\treturn this.httpService.post('/incoming-mail/attachments/', { UploadLink : { contentType, fileName } })\n\t\t\t.then((response) => {\n\t\t\t\tlet json = response.json();\n\t\t\t\tif(json.success) {\n\t\t\t\t\tlet headers = { 'Content-Type': json.contentType, 'Content-Disposition': json.contentDisposition }\n\t\t\t\t\treturn this.httpService.put(json.url, data, headers)\n\t\t\t\t\t\t.then(function() {\n\t\t\t\t\t\t\treturn({\n\t\t\t\t\t\t\t\turi: json.uri\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t})\n\t\t\t\t\t\t.catch(function(err) {\n\t\t\t\t\t\t\tconsole.log('error uploading', err)\n\t\t\t\t\t\t\treturn Promise.reject(err);\n\t\t\t\t\t\t});\n\t\t\t\t} else {\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\t}\n\t\t\t});\n\t}\n\n\tuploadAttachment(data, fileName, contentType) : Promise<any> {\n\t\tif(data.length > 1000) {\n\t\t\treturn this.uploadLargeAttachment(data, fileName, contentType);\n\t\t} else {\n\t\t\treturn this.httpService.post('/incoming-mail/attachments/', { Upload : { data : data, fileName } })\n\t\t\t.then(function(response) {\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n\t\t\t\t\treturn Promise.resolve(response.json());\n\t\t\t});\n\t\t}\n\t}\n\t\n\tgetStandardReplies() : Promise<any> {\n\t\treturn this.httpService.post('/incoming-mail/standard-replies/', { StandardReplies : { Get : {} } })\n\t\t\t.then(function(response) {\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse {\n\t\t\t\t\tvar data = JSON.parse(response.json());\n\t\t\t\t\tif(data.total == 0)\n\t\t\t\t\t\treturn Promise.resolve([]);\n\t\t\t\t\treturn Promise.resolve(data.hits.hits);\n\t\t\t\t}\n\t\t\t});\n\t}\n\n\tsaveStandardReply(item) : Promise<any> {\n\t\treturn this.httpService.post('/incoming-mail/standard-replies/', { StandardReplies : { Put : item } })\n\t\t\t.then(function(response) {\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n\t\t\t\t\treturn Promise.resolve(response.json());\n\t\t\t});\n\t}\n\n\tsendReply(subject, content, content_text, email, cc, attachments, from): Promise<any> {\n\t\tvar attach = [];\n\t\tattachments.forEach((a) => {\n\t\t\tattach.push({\n\t\t\t\tlength: a.length,\n\t\t\t\tfilename: a.fileName,\n\t\t\t\tpath : a.uri\n\t\t\t});\n\t\t})\n\t\tvar mail = {\n\t\t\tmail : {\n\t\t\t\t\"from\": from ? from : \"\\\"Hemsida Direkt\\\" <support@hemsidadirekt.se>\", \n\t\t\t\t\"to\": email,\n\t\t\t\t\"cc\" : cc,\n\t\t\t\t\"subject\": subject, \n\t\t\t\t\"text\": content_text, \n\t\t\t\t\"html\": content,\n\t\t\t\t\"attachments\" : attach\n\t\t\t}\n\t\t}\n\t\tif(!cc)\n\t\t\tdelete mail.mail.cc;\n\t\treturn this.httpService.post('/outgoing-mail', mail)\n\t\t.then(function(response) {\t\t\t\n\t\t\tif(response.json().errorMessage)\n\t\t\t\treturn Promise.reject(response.json());\n\t\t\telse\n\t\t\t\treturn Promise.resolve(response.json());\n\t\t});\n\t}\n\n\tgetStandardSms() : Promise<any> {\n\t\treturn this.httpService.post('/incoming-mail/standard-replies/', { StandardSms : { Get : {} } })\n\t\t\t.then(function(response) {\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse {\n\t\t\t\t\tvar data = JSON.parse(response.json());\n\t\t\t\t\tif(data.total == 0)\n\t\t\t\t\t\treturn Promise.resolve([]);\n\t\t\t\t\treturn Promise.resolve(data.hits.hits);\n\t\t\t\t}\n\t\t\t});\n\t}\n\n\tsaveStandardSms(item) : Promise<any> {\n\t\treturn this.httpService.post('/incoming-mail/standard-replies/', { StandardSms : { Put : item } })\n\t\t\t.then(function(response) {\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n\t\t\t\t\treturn Promise.resolve(response.json());\n\t\t\t});\n\t}\n\n\tsendSms(content_text, number): Promise<any> {\n\t\tvar sms = {\n\t\t\tsms : {\n\t\t\t\t\"to\": number,\n\t\t\t\t\"text\": content_text, \n\t\t\t}\n\t\t}\n\t\treturn this.httpService.post('/outgoing-mail', sms)\n\t\t.then(function(response) {\t\t\t\n\t\t\tif(response.json().errorMessage)\n\t\t\t\treturn Promise.reject(response.json());\n\t\t\telse\n\t\t\t\treturn Promise.resolve(response.json());\n\t\t});\n\t}\n\n\tcopyAttachmentsToMamba(folder, files, ignoreExisting) : Promise<any> {\n\t\tvar params = { \n\t\t\t\"copy\" : \n\t\t\t{\n\t\t\t\t\t\"ignoreExisting\" : ignoreExisting,\n\t\t\t\t\t\"toBucket\" : \"hsd-mamba-sync\",\n\t\t\t\t\t\"fromBucket\" : \"hsd-incoming-bucket\",\n\t\t\t\t\t\"toFolder\" : 'Produktion/' + folder,\n\t\t\t\t\t\"files\" : files\n\t\t\t}\n\t\t}\t\t\n\t\treturn this.httpService.post('/incoming-mail/attachments/', params)\n\t\t\t.then(function(response) {\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n\t\t\t\t\treturn Promise.resolve(response.json());\n\t\t\t});\n\t}\n\n\tcopyAttachmentsToStorage(folder, files, ignoreExisting) : Promise<any> {\n\t\tvar params = { \n\t\t\t\"copy\" : \n\t\t\t{\n\t\t\t\t\"ignoreExisting\" : ignoreExisting,\n\t\t\t\t\"toBucket\" : \"hsd-sites\",\n\t\t\t\t\"fromBucket\" : \"hsd-incoming-bucket\",\n\t\t\t\t\"toFolder\" : folder,\n\t\t\t\t\"files\" : files\n\t\t\t}\n\t\t}\t\t\n\t\treturn this.httpService.post('/incoming-mail/attachments/', params)\n\t\t\t.then(function(response) {\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n\t\t\t\t\treturn Promise.resolve(response.json());\n\t\t\t});\n\t}\n\n  getAllIssues(filter : any, start : number, size : number): Promise<any> {\n\t\treturn this.httpService.post('/incoming-mail', { Search : true, Start : (start ? start : 0), Size : (size ? size : 10), Filter : filter })\n\t\t\t.then(function(response)\n\t\t\t{\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse {\n\t\t\t\t\tvar data = response.json();\n\t\t\t\t\treturn Promise.resolve({ issues : data.hits.hits as SupportIssue[], totalIssues : data.hits.total });\n\t\t\t\t}\n\t\t\t});\n  }\n \n  getIssueById(id): Promise<SupportIssue> {\n\t\treturn this.httpService.post('/incoming-mail', { Search : true, Filter : { _id : id } })\n\t\t\t.then(function(response)\n\t\t\t{\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse {\n\t\t\t\t\treturn Promise.resolve(response.json() as SupportIssue);\n\t\t\t\t}\n\t\t\t});\n  }\n\n\tgetIssuesByMessageId(messageId): Promise<SupportIssue[]> {\n\t\treturn this.httpService.post('/incoming-mail', { Search : true, Filter : { messageId : messageId } })\n\t\t\t.then(function(response)\n\t\t\t{\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse {\n\t\t\t\t\treturn Promise.resolve(response.json().hits.hits as SupportIssue[]);\n\t\t\t\t}\n\t\t\t});\n  }\n\n\tgetAttachmentUrl(id, aid): Promise<string> {\n\t\treturn this.httpService.get('/incoming-mail?id=' + id + \"&aid=\" + aid)\n\t\t.then(function(response)\n\t\t{\n\t\t\tif(response.json().errorMessage)\n\t\t\t\treturn Promise.reject(response.json());\n\t\t\telse\n\t\t\t\treturn Promise.resolve(response._body);\n\t\t});\n  }\n\n\tmakePublic(id) : Promise<boolean> {\n\t\treturn this.httpService.post('/incoming-mail', { Public : { to : 'support@hemsidadirekt.se' }, Filter : { _id : id } })\n\t\t.then(function(response)\n\t\t{\n  \t\tif(response.json().errorMessage)\n\t\t\t\treturn Promise.reject(response.json());\n\t\t\telse\n\t\t\t\treturn Promise.resolve(response.json());\n\t\t});\n\t}\n\n\tmakePrivate(id) : Promise<boolean> {\n\t\treturn this.httpService.post('/incoming-mail', { Public : { to : this.httpService.getUser().email }, Filter : { _id : id } })\n\t\t.then(function(response)\n\t\t{\n  \t\tif(response.json().errorMessage)\n\t\t\t\treturn Promise.reject(response.json());\n\t\t\telse\n\t\t\t\treturn Promise.resolve(response.json());\n\t\t});\n\t}\n\n\tmarkIssueAs(status, id) : Promise<boolean> {\n\t\treturn this.httpService.post('/incoming-mail', { Mark : { status : status }, Filter : { _id : id } })\n\t\t.then(function(response)\n\t\t{\n  \t  if(response.json().errorMessage)\n\t\t\t\treturn Promise.reject(response.json());\n\t\t\telse\n\t\t\t\treturn Promise.resolve(response.json());\n\t\t});\n\t}\n\n\tmarkIssuesAs(status, batch) : Promise<boolean> {\n\t\treturn this.httpService.post('/incoming-mail', { MarkBatch : { status : status, batch : batch }  })\n\t\t.then(function(response)\n\t\t{\n  \t  if(response.json().errorMessage)\n\t\t\t\treturn Promise.reject(response.json());\n\t\t\telse\n\t\t\t\treturn Promise.resolve(response.json());\n\t\t});\n\t}\n\t\n\tsetUser(user, id) : Promise<boolean> {\n\t\treturn this.httpService.post('/incoming-mail', { SetUser : { user : user }, Filter : { _id : id } })\n\t\t.then(function(response)\n\t\t{\n  \t  if(response.json().errorMessage)\n\t\t\t\treturn Promise.reject(response.json());\n\t\t\telse\n\t\t\t\treturn Promise.resolve(response.json());\n\t\t});\n\t}\n\t\n\tsetCompany(company, id) : Promise<boolean> {\n\t\treturn this.httpService.post('/incoming-mail', { SetCompany : { company : company }, Filter : { _id : id } })\n\t\t.then(function(response)\n\t\t{\n\t\t\tif(response.json().errorMessage)\n\t\t\t\treturn Promise.reject(response.json());\n\t\t\telse\t\t\t\t\t\n  \t  \treturn Promise.resolve(response.json());\n\t\t});\n\t}\n\n\taddReply(reply, id) : Promise<boolean> {\n\t\treturn this.httpService.post('/incoming-mail', { AddReply : { reply : reply }, Filter : { _id : id } })\n\t\t.then(function(response)\n\t\t{\n\t\t\tif(response.json().errorMessage)\n\t\t\t\treturn Promise.reject(response.json());\n\t\t\telse\t\t\t\t\t\n  \t  \treturn Promise.resolve(response.json());\n\t\t});\n\t}\n\n\taddNote(note, id) : Promise<any[]> {\n\t\treturn this.httpService.post('/incoming-mail', { AddNote : { note : note }, Filter : { _id : id } })\n\t\t.then(function(response)\n\t\t{\n  \t  return Promise.resolve(response.json());\n\t\t});\n\t}\n  \n}\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/services/support.ts","import { Component,  ViewChild, ElementRef } from '@angular/core';\nimport { ModalComponent } from 'ng2-bs4-modal/ng2-bs4-modal';\nimport { Http } from '@angular/http';\n\nimport { HttpService } from '../services/http';\nimport { AccountsService } from '../services/accounts';\nimport { CompanyService } from '../services/company';\nimport { SupportIssueService } from '../services/support';\nimport { Company } from '../models/company';\n\nimport { Md5 } from 'ts-md5/dist/md5';\n\nfunction _window() : any {\n   // return the global native browser window object\n   return window;\n}\n\n@Component({\n\tselector : 'orderinfo',\n  template: require('./templates/orderinfo.html')\n})\n\nexport class OrderInfo {\n\n\t@ViewChild('confirmCreateInvoiceModal')\n  confirmCreateInvoiceModal: ModalComponent;\n\n\t@ViewChild('editor')\n  editor: ElementRef;\n\n\t@ViewChild('infoModal')\n  infoModal: ModalComponent;\n\n\t@ViewChild('errorModal')\n  errorModal: ModalComponent;\n\n\t@ViewChild('confirmationModal')\n  confirmationModal: ModalComponent;\n\n\t@ViewChild('loadingModal')\n  loadingModal: ModalComponent;\n\n\t@ViewChild('confirmCancelModal')\n  confirmCancelModal: ModalComponent;\n\n\t@ViewChild('confirmConfirmModal')\n  confirmConfirmModal: ModalComponent;\n\n\t@ViewChild('previewModal')\n  previewModal: ModalComponent;\n\n\tloading : boolean;\n\torder : any;\n\tcloseResolver : Function;\n\tpreviewHTML : any;\n\tconfirmationSubject : string;\n\tconfirmationToEmail : string;\n\tconfirmationCCEmail : string;\n\tactiveEditor : any;\n\tonConfirmationModalClosed : Function;\n\tuser : any;\n\tavailableContacts : any[];\n\terrorMessage : string;\n\tconfirmationMessage : string;\n\tcompany : Company;\n\tactiveSubscriptions : any[];\n\tsubscription : any;\n\thasSubscriptionItems : boolean;\n\tinvoiceExpireTime : number;\n\tinvoiceDateStr : string;\n\n\tconstructor(\n\t\tprivate httpService: HttpService,\n\t\tprivate companyService: CompanyService,\n\t\tprivate supportIssueService: SupportIssueService,\n\t\tprivate accountsService: AccountsService,\n\t\tprivate http : Http\n  ) {\n\t\tthis.user = this.httpService.getUser();\n\t\tthis.loading = true;\n\t\tthis.invoiceDateStr = new Date().toISOString().split('T')[0];\n\t\tthis.invoiceExpireTime = 30;\n\t}\n\n\topen(order) : Promise<string> {\n\t\treturn new Promise((resolve) => {\n\t\t\tconsole.log(order);\n\t\t\tthis.closeResolver = resolve;\n\t\t\tthis.order = order;\n\t\t\tconsole.log(order.products.info.totalValue)\n\t\t\tthis.infoModal.open('lg').then(() => {\n\t\t\t\tthis.hasSubscriptionItems = false;\n\t\t\t\torder.products.items.forEach((i) => {\n\t\t\t\t\tif(parseInt(i.subscription) > 0 && parseInt(i.subscriptionProductId)) {\n\t\t\t\t\t\tthis.hasSubscriptionItems = true;\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\tthis.companyService.getSubscriptions(this.order.companyId).then((subscriptions) => {\n\t\t\t\t\tthis.activeSubscriptions = subscriptions;\n\t\t\t\t})\n\t\t\t})\n\t\t});\n\t}\n\n\tclose(reason) : void {\n\t\tthis.infoModal.close().then(() => {\n\t\t\tthis.closeResolver(reason);\n\t\t})\n\t}\n\t\n\n\tcreateInvoice() : void {\n\t\tthis.loadingModal.open().then(() => {\n\t\t\tlet invoiceDate = new Date(this.invoiceDateStr).valueOf() / 1000;\n\t\t\tthis.companyService.createInvoice(this.order.orderId, this.subscription ? this.subscription.subscriptionId : 0, invoiceDate, this.invoiceExpireTime).then((data) => {\n\t\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\t\tthis.confirmCreateInvoiceModal.close().then(() => {\n\t\t\t\t\t\tthis.close('created-invoice');\n\t\t\t\t\t})\n\t\t\t\t})\n\t\t\t})\n\t\t\t.catch((e) => {\n\t\t\t\tthis.showError(JSON.stringify(e));\n\t\t\t})\n\t\t})\n\t}\n\n\tcancelOrder() : void {\n\t\tthis.loadingModal.open().then(() => {\n\t\t\tthis.companyService.cancelOrder(this.order.orderId, this.order.orderNr, this.order.companyId).then(() => {\n\t\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\t\tthis.confirmCancelModal.close().then(() => {\n\t\t\t\t\t\tthis.close('cancelled');\n\t\t\t\t\t})\n\t\t\t\t})\n\t\t\t});\t\n\t\t})\n\t}\n\n\tconfirmOrder() : void {\n\t\tthis.loadingModal.open().then(() => {\n\t\t\tthis.companyService.confirmOrder(this.order.orderId, this.order.orderNr, this.order.companyId).then(() => {\n\t\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\t\tthis.confirmConfirmModal.close().then(() => {\n\t\t\t\t\t\tthis.close('confirmed');\n\t\t\t\t\t})\n\t\t\t\t})\n\t\t\t});\t\n\t\t})\n\t}\n\n\trewriteMessage() : void {\n\t\tvar hash = Md5.hashStr(\"owehash\" + this.order.orderId);\n\t\tvar hemail = btoa(this.confirmationToEmail);\n\t\tvar orderConfirmAddress = \"https://admin.hemsidadirekt.se/orders/acceptorder.php?orderId=\" + this.order.orderId + \"&t=\" + hemail + \" + &hash=\" + hash;\n\t\tthis.confirmationMessage = \"\" + \n\t\t\t\"<h2>Tack för din beställning av Hemsidadirekt!</h2>\" +\n\t\t\t\"<p>Som ett led i vår kvalitetsträvan, ber jag Dig kontrollera att alla uppgifter är korrekta.<br />\" +\n\t\t\t\"Läs igenom Ordernr. \" + this.order.orderNr + \", och kontrollera så att allt stämmer genom att klicka på länken nedan.</p>\" +\n\t\t\t\"<p>\" +\n\t\t\t\"För att godkänna beställningen så att vi kan öppna ert konto för Hemsidadirekt, klicka på länken nedan:<br />\" +\n\t\t\t\"<a href='\" + orderConfirmAddress + \"'>Klicka här för att visa order</a>\" +\n\t\t\t\"</p>\" +\n\t\t\t\"<p>\" +\n\t\t\t\"Välkommen som kund hos HemsidaDirekt.se!\" +\n\t\t\t\"</p>\" +\n\t\t\t\"<div class='signature'>\" +\n\t\t\t\"<p>\" +\n\t\t\t\"Hälsningar,<br />\" +\n\t\t\tthis.user.firstName + \" \" + this.user.lastName + \", Hemsida Direkt\" +\n\t\t\t\"</p>\" +\n\t\t\t\"</div>\";\n\t\t\tthis.activeEditor.setContent(this.confirmationMessage);\n\t}\n\n\topenConfirmationModal() : void {\n\t\tthis.confirmationModal.open('lg').then(() => {\n\t\t\tthis.confirmationSubject = 'Orderbekräftelse';\n\t\t\tthis.confirmationToEmail = '';\n\t\t\tthis.confirmationCCEmail = '';\n\t\t\tthis.companyService.getById(this.order.companyId).then((company) => {\n\t\t\t\tthis.availableContacts = [];\n\t\t\t\tthis.company = company;\n\t\t\t\tcompany.contacts.forEach((c) => {\n\t\t\t\t\tconsole.log(c);\n\t\t\t\t\tif(c.emails && c.emails.length > 0 && this.confirmationToEmail == '' && c.userId == this.order.contactUserId) {\n\t\t\t\t\t\tthis.confirmationToEmail = c.emails[0].adress;\n\t\t\t\t\t}\n\t\t\t\t\tc.emails.forEach((e) => {\n\t\t\t\t\t\tthis.availableContacts.push({\n\t\t\t\t\t\t\temail : e.adress,\n\t\t\t\t\t\t\tname : c.firstName + ' ' + c.lastName\n\t\t\t\t\t\t})\t\n\t\t\t\t\t})\n\t\t\t\t})\n\t\t\t})\n\t\t\tsetTimeout(() => {\t\t\t\t\n\t\t\t\t_window().initTinyEditor(() => { // destroy func\n\t\t\t\t\tif(this.activeEditor)\n\t\t\t\t\t\tthis.activeEditor.destroy();\n\t\t\t\t\tthis.activeEditor = null;\n\t\t\t\t\t}, this.editor.nativeElement)\n\t\t\t\t.then((editors) => {\n\t\t\t\t\tthis.activeEditor = editors[0];\n\t\t\t\t\tthis.activeEditor.focus();\n\t\t\t\t\tthis.rewriteMessage();\n\t\t\t\t});\n\t\t\t}, 500);\n\t\t\tthis.onConfirmationModalClosed = () => {\n\t\t\t\t_window().destroyEditors((r) => {\n\t\t\t\t\tconsole.log(r);\n\t\t\t\t});\n\t\t\t}\n\t\t})\n\t}\n\n\tcloseConfirmationModal() : void {\n\t\tthis.confirmationModal.close().then(() => {\n\t\t\tthis.onConfirmationModalClosed();\n\t\t})\n\t}\n\n\tsendOrderConfirmation() : void {\t\t\t\n\t\tvar contents_html = this.activeEditor.getContent();\n\t\tvar contents_text = this.activeEditor.getContent({ format: 'text' });\n\t\tthis.loadingModal.open().then(() => {\n\t\t\tthis.supportIssueService.sendReply(this.confirmationSubject, contents_html, contents_text, this.confirmationToEmail, this.confirmationCCEmail, [], undefined).then((response) => {\n\t\t\t\tvar accountId = this.company.accounts.length > 0 ? this.company.accounts[0].accountId : 0;\n\t\t\t\tthis.accountsService.addCommunication(this.company.companyId, accountId, this.user.userId, 8, 'Skickade orderbekräftelse för order ' + this.order.orderNr + ' till ' + this.confirmationToEmail).then(() => {\n\t\t\t\t\tthis.loadingModal.close();\n\t\t\t\t\tthis.closeConfirmationModal();\n\t\t\t\t})\n\t\t\t});\n\t\t}).catch((e) => {\n\t\t\tthis.errorMessage = e.errorMessage || e.message;\n\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\tthis.errorModal.open();\n\t\t\t})\n\t\t})\n\t}\n\n\tshowError(msg) {\n\t\tconsole.log('showerror', msg)\n\t\t_window().showNotification('', '<h4><i class=\"fa fa-exclamation-triangle\"></i> Fel' + '</h4>', msg, 'fa fa-exclamation-triangle', (id) => {\n\t\t\tconsole.log('id ' + id + ' was closed');\n\t\t}, 'danger')\n\t}\n\n}\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/components/orderinfo.ts","import { Injectable }     from '@angular/core';\nimport { Observable } from 'rxjs';\n\nimport { HttpService }           from './http';\n\nimport { Domain, DomainList }           from '../models/domain';\nimport { NameISPInfo, NameISPInfoResponse }           from '../models/nameisp';\n\n@Injectable()\n\nexport class DomainService {\n\t\n  constructor(private httpService: HttpService) {\n\n  }\n\n\tsaveResourceRecordSet(zoneId : string, resourceRecordSet : any) : Promise<any> {\n\t\treturn this.httpService.post('/domain', { SaveResourceRecordSet : { zoneId : zoneId, resourceRecordSet : resourceRecordSet }})\n\t\t\t.then(function(response)\n\t\t\t{\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n\t  \t  \treturn Promise.resolve(response.json());\n\t\t\t});\n\t}\n\n\tupdateResourceRecordSet(zoneId : string, resourceRecordSet : any) : Promise<any> {\n\t\treturn this.httpService.post('/domain', { UpdateResourceRecordSet : { zoneId : zoneId, resourceRecordSet : resourceRecordSet }})\n\t\t\t.then(function(response)\n\t\t\t{\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n\t  \t  \treturn Promise.resolve(response.json());\n\t\t\t});\n\t}\n\n\tdeleteResourceRecordSet(zoneId : string, resourceRecordSet : any) : Promise<any> {\n\t\treturn this.httpService.post('/domain', { DeleteResourceRecordSet : { zoneId : zoneId, resourceRecordSet : resourceRecordSet }})\n\t\t\t.then(function(response)\n\t\t\t{\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n\t  \t  \treturn Promise.resolve(response.json());\n\t\t\t});\n\t}\n\n\tgetR53Zone(zoneId : string) : Promise<any> {\n\t\treturn this.httpService.post('/domain', { GetR5Zone : { zoneId : zoneId }})\n\t\t\t.then(function(response)\n\t\t\t{\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n\t  \t  \treturn Promise.resolve(response.json());\n\t\t\t});\n\t}\n\n\tgetDomainInfo(domainName : string) : Promise<NameISPInfoResponse> {\n\t\treturn this.httpService.post('/domain', { GetRegistrarStatus : { domainName : domainName }})\n\t\t\t.then(function(response)\n\t\t\t{\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n\t  \t  \treturn Promise.resolve(response.json() as NameISPInfoResponse);\n\t\t\t});\n\t}\n\n\tupdateNameISPInfo(nameISPInfo : NameISPInfo, domain : any) : Promise<NameISPInfoResponse> {\n\t\treturn this.httpService.post('/domain', { SetRegistrarStatus : { nameISPInfo : nameISPInfo, domain : domain }})\n\t\t\t.then(function(response)\n\t\t\t{\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n\t  \t  \treturn Promise.resolve(response.json() as NameISPInfoResponse);\n\t\t\t});\n\t}\n\t\n\tgetSubDomains(domain): Promise<any> {\n\t\treturn this.httpService.post('/domain', { SubDomains : { domain : domain }})\n\t\t.then(function(response)\n\t\t{\n\t\t\tif(response.json().errorMessage)\n\t\t\t\treturn Promise.reject(response.json());\n\t\t\telse\n\t\t\t\treturn Promise.resolve(response.json());\n\t\t})\n\t}\n\n  getDomains(filter : any, start : number, size : number): Promise<DomainList> {\n\t\treturn this.httpService.post('/domain', { Search : { Filter : filter , Start : start || 0, Size : size || 50 }})\n\t\t\t.then(function(response)\n\t\t\t{\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n\t  \t  \treturn Promise.resolve(response.json() as DomainList);\n\t\t\t})\n  }\n  \n  whois(domainName) : Promise<any> {\n    return this.httpService.post(\"/domain\", { Whois : { domainName : domainName } }).\n      then(function(response) \n      {\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n        \treturn Promise.resolve(response.json());\n      });\n  }\n\n  dig(domainName) : Promise<any> {\n    return this.httpService.post(\"/domain\", { Dig : { domainName : domainName } }).\n      then(function(response) \n      {\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n        \treturn Promise.resolve(response.json());\n      });\n  }\n\n  domainAvailable(domainName) : Promise<any> {\n    return this.httpService.post(\"/domain\", { Available : { domainName : domainName } }).\n      then(function(response) \n      {\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n       \t\treturn Promise.resolve(response.json());\n      });\n  }\n\n\tgetDNS(domain) : Promise<any> {\n    return this.httpService.post(\"/domain\", {\n\t\t\t\tGetNameServers : {\n\t\t\t\t\tdomainName : domain\n\t\t\t\t}\n      }).\n      then(function(response) \n      {\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n        \treturn Promise.resolve(response.json());\n      });\n  }\n\n\tgetMX(domain) : Promise<any> {\n    return this.httpService.post(\"/domain\", {\n\t\t\t\tMx : {\n\t\t\t\t\t\tdomainName : domain\n\t\t\t\t}\n      }).\n      then(function(response) \n      {\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n        \treturn Promise.resolve(response.json());\n      });\n  }\n\n\tgenerateAuthCode(domain) : Promise<any> {\n\t\tvar data = {\n\t\t\tGenerateAuthCode : {\n\t\t\t\tdomain : domain\n\t\t\t}\n\t\t}\n    return this.httpService.post(\"/domain\", data).\n      then(function(response) \n      {\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n        \treturn Promise.resolve(response.json());\n      });\n\t}\n\n\tdeleteDomain(domain) : Promise<any> {\n\t\tvar data = {\n\t\t\tDelete : {\n\t\t\t\tdomain : domain\n\t\t\t}\n\t\t}\n    return this.httpService.post(\"/domain\", data).\n      then(function(response) \n      {\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n        \treturn Promise.resolve(response.json());\n      });\n  }\n\n  updateDomain(domain) : Promise<any> {\n\t\tvar data = {\n\t\t\tUpdate : {\n\t\t\t\tdomain : domain\n\t\t\t},\n\t\t\tUser : this.httpService.getUser()\n\t\t}\n    return this.httpService.post(\"/domain\", data).\n      then(function(response) \n      {\n\t\t\t\tconsole.log('save result', response);\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n        \treturn Promise.resolve(response.json());\n      })\n  }\n\n\t/* register functions */\n\n  addDomain(domainInfo) : Promise<any> {\n\t\treturn this.httpService.post(\"/domain/register\", { AddDomain : { domainInfo : domainInfo }, User : this.httpService.getUser() }).\n      then(function(response) \n      {\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n        \treturn Promise.resolve(response.json());\n      });\n  }\n\n  registerDomain(domainInfo, contactInfo, registerParams) : Promise<any> {\n\t\treturn this.httpService.post(\"/domain/register\", { RegisterDomain : { domainInfo : domainInfo, registerParams : registerParams, contactInfo : contactInfo }, User : this.httpService.getUser() }).\n      then(function(response) \n      {\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n        \treturn Promise.resolve(response.json());\n      });\n  }\n\n\ttransferDomain(domainInfo) : Promise<any> {\n\t\treturn this.httpService.post(\"/domain/register\", { TransferDomain : { domainInfo : domainInfo }, User : this.httpService.getUser() }).\n      then(function(response) \n      {\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n        \treturn Promise.resolve(response.json());\n      });\n  }\n\n  getOrders(domainName) : Promise<any> {\n    return this.httpService.post(\"/domain/register\", {\n          GetOrders : {\n              domain : domainName\n          }\n      }).\n      then(function(response) \n      {\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n        \treturn Promise.resolve(response.json());\n      });\n  }\n\n  getOrderInfo(orderId, domain) : Promise<any> {\n    return this.httpService.post(\"/domain/register\", {\n\t\t\t\tCheckOrderStatus : {\n\t\t\t\t\t\torderId : orderId,\n\t\t\t\t\t\tdomain : domain\n\t\t\t\t}\n      }).\n      then(function(response) \n      {\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n        \treturn Promise.resolve(response.json());\n      });\n  }\n\n  setStatus(domain, statusId) : Promise<any> {\n\t\tconsole.log('set status');\n\t\tconsole.log(JSON.stringify({ SetStatus : { domain : domain, statusId : statusId\t} }));\n    return this.httpService.post(\"/domain/register\", {\n\t\t\t\tSetStatus : {\n\t\t\t\t\t\tdomain : domain,\n\t\t\t\t\t\tstatusId : statusId,\t\t\t\t\t\t\n\t\t\t\t},\n\t\t\t\tUser : this.httpService.getUser()\n      }).\n      then(function(response) \n      {\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n        \treturn Promise.resolve(response.json());\n      });\n  }\n\n\tsetNameServers(domain, nameServers) : Promise<any> {\n    return this.httpService.post(\"/domain/register\", {\n\t\t\t\tUpdateNameServers : {\n\t\t\t\t\t\tdomain : domain,\n\t\t\t\t\t\tnameServers : nameServers\n\t\t\t\t}\n      }).\n      then(function(response) \n      {\t\t\t\t\n\t\t\t\tif(response.json().errorMessage)\n\t\t\t\t\treturn Promise.reject(response.json());\n\t\t\t\telse\n        \treturn Promise.resolve(response.json());\n      });\n  }\n\n}\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/services/domain.ts","export var STORAGE;\r\n(function (STORAGE) {\r\n    STORAGE[STORAGE[\"local\"] = 0] = \"local\";\r\n    STORAGE[STORAGE[\"session\"] = 1] = \"session\";\r\n})(STORAGE || (STORAGE = {}));\r\n//# sourceMappingURL=storage.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ng2-webstorage/dist/enums/storage.js\n// module id = 84\n// module chunks = 0","import { Injectable }     from '@angular/core';\nimport { Observable } from 'rxjs';\n\nimport { HttpService }           from './http';\n\n@Injectable()\n\nexport class StorageService {\n\t\n  constructor(private httpService: HttpService) {}\n  \n \tgetSignedUrl(bucket, key) {\n\t\t var options = { \n\t\t\t bucket : bucket,\n\t\t\t key : key\n\t\t };\n\t\t return this.httpService.post(\"/storage/\", { getUrl : options }).then((response) => {\n\t\t\t return Promise.resolve(response.json());\n\t\t })\n\t}\n\n \tgetSignedUrlForUpload(bucket, key, type, acl) {\n\t\tvar options = { \n\t\t\t bucket : bucket,\n\t\t\t key : key, \n\t\t\t type : type,\n\t\t\t acl : acl\n\t\t };\n\t\t return this.httpService.post(\"/storage/\", { getUploadUrl : options }).then((response) => {\n\t\t\t return Promise.resolve(response.json());\n\t\t });\n\t}\n\n\tgetObjectInfo(bucket, key) {\n\t\t var options = { \n\t\t\t bucket : bucket,\n\t\t\t key : key\n\t\t };\n\t\t return this.httpService.post(\"/storage/\", { getHeadObject : options }).then((response) => {\n\t\t\t return Promise.resolve(response.json());\n\t\t })\n\t}\n\n\tsyncObjects(bucket, objects) {\t\t\n\t\treturn this.httpService.post(\"/storage/\", { syncObjects : { bucket : bucket, objects : objects} }).then((response) => {\n\t\t\t return Promise.resolve(response.json());\n\t\t })\n\t}\n\n\trestoreObjects(bucket, objects) {\t\t\n\t\treturn this.httpService.post(\"/storage/\", { restoreObjects : { bucket : bucket, objects : objects} }).then((response) => {\n\t\t\t return Promise.resolve(response.json());\n\t\t })\n\t}\n\n\tdownloadObjects(bucket, objects) {\t\t\n\t\treturn this.httpService.post(\"/storage/\", { downloadObjects : { bucket : bucket, objects : objects} }).then((response) => {\n\t\t\t return Promise.resolve(response.json());\n\t\t })\n\t}\n\n\tcreateFolder(bucket, folderName) {\n\t\treturn this.httpService.post(\"/storage/\", { createFolder : { bucket : bucket, folderName : folderName} }).then((response) => {\n\t\t\t return Promise.resolve(response.json());\n\t\t })\n\t}\n\n\tdeleteObjects(bucket, objects) {\t\t\n\t\treturn this.httpService.post(\"/storage/\", { deleteObjects : { bucket : bucket, objects : objects} }).then((response) => {\n\t\t\t return Promise.resolve(response.json());\n\t\t })\n\t}\n\n \tlistFiles(bucket, marker, prefix) {\n\t\t var options = { \n\t\t\t bucket : bucket,\n\t\t\t prefix : prefix,\n\t\t\t marker : marker\n\t\t };\n\t\t if(!marker)\n\t\t \tdelete options.marker\n\t\t if(!prefix)\n\t\t \tdelete options.prefix\n\t\t\t console.log(JSON.stringify({ listFiles : options }))\n\t\t return this.httpService.post(\"/storage/\", { listFiles : options }).then((response) => {\n\t\t\t return Promise.resolve(response.json());\n\t\t })\n\t }\n\n}\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/services/storage.ts","import { Component, Input, Output, EventEmitter, ViewChild, AfterViewInit } from '@angular/core';\nimport { ActivatedRoute, Router } from '@angular/router';\nimport { ModalModule, ModalComponent } from 'ng2-bs4-modal/ng2-bs4-modal';\nimport { Http, Response, Headers } from '@angular/http';\n\nimport { CompanyService } from '../services/company';\nimport { AccountsService } from '../services/accounts';\nimport { SupportIssueService } from '../services/support';\nimport { HttpService } from '../services/http';\nimport { StorageService } from '../services/storage';\nimport { ErrorsService } from '../services/errors';\nimport { EventsService } from '../services/event';\nimport { ActivityService } from '../services/activity';\nimport { EmailUtils }           from './emailutils';\n\nimport { Company }\tfrom '../models/company';\nimport { Activity }\tfrom '../models/activity';\nimport { FileUpload } from './fileupload';\nimport { DomainService } from 'app/services/domain';\n\nfunction _window() : any {\n\t// return the global native browser window object\n\treturn window;\n}\n\n@Component({\n  selector: 'account-info-modal',\n  template: require('./templates/accountinfomodal.html')\n})\n\nexport class AccountInfoModal { \n\t\n\t@ViewChild('deletingAccountModal')\n\tdeletingAccountModal: ModalComponent;\n\t\n\t@ViewChild('accountInfoModal')\n  infoModal: ModalComponent;\n\n\t@ViewChild('accountInfo')\n  accountInfo: AccountInfo;\n\t\n\t@ViewChild('waitModal')\n  waitModal: ModalComponent;\n\n\t@ViewChild('errorModal')\n  errorModal: ModalComponent;\n\n\tprivate errorMessage : string;\n\tprivate resolver : Function;\n\tprivate deleteAccountStatus : string;\n\tprivate showWordpressInfo : boolean;\n\n\tconstructor(\n\t\tprivate accountsService : AccountsService,\n\t\tprivate domainService : DomainService\n\t) {\n\t}\n\n\topen(accountId : number) : Promise<string> {\n\t\treturn new Promise((resolver) => {\n\t\t\tthis.infoModal.open('lg').then(() => {\n\t\t\t\tthis.accountInfo.accountId = accountId;\n\t\t\t\tthis.resolver = resolver;\n\t\t\t})\n\t\t})\n\t}\n\n\tdismissModal() : void {\n\t\tthis.infoModal.close().then(() => {\n\t\t\tthis.resolver('closed');\n\t\t})\n\t}\n\n\tdeleteAccount() : void {\n\t\tthis.deletingAccountModal.open().then(() => {\n\t\t\tvar account = this.accountInfo.account;\n\t\t\tvar domains = this.accountInfo.company.domain;\t\t\n\t\t\tvar zId = 'Z3F7JB4JR12O9V';\n\t\t\tthis.domainService.getR53Zone(zId)\n\t\t\t.then((zone) => {\n\t\t\t\tlet rrsName = `${account.prefix}.generatorhallen.se.`;\n\t\t\t\tlet recordsToRemove = zone.ResourceRecordSets.filter(rrs => rrs.Name == rrsName);\n\t\t\t\tconsole.log('recordsToRemove', recordsToRemove)\n\t\t\t\treturn Promise.all(recordsToRemove.map((rrs) => {\n\t\t\t\t\treturn this.domainService.deleteResourceRecordSet(zId, rrs);\n\t\t\t\t}))\n\t\t\t}).then(() => {\n\t\t\t\tconsole.log('all prefix-rrs-removed');\n\t\t\t\tthis.deleteAccountStatus = 'Tar bort domäner';\n\t\t\t\treturn Promise.all(domains.map((domain) => {\n\t\t\t\t\tif(domain.accountId == account.accountId) {\n\t\t\t\t\t\tthis.deleteAccountStatus = 'Tar bort domänen ' + domain.domain;\n\t\t\t\t\t\treturn this.domainService.deleteDomain({ ...domain, forceDelete : true });\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn({ deleteResult : 'ok-no-domain-deleted'})\n\t\t\t\t\t}\n\t\t\t\t}))\n\t\t\t\t.then((deleteDomainResults) => {\n\t\t\t\t\tconsole.log('deleteDomainResults', deleteDomainResults);\t\t\t\t\t\n\t\t\t\t\tif(account.type == 'wordpress') {\n\t\t\t\t\t\tthis.deleteAccountStatus = 'Tar bort wordpress instans';\n\t\t\t\t\t\treturn this.accountsService.DeleteWordpressInstance(this.accountInfo.accountId, account.companyId, account.instanceId);\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn({ deleteResult : 'ok-no-wordpress-deleted' })\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t})\n\t\t\t.then((deleteWordPressResult) => {\n\t\t\t\tconsole.log('deleteWordPressResult', deleteWordPressResult)\n\t\t\t\tthis.deleteAccountStatus = 'Tar bort konto';\n\t\t\t\treturn this.accountsService.deleteAccount(this.accountInfo.accountId, this.accountInfo.account.companyId, this.accountInfo.account.prefix)\n\t\t\t})\n\t\t\t.then(() => {\n\t\t\t\tthis.deletingAccountModal.close().then(() => {\n\t\t\t\t\tthis.infoModal.close().then(() => {\n\t\t\t\t\t\tthis.resolver('deleted');\n\t\t\t\t\t})\n\t\t\t\t});\n\t\t\t})\n\t\t\t.catch((e) => {\n\t\t\t\tthis.deletingAccountModal.close().then(() => {\n\t\t\t\t\tthis.errorModal.open().then(() => {\n\t\t\t\t\t\tthis.errorMessage = e.errorMessage || e.message;\n\t\t\t\t\t})\n\t\t\t\t})\n\t\t\t});\n\t\t})\n\t}\n\n\n}\n\n@Component({\n  selector: 'account-info',\n  template: require('./templates/accountinfo.html')\n})\n\nexport class AccountInfo implements AfterViewInit { \n\n\tprivate detailsTab : string;\n\t\n\t@ViewChild('emailUtils')\n  emailUtils: EmailUtils;\n\n\t@ViewChild('fileUpload')\n  fileUpload: FileUpload;\n\n\t@ViewChild('createActivityModal')\n  createActivityModal: ModalComponent;\n\n\t@ViewChild('noLayoutImageModal')\n  noLayoutImageModal: ModalComponent;\n\n\t@ViewChild('addUserModal')\n  addUserModal: ModalComponent;\n\n\t@ViewChild('confirmDeleteUserModal')\n  confirmDeleteUserModal: ModalComponent;\n\n\t@ViewChild('sendInfoModal')\n  sendInfoModal: ModalComponent;\n\n\t@ViewChild('sendDetailsModal')\n  sendDetailsModal: ModalComponent;\n\n\t@ViewChild('setUserPasswordModal')\n  setUserPasswordModal: ModalComponent;\n\n\t@ViewChild('setUserEmailModal')\n  setUserEmailModal: ModalComponent;\n\n\t@ViewChild('confirmRemoveLayoutImageModal')\n  confirmRemoveLayoutImageModal: ModalComponent;\n\n\t@ViewChild('waitModal')\n  waitModal: ModalComponent;\n\n\t@ViewChild('errorModal')\n  errorModal: ModalComponent;\n\n\t@ViewChild('saveModal')\n  saveModal: ModalComponent;\n\t\n\tcloseErrorDialogClb : Function;\n\n\t_accountId : number;\n\taccount : any;\n\tedit : boolean;\n\tloaded : boolean;\n\n\t_accountStatuses = {\n\t\t0 : 'Inväntar material',\n\t\t1 : 'Material väntar godkännande',\n\t\t5 : 'Material ej godkänt',\n\t\t4 : 'Material godkänt',\n\t\t6 : 'Förslag under produktion',\n\t\t2 : 'Förslag skapat',\n\t\t8 : 'Förslag ej godkänt',\n\t\t7 : 'Förslag godkänt',\n\t\t9 : 'Hemsida under produktion',\n\t\t10 : 'Hemsida klar för godkännande',\n\t\t11 : 'Hemsida ej godkänd',\n\t\t3 : 'Hemsida godkänd',\n\t\t12 : 'Uppsagd',\n\t\t13 : 'Hemsida publicerad'\n\t}\n\t\n\taccountStatuses : any[];\n\tavailableUsers : Array<any>;\t\n\tuser : any;\n\tlayoutImageUrl : string;\n\tinfoTemplates : {};\n\tloginDetailsTemplate : string;\n\tstartGuideTemplate : string;\n\tdomainInfoTemplate : string;\n\tmailframeworkTemplate : string;\n\tcompany : Company;\n\tcontactEmails : any[];\n\tselectedContactEmail : any;\n\tselectedFirstName : any;\n\tselectedLastName : any;\n\tinfoText : string;\n\tinfoTextPreview : string;\n\tinfoSubject : string;\n\tinfoMessage : string;\n\terrorMessage : string;\n\tshow : string;\n\tnewPassword : string;\n\tnewEmail : string;\n\tmodifiedUser : any;\n\tavailableModules : any[];\n\tmoduleSearch : string;\n\tuserToDelete : any;\n\tnewUserData : any;\n\tafterCreateActivityModalResolver : Function;\n\temailAccounts : any;\n\t_infoText : string;\n\twordpressInfo : any;\n\tcanPublish : boolean;\n\twphostInfo : any;\n\twordpressInfoString: any;\n\n\tconstructor(\n\t\tprivate accountsService : AccountsService,\n\t\tprivate activityService : ActivityService,\n\t\tprivate storageService : StorageService,\n\t\tprivate httpService : HttpService,\n\t\tprivate companyService : CompanyService,\n\t\tprivate supportService : SupportIssueService,\n\t\tprivate errorsService : ErrorsService,\n\t\tprivate eventsService : EventsService,\n\t\tprivate http : Http,\n\t\tprivate router : Router\n\t) {\n\t\tthis.detailsTab = 'message';\n\t\tthis.moduleSearch = '';\n\t\tthis.account = {}\n\t\tthis.accountStatuses = [];\n\t\tthis.accountStatuses.push({ statusId : 0, name : this._accountStatuses[0] });\n\t\tthis.accountStatuses.push({ statusId : 1, name : this._accountStatuses[1] });\n\t\tthis.accountStatuses.push({ statusId : 5, name : this._accountStatuses[5] });\n\t\tthis.accountStatuses.push({ statusId : 4, name : this._accountStatuses[4] });\n\t\tthis.accountStatuses.push({ statusId : 6, name : this._accountStatuses[6] });\n\t\tthis.accountStatuses.push({ statusId : 2, name : this._accountStatuses[2] });\n\t\tthis.accountStatuses.push({ statusId : 8, name : this._accountStatuses[8] });\n\t\tthis.accountStatuses.push({ statusId : 7, name : this._accountStatuses[7] });\n\t\tthis.accountStatuses.push({ statusId : 9, name : this._accountStatuses[9] });\n\t\tthis.accountStatuses.push({ statusId : 10, name : this._accountStatuses[10] });\n\t\tthis.accountStatuses.push({ statusId : 11, name : this._accountStatuses[11] });\n\t\tthis.accountStatuses.push({ statusId : 3, name : this._accountStatuses[3] });\n\t\tthis.accountStatuses.push({ statusId : 13, name : this._accountStatuses[13] });\n\t\tthis.accountStatuses.push({ statusId : 12, name : this._accountStatuses[12] });\n\t\tthis.user = this.httpService.getUser();\n\t\tthis.availableUsers = [];\n\t\tthis.contactEmails = [];\t\t\n\t\tthis.infoTemplates = {\n\t\t\t0 : \"/assets/utskick/material_awaiting.html\",\n\t\t\t1 : \"/assets/utskick/material_awaiting_confirmation.html\",\n\t\t\t2 : \"/assets/utskick/draft_created.html\",\n\t\t\t13 : \"/assets/utskick/site_completed.html\",\n\t\t\t4 : \"/assets/utskick/material_confirmed.html\",\n\t\t\t5 : \"/assets/utskick/material_not_confirmed.html\",\n\t\t\t6 : \"/assets/utskick/draft_under_production.html\",\n\t\t\t9 : \"/assets/utskick/site_in_production.html\",\n\t\t\t10 : \"/assets/utskick/site_created.html\",\n\t\t\t12 : \"/assets/utskick/site_closed.html\"\n\t\t}\n\t\tthis.loginDetailsTemplate = \"/assets/utskick/inloggingsuppgifter.html\";\n\t\tthis.domainInfoTemplate = \"/assets/utskick/domaininfo.html\";\n\t\tthis.startGuideTemplate = \"/assets/utskick/startguide.html\";\n\t\tthis.mailframeworkTemplate = \"/assets/utskick/mailframework.html\";\n\t\tthis.newUserData = {\n\t\t\tname : '',\n\t\t\tpassword : '',\n\t\t\temail : '',\n\t\t\tftgId : this.account.accountId,\n\t\t\tusername : ''\n\t\t}\n\t}\n\n\tngAfterViewInit() {\n\t\tthis.httpService.getAllUsers().then((users) => {\n\t\t\tusers.forEach((u) => {\n\t\t\t\tif(u.userId == 26) return;\n\t\t\t\tthis.availableUsers.push(u);\n\t\t\t})\n\t\t});\n\t}\n\n\t@Input() \n\tset accountId(value : number) {\n\t\tthis._accountId = value;\n\t\tif(value > 0) {\n\t\t\tthis.refresh();\n\t\t}\n\t}\n\n\tget accountId() : number {\n\t\treturn this._accountId;\n\t}\n\n\trefresh() : Promise<boolean> {\n\t\tthis.show = 'info';\n\t\tthis.loaded = false;\t\t\n\t\treturn new Promise((resolver) => {\n\t\t\tthis.accountsService.getAccount(this._accountId).then((account) => {\n\t\t\t\tconsole.log('account', account)\n\t\t\t\taccount.noteStr = this.buffToString(account.note);\n\t\t\t\taccount.statusLog.forEach((l) => {\n\t\t\t\t\tl.noteStr = this.buffToString(l.note);\n\t\t\t\t})\t\t\t\n\t\t\t\tthis.account = account;\n\t\t\t\tthis.account.isWordpress = account.type === 'wordpress' || account.type === 'wphost';\n\t\t\t\tif(this.account.isWordpress) {\n\t\t\t\t\tif(this.account.type === 'wphost') this.account.login_url = 'https://'+this.account.prefix+'.hemsidadirekt.se/gh-login.php?user=User&prefix='+this.account.prefix+'&hash='+this.account.loginhash;\n\t\t\t\t\telse this.account.login_url = 'http://'+this.account.prefix+'.generatorhallen.se/gh-login.php?user=User&prefix='+this.account.prefix+'&hash='+this.account.loginhash;\n\t\t\t\t}\n\t\t\t\tif(typeof(this.account.statusId) == 'undefined') {\n\t\t\t\t\tthis.accountsService.createAccountStatus(this._accountId, 0).then((response) => {\n\t\t\t\t\t\tthis.account.statusId = 0;\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\tthis.storageService.getSignedUrl(\"hsd-public-content\", \"clientimages/\" + this._accountId + '.jpg').then((url) => {\n\t\t\t\t\tif(url.url)\n\t\t\t\t\t\tthis.layoutImageUrl = url.url;\n\t\t\t\t\telse\n\t\t\t\t\t\tthis.layoutImageUrl = null;\n\t\t\t\t});\n\t\t\t\tthis.accountsService.getAvailablePlugins(this.account.accountId).then((availableModules) => {\n\t\t\t\t\tthis.availableModules = availableModules;\n\t\t\t\t}).catch((e) => {\n\t\t\t\t\tconsole.log(e);\n\t\t\t\t});\n\t\t\t\tthis.companyService.getEmailAccounts(this.account.companyId).then((emailAccounts) => {\n\t\t\t\t\tthis.emailAccounts = emailAccounts;\n\t\t\t\t}).catch((e) => {\n\t\t\t\t\tthis.errorsService.broadcast('error', e.errorMessage || e.message);\t\n\t\t\t\t});\t\t\t\t\n\t\t\t\tif(this.account.companyId) {\n\t\t\t\t\tthis.companyService.getById(this.account.companyId).then((company) => {\n\t\t\t\t\t\tthis.company = company\n\t\t\t\t\t\tcompany.contacts.forEach((c) => {\n\t\t\t\t\t\t\tc.emails.forEach((e) => {\n\t\t\t\t\t\t\t\te.firstName = c.firstName;\n\t\t\t\t\t\t\t\te.lastName = c.lastName;\n\t\t\t\t\t\t\t\tthis.contactEmails.push(e);\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t})\n\t\t\t\t\t\tif(this.contactEmails.length > 0) {\n\t\t\t\t\t\t\tthis.selectedContactEmail = this.contactEmails[0].adress;\n\t\t\t\t\t\t\tthis.selectedFirstName = this.contactEmails[0].firstName;\n\t\t\t\t\t\t\tthis.selectedLastName = this.contactEmails[0].lastName;\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t\tif(this.account.type == 'wordpress') {\n\t\t\t\t\tthis.accountsService.GetWordpressInstance(this.account.instanceId).then((instanceInfo) => {\n\t\t\t\t\t\tconsole.log('instanceInfo', instanceInfo)\n\t\t\t\t\t\tthis.wordpressInfoString = JSON.stringify(instanceInfo.instance);\n\t\t\t\t\t\tthis.wordpressInfo = instanceInfo.instance;\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t\tif(this.account.type == 'wphost') {\n\t\t\t\t\tthis.refreshWp();\n\t\t\t\t}\n\n\t\t\t\tthis.loaded = true;\n\t\t\t\tresolver(true);\n\t\t\t}).catch((e) => {\n\t\t\t\tthis.errorsService.broadcast('error', e.errorMessage);\n\t\t\t})\t\t\t\n\t\t})\n\t}\n\n\trefreshWp() {\n\t\tthis.accountsService.GetWphostInfo(this.account.prefix).then((instanceInfo) => {\n\t\t\tconsole.log('instanceInfo', instanceInfo);\n\t\t\tthis.wphostInfo = instanceInfo;\n\t\t\tthis.canPublish = false;\n\t\t\tif(this.wphostInfo.dns.length) {\n\t\t\t\tthis.canPublish = this.wphostInfo.dns.filter(r => r.status !== \"OK\").length > 0;\n\t\t\t}\n\t\t});\n\t}\n\n\tpublishWp() {\n\t\tthis.waitModal.open().then(() => {\n\t\t\tthis.accountsService.publishWp(this.account)\n\t\t\t.then(() => {\n\t\t\t\tthis.waitModal.close();\n\t\t\t\tthis.refreshWp();\n\t\t\t})\n\t\t\t.catch(err => {\n\t\t\t\tthis.waitModal.close();\n\t\t\t\tthis.showError(err.errorMessage);\n\t\t\t});\n\t\t});\n\t}\n\n\tstopWordpressInstance(name) {\n\t\tthis.waitModal.open().then(() => {\n\t\t\tthis.accountsService.StopWordpressInstance(this._accountId, this.company.companyId as number, name).then(() => {\n\t\t\t\tlet waitTimer = setInterval(() => {\n\t\t\t\t\tthis.accountsService.GetWordpressInstance(name).then((info) => {\n\t\t\t\t\t\tthis.wordpressInfoString = JSON.stringify(info.instance);\n\t\t\t\t\t\tthis.wordpressInfo = info.instance;\n\t\t\t\t\t\tif(info.instance.state.code == 80) {\n\t\t\t\t\t\t\tclearInterval(waitTimer);\n\t\t\t\t\t\t\tthis.waitModal.close();\n\t\t\t\t\t\t}\n\t\t\t\t\t}).catch((err) => {\n\t\t\t\t\t\talert(err);\n\t\t\t\t\t\tclearInterval(waitTimer);\n\t\t\t\t\t})\n\t\t\t\t}, 2000)\n\t\t\t}).catch((error) => {\n\t\t\t\tthis.waitModal.close().then(() => {\n\t\t\t\t\tthis.errorModal.open().then(() => {\n\t\t\t\t\t\tthis.errorMessage = error;\n\t\t\t\t\t})\n\t\t\t\t})\n\t\t\t})\n\t\t})\t\t\n\t}\n\n\tstartWordpressInstance(name) {\n\t\tthis.waitModal.open().then(() => {\n\t\t\tthis.accountsService.StartWordpressInstance(this._accountId, this.company.companyId as number, name).then(() => {\n\t\t\t\tlet waitTimer = setInterval(() => {\n\t\t\t\t\tthis.accountsService.GetWordpressInstance(name).then((info) => {\n\t\t\t\t\t\tthis.wordpressInfoString = JSON.stringify(info.instance);\n\t\t\t\t\t\tthis.wordpressInfo = info.instance;\n\t\t\t\t\t\tif(info.instance.state.code == 16) {\n\t\t\t\t\t\t\tclearInterval(waitTimer);\n\t\t\t\t\t\t\tthis.waitModal.close()\n\t\t\t\t\t\t}\n\t\t\t\t\t}).catch((err) => {\n\t\t\t\t\t\talert(err);\n\t\t\t\t\t\tclearInterval(waitTimer);\n\t\t\t\t\t})\n\t\t\t\t}, 2000)\n\t\t\t}).catch((error) => {\n\t\t\t\tthis.waitModal.close().then(() => {\n\t\t\t\t\tthis.errorModal.open().then(() => {\n\t\t\t\t\t\tthis.errorMessage = error;\n\t\t\t\t\t})\n\t\t\t\t})\n\t\t\t})\n\t\t})\n\t}\n\n\trebootWordpressInstance(name) {\n\t\tthis.waitModal.open().then(() => {\n\t\t\tthis.accountsService.RebootWordpressInstance(this._accountId, this.company.companyId as number, name).then(() => {\n\t\t\t\tlet waitTimer = setInterval(() => {\n\t\t\t\t\tthis.accountsService.GetWordpressInstance(name).then((info) => {\n\t\t\t\t\t\tthis.wordpressInfoString = JSON.stringify(info.instance);\n\t\t\t\t\t\tthis.wordpressInfo = info.instance;\n\t\t\t\t\t\tif(info.instance.state.code == 16) {\n\t\t\t\t\t\t\tclearInterval(waitTimer);\n\t\t\t\t\t\t\tthis.waitModal.close()\n\t\t\t\t\t\t}\n\t\t\t\t\t}).catch((err) => {\n\t\t\t\t\t\talert(err);\n\t\t\t\t\t\tclearInterval(waitTimer);\n\t\t\t\t\t})\n\t\t\t\t}, 2000)\n\t\t\t}).catch((error) => {\n\t\t\t\tthis.waitModal.close().then(() => {\n\t\t\t\t\tthis.errorModal.open().then(() => {\n\t\t\t\t\t\tthis.errorMessage = error;\n\t\t\t\t\t})\n\t\t\t\t})\n\t\t\t})\n\t\t})\n\t}\n\n\tenableModule(module) {\n\t\tmodule.enabling = true;\n\t\tthis.accountsService.setModuleStatus(this._accountId, module.moduleId, 1).then(() => {\n\t\t\tmodule.enabling = false;\n\t\t\tmodule.active = 1;\n\t\t}).catch((e) => {\n\t\t\tconsole.log(e);\n\t\t})\n\t}\n\n\tdisableModule(module) {\n\t\tmodule.disabling = true;\n\t\tthis.accountsService.setModuleStatus(this._accountId, module.moduleId, 0).then(() => {\n\t\t\tmodule.disabling = false;\n\t\t\tmodule.active = 0;\n\t\t}).catch((e) => {\n\t\t\tconsole.log(e);\n\t\t})\n\t}\n\t\n\tsetUserPassword(user) {\n\t\tthis.modifiedUser = user;\n\t\tthis.setUserPasswordModal.open().then(() => {\n\t\t\tthis.newPassword = \"\";\n\t\t})\n\t}\n\n\tsaveUserPassword() {\n\t\tthis.saveModal.open().then(() => {\n\t\t\tthis.accountsService.setUserPassword(this.modifiedUser, this.newPassword).then((response) => {\n\t\t\t\tthis.modifiedUser.password = this.newPassword;\n\t\t\t\tthis.saveModal.close().then(() => {\n\t\t\t\t\tthis.setUserPasswordModal.close();\n\t\t\t\t})\n\t\t\t}).catch((e) => {\n\t\t\t\tthis.saveModal.close().then(() => {\n\t\t\t\t\tthis.errorsService.broadcast('error', e.errorMessage);\n\t\t\t\t})\n\t\t\t})\n\t\t})\n\t}\n\n\tgenerateRandomPassword() {\n\t\tvar str = \"\";\n\t\tvar passwrdChars = \"abcdefghijklmnopqrstuvwxyz0123456789-!/&%?.\";\n\t\tfor(var i = 0; i < 10; i++) {\n\t\t\tvar r = (Math.random() * passwrdChars.length).toString();\n\t\t\tstr = str + passwrdChars.substr(parseInt(r), 1);\n\t\t}\n\t\tthis.newPassword = str;\n\t\tthis.newUserData.password = str;\n\t}\n\n\tsetUserEmail(user) {\n\t\tthis.modifiedUser = user;\n\t\tthis.setUserEmailModal.open().then(() => {\n\t\t\tthis.newEmail = user.email;\n\t\t})\n\t}\n\n\tsaveUserEmail() {\n\t\tthis.saveModal.open().then(() => {\n\t\t\tthis.accountsService.setUserEmail(this.modifiedUser, this.newEmail).then((response) => {\n\t\t\t\tthis.modifiedUser.email = this.newEmail;\n\t\t\t\tthis.saveModal.close().then(() => {\n\t\t\t\t\tthis.setUserEmailModal.close();\n\t\t\t\t})\n\t\t\t}).catch((e) => {\n\t\t\t\tthis.saveModal.close().then(() => {\n\t\t\t\t\tthis.errorsService.broadcast('error', e.errorMessage);\n\t\t\t\t})\n\t\t\t})\n\t\t})\n\t}\n\t\n\tinfoTextChanged() {\n\t\tvar str = this._infoText;\n\t\tstr = str.replace(new RegExp('<!--message-->', 'g'), this.infoMessage ? '<p><strong>Meddelande från vår produktionsavdelning:</strong></p><p>' + this.infoMessage + '<!--message--></p>' : '');\n\t\tthis.infoTextPreview = str;\n\t}\n\n\tsendLoginDetails(user) {\n\t\tthis.sendDetailsModal.open('lg').then(() => {\n\t\t\tthis.infoMessage = '';\n\t\t\tthis.selectedContactEmail = user.email;\n\t\t\tthis.infoSubject = 'Välkommen till Hemsida Direkt';\n\t\t\tthis.http.get(this.loginDetailsTemplate).subscribe((response) => {\n\t\t\t\tthis.infoText = this.infoTextPreview = response.text();\n\t\t\t\tthis.infoText = this.infoText.replace(new RegExp('<!--username-->', 'g'), user.username);\n\t\t\t\tthis.infoText = this.infoText.replace(new RegExp('<!--password-->', 'g'), user.password);\n\t\t\t\tthis.infoText = this.infoText.replace(new RegExp('<!--email-->', 'g'), user.email);\n\t\t\t\tthis._infoText = this.infoText;\n\t\t\t});\n\t\t});\n\t}\n\n\tsendDomainInfo(user) {\n\t\tthis.sendDetailsModal.open('lg').then(() => {\n\t\t\tthis.infoMessage = '';\n\t\t\tthis.selectedContactEmail = user.email;\n\t\t\tthis.infoSubject = 'Information om domänflytt';\n\t\t\tthis.http.get(this.domainInfoTemplate).subscribe((response) => {\n\t\t\t\tthis.infoText = this.infoTextPreview = response.text();\n\t\t\t\tthis._infoText = this.infoText;\n\t\t\t});\n\t\t});\n\t}\n\n\tsendStartGuide(user) {\n\t\tthis.sendDetailsModal.open('lg').then(() => {\n\t\t\tthis.infoMessage = '';\n\t\t\tthis.selectedContactEmail = user.email;\n\t\t\tthis.infoSubject = 'Starthjälpen';\n\t\t\tthis.http.get(this.startGuideTemplate).subscribe((response) => {\n\t\t\t\tthis.infoText = this.infoTextPreview = response.text();\n\t\t\t\tthis._infoText = this.infoText;\n\t\t\t});\n\t\t});\n\t}\n\n\tcloseInfoModal(modal, isCancel) : Promise<boolean> {\n\t\treturn new Promise((resolve) => {\n\t\t\t(modal || this.sendInfoModal).close().then(() => {\n\t\t\t\t// create activitity?\n\t\t\t\tif(isCancel) {\n\t\t\t\t\tresolve();\n\t\t\t\t} else {\n\t\t\t\t\tif(!modal && this.account.statusId == 9) {\n\t\t\t\t\t\tthis.afterCreateActivityModalResolver = resolve;\n\t\t\t\t\t\tthis.createActivityModal.open();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tresolve();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t})\n\t\t})\n\t}\n\n\tcreateActivitiesAndClose() {\n\t\tthis.waitModal.open().then(() => {\n\t\t\tif(this.account.statusId == 9) {\n\t\t\t\tvar activityData = { accountId : this.account.accountId, companyId : this.company.companyId, name : \"Hemsida, Klipp upp\", description : \"Klipp upp \" };\n\t\t\t\tthis.createOneActivity(activityData).then(() => {\n\t\t\t\t\tactivityData.name = 'Hemsida, Under produktion';\n\t\t\t\t\tactivityData.description = '';\n\t\t\t\t\tthis.createOneActivity(activityData).then(() => {\n\t\t\t\t\t\tthis.waitModal.close().then(() => {\n\t\t\t\t\t\t\tthis.closeCreateActivityModal();\n\t\t\t\t\t\t});\n\t\t\t\t\t})\n\t\t\t\t})\n\t\t\t}\n\t\t})\n\t}\n\n\tcreateOneActivity(activityData) : Promise<any> {\n\t\treturn new Promise((resolve) => {\n\t\t\tvar start = (new Date().getTime() / 1000) + (60 * 60 * 24 * 7)\n\t\t\tvar end = (new Date().getTime() / 1000) + (60 * 60 * 24 * 7)\n\t\t\tthis.activityService.createActivity(activityData.name, activityData.description, 26, activityData.accountId, 2).then((data) => {\n\t\t\t\tthis.activityService.getActivities({ taskId : data.taskId }, 0, 10).then((activityList) => {\n\t\t\t\t\tif(activityList.total > 0) {\n\t\t\t\t\t\tvar activity = activityList.list[0] as Activity;\n\t\t\t\t\t\tactivity.startDate = start;\n\t\t\t\t\t\tactivity.endDate = end;\n\t\t\t\t\t\tthis.activityService.saveActivity(activity, 'date').then(() => {\n\t\t\t\t\t\t\tresolve();\n\t\t\t\t\t\t})\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t});\n\t\t});\n\t}\n\n\tcloseCreateActivityModal() {\n\t\tthis.createActivityModal.close().then(() => {\n\t\t\tthis.afterCreateActivityModalResolver();\n\t\t})\n\t}\n\n\tshowInfoModal() {\n\t\tthis.sendInfoModal.open('lg').then(() => {\n\t\t\tthis.infoMessage = '';\n\t\t\tthis.infoSubject = this._accountStatuses[this.account.statusId];\n\t\t\tthis.http.get(this.infoTemplates[this.account.statusId]).subscribe((response) => {\n\t\t\t\tthis.infoText = response.text();\n\t\t\t})\n\t\t})\n\t}\n\n\tsendInfoMail(modal) {\n\t\tvar loginHash = '';\n\t\tthis.company.accounts.forEach((a) => {\n\t\t\tif(a.accountId == this.account.ftgId) {\n\t\t\t\tloginHash = a.loginhash;\n\t\t\t}\n\t\t})\n\t\tthis.infoText = this.infoText.replace(new RegExp('<!--domain-->', 'g'), this.company.domain.length > 0 ? this.company.domain[0].domain : '');\n\t\tthis.infoText = this.infoText.replace(new RegExp('<!--hash-->', 'g'), loginHash);\n\t\tthis.infoText = this.infoText.replace(new RegExp('<!--expireInfo-->', 'g'), '');\n\t\tthis.infoText = this.infoText.replace(new RegExp('<!--accountId-->', 'g'), this._accountId.toString());\n\t\tthis.infoText = this.infoText.replace(new RegExp('<!--message-->', 'g'), this.infoMessage ? '<p><strong>Meddelande från vår produktionsavdelning:</strong></p><p><em>' + this.infoMessage + '</em></p>' : '');\n\t\tthis.http.get(this.mailframeworkTemplate).subscribe((response) => {\n\t\t\tvar message = response.text();\n\t\t\tmessage = message.replace(new RegExp(\"<!--messagebody-->\", 'g'), this.infoText);\n\t\t\tthis.waitModal.open().then(() => {\t\t\t\n\t\t\t\tthis.supportService.sendReply(this.infoSubject, message, 'Detta epostmeddelande kräver att din klient kan visa HTML', this.selectedContactEmail, '', [], undefined).then((result) => {\n\t\t\t\t\tvar commNote = 'Skickade ' + this.infoSubject + ' till ' + this.selectedContactEmail + (this.infoMessage ? \"\\nMeddelande: \\n\\n\" + this.infoMessage : '');\n\t\t\t\t\tthis.accountsService.addCommunication(this.company.companyId, this._accountId, this.httpService.getUser().userId, 22, commNote).then((response) => {\n\t\t\t\t\t\tthis.waitModal.close().then(() => {\n\t\t\t\t\t\t\tthis.closeInfoModal(modal, false).then(() => {\n\t\t\t\t\t\t\t\tthis.refresh();\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t})\n\t\t\t\t\t})\n\t\t\t\t}).catch((e) => {\n\t\t\t\t\tthis.waitModal.close().then(() => {\n\t\t\t\t\t\tthis.errorMessage = e.errorMessage || e.message;\n\t\t\t\t\t\tthis.errorModal.open();\t\t\t\t\t\n\t\t\t\t\t})\n\t\t\t\t});\t\t\t\n\t\t\t})\n\t\t});\n\t}\n\n\tsetOwner(user) {\n\t\tthis.waitModal.open().then(() => {\n\t\t\tthis.accountsService.setOwner(this.account, user).then((response) => {\n\t\t\t\tthis.waitModal.close().then(() => {\n\t\t\t\t\tif(!response.success) {\n\t\t\t\t\t\tthis.errorMessage = \"Fel, kunde inte sätta status\";\n\t\t\t\t\t\tthis.errorModal.open();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.account.userId = user.userId;\n\t\t\t\t\t\tthis.account.firstName = user.firstName;\n\t\t\t\t\t\tthis.account.lastName = user.lastName;\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t});\n\t\t})\n\t}\n\n\tsetStatus(id) {\n\t\tthis.waitModal.open().then(() => {\n\t\t\tthis.account.statusName = this._accountStatuses[id];\n\t\t\tthis.accountsService.setStatus(this.account, id, this.company.companyId).then((response) => {\n\t\t\t\tthis.waitModal.close().then(() => {\n\t\t\t\t\tif(response.success) {\n\t\t\t\t\t\tif(this.account.statusId != id && this.infoTemplates[id]) {\n\t\t\t\t\t\t\tif(id == 2 && this.layoutImageUrl == null) {\n\t\t\t\t\t\t\t\tthis.noLayoutImageModal.open();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tthis.showInfoModal();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tthis.account.statusId = id;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.errorMessage = \"Fel, kunde inte sätta status\";\n\t\t\t\t\t\tthis.errorModal.open();\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t})\n\t\t});\n\t}\n\n\tsetActive() {\n\t\tthis.waitModal.open().then(() => {\n\t\t\tthis.accountsService.setActive(this.account).then((response) => {\n\t\t\t\tthis.waitModal.close().then(() => {\n\t\t\t\t\tif(response.success) {\n\t\t\t\t\t\tthis.refresh();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.errorMessage = \"Fel, kunde inte sätta status\";\n\t\t\t\t\t\tthis.errorModal.open();\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t})\n\t\t})\n\t}\n\n\n\tsetInactive() {\n\t\tthis.waitModal.open().then(() => {\n\t\t\tthis.accountsService.setInactive(this.account).then((response) => {\n\t\t\t\tthis.waitModal.close().then(() => {\n\t\t\t\t\tif(response.success) {\n\t\t\t\t\t\tthis.refresh();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.errorMessage = \"Fel, kunde inte sätta status\";\n\t\t\t\t\t\tthis.errorModal.open();\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t}).catch(() => {\n\t\t\t\tthis.waitModal.close().then(() => {\n\t\t\t\t\tthis.errorMessage = \"Fel, kunde inte sätta status\";\n\t\t\t\t\tthis.errorModal.open();\n\t\t\t\t});\n\t\t\t})\n\t\t})\n\t}\n\t\n\tbuffToString(note : any) : String {\n\t\tvar ret = '';\n\t\tif(note && note.data) {\n\t\t\tnote.data.forEach((c) => {\n\t\t\t\tret += String.fromCharCode(c);\n\t\t\t})\n\t\t}\n\t\treturn ret;\n\t}\n\n\tuploadLayoutImage() {\n\t\tthis.fileUpload.uploadOne(\"hsd-public-content\", \"clientimages/\" + this._accountId + '.jpg', 'public-read').then((success) => {\n\t\t\tif(success) {\n\t\t\t\tthis.accountsService.addCommunication(this.account.companyId, this._accountId, this.httpService.getUser().userId, 9, 'Laddade upp förslagsbild för #' + this.account.prefix).then(() => {\n\t\t\t\t\tthis.fileUpload.close().then(() => {\n\t\t\t\t\t\tthis.waitModal.open().then(() => {\n\t\t\t\t\t\t\tthis.storageService.getSignedUrl(\"hsd-public-content\", \"clientimages/\" + this._accountId + '.jpg').then((url) => {\n\t\t\t\t\t\t\t\tif(url.url)\n\t\t\t\t\t\t\t\t\tthis.layoutImageUrl = url.url;\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\tthis.layoutImageUrl = null;\n\t\t\t\t\t\t\t\tthis.waitModal.close();\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t})\n\t\t\t\t\t})\n\t\t\t\t})\n\t\t\t}\n\t\t})\n\t}\n\n\tconfirmRemoveLayoutImage() {\n\t\tthis.confirmRemoveLayoutImageModal.open()\n\t}\n\n\tremoveLayoutImage() {\n\t\tthis.confirmRemoveLayoutImageModal.close().then(() => {\n\t\t\tthis.waitModal.open().then(() => {\n\t\t\t\tthis.storageService.deleteObjects(\"hsd-public-content\", [{ key : \"clientimages/\" + this._accountId + '.jpg' }]).then((response) => {\n\t\t\t\t\tconsole.log(response);\n\t\t\t\t\tthis.storageService.getSignedUrl(\"hsd-public-content\", \"clientimages/\" + this._accountId + '.jpg').then((url) => {\n\t\t\t\t\t\tthis.waitModal.close().then(() => {\n\t\t\t\t\t\t\tif(url.url)\n\t\t\t\t\t\t\t\tthis.layoutImageUrl = url.url;\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tthis.layoutImageUrl = null;\n\t\t\t\t\t\t\t})\n\t\t\t\t\t})\n\t\t\t\t})\t\t\n\t\t\t})\n\t\t});\n\t}\n\n\taddNewUser() {\n\t\tthis.newUserData = {\n\t\t\tname : '',\n\t\t\tpassword : '',\n\t\t\temail : '',\n\t\t\tftgId : this.account.accountId,\n\t\t\tusername : ''\n\t\t}\n\t\tthis.addUserModal.open();\n\t}\n\n\taddUser() {\n\t\tvar data = {\n\t\t\tftgId : this.account.accountId,\n\t\t\tusername : this.newUserData.username,\n\t\t\tpassword : this.newUserData.password,\n\t\t\tname : this.newUserData.name,\n\t\t\temail : this.newUserData.email,\n\t\t}\n\t\tthis.waitModal.open().then(() => {\n\t\t\tthis.accountsService.addUser(data).then((response) => {\n\t\t\t\tthis.waitModal.close().then(() => {\n\t\t\t\t\tthis.addUserModal.close().then(() => {\n\t\t\t\t\t\tthis.account.users.push(data);\n\t\t\t\t\t})\n\t\t\t\t});\n\t\t\t}).catch((e) => {\n\t\t\t\tthis.waitModal.close().then(() => {\n\t\t\t\t\tthis.errorMessage = e.errorMessage || e.message;\n\t\t\t\t\tthis.errorModal.open();\n\t\t\t\t})\n\t\t\t})\n\t\t});\n\t}\n\n\tdeleteUser(userToDelete) {\n\t\tthis.confirmDeleteUserModal.open().then(() => {\n\t\t\tthis.userToDelete = userToDelete;\n\t\t})\n\t}\n\n\tconfirmDeleteUser() {\n\t\tthis.confirmDeleteUserModal.close().then(() => {\n\t\t\tthis.waitModal.open().then(() => {\n\t\t\t\tthis.accountsService.deleteUser(this.userToDelete).then((response) => {\n\t\t\t\t\tthis.waitModal.close().then(() => {\n\t\t\t\t\t\tthis.account.users.splice(this.account.users.indexOf(this.userToDelete), 1);\n\t\t\t\t\t})\n\t\t\t\t}).catch((e) => {\n\t\t\t\t\tthis.waitModal.close().then(() => {\n\t\t\t\t\t\tthis.errorMessage = e.errorMessage || e.message;\n\t\t\t\t\t\tthis.errorModal.open();\n\t\t\t\t\t})\n\t\t\t\t})\n\t\t\t});\n\t\t})\n\t}\n\n\tsaveNote() {\n\t\tthis.waitModal.open().then(() => {\n\t\t\tthis.accountsService.setNote(this.account, this.account.noteStr).then((response) => {\n\t\t\t\tthis.waitModal.close().then(() => {\n\t\t\t\t\tif(!response.success) {\n\t\t\t\t\t\tthis.errorMessage = \"Fel, kunde inte spara.\";\n\t\t\t\t\t\tthis.errorModal.open();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.edit = false;\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t})\n\t\t})\n\t}\n\n\tcloseErrorDialog() {\n\t\tthis.errorModal.close().then(() => {\n\t\t\tif(this.closeErrorDialogClb) {\n\t\t\t\tthis.closeErrorDialogClb();\n\t\t\t\tthis.closeErrorDialogClb = null;\n\t\t\t}\n\t\t})\n\t}\n\n\tshowError(message) : Promise<any> {\n\t\treturn new Promise((resolve) => {\n\t\t\tthis.errorMessage = message;\n\t\t\tthis.errorModal.open().then(() => {\n\t\t\t\tthis.closeErrorDialogClb = () => {\n\t\t\t\t\tthis.errorModal.close().then(() => {\n\t\t\t\t\t\tresolve('error-closed');\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t})\n\t\t});\n\t}\n\n\taddEmailAlias() {\n\t\tthis.emailUtils.addEmailAlias().then((response) => {\n\t\t\tconsole.log(response);\n\t\t\tif(response.action == 'added') {\n\t\t\t\tthis.emailAccounts.aliases.push(response.alias);\n\t\t\t}\n\t\t}).catch((e) => {\n\t\t\tthis.showError(e.errorMessage || e.message).then(() => {\n\t\t\t\t\n\t\t\t})\n\t\t})\n\t}\n\n\taddEmailAccount() {\n\t\tthis.emailUtils.addEmailAccount().then((response) => {\n\t\t\tconsole.log(response);\n\t\t\tif(response.action == 'added') {\n\t\t\t\tthis.emailAccounts.accounts.push(response.account);\n\t\t\t}\n\t\t}).catch((e) => {\n\t\t\tthis.showError(e.errorMessage || e.message).then(() => {\n\t\t\t\t\n\t\t\t})\n\t\t})\n\t}\n\n\teditAlias(alias) {\n\t\tvar aliasCopy = JSON.parse(JSON.stringify(alias));\n\t\tthis.emailUtils.editAlias(aliasCopy).then((response) => {\n\t\t\tif(response.action == 'cancel-delete') {\n\t\t\t\tthis.editAlias(alias);\n\t\t\t} else if(response.action == 'deleted') {\n\t\t\t\tthis.emailAccounts.aliases.splice(this.emailAccounts.aliases.indexOf(alias), 1);\n\t\t\t} else if(response.action == 'saved') {\n\t\t\t\tfor(var k in alias) {\n\t\t\t\t\talias[k] = aliasCopy[k];\n\t\t\t\t}\n\t\t\t}\n\t\t}).catch((e) => {\n\t\t\tthis.showError(e.errorMessage || e.message).then(() => {\n\t\t\t\tthis.editAlias(alias);\n\t\t\t})\n\t\t})\n\t}\n\n\teditEmail(account) {\n\t\tvar accountCopy = JSON.parse(JSON.stringify(account));\n\t\tthis.emailUtils.editEmail(accountCopy).then((response) => {\n\t\t\tif(response.action == 'cancel-delete') {\n\t\t\t\tthis.editEmail(account);\n\t\t\t} else if(response.action == 'deleted') {\n\t\t\t\tthis.emailAccounts.accounts.splice(this.emailAccounts.accounts.indexOf(account), 1);\n\t\t\t} else if(response.action == 'saved') {\n\t\t\t\tfor(var k in account) {\n\t\t\t\t\taccount[k] = accountCopy[k];\n\t\t\t\t}\n\t\t\t}\n\t\t}).catch((e) => {\n\t\t\tthis.showError(e.errorMessage || e.message).then(() => {\n\t\t\t\tthis.editAlias(account);\n\t\t\t})\n\t\t})\n\t}\n\n}\n\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/components/accountinfo.ts","import { Component, ViewChild } from '@angular/core';\nimport { ModalComponent } from 'ng2-bs4-modal/ng2-bs4-modal';\n\nimport { HttpService } from '../services/http';\nimport { CompanyService } from '../services/company';\n\n@Component({\n\tselector : 'invoiceinfo',\n  template: require('./templates/invoiceinfo.html')\n})\n\nexport class InvoiceInfo {\n\n\t@ViewChild('infoModal')\n  infoModal: ModalComponent;\n\n\t@ViewChild('pdfpreview') pdfpreviewFrame;\n\n\tloading : boolean;\n\tinvoiceInfo : any;\n\tinvoiceId : number;\n\tcompanyId : number;\n\tpreviewedInvoice : any;\n\tinvoicePreviewUrl : string;\n\terror : string;\n\n\tconstructor(\n\t\tprivate httpService: HttpService,\n    private companyService: CompanyService,\n  ) {\n\t\tthis.loading = true;\n\t}\n\n\topen(invoiceId) : void {\n\t\tthis.invoicePreviewUrl = 'about:blank';\n\t\tthis.loading = true;\n\t\tthis.error = null;\n\t\tthis.invoiceId = invoiceId;\n\t\tthis.infoModal.open().then(() => {\n\t\t\tthis.companyService.getInvoiceById(invoiceId).then((invoice) => {\n\t\t\t\tthis.previewedInvoice = invoice;\n\t\t\t\tthis.companyService.getInvoicePdf(invoice.invoiceId)\n\t\t\t\t.then((response) => {\n\t\t\t\t\tif(response.pdfUri) {\n\t\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\t\tthis.pdfpreviewFrame.nativeElement.src = response.pdfUri.replace(\"http\", \"https\");\n\t\t\t\t\t\t\tthis.loading = false;\n\t\t\t\t\t\t}, 1000)\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.error = 'Invoice not found';\n\t\t\t\t\t\tthis.loading = false;\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}).catch((error) => {\n\t\t\t\t\tconsole.log('error', error)\n\t\t\t\t\tthis.error = error;\n\t\t\t\t\tthis.loading = false;\n\t\t\t\t})\n\t\t\t})\t\t\t\n\t\t})\n\t}\n\n}\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/components/invoiceinfo.ts","\"use strict\";\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nvar core_1 = require('@angular/core');\nvar modal_instance_1 = require('./modal-instance');\nvar ModalComponent = (function () {\n    function ModalComponent(element) {\n        var _this = this;\n        this.element = element;\n        this.overrideSize = null;\n        this.visible = false;\n        this.animation = true;\n        this.backdrop = true;\n        this.keyboard = true;\n        this.onClose = new core_1.EventEmitter(false);\n        this.onDismiss = new core_1.EventEmitter(false);\n        this.onOpen = new core_1.EventEmitter(false);\n        this.instance = new modal_instance_1.ModalInstance(this.element);\n        this.instance.hidden.subscribe(function (result) {\n            _this.visible = _this.instance.visible;\n            if (result === modal_instance_1.ModalResult.Dismiss)\n                _this.onDismiss.emit(undefined);\n        });\n        this.instance.shown.subscribe(function () {\n            _this.onOpen.emit(undefined);\n        });\n    }\n    Object.defineProperty(ModalComponent.prototype, \"fadeClass\", {\n        get: function () { return this.animation; },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(ModalComponent.prototype, \"dataKeyboardAttr\", {\n        get: function () { return this.keyboard; },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(ModalComponent.prototype, \"dataBackdropAttr\", {\n        get: function () { return this.backdrop; },\n        enumerable: true,\n        configurable: true\n    });\n    ModalComponent.prototype.ngOnDestroy = function () {\n        return this.instance && this.instance.destroy();\n    };\n    ModalComponent.prototype.open = function (size) {\n        var _this = this;\n        if (ModalSize.validSize(size))\n            this.overrideSize = size;\n        return this.instance.open().then(function () {\n            _this.visible = _this.instance.visible;\n        });\n    };\n    ModalComponent.prototype.close = function () {\n        var _this = this;\n        return this.instance.close().then(function () {\n            _this.onClose.emit(undefined);\n        });\n    };\n    ModalComponent.prototype.dismiss = function () {\n        return this.instance.dismiss();\n    };\n    ModalComponent.prototype.isSmall = function () {\n        return this.overrideSize !== ModalSize.Large\n            && this.size === ModalSize.Small\n            || this.overrideSize === ModalSize.Small;\n    };\n    ModalComponent.prototype.isLarge = function () {\n        return this.overrideSize !== ModalSize.Small\n            && this.size === ModalSize.Large\n            || this.overrideSize === ModalSize.Large;\n    };\n    __decorate([\n        core_1.Input(), \n        __metadata('design:type', Boolean)\n    ], ModalComponent.prototype, \"animation\", void 0);\n    __decorate([\n        core_1.Input(), \n        __metadata('design:type', Object)\n    ], ModalComponent.prototype, \"backdrop\", void 0);\n    __decorate([\n        core_1.Input(), \n        __metadata('design:type', Boolean)\n    ], ModalComponent.prototype, \"keyboard\", void 0);\n    __decorate([\n        core_1.Input(), \n        __metadata('design:type', String)\n    ], ModalComponent.prototype, \"size\", void 0);\n    __decorate([\n        core_1.Output(), \n        __metadata('design:type', core_1.EventEmitter)\n    ], ModalComponent.prototype, \"onClose\", void 0);\n    __decorate([\n        core_1.Output(), \n        __metadata('design:type', core_1.EventEmitter)\n    ], ModalComponent.prototype, \"onDismiss\", void 0);\n    __decorate([\n        core_1.Output(), \n        __metadata('design:type', core_1.EventEmitter)\n    ], ModalComponent.prototype, \"onOpen\", void 0);\n    __decorate([\n        core_1.HostBinding('class.fade'), \n        __metadata('design:type', Boolean)\n    ], ModalComponent.prototype, \"fadeClass\", null);\n    __decorate([\n        core_1.HostBinding('attr.data-keyboard'), \n        __metadata('design:type', Boolean)\n    ], ModalComponent.prototype, \"dataKeyboardAttr\", null);\n    __decorate([\n        core_1.HostBinding('attr.data-backdrop'), \n        __metadata('design:type', Object)\n    ], ModalComponent.prototype, \"dataBackdropAttr\", null);\n    ModalComponent = __decorate([\n        core_1.Component({\n            selector: 'modal',\n            host: {\n                'class': 'modal',\n                'role': 'dialog',\n                'tabindex': '-1'\n            },\n            template: \"\\n        <div class=\\\"modal-dialog\\\" [ngClass]=\\\"{ 'modal-sm': isSmall(), 'modal-lg': isLarge() }\\\">\\n            <div class=\\\"modal-content\\\">\\n                <ng-content></ng-content>\\n            </div>\\n        </div>\\n    \"\n        }), \n        __metadata('design:paramtypes', [core_1.ElementRef])\n    ], ModalComponent);\n    return ModalComponent;\n}());\nexports.ModalComponent = ModalComponent;\nvar ModalSize = (function () {\n    function ModalSize() {\n    }\n    ModalSize.validSize = function (size) {\n        return size && (size === ModalSize.Small || size === ModalSize.Large);\n    };\n    ModalSize.Small = 'sm';\n    ModalSize.Large = 'lg';\n    return ModalSize;\n}());\nexports.ModalSize = ModalSize;\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kYWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvbmcyLWJzNC1tb2RhbC9jb21wb25lbnRzL21vZGFsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBQSxxQkFBMkYsZUFBZSxDQUFDLENBQUE7QUFDM0csK0JBQTJDLGtCQUFrQixDQUFDLENBQUE7QUFpQjlEO0lBb0JJLHdCQUFvQixPQUFtQjtRQXBCM0MsaUJBa0VDO1FBOUN1QixZQUFPLEdBQVAsT0FBTyxDQUFZO1FBbEIvQixpQkFBWSxHQUFXLElBQUksQ0FBQztRQUdwQyxZQUFPLEdBQVksS0FBSyxDQUFDO1FBRWhCLGNBQVMsR0FBWSxJQUFJLENBQUM7UUFDMUIsYUFBUSxHQUFxQixJQUFJLENBQUM7UUFDbEMsYUFBUSxHQUFZLElBQUksQ0FBQztRQUd4QixZQUFPLEdBQXNCLElBQUksbUJBQVksQ0FBQyxLQUFLLENBQUMsQ0FBQztRQUNyRCxjQUFTLEdBQXNCLElBQUksbUJBQVksQ0FBQyxLQUFLLENBQUMsQ0FBQztRQUN2RCxXQUFNLEdBQXNCLElBQUksbUJBQVksQ0FBQyxLQUFLLENBQUMsQ0FBQztRQU8xRCxJQUFJLENBQUMsUUFBUSxHQUFHLElBQUksOEJBQWEsQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDLENBQUM7UUFFaEQsSUFBSSxDQUFDLFFBQVEsQ0FBQyxNQUFNLENBQUMsU0FBUyxDQUFDLFVBQUMsTUFBTTtZQUNsQyxLQUFJLENBQUMsT0FBTyxHQUFHLEtBQUksQ0FBQyxRQUFRLENBQUMsT0FBTyxDQUFDO1lBQ3JDLEVBQUUsQ0FBQyxDQUFDLE1BQU0sS0FBSyw0QkFBVyxDQUFDLE9BQU8sQ0FBQztnQkFDL0IsS0FBSSxDQUFDLFNBQVMsQ0FBQyxJQUFJLENBQUMsU0FBUyxDQUFDLENBQUM7UUFDdkMsQ0FBQyxDQUFDLENBQUM7UUFFSCxJQUFJLENBQUMsUUFBUSxDQUFDLEtBQUssQ0FBQyxTQUFTLENBQUM7WUFDMUIsS0FBSSxDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUMsU0FBUyxDQUFDLENBQUM7UUFDaEMsQ0FBQyxDQUFDLENBQUM7SUFDUCxDQUFDO0lBaEIwQixzQkFBSSxxQ0FBUzthQUFiLGNBQTJCLE1BQU0sQ0FBQyxJQUFJLENBQUMsU0FBUyxDQUFDLENBQUMsQ0FBQzs7O09BQUE7SUFDM0Msc0JBQUksNENBQWdCO2FBQXBCLGNBQWtDLE1BQU0sQ0FBQyxJQUFJLENBQUMsUUFBUSxDQUFDLENBQUMsQ0FBQzs7O09BQUE7SUFDekQsc0JBQUksNENBQWdCO2FBQXBCLGNBQTJDLE1BQU0sQ0FBQyxJQUFJLENBQUMsUUFBUSxDQUFDLENBQUMsQ0FBQzs7O09BQUE7SUFnQnJHLG9DQUFXLEdBQVg7UUFDSSxNQUFNLENBQUMsSUFBSSxDQUFDLFFBQVEsSUFBSSxJQUFJLENBQUMsUUFBUSxDQUFDLE9BQU8sRUFBRSxDQUFDO0lBQ3BELENBQUM7SUFFRCw2QkFBSSxHQUFKLFVBQUssSUFBYTtRQUFsQixpQkFLQztRQUpHLEVBQUUsQ0FBQyxDQUFDLFNBQVMsQ0FBQyxTQUFTLENBQUMsSUFBSSxDQUFDLENBQUM7WUFBQyxJQUFJLENBQUMsWUFBWSxHQUFHLElBQUksQ0FBQztRQUN4RCxNQUFNLENBQUMsSUFBSSxDQUFDLFFBQVEsQ0FBQyxJQUFJLEVBQUUsQ0FBQyxJQUFJLENBQUM7WUFDN0IsS0FBSSxDQUFDLE9BQU8sR0FBRyxLQUFJLENBQUMsUUFBUSxDQUFDLE9BQU8sQ0FBQztRQUN6QyxDQUFDLENBQUMsQ0FBQztJQUNQLENBQUM7SUFFRCw4QkFBSyxHQUFMO1FBQUEsaUJBSUM7UUFIRyxNQUFNLENBQUMsSUFBSSxDQUFDLFFBQVEsQ0FBQyxLQUFLLEVBQUUsQ0FBQyxJQUFJLENBQUM7WUFDOUIsS0FBSSxDQUFDLE9BQU8sQ0FBQyxJQUFJLENBQUMsU0FBUyxDQUFDLENBQUM7UUFDakMsQ0FBQyxDQUFDLENBQUM7SUFDUCxDQUFDO0lBRUQsZ0NBQU8sR0FBUDtRQUNJLE1BQU0sQ0FBQyxJQUFJLENBQUMsUUFBUSxDQUFDLE9BQU8sRUFBRSxDQUFDO0lBQ25DLENBQUM7SUFFTyxnQ0FBTyxHQUFmO1FBQ0ksTUFBTSxDQUFDLElBQUksQ0FBQyxZQUFZLEtBQUssU0FBUyxDQUFDLEtBQUs7ZUFDckMsSUFBSSxDQUFDLElBQUksS0FBSyxTQUFTLENBQUMsS0FBSztlQUM3QixJQUFJLENBQUMsWUFBWSxLQUFLLFNBQVMsQ0FBQyxLQUFLLENBQUM7SUFDakQsQ0FBQztJQUVPLGdDQUFPLEdBQWY7UUFDSSxNQUFNLENBQUMsSUFBSSxDQUFDLFlBQVksS0FBSyxTQUFTLENBQUMsS0FBSztlQUNyQyxJQUFJLENBQUMsSUFBSSxLQUFLLFNBQVMsQ0FBQyxLQUFLO2VBQzdCLElBQUksQ0FBQyxZQUFZLEtBQUssU0FBUyxDQUFDLEtBQUssQ0FBQztJQUNqRCxDQUFDO0lBMUREO1FBQUMsWUFBSyxFQUFFOztxREFBQTtJQUNSO1FBQUMsWUFBSyxFQUFFOztvREFBQTtJQUNSO1FBQUMsWUFBSyxFQUFFOztvREFBQTtJQUNSO1FBQUMsWUFBSyxFQUFFOztnREFBQTtJQUVSO1FBQUMsYUFBTSxFQUFFOzttREFBQTtJQUNUO1FBQUMsYUFBTSxFQUFFOztxREFBQTtJQUNUO1FBQUMsYUFBTSxFQUFFOztrREFBQTtJQUVUO1FBQUMsa0JBQVcsQ0FBQyxZQUFZLENBQUM7O21EQUFBO0lBQzFCO1FBQUMsa0JBQVcsQ0FBQyxvQkFBb0IsQ0FBQzs7MERBQUE7SUFDbEM7UUFBQyxrQkFBVyxDQUFDLG9CQUFvQixDQUFDOzswREFBQTtJQWpDdEM7UUFBQyxnQkFBUyxDQUFDO1lBQ1AsUUFBUSxFQUFFLE9BQU87WUFDakIsSUFBSSxFQUFFO2dCQUNGLE9BQU8sRUFBRSxPQUFPO2dCQUNoQixNQUFNLEVBQUUsUUFBUTtnQkFDaEIsVUFBVSxFQUFFLElBQUk7YUFDbkI7WUFDRCxRQUFRLEVBQUUsdU9BTVQ7U0FDSixDQUFDOztzQkFBQTtJQW1FRixxQkFBQztBQUFELENBQUMsQUFsRUQsSUFrRUM7QUFsRVksc0JBQWMsaUJBa0UxQixDQUFBO0FBRUQ7SUFBQTtJQU9BLENBQUM7SUFIVSxtQkFBUyxHQUFoQixVQUFpQixJQUFZO1FBQ3pCLE1BQU0sQ0FBQyxJQUFJLElBQUksQ0FBQyxJQUFJLEtBQUssU0FBUyxDQUFDLEtBQUssSUFBSSxJQUFJLEtBQUssU0FBUyxDQUFDLEtBQUssQ0FBQyxDQUFDO0lBQzFFLENBQUM7SUFMTSxlQUFLLEdBQUcsSUFBSSxDQUFDO0lBQ2IsZUFBSyxHQUFHLElBQUksQ0FBQztJQUt4QixnQkFBQztBQUFELENBQUMsQUFQRCxJQU9DO0FBUFksaUJBQVMsWUFPckIsQ0FBQSJ9\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ng2-bs4-modal/components/modal.js\n// module id = 117\n// module chunks = 0","\"use strict\";\nvar ConnectableObservable_1 = require('../observable/ConnectableObservable');\n/* tslint:disable:max-line-length */\n/**\n * Returns an Observable that emits the results of invoking a specified selector on items\n * emitted by a ConnectableObservable that shares a single subscription to the underlying stream.\n *\n * <img src=\"./img/multicast.png\" width=\"100%\">\n *\n * @param {Function|Subject} Factory function to create an intermediate subject through\n * which the source sequence's elements will be multicast to the selector function\n * or Subject to push source elements into.\n * @param {Function} Optional selector function that can use the multicasted source stream\n * as many times as needed, without causing multiple subscriptions to the source stream.\n * Subscribers to the given source will receive all notifications of the source from the\n * time of the subscription forward.\n * @return {Observable} an Observable that emits the results of invoking the selector\n * on the items emitted by a `ConnectableObservable` that shares a single subscription to\n * the underlying stream.\n * @method multicast\n * @owner Observable\n */\nfunction multicast(subjectOrSubjectFactory, selector) {\n    var subjectFactory;\n    if (typeof subjectOrSubjectFactory === 'function') {\n        subjectFactory = subjectOrSubjectFactory;\n    }\n    else {\n        subjectFactory = function subjectFactory() {\n            return subjectOrSubjectFactory;\n        };\n    }\n    if (typeof selector === 'function') {\n        return this.lift(new MulticastOperator(subjectFactory, selector));\n    }\n    var connectable = Object.create(this, ConnectableObservable_1.connectableObservableDescriptor);\n    connectable.source = this;\n    connectable.subjectFactory = subjectFactory;\n    return connectable;\n}\nexports.multicast = multicast;\nvar MulticastOperator = (function () {\n    function MulticastOperator(subjectFactory, selector) {\n        this.subjectFactory = subjectFactory;\n        this.selector = selector;\n    }\n    MulticastOperator.prototype.call = function (subscriber, source) {\n        var selector = this.selector;\n        var subject = this.subjectFactory();\n        var subscription = selector(subject).subscribe(subscriber);\n        subscription.add(source.subscribe(subject));\n        return subscription;\n    };\n    return MulticastOperator;\n}());\nexports.MulticastOperator = MulticastOperator;\n//# sourceMappingURL=multicast.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/multicast.js\n// module id = 120\n// module chunks = 0","import { Component, OnInit, ViewChild, ElementRef, AfterViewInit } from '@angular/core';\nimport { Router, ActivatedRoute, Params, NavigationStart, NavigationEnd, Event }            from '@angular/router';\nimport { Observable }        from 'rxjs/Observable';\nimport { ModalModule, ModalComponent } from 'ng2-bs4-modal/ng2-bs4-modal';\n\nimport { ActivityService } from '../services/activity';\nimport { HttpService } from '../services/http';\nimport { CompanyService } from '../services/company';\nimport { LocalStorageService } from 'ng2-webstorage';\nimport { ErrorsService } from '../services/errors';\n\nimport { Activity }           from '../models/activity';\nimport { DatePicker }           from './datepicker';\nimport { CustomerInfo }           from './customerinfo';\n\n@Component({\n\tselector : 'create-activity-modal',\n  template: require('./templates/createactivitymodal.html')\n})\n\nexport class CreateActivityModal implements AfterViewInit {\n\n\t@ViewChild('createActivityModal')\n  createActivityModal: ModalComponent;\n\n\t@ViewChild('creatingModal')\n  creatingModal: ModalComponent;\n\n\t@ViewChild('newActivityStartDate')\n  newActivityStartDate: DatePicker;\n\n\t@ViewChild('newActivityEndDate')\n  newActivityEndDate: DatePicker;\n\n\t@ViewChild('activityCompanyInfo')\n  activityCompanyInfo: CustomerInfo;\n\t\n\tnewActivityDescription : string;\n\tnewActivityCompany : any;\n\tnewActivityStatus : any;\n\tnewActivityName : string;\n\tnewActivityName_ : string;\n\tnewActivityUser : any = { userId : 26, name : 'Otilldelad' };\n\tcreatingActivity : boolean;\n\tnewActivityAccount : any;\n\tnewActivityAttributes : any;\n\tcreateError : string;\n\tresolver : Function;\n\tactivityTypes : any[];\n\tavailableUsers : Array<any>;\t\n\tuser : {};\n\n\tconstructor(\n    private activityService: ActivityService,\n    private companyService: CompanyService,\n    private httpService: HttpService,\n    private router: Router,\n\t\tprivate route: ActivatedRoute,\n\t\tprivate errorService : ErrorsService\n  ) {\n\t\tthis.activityTypes = this.activityService.types;\n\t\tthis.user = this.httpService.getUser();\n\t\tthis.availableUsers = [];\n\t}\n\t\n\tngAfterViewInit() {\n\t\tthis.httpService.getAllUsers().then((users) => {\n\t\t\tusers.forEach((u) => {\n\t\t\t\tif(u.userId == 26) return;\n\t\t\t\tthis.availableUsers.push(u);\n\t\t\t})\n\t\t});\n\t}\n\n\n\thandleOnCompanyAssigned(company) {\n\t\tthis.newActivityCompany = company;\n\t\tif(company.accounts && company.accounts.length > 0) {\n\t\t\tthis.newActivityAccount = company.accounts[0];\n\t\t}\n\t}\n\n\thandleOnCompanyUnAssigned() {\n\t\tthis.newActivityCompany = null;\n\t}\n\n\topen(activityData : any) : Promise<string> {\n\t\tconsole.log('data', activityData)\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tthis.activityCompanyInfo.companyId = 0;\n\t\t\tthis.newActivityCompany = null;\n\t\t\tthis.createActivityModal.open('lg').then(() => {\n\t\t\t\tthis.newActivityDescription = activityData.description || '';\n\t\t\t\tthis.newActivityName = activityData.name || this.activityService.types[0].value;\n\t\t\t\tthis.newActivityStartDate.date = activityData.startDate || new Date();\n\t\t\t\tthis.newActivityEndDate.date = activityData.endDate || new Date();\n\t\t\t\tthis.newActivityStatus = activityData.status || 2;\n\t\t\t\tthis.newActivityUser = activityData.user || { userId : 26 };\n\t\t\t\tthis.newActivityAccount = activityData.acccountId || undefined;\t\t\t\n\t\t\t\tthis.newActivityAttributes = activityData.attributes || [];\t\t\n\t\t\t\tif(activityData.companyId > 0) {\n\t\t\t\t\tthis.activityCompanyInfo.companyId = activityData.companyId;\n\t\t\t\t\tthis.companyService.getById(activityData.companyId).then((company) => {\n\t\t\t\t\t\tconsole.log(company)\n\t\t\t\t\t\tthis.newActivityCompany = company;\n\t\t\t\t\t\tif(!this.newActivityAccount) {\n\t\t\t\t\t\t\tif(company.accounts && company.accounts.length > 0) {\n\t\t\t\t\t\t\t\tthis.newActivityAccount = company.accounts[0];\n\t\t\t\t\t\t\t\tcompany.accounts.forEach((a) => {\n\t\t\t\t\t\t\t\t\tif(activityData.accountId > 0 && a.accountId == activityData.accountId)\n\t\t\t\t\t\t\t\t\tthis.newActivityAccount = a;\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t} else {\n\t\t\t\t\tthis.activityCompanyInfo.companyId = 0;\n\t\t\t\t}\n\t\t\t\tthis.resolver = (reason : string) => {\n\t\t\t\t\tresolve(reason);\n\t\t\t\t}\n\t\t\t})\n\t\t});\n\t}\n\n\tcloseCreateActivityModal(reason) {\n\t\tthis.createActivityModal.close().then(() => {\n\t\t\tthis.resolver(reason);\n\t\t})\n\t}\n\n\tdoCreateActivity() : void {\n\t\tthis.creatingActivity = true;\n\t\tvar name = (this.newActivityName != 'Annat' ? this.newActivityName : this.newActivityName_);\n\t\tvar description = this.newActivityDescription;\n\t\tvar userId = this.newActivityUser.userId;\n\t\tvar accountId = this.newActivityAccount.accountId;\n\t\tvar statusId = this.newActivityStatus;\n\t\tthis.createError = null;\n\t\tthis.creatingModal.open().then(() => {\n\t\t\tthis.activityService.createActivity(name, description, userId, accountId, statusId).then((data) => {\n\t\t\t\tthis.activityService.getActivities({ taskId : data.taskId }, 0, 10).then((activityList) => {\n\t\t\t\t\tif(activityList.total > 0) {\n\t\t\t\t\t\tvar activity = activityList.list[0] as Activity;\n\t\t\t\t\t\tactivity.startDate = this.newActivityStartDate.Date.getTime() / 1000;\n\t\t\t\t\t\tactivity.endDate = this.newActivityEndDate.Date.getTime() / 1000;\n\t\t\t\t\t\tactivity.attributes = this.newActivityAttributes;\n\t\t\t\t\t\tthis.activityService.saveActivity(activity, 'date').then((res) => {\n\t\t\t\t\t\t\tthis.creatingModal.close().then(() => {\n\t\t\t\t\t\t\t\tthis.createActivityModal.close().then(() => {\n\t\t\t\t\t\t\t\t\tthis.creatingActivity = false;\n\t\t\t\t\t\t\t\t\tthis.resolver('created');\t\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}).catch((e) => {\n\t\t\t\t\t\t\tthis.createError = e.errorMessage;\n\t\t\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\t\t\tthis.creatingActivity = false;\n\t\t\t\t\t\t\t\tthis.creatingModal.close();\n\t\t\t\t\t\t\t}, 2000);\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t}).catch((e) => {\n\t\t\t\t\tthis.createError = e.errorMessage;\n\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\tthis.creatingActivity = false;\n\t\t\t\t\t\tthis.creatingModal.close();\n\t\t\t\t\t}, 2000);\n\t\t\t\t});\n\t\t\t}).catch((e) => {\n\t\t\t\tthis.createError = e.errorMessage;\n\t\t\t\tsetTimeout(() => {\n\t\t\t\t\tthis.creatingActivity = false;\n\t\t\t\t\tthis.creatingModal.close();\n\t\t\t\t}, 2000);\n\t\t\t});\n\t\t})\n\t}\n\n}\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/components/createactivitymodal.ts","import { Component, Input, Output, EventEmitter, ViewChild } from '@angular/core';\nimport { ActivatedRoute, Router } from '@angular/router';\nimport { ModalModule, ModalComponent } from 'ng2-bs4-modal/ng2-bs4-modal';\n\nimport { CompanyService } from '../services/company';\nimport { SupportIssueService } from '../services/support';\nimport { ErrorsService } from '../services/errors';\n\nimport { Company }           from '../models/company';\nimport { SupportIssue }           from '../models/supportissue';\nimport { DomainInfo }\tfrom './domaininfo';\nimport { InvoiceInfo }\tfrom './invoiceinfo';\nimport { OrderInfo }\tfrom './orderinfo';\nimport { AccountInfoModal }\t\t\tfrom './accountinfo';\nimport { DomainService } from '../services/domain';\nimport { MailComposer } from './mailcomposer'\n\n@Component({\n  selector: 'customer-info',\n  template: require('./templates/customerinfo.html')\n})\n\nexport class CustomerInfo { \n\n\t@ViewChild('newMailComposer')\n  newMailComposer: MailComposer;\n\n\t@ViewChild('accountInfoModal')\n  accountInfoModal: AccountInfoModal;\n\n\t@ViewChild('domainInfo')\n  domainInfo: DomainInfo;\n\n\t@ViewChild('invoiceInfo')\n  invoiceInfo: InvoiceInfo;\n\n\t@ViewChild('orderInfo')\n  orderInfo: OrderInfo;\n\n\tloaded : boolean;\n\tpossibleCompanies : Company[];\n\tcompany : Company;\n\taccounts: any;\n\n\tmatchedEmail : string;\n\t_issue: SupportIssue;\n\tsearchTimer : any;\n\tsearching : boolean;\n\trefreshing : boolean;\n\tisSearchMatch : boolean;\n\t_canAssign : boolean;\n\tmatchPhrase : string;\n\t_refPath : string;\n\n\tdomainStatus : {} = {\n\t\t0\t: 'Väntar',\n\t\t1\t: 'Ompekning',\n\t\t2\t: 'Skickat information',\n\t\t3\t: 'Pågående',\n\t\t4\t: 'Klar',\n\t\t5\t: 'Nyreg',\n\t\t6\t: 'Uppsagd / Ej förnyelse',\n\t\t7\t: 'Inaktiv'\n\t}\n\n\tconstructor(\n    private domainService: DomainService,\n    private companyService: CompanyService,\n    private supportIssueService: SupportIssueService,\n    private errorsService: ErrorsService,\n\t\tprivate router: Router,\n\t\tprivate route: ActivatedRoute\n  ) {\n\t\tthis.loaded = false;\n\t  this.possibleCompanies = [];\n\t  this._canAssign = true;\n\t\tthis.accounts = {};\n\t\tthis._refPath = '';\n\t\tthis.route.snapshot.url.forEach((u) => {\n\t\t\tthis._refPath = this._refPath + (this._refPath != '' ? ':' : '') + u;\t\n\t\t});\n\t\tthis._refPath = this.router.url.replace(/\\//g, ':');\n  }\n\n\tshowAccountInfo(accountId) {\n\t\tthis.accountInfoModal.open(accountId).then(() => {\n\t\t})\n\t}\t\n\n\tshowDomainInfo(domain) {\n\t\tthis.domainInfo.open(domain).then((closedResult) => {\n\t\t\tif(closedResult && closedResult.addedDomain) {\n\t\t\t\tif(this.company.domain.indexOf(closedResult.addedDomain) == -1)\n\t\t\t\t\tthis.company.domain.push(closedResult.addedDomain);\n\t\t\t}\n\t\t});\n\t}\n\t\n\tshowOrderInfo(order) {\n\t\tthis.orderInfo.open(order);\n\t}\n\n\tshowInvoiceInfo(invoiceId) {\n\t\tthis.invoiceInfo.open(invoiceId);\n\t}\n\n\tsendMail(email) : void {\n\t\tthis.newMailComposer.clearContacts();\n\t\tthis.newMailComposer.setSubject('');\n\t\tthis.newMailComposer.setEmail(email);\n\t\tlet { accountId } = this.company.accounts[0] || { accountId : 0 };\n\t\tthis.newMailComposer.open(this.company.companyId, accountId).then((result) => {\n\t\t\tconsole.log(result)\n\t\t})\n\t}\n\n\t@Input()\n\tset refPath(value : string) {\n\t\tthis._refPath = value;\n\t}\n\n\tget refPath() : string {\n\t\treturn(this._refPath);\n\t}\n\n\t@Input()\n\tset canAssign(value : boolean) {\n\t\tthis._canAssign = value;\n\t}\n\t\n\tget canAssign() : boolean {\n\t\treturn this._canAssign;\n\t}\n\n\t@Input()\n\tset issue(issue: SupportIssue) {\n\t\tthis.matchedEmail = issue._source.from[0].address;\n\t\tthis._issue = issue;\n\t\tif(issue._source.company) {\n\t\t\tthis.company = issue._source.company;\n\t\t\tthis.refreshCompany();\n\t\t\tthis.loaded = true;\n\t\t\treturn;\n\t\t}\n\t\tthis.possibleCompanies = [];\n\t\tif(issue._source.headers.references) {\n\t\t  var references = issue._source.headers.references.match(/\\<(.*?)\\>/g);\n\t\t  if(references) {\n\t\t\t  references.forEach((ref) => {\n\t\t\t\t\tconsole.log('try to get by ref ' + ref);\n\t\t\t\t\tthis.supportIssueService.getIssuesByMessageId(ref).then((supportIssues) => {\n\t\t\t\t\t\tsupportIssues.forEach((supportIssue) => {\n\t\t\t\t\t\t\tif(supportIssue._source.company) {\n\t\t\t\t\t\t\t\tthis.addPossibleCompany(supportIssue._source.company);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})\n\t\t\t\t\t}).catch((e) => {\n\t\t\t\t\t\tthis.errorsService.broadcast('error', e.errorMessage || e.message);\n\t\t\t\t\t})\n\t\t\t\t});\n\t\t  }\n\t\t}\n\t\tif(issue._source.headers['in-reply-to']) {\n\t\t\tthis.supportIssueService.getIssuesByMessageId(issue._source.headers['in-reply-to']).then((supportIssues) => {\n\t\t\t\tsupportIssues.forEach((supportIssue) => {\n\t\t\t\t\tif(supportIssue._source.company) {\n\t\t\t\t\t\tthis.addPossibleCompany(supportIssue._source.company);\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t}).catch((e) => {\n\t\t\t\tthis.errorsService.broadcast('error', e.errorMessage || e.message);\n\t\t\t})\n\t\t}\n\t\tlet subject = issue._source.headers['subject'] || '';\n\t\tlet m = subject.toLowerCase().match(/(.*)\\.(se|com|nu|org|eu)/);\n\t\tif(m) {\n\t\t\tthis.matchByDomain(m[0]);\t\n\t\t}\n\t\tthis.matchByEmail([issue._source.from[0].address, (issue._source.to || issue._source.cc)[0].address]);\n\t}\n\t\n\t@Input()\n\tset companyId(companyId : Number) {\n\t\tif(companyId > 0) {\n\t\t\tthis.loaded = false;\n\t\t\tthis.companyService.getById(companyId).then((company) => {\n\t\t\t\tthis.company = company;\n\t\t\t\tthis.loaded = true;\n\t\t\t\tthis.company.domain.forEach((d) => {\n\t\t\t\t\td.companyId = this.company.companyId;\n\t\t\t\t});\n\t\t\t\tthis.company.accounts.forEach((a) => {\n\t\t\t\t\tthis.accounts[a.accountId] = a;\n\t\t\t\t})\n\t\t\t\tthis.company.orders.sort((a, b) => {\n\t\t\t\t\treturn b.createdDate - a.createdDate;\n\t\t\t\t})\n\t\t\t\tthis.fireOnLoadCompany(this.company);\n\t\t\t});\n\t\t} else {\n\t\t\tthis.company = null;\n\t\t\tthis.matchPhrase = '';\n\t\t\tthis.possibleCompanies = [];\n\t\t\tthis.loaded = true;\n\t\t}\n\t}\t\t\n\n\taddPossibleCompany(company) {\n\t\tvar exists = -1;\n\t\tthis.possibleCompanies.forEach((c, i) => {\n\t\t\tif(c.companyId == company.companyId)\n\t\t\t\texists = i;\n\t\t})\n\t\tif(exists == -1)\n\t\t\tthis.possibleCompanies.push(company)\n\t\telse\n\t\t\tthis.possibleCompanies[exists] = company;\n\t}\n\t\n\tmatchByDomain(domain) : void {\n\t\tconsole.log('matching domains', domain)\n\t\tthis.domainService.getDomains({ domain : domain }, 0, 20).then((domainList) => {\n\t\t\tconsole.log('domains', domainList);\n\t\t\tdomainList.list.forEach((d) => {\n\t\t\t\tif(d.company) {\n\t\t\t\t\tthis.companyService.getById(d.company.companyId).then((company) => {\n\t\t\t\t\t\tthis.addPossibleCompany(company);\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t})\n\t\t});\n\t}\n\n\tmatchByEmail(addresses) : void {\n\t\tthis.loaded = false;\n\t\tvar promises = [];\n\t\taddresses.forEach((address) => {\n\t\t\tpromises.push(new Promise((resolve) => {\n\t\t\t\tthis.companyService.findByEmail(address).then((companies) => {\n\t\t\t\t\tcompanies.forEach((c) => {\n\t\t\t\t\t\tthis.addPossibleCompany(c);\n\t\t\t\t\t});\n\t\t\t\t\tresolve(null);\n\t\t\t\t}).catch((e) => {\n\t\t\t\t\tthis.errorsService.broadcast('error', e.errorMessage || e.error);\n\t\t\t\t\tresolve(null);\n\t\t\t\t});\n\t\t\t}))\n\t\t});\n\t\tPromise.all(promises).then(() => {\n\t\t\tthis.loaded = true;\n\t\t});\n\t}\n\t\t\n\tmatchByTextPress() : void {\n\t\tif(this.searchTimer)\n\t\t\tclearTimeout(this.searchTimer);\n\t\tif(this.matchPhrase == '')\n\t\t\treturn;\n\t\tthis.searchTimer = setTimeout(() => {\n\t\t\tthis.matchByText(this.matchPhrase)\n\t\t}, 500);\n\t}\n\t\t\n\tmatchByText(text) : void {\n\t\tthis.searching = true;\n\t\tthis.isSearchMatch = false;\n\t\tthis.possibleCompanies = [];\n\t\tthis.companyService.findByText(text, 0, 5).then((companies) => {\n\t\t\tcompanies.forEach((c) => {\n\t\t\t\tthis.addPossibleCompany(c);\n\t\t\t\tthis.isSearchMatch = true;\n\t\t\t});\n\t\t\tthis.searching = false;\n\t\t}).catch((e) => {\n\t\t\tthis.errorsService.broadcast('error', e.errorMessage || e.message);\n\t\t});\n\t}\n\t\n\trefreshCompany() : void {\n\t\tthis.refreshing = true;\n\t\tthis.companyService.getById(this.company.companyId).then((company) => {\n\t\t\tthis.accounts = {};\n\t\t\tthis.company = company;\n\t\t\tthis.assignCompany(company);\n\t\t\tthis.refreshing = false;\n\t\t\tthis.company.domain.forEach((d) => {\n\t\t\t\td.companyId = this.company.companyId;\n\t\t\t})\n\t\t\tthis.company.accounts.forEach((a) => {\n\t\t\t\tthis.accounts[a.accountId] = a;\n\t\t\t})\n\t\t\tthis.company.orders.sort((a, b) => {\n\t\t\t\treturn b.createdDate - a.createdDate;\n\t\t\t})\n\t\t\tthis.fireOnRefreshCompany(this.company);\n\t\t});\n\t}\n\t\t\n\tunassignCompany() : void {\n\t\tthis.fireOnUnAssignCompany();\n\t\tthis.possibleCompanies = [];\n\t\tthis.company = null;\n\t\tif(this._issue)\n\t\t\tthis.matchByEmail([this._issue._source.from[0].address, (this._issue._source.to || this._issue._source.cc)[0].address]);\n\t}\n\t\n\tassignCompany(company) : void {\n\t\tthis.company = company;\n\t\tthis.company.accounts.forEach((a) => {\n\t\t\tthis.accounts[a.accountId] = a;\n\t\t});\n\t\tthis.company.domain.forEach((d) => {\n\t\t\td.companyId = this.company.companyId;\n\t\t});\n\t\tthis.company.orders.sort((a, b) => {\n\t\t\treturn b.createdDate - a.createdDate;\n\t\t})\n\t\tthis.fireOnAssignCompany(company);\n\t}\t\n\t\n  @Output() onAssignCompany = new EventEmitter();\n  \n  fireOnAssignCompany(company) {\n\t  this.onAssignCompany.next(company);\n  }\n\n  @Output() onUnAssignCompany = new EventEmitter();\n  \n  fireOnUnAssignCompany() {\n\t  this.onUnAssignCompany.next();\n  }\n\t\n  @Output() onRefreshCompany = new EventEmitter();\n  \n  fireOnRefreshCompany(company) {\n\t  this.onRefreshCompany.next(company);\n  }\n\n  @Output() onLoadCompany = new EventEmitter();\n\n\tfireOnLoadCompany(company) {\n\t  this.onLoadCompany.next(company);\n  }\n\n}\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/components/customerinfo.ts","import { Component, Input, ViewChild, ElementRef } from '@angular/core';\nimport { ModalModule, ModalComponent } from 'ng2-bs4-modal/ng2-bs4-modal';\nimport { Router, ActivatedRoute, Params, NavigationEnd }            from '@angular/router';\n\nimport { ErrorsService } from '../services/errors';\nimport { DomainService } from '../services/domain';\nimport { CustomerInfo } from './customerinfo';\nimport { NameISPInfo } from '../models/nameisp';\n\nimport { EventsService } from '../services/event';\nimport { Domain, DomainRegisterParams } from '../models/domain';\n\nfunction _window() : any {\n   // return the global native browser window object\n   return window;\n}\n\n@Component({\n\tselector : 'domaininfo',\n  template: require('./templates/domaininfo.html')\n})\n\nexport class DomainInfo {\n\t\n\n\n  @ViewChild('transferDoneModal')\n  transferDoneModal: ModalComponent;\n\n\t@ViewChild('zoneFileSourceElement')\n\tzoneFileSourceElement : ElementRef;\n\n  @ViewChild('authModal')\n  authModal: ModalComponent;\n\n  @ViewChild('companyInfo')\n  companyInfo: CustomerInfo;\n\n\t@ViewChild('infoModal')\n  infoModal: ModalComponent;\n\n\t@ViewChild('zoneFileModal')\n  zoneFileModal: ModalComponent;\n\n\t@ViewChild('zoneWarning')\n  zoneWarning: ModalComponent;\n\n\t@ViewChild('waitModal')\n  waitModal: ModalComponent;\n\n\t@ViewChild('errorModal')\n  errorModal: ModalComponent;\n\n\t@ViewChild('editModal')\n  editModal: ModalComponent;\n\n\t@ViewChild('editAliasModal')\n  editAliasModal: ModalComponent;\n\n\t@ViewChild('confirmDeleteModal')\n  confirmDeleteModal: ModalComponent;\n\n  lookupError : boolean;\n\tregisteringDomain : boolean;\n\taddingDomain : boolean;\n  verifyingAuthCode : boolean;\n  domainUnavailable : boolean;\n\tdomainAvailable : boolean;\n\tdomainExists : boolean;\n  gettingDomainInfo : boolean;\n  loading : boolean;\n  domain : any;\n  show : string;\n  whoisLoading : boolean;\n  whoisInfo : string;\n  digLoading : boolean;\n  digInfo : string;\n  domainStep : number;\n  registerDomainError : string;\n  checkOrderInfo : string;\n  isDeleting : boolean;\n\tdeleteError : string;\n\tnameServers : any;\n\tforceDelete : boolean;\n\tnameISPInfo : NameISPInfo;\n\tzoneInfo : any;\n\terrorMessage: string;\n\teditedResourceRecord : any;\n\teditedResourceRecordSet : any;\n\teditedValue : string;\n\teditedAlias : string;\n\tclosedResolver : Function;\n\tclosedResult : any;\n\tjustAdd : boolean;\n  hasLookupInfo : boolean;\n\tnameServerError : string;\n\torderInfo : any;\n\tregisterParams : DomainRegisterParams;\n\tsubDomains : any;\n\tsubDomainsError : string;\n\tloadingNameIsp : boolean;\n\t\n  regInfo : {\n    orgNr : string;\n    orgName : string;\n    firstName : string;\n    lastName : string;\n    address1: string;\n    address2: string;\n    city : string;\n    zip : string;\n    phone : string;\n    email : string;\n    countrycode : string;\n  }\n\n\tzoneFileSource : string;\n\tnavigationSubscriber : any;\n\tfetchingAuthCode : boolean;\n\tauthCode : string;\n\n  constructor(\n\t\tprivate domainService: DomainService,\n\t\tprivate errorsService : ErrorsService,\n\t\tprivate eventsService : EventsService,\n    private router: Router,\n\t\tprivate route: ActivatedRoute,\n  ) {\n    this.whoisLoading = true;\n    this.domainStep = 1;\n    this.regInfo = {\n      orgNr : '',\n      orgName : '',\n      firstName : '',\n      lastName : '',\n      address1: '',\n      address2: '',\n      city : '',\n      zip : '',\n      phone : '',\n      email : '',\n      countrycode : 'se',\n    };\n\t\tthis.registerParams = new DomainRegisterParams();\n  }\n\n\tngOnInit() {\n\t\tthis.navigationSubscriber = this.router.events.subscribe((event) => { this.navigationEnd(event); });\n\t}\n\n\tngOnDestroy() {\n\t\tthis.navigationSubscriber.unsubscribe();\n\t}\n\n\tnavigationEnd(event) {\n\t\tif(event instanceof NavigationEnd) {\t\n\t\t\tif(this.route.snapshot.params['domain']) {\n\t\t\t\tthis.loadDomain(this.route.snapshot.params['domain']);\n\t\t\t}\t\n\t\t}\n\t}\n\n\tnotifyAboutNameserverChange() : void {\n\t\tthis.transferDoneModal.open();\n\t}\n\t\n\tcreateActivityForNameserverChange() {\n\t\tthis.transferDoneModal.close().then(() => {\n\t\t\tthis.infoModal.close().then(() => {\n\t\t\t\tthis.eventsService.broadcast('activity:create', {\n\t\t\t\t\tcompanyId : this.domain.companyId,\n\t\t\t\t\taccountId : this.domain.accountId,\n\t\t\t\t\tname : 'Domän, Namnserver',\n\t\t\t\t\tdescription : 'Byt namnservrar på ' + this.domain.domain\n\t\t\t\t });\n\t\t\t })\n\t\t})\n\t}\n\n\tshowNameServerTab() {\n\t\tthis.transferDoneModal.close().then(() => {\n\t\t\tthis.show = 'nameserver';\n\t\t})\n\t}\n\n\tloadDomain(domainName : string) {\n\t\tthis.loading = true;\n\t\tthis.infoModal.open('lg').then(() => {\n\t\t\tnew Promise((closedResolver) => {\n\t\t\t\tthis.closedResolver = closedResolver;\n\t\t\t\tthis.domainService.getDomains({ domain : domainName, exactMatch : true }, 0, 1).then((domainList) => {\n\t\t\t\t\tif(domainList.list.length > 0) {\n\t\t\t\t\t\tthis.load(domainList.list[0]).then(() => {\n\t\t\t\t\t\t\tthis.loading = false;\n\t\t\t\t\t\t})\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}).then((closed) => {\n\t\t\t\tvar listType = this.route.parent.snapshot.params['type'];\n\t\t\t\tthis.router.navigateByUrl(\"/domains/\" + listType);\n\t\t\t});\n\t\t});\t\t\n\t} \n\n  open(domain : Domain) : Promise<any> {\t\t\n\t\treturn new Promise((closedResolver) => {\n\t\t\tthis.closedResolver = closedResolver;\n\t\t\tthis.infoModal.open('lg').then(() => {\t\t\t\t\n\t\t\t\tthis.loading = true;\n\t\t\t\tthis.load(domain).then(() => {\n\t\t\t\t\tthis.loading = false;\n\t\t\t\t})\n\t\t\t});\n\t\t})\n\t}\n\n\tload(domain : Domain) : Promise<boolean>  {\n\n\t\treturn new Promise((loaded) => {\n\t\t\t\t\t\t\n\t\t\tthis.domain = domain;\n\n\t\t\tthis.show = !domain.companyId ? 'company' : 'guide';\n\t\n\t\t\tthis.justAdd = false;\n\t\t\tthis.hasLookupInfo = false;\n\t\t\tthis.closedResult = {};\n\t\t\t\n\t\t\tthis.registerParams.shieldWhois = false;\n\t\t\tthis.registerParams.autoRenew = true;\n\t\t\tthis.registerParams.period = 1;\n\t\t\tthis.registerParams.comments = '';\n\t\t\t\n\t\t\tdomain.hosting = domain.hosting || (domain.id ? 'internal' : 'external');\n\t\t\tdomain.mail = domain.mail || 'local';\n\t\n\t\t\tthis.lookupError = false;\n\t\t\tthis.domainUnavailable = false;\n\t\t\tthis.domainAvailable = false;\n\t\t\tthis.whoisLoading = true;\n\t\t\tthis.show = (domain.statusId == 4 || domain.statusId == 6 || domain.statusId == 7) ? 'settings' : 'guide';\n\t\t\tthis.domainStep = 1;\n\t\t\tthis.registerDomainError = '';\n\t\t\tthis.nameISPInfo = null;\n\t\t\tthis.zoneInfo = null;\n\t\t\tthis.nameServers = undefined;\n\n\t\t\tif(domain.domain) {\n\t\t\t\tthis.domainService.whois(domain.domain).then((response) => {\n\t\t\t\t\tthis.whoisInfo = response.content;\n\t\t\t\t\tthis.whoisLoading = false;\n\t\t\t\t}).catch((e) => {\n\t\t\t\t\tthis.eventsService.broadcast('error', 'Whois failed for domain ' + domain.domain + ': ' + e.errorMessage)\n\t\t\t\t});\n\t\t\t\tthis.domainService.dig(domain.domain).then((response) => {\n\t\t\t\t\tthis.digLoading = false;\n\t\t\t\t\tconsole.log('dig', response);\n\t\t\t\t\tthis.digInfo = response.lookup;\n\t\t\t\t}).catch((e) => {\n\t\t\t\t\tthis.errorsService.broadcast('error', 'Dig failed for domain ' + domain.domain + ': ' + e.errorMessage)\n\t\t\t\t});\n\t\t\t\tif(!domain.nameISPInfo) {\n\t\t\t\t\tthis.loadingNameIsp = true;\n\t\t\t\t\tthis.domainService.getDomainInfo(domain.domain).then((response) => {\n\t\t\t\t\t\tif(response.info.domainname) {\n\t\t\t\t\t\t\tthis.nameISPInfo = response.info;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tthis.loadingNameIsp = false;\n\t\t\t\t\t}).catch((e) => {\n\t\t\t\t\tthis.errorsService.broadcast('error', 'Get domain info failed for domain ' + domain.domain + ': ' + e.errorMessage)\n\t\t\t\t\t});\n\t\t\t\t} else {\n\t\t\t\t\tconsole.log('using NameISPInfo from domain object');\n\t\t\t\t\tthis.nameISPInfo = domain.nameISPInfo;\n\t\t\t\t}\n\t\t\t}\t\n\t\t\t\n\t\t\t// check zone info\n\t\t\tif(domain.id != '' && typeof(domain.id) != \"undefined\") {\n\t\t\t\tthis.domainService.getR53Zone(domain.id).then((zone) => {\t\t\t\t\t\t\t\n\t\t\t\t\tconsole.log('zoneinfo', zone)\n\t\t\t\t\tthis.zoneInfo = zone;\n\t\t\t\t}).catch((e) => {\n\t\t\t\t\tthis.errorsService.broadcast('error', 'Get R53 Zone failed for domain ' + domain.domain + ': ' + e.errorMessage)\n\t\t\t\t});\n\t\t\t}\n\t\n\t\t\t// nameservers\n\t\t\tif(domain.domain != '' && typeof(domain.domain) != \"undefined\") {\n\t\t\t\tthis.domainService.getDNS(domain.domain).then((response) => {\n\t\t\t\t\tconsole.log('nsresponse', response)\n\t\t\t\t\tthis.nameServers = [];\n\t\t\t\t\tresponse.forEach((ns) => {\n\t\t\t\t\t\tthis.nameServers.push({\n\t\t\t\t\t\t\taddress : ns\n\t\t\t\t\t\t});\n\t\t\t\t\t});\n\t\t\t\t}).catch((e) => {\n\t\t\t\t\tthis.nameServers = [];\n\t\t\t\t\tthis.nameServerError = e.errorMessage;\n\t\t\t\t});\t\t\n\t\t\t}\n\n\t\t\t// subdomains\n\t\t\tif(domain.domain != '' && typeof(domain.domain) != \"undefined\") {\n\t\t\t\tconsole.log('loading subdomains');\n\t\t\t\tthis.domainService.getSubDomains(domain.domain).then((response) => {\n\t\t\t\t\tconsole.log('response', response)\n\t\t\t\t\tthis.subDomains = [];\n\t\t\t\t\tresponse.forEach((domain) => {\n\t\t\t\t\t\tthis.subDomains.push(domain);\n\t\t\t\t\t});\n\t\t\t\t}).catch((e) => {\n\t\t\t\t\tthis.subDomains = [];\n\t\t\t\t\tthis.subDomainsError = e.errorMessage;\n\t\t\t\t});\t\t\n\t\t\t}\t\n\t\t\t_window().wizard();\n\t\n\t\t\tif(domain.statusId != 4) {\n\t\t\t\tthis.domainService.getOrders(this.domain.domain).then((orders) => {\n\t\t\t\t\tconsole.log('got orders', orders)\n\t\t\t\t\tvar hasUncompletedOrders = false;\n\t\t\t\t\torders.forEach((o) => {\n\t\t\t\t\t\tif(parseInt(o.completed) == 1) return;\n\t\t\t\t\t\thasUncompletedOrders = true;\n\t\t\t\t\t\tconsole.log('orderinfo', o);\n\t\t\t\t\t\tthis.orderInfo = o;\n\t\t\t\t\t\tif(o.type == \"register\" || o.type == 'dns') {\n\t\t\t\t\t\t\tthis.domainStep = 5;\n\t\t\t\t\t\t\tthis.registeringDomain = true;\n\t\t\t\t\t\t\tthis.waitForOrdersCompleted(o.id, (completed, r) => {\n\t\t\t\t\t\t\t\tif(!completed) {\n\t\t\t\t\t\t\t\t\tthis.registerDomainError = r;\n\t\t\t\t\t\t\t\t\tthis.registeringDomain = false;           \n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tthis.domainService.setStatus(this.domain, 4).then((response) => {\n\t\t\t\t\t\t\t\t\t\tthis.registeringDomain = false;           \n\t\t\t\t\t\t\t\t\t\tthis.domainStep = 6;\n\t\t\t\t\t\t\t\t\t\tthis.domain.statusId = 4;\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t} else if(o.type == \"transfer\") {\n\t\t\t\t\t\t\tthis.verifyingAuthCode = true;\n\t\t\t\t\t\t\tthis.domainStep = 2;\n\t\t\t\t\t\t\tthis.waitForOrdersCompleted(o.id, (completed, err) => {           \n\t\t\t\t\t\t\t\tif(!completed) {\n\t\t\t\t\t\t\t\t\tthis.verifyingAuthCode = false;\n\t\t\t\t\t\t\t\t\tthis.registerDomainError = err;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tthis.domainService.setStatus(this.domain, 4).then((response) => {\n\t\t\t\t\t\t\t\t\t\tthis.verifyingAuthCode = false;\n\t\t\t\t\t\t\t\t\t\tthis.domainStep = 6;\n\t\t\t\t\t\t\t\t\t\tthis.domain.statusId = 4;\n\t\t\t\t\t\t\t\t\t\tthis.notifyAboutNameserverChange();\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t}).catch((e) => {\n\t\t\t\t\tconsole.log(e);\n\t\t\t\t})\n\t\t\t}\n\n\t\t\tloaded(true);\n\n\t\t});\n  }\n\n\tcloseModal() {\n\t\tthis.infoModal.close().then(() => {\n\t\t\tif(this.closedResolver) {\n\t\t\t\tthis.closedResolver(this.closedResult);\n\t\t\t}\n\t\t})\n\t}\n\n\teditResourceRecord(rs) {\n\t\tthis.editedResourceRecord = rs;\n\t\tthis.editedValue = rs.Value;\n\t\tthis.editModal.open();\n\t}\n\n\tselectZoneFile() {\n\t\tvar elm = this.zoneFileSourceElement.nativeElement;\n\t\tif ((document as any).selection) {\n\t\t\tvar range = (document.body as any).createTextRange();\n\t\t\trange.moveToElementText(elm);\n\t\t\trange.select();\n\t\t} else if (window.getSelection) {\n\t\t\t/*var range = document.createRange();\n\t\t\trange.selectNode(elm);\n\t\t\twindow.getSelection().addRange(range);\n\t\t\t*/\n\t\t}\n\t}\n\n\texportZoneInfo() {\n\t\tvar zoneFile = \";\" + this.domain.domain + \"\\n\\n\";\n\t\tzoneFile += \";Name TTL Class Type Value\\n\";\n\t\tthis.zoneInfo.ResourceRecordSets.forEach((set) => {\n\t\t\t// name\tttl\trecord class\trecord type\trecord data\t\t\t\n\t\t\tzoneFile += set.Name + \"\\t\";\n\t\t\tzoneFile += set.AliasTarget ? '300' : set.TTL + \"\\t\";\n\t\t\tzoneFile += \"IN\\t\";\n\t\t\tzoneFile += set.Type + \"\\t\";\n\t\t\tif(set.AliasTarget) {\n\t\t\t\tzoneFile += set.AliasTarget.DNSName;\n\t\t\t} else {\n\t\t\t\tset.ResourceRecords.forEach((r, i) => {\n\t\t\t\t\tzoneFile += r.Value.replace(/\\\\052/g, \"*\") + \" \";\n\t\t\t\t})\n\t\t\t}\n\t\t\tzoneFile += \"\\n\";\n\t\t});\n\t\tzoneFile += \"\\n;EOF\\n\";\n\t\tthis.zoneFileSource = zoneFile;\n\t\tthis.zoneFileModal.open('lg');\n\t}\n\n\taddNewResourceRecordSet() {\n\t\tthis.zoneInfo.ResourceRecordSets.push({\n\t\t\tIsNew : true,\n\t\t\tName : this.domain.domain + '.',\n\t\t\tType : 'A',\n\t\t\tTTL : '300',\n\t\t\tResourceRecords : []\n\t\t})\n\t}\n\t\n\taddOffice365Records() {\n\t\tthis.zoneInfo.ResourceRecordSets.push({\n\t\t\tIsNew : true,\n\t\t\tName : 'autodiscover.' + this.domain.domain + '.',\n\t\t\tType : 'CNAME',\n\t\t\tTTL : '300',\n\t\t\tResourceRecords : [{ Value : 'autodiscover.outlook.com.'}]\n\t\t})\n\t\tthis.zoneInfo.ResourceRecordSets.push({\n\t\t\tIsNew : true,\n\t\t\tName : 'lyncdiscover.' + this.domain.domain + '.',\n\t\t\tType : 'CNAME',\n\t\t\tTTL : '300',\n\t\t\tResourceRecords : [{ Value : 'webdir.online.lync.com.'}]\n\t\t})\n\t\tthis.zoneInfo.ResourceRecordSets.push({\n\t\t\tIsNew : true,\n\t\t\tName : 'msoid.' + this.domain.domain + '.',\n\t\t\tType : 'CNAME',\n\t\t\tTTL : '300',\n\t\t\tResourceRecords : [{ Value : 'clientconfig.microsoftonline-p.net.'}]\n\t\t})\n\t\tthis.zoneInfo.ResourceRecordSets.push({\n\t\t\tIsNew : true,\n\t\t\tName : 'sip.' + this.domain.domain + '.',\n\t\t\tType : 'CNAME',\n\t\t\tTTL : '300',\n\t\t\tResourceRecords : [{ Value : 'sipdir.online.lync.com.'}]\n\t\t})\n\t\tthis.zoneInfo.ResourceRecordSets.push({\n\t\t\tIsNew : true,\n\t\t\tName : 'enterpriseregistration.' + this.domain.domain + '.',\n\t\t\tType : 'CNAME',\n\t\t\tTTL : '300',\n\t\t\tResourceRecords : [{ Value : 'enterpriseregistration.windows.net.'}]\n\t\t})\n\t\tthis.zoneInfo.ResourceRecordSets.push({\n\t\t\tIsNew : true,\n\t\t\tName : 'enterpriseenrollment.' + this.domain.domain + '.',\n\t\t\tType : 'CNAME',\n\t\t\tTTL : '300',\n\t\t\tResourceRecords : [{ Value : 'enterpriseenrollment-s.manage.microsoft.com.'}]\n\t\t})\t\t\n\t\tthis.zoneInfo.ResourceRecordSets.push({\n\t\t\tIsNew : true,\n\t\t\tName : '_sip._tls.' + this.domain.domain + '.',\n\t\t\tType : 'SRV',\n\t\t\tTTL : '300',\n\t\t\tResourceRecords : [{ Value : '100 1 443 sipdir.online.lync.com'}]\n\t\t})\t\t\n\t\tthis.zoneInfo.ResourceRecordSets.push({\n\t\t\tIsNew : true,\n\t\t\tName : '_sipfederationtls._tcp.' + this.domain.domain + '.',\n\t\t\tType : 'SRV',\n\t\t\tTTL : '300',\n\t\t\tResourceRecords : [{ Value : '100 1 5061 sipfed.online.lync.com.'}]\n\t\t})\n\t\tthis.zoneInfo.ResourceRecordSets.push({\n\t\t\tIsNew : true,\n\t\t\tName : this.domain.domain + '.',\n\t\t\tType : 'TXT',\n\t\t\tTTL : '300',\n\t\t\tResourceRecords : [{ Value : \"\\\"v=spf1 include:spf.protection.outlook.com -all\\\"\"} , { Value : \"\\\"MS=ms77489665\\\"\" }]\n\t\t})\n\t\tthis.zoneInfo.ResourceRecordSets.push({\n\t\t\tIsNew : true,\n\t\t\tName : this.domain.domain + '.',\n\t\t\tType : 'MX',\n\t\t\tTTL : '300',\n\t\t\tResourceRecords : [{ Value : '0 ' + this.domain.domain.replace('.', \"-\") + '.mail.protection.outlook.com' }]\n\t\t})\n\t}\n\n\tdeleteResourceRecordSet(rrs) {\n\t\tif(rrs.IsNew) {\n\t\t\tthis.zoneInfo.ResourceRecordSets.splice(this.zoneInfo.ResourceRecordSets.indexOf(rrs), 1);\n\t\t\treturn;\n\t\t}\n\t\tif(rrs.AliasTarget) {\n\t\t\tdelete rrs.ResourceRecords;\n\t\t}\n\t\tthis.waitModal.open().then(() => {\n\t\t\tthis.domainService.deleteResourceRecordSet(this.domain.id, {\n\t\t\t\tName : rrs.Name,\n\t\t\t\tType: rrs.Type\n\t\t\t}).then((response) => {\n\t\t\t\tthis.zoneInfo.ResourceRecordSets.splice(this.zoneInfo.ResourceRecordSets.indexOf(rrs), 1);\n\t\t\t\tthis.waitModal.close();\t\t\t\n\t\t\t}).catch((e) => {\n\t\t\t\tthis.waitModal.close().then(() => {\n\t\t\t\t\tthis.errorMessage = e.errorMessage || e.message;\n\t\t\t\t\tthis.errorModal.open();\n\t\t\t\t});\n\t\t\t})\n\t\t})\n\t}\n\n\tupdateResourceRecordSet(rrs) {\n\t\tconsole.log('rrs', rrs)\n\t\tif(rrs.AliasTarget) {\n\t\t\tdelete rrs.ResourceRecords;\n\t\t}\n\t\tthis.waitModal.open().then(() => {\n\t\t\tthis.domainService.updateResourceRecordSet(this.domain.id, rrs).then((response) => {\n\t\t\t\tthis.waitModal.close();\n\t\t\t}).catch((e) => {\n\t\t\t\tthis.waitModal.close().then(() => {\n\t\t\t\t\tthis.errorMessage = e.errorMessage || e.message;\n\t\t\t\t\tthis.errorModal.open();\n\t\t\t\t});\n\t\t\t});\t\t\n\t\t})\n\t}\n\n\tsaveResourceRecordSet(rrs) {\n\t\tif(rrs.AliasTarget) {\n\t\t\tdelete rrs.ResourceRecords;\n\t\t}\n\t\tvar wasNew = rrs.IsNew;\n\t\tdelete rrs.IsNew;\n\t\tconsole.log('rrs', rrs)\n\t\tthis.waitModal.open().then(() => {\n\t\t\tthis.domainService.saveResourceRecordSet(this.domain.id, rrs).then((response) => {\n\t\t\t\tthis.waitModal.close();\t\t\t\t\n\t\t\t}).catch((e) => {\n\t\t\t\trrs.IsNew = wasNew;\n\t\t\t\tthis.waitModal.close().then(() => {\n\t\t\t\t\tthis.errorMessage = e.errorMessage || e.message;\n\t\t\t\t\tthis.errorModal.open();\n\t\t\t\t});\n\t\t\t})\t\t\t\n\t\t})\n\t}\n\n\tremoveResourceRecord(rrs, rs) {\n\t\trrs.ResourceRecords.splice(rrs.ResourceRecords.indexOf(rs), 1);\n\t}\n\n\tremoveAliasTarget(rrs, rs) {\n\t\tdelete rrs.AliasTarget;\n\t}\n\n\teditAliasTarget(rrs) {\n\t\tconsole.log('rrs', rrs);\n\t\tthis.editedResourceRecordSet = rrs;\n\t\tthis.editedAlias = JSON.parse(JSON.stringify(rrs.AliasTarget));\n\t\tthis.editAliasModal.open();\n\t}\n\n\taddAliasTarget(rrs, dnsName, zoneId) {\n\t\trrs.AliasTarget = {\n\t\t\tDNSName : dnsName,\n\t\t\tEvaluateTargetHealth : true,\n\t\t\tHostedZoneId : zoneId\n\t\t}\n\t}\n\n\taddResourceRecord(rrs) {\n\t\tvar rs = { Value : '127.0.0.1' }\n\t\trrs.ResourceRecords.push(rs);\n\t\tthis.editResourceRecord(rs);\n\t}\n\n\tsaveNameISPInfo() {\n\t\tthis.waitModal.open().then(() => {\n\t\t\tthis.domainService.updateNameISPInfo(this.nameISPInfo, this.domain).then((response) => {\n\t\t\t\tthis.waitModal.close().then(() => {\n\t\t\t\t\tthis.eventsService.broadcast('domain:autorenew:updated', { domain : this.domain, autorenew : this.nameISPInfo.autorenew });\n\t\t\t\t})\n\t\t\t}).catch((e) => {\n\t\t\t\tthis.waitModal.close().then(() => {\n\t\t\t\t\tthis.errorMessage = e.errorMessage || e.message;\n\t\t\t\t\tthis.errorModal.open();\n\t\t\t\t});\n\t\t\t})\n\t\t});\n\t}\n\n\tregisterStep() {\n\t\tthis.domainStep = 3;\n\t\tthis.findContactInfo();\n\t}\n\n  gotoStep(step) {\n\t\tthis.hasLookupInfo = false;\n    if(step == 1) {\n      this.verifyingAuthCode = false;\n      this.domainStep = step;\n    }\n    if(step == 2) {\n\t\t\tthis.domainStep = step;\n\t\t\tthis.nameISPInfo = {\n\t\t\t\tdomainname : this.domain.domain,\n\t\t\t\ttldrules : null,\n\t\t\t\tautorenew : 1,\n\t\t\t\tprices : 0,\n\t\t\t\tagent : null,\n\t\t\t\t\"available-actions\" : {\n\t\t\t\t\tmanageable : 1\n\t\t\t\t},\n\t\t\t\titemID : null,\n\t\t\t\tstatus : []\n\t\t\t}\n    }\n    if(step == 3) {\n      this.registeringDomain = false;\n      if(this.domainStep < 3) {\n        this.domainUnavailable = false;\n\t\t\t\tthis.domainAvailable = false;\n\t\t\t\tthis.domainExists = false;\n        this.gettingDomainInfo = true;\t\n        this.domainService.domainAvailable(this.domain.domain).then((response) => {\n          var r = response.Availability;\n\t\t\t\t\tvar domainExists = response.ExistsInDb;\n\t\t\t\t\tthis.hasLookupInfo = true;\n\t\t\t\t\tif(r == 'AVAILABLE') {\n            this.gettingDomainInfo = false;\n            this.domainStep = step;\n\t\t\t\t\t\tthis.domainAvailable = true;\n            this.findContactInfo();\n          } else if(r == 'PENDING') {\n            setTimeout(() => {\n              this.gotoStep(step);\n            }, 1500);\n          } else if(r == 'UNAVAILABLE') {\n            this.gettingDomainInfo = false;\n            this.domainUnavailable = true;\n          } else {\n            this.gettingDomainInfo = false;\n            this.lookupError = true;\n          }      \n\t\t\t\t}).catch((e) => {\n\t\t\t\t\tthis.errorMessage = e.errorMessage || e.message;\n\t\t\t\t\tif(this.errorMessage.toLowerCase().indexOf('not supported')) {\n\t\t\t\t\t\tthis.errorMessage = 'Kan inte göra uppslag på .NU-domäner';\n\t\t\t\t\t\tthis.lookupError = true;\n\t\t\t\t\t\tthis.hasLookupInfo = true;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.errorModal.open().then(() => {\n\t\t\t\t\t\t\tthis.gettingDomainInfo = false;\n\t\t\t\t\t\t\tthis.lookupError = true;\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t});\n      } else if(!this.lookupError) {\n        this.domainStep = step;\n        this.findContactInfo();\n      }\n    }\n    if(step == 5) {\n      // verify reg data here\n\t\t\tthis.registerDomainError = null;\n\t\t\tthis.checkOrderInfo = null;\n      this.domainStep = 5;\n    }\n\t\tif(step == 55) {\n\t\t\tthis.domainStep = 5;\n\t\t\tthis.domain.statusId = 1;\n\t\t\tthis.justAdd = true;\n\t\t}\n    if(step == 6) {\n\t\t\tthis.registerDomainError = null;\n\t\t\tif(this.justAdd) {\n\t\t\t\tthis.addingDomain = true;\n\t\t\t\tthis.registeringDomain = false;\n\t\t\t\tconsole.log('this.domain', this.domain);\n\t\t\t\tthis.domainService.addDomain(this.domain).then((response) => {\n\t\t\t\t\tthis.domainService.setStatus(this.domain, this.domain.statusId).then((response) => {\n\t\t\t\t\t\tthis.addingDomain = false;           \n\t\t\t\t\t\tthis.domainStep = 6;\n\t\t\t\t\t\tthis.closedResult = { addedDomain : this.domain }\t\t\t\t\n\t\t\t\t\t});\n\t\t\t\t}).catch((e) => {\n\t\t\t\t\tconsole.log(e);\n\t\t\t\t\tthis.addingDomain = false;\n\t\t\t\t\tthis.registerDomainError = 'Ett fel uppstod: ' + (e.errorMessage || e.message);\n\t\t\t\t});\n\t\t\t} else {\n\t      // register domain\n\t\t\t\tthis.addingDomain = false;\n\t      this.registeringDomain = true;\n\t      var domainInfo = { \n\t\t\t\t\tregtype : \"register\",\n\t\t\t\t\tcompanyId : this.companyInfo.companyId,\n\t\t\t\t\taccountId : this.domain.accountId,\n\t\t\t\t\tcomments : this.domain.comments,\n\t\t\t\t\tdomain : this.domain.domain,\n\t\t\t\t\tperiod : this.domain.period,\n\t\t\t\t\tshieldWhois : this.domain.whois,\n\t\t\t\t\thosting : this.domain.hosting,\n\t\t\t\t\tmail : this.domain.mail,\n\t\t\t\t\tautoRenew : this.domain.autoRenew,\n\t\t\t\t\tstatus : \"\",\n\t\t\t\t\tns1 : this.domain.ns1,\n\t\t\t\t\tns2 : this.domain.ns2,\n\t\t\t\t\tns3 : this.domain.ns3,\n\t\t\t\t\tns4 : this.domain.ns4\n\t\t\t\t}\n\t      this.domainService.registerDomain(domainInfo, this.regInfo, this.registerParams).then((response) => {\n\t\t\t\t\tthis.orderInfo = response;\n\t\t\t\t\tthis.waitForOrdersCompleted(response.orderId, (completed, r) => {\n\t\t\t\t\t\tthis.registeringDomain = false;           \n\t\t\t\t\t\tif(!completed) {\n\t\t\t\t\t\t\tthis.registerDomainError = r;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthis.domainService.setStatus(this.domain, 4).then((response) => {\n\t\t\t\t\t\t\t\tthis.domainStep = 6;\n\t\t\t\t\t\t\t\tthis.domain.statusId = 4;\n\t\t\t\t\t\t\t\tthis.closedResult = { addedDomain : this.domain }\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t}).catch((e) => {\n\t\t\t\t\tconsole.log(e);\n\t\t\t\t\tthis.registeringDomain = false;\n\t\t\t\t\tthis.registerDomainError = 'Ett fel uppstod: ' + (e.errorMessage || e.message);\n\t\t\t\t});\n\t\t\t}\n    }\n  }\n\n  verifyAuth() {\n\t\tvar domainInfo = {\n\t\t\tcomments : this.domain.comments,\n\t\t\tdomain : this.domain.domain,\n\t\t\taccountId : this.domain.accountId,\n\t\t\tmail : this.domain.mail,\n\t\t\thosting : this.domain.hosting,\n\t\t\tstatus : \"\"\n\t\t}\n\t\tconsole.log('info', this.nameISPInfo);\n\t\tconsole.log('domain', this.domain);\n\t\tthis.verifyingAuthCode = true;\t\n    this.domainService.transferDomain(domainInfo).then((response) => {\n\t\t\tconsole.log('transferresponse', response);\n\t\t\tthis.orderInfo = response;\n        var orderId = response.orderId;\n        this.domainService.setStatus(this.domain, 3).then((response) => {\n\t\t\t\t\tthis.domain.statusId = 3;\n          this.verifyingAuthCode = true;\n          this.waitForOrdersCompleted(orderId, (completed, r) => {  \n            this.verifyingAuthCode = false;\n            if(!completed) {\n\t\t\t\t\t\t\tthis.registerDomainError = r;\n            } else {\n\t\t\t\t\t\t\tthis.nameISPInfo.autorenew = 1;\n\t\t\t\t\t\t\tthis.domainService.updateNameISPInfo(this.nameISPInfo, this.domain).then((response) => {\n\t\t\t\t\t\t\t\tthis.domainService.setStatus(this.domain, 4).then((response) => {\n\t\t\t\t\t\t\t\t\tthis.domainStep = 6;\n\t\t\t\t\t\t\t\t\tthis.domain.statusId = 4;\n\t\t\t\t\t\t\t\t\tthis.notifyAboutNameserverChange();\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}).catch((e) => {\n\t\t\t\t\t\t\t\tconsole.log('nameispinfo save failed', e)\n\t\t\t\t\t\t\t\talert(e);\n\t\t\t\t\t\t\t})              \n            }\n          });\n        });        \n     }).catch((e) => {\n\t\t\t\tthis.registerDomainError = e.errorMessage || e.message;\n\t\t\t\tthis.verifyingAuthCode = false;\n\t\t\t})\n  }\n\n  waitForOrdersCompleted(orderId, clb) {\n    this.domainService.getOrderInfo(orderId, this.domain).then((response) => {\n\t\t\tif(response.info && (response.info.data.length > 0 && response.response.data.length > 0)) {\n\t\t\t\tvar r = JSON.parse(new Buffer(response.response.data).toString());\n\t\t\t\tvar i = JSON.parse(new Buffer(response.info.data).toString());\n        var requestId = r.parameters.requestID[0];\n        this.checkOrderInfo = JSON.stringify(i.items[requestId].status);\n      }\n      if(response.status == 'not_completed') {\n\t\t\t\tconsole.log(' not completed ')\n        setTimeout(() => {\n          this.waitForOrdersCompleted(orderId, clb);\n        }, 2500)\n      } else if(response.status == 'completed') {\n        clb(true, response.status);\n      } else {\n        clb(false, response.status);\n      }\n\t\t}).catch((e) => {\n\t\t\tconsole.log(e);\n\t\t\tclb(false, e.errorMessage);\n\t\t});;\n  }\n\n  findContactInfo() {\n    this.regInfo.orgName = this.companyInfo.company.name;\n    this.regInfo.orgNr = this.companyInfo.company.orgNr;\n    this.regInfo.address1 = this.companyInfo.company.adress1;\n    this.regInfo.address2 = this.companyInfo.company.adress2;\n    this.regInfo.city = this.companyInfo.company.city;\n    this.regInfo.zip = this.companyInfo.company.postalCode.replace(' ', '');\n    for(var k in this.companyInfo.company.phones) {\n\t\t\tthis.companyInfo.company.phones[k].forEach((p) => {\n      \tthis.regInfo.phone = p.areaCode + '' + p.telnr;\n\t\t\t});\n    }\n    if(this.companyInfo.company.contacts.length > 0) {\n      this.regInfo.firstName = this.companyInfo.company.contacts[0].firstName;\n      this.regInfo.lastName = this.companyInfo.company.contacts[0].lastName;\n      this.regInfo.email = this.companyInfo.company.contacts[0].emails[0].adress;\n      for(var k in this.companyInfo.company.contacts[0].phones) {\n        if(this.regInfo.phone == '')\n          this.regInfo.phone = this.companyInfo.company.contacts[0].phones[k][0].areaCode + '' + this.companyInfo.company.contacts[0].phones[k][0].telnr;\n      }\n    }\n    if(this.regInfo.phone != '') \n\t\t{\n      this.regInfo.phone = '+46.' + this.regInfo.phone;\n\t\t\tthis.regInfo.phone = this.regInfo.phone.replace(/ /g, '');\n\t\t\tif(this.regInfo.phone.match(/\\+46\\.0/))\n\t\t\t\tthis.regInfo.phone = this.regInfo.phone.replace(/\\+46\\.0/, \"+46.\")\n\t\t} else {\n\t\t\tthis.regInfo.phone = '+46.';\n\t\t}\n    this.regInfo.zip = this.companyInfo.company.postalCode;\n  }\n\n\tgenerateAuthCode() {\n\t\tthis.fetchingAuthCode = true;\n\t\tthis.domainService.generateAuthCode(this.domain).then((response) => {\n\t\t\tconsole.log(response);\n\t\t\tthis.fetchingAuthCode = false;\n\t\t\tthis.authCode = response.authcode;\n\t\t}).catch((e) => {\n\t\t\tthis.authModal.close().then(() => {\n\t\t\t\tthis.fetchingAuthCode = false;\n\t\t\t\tthis.errorMessage = e.errorMessage;\n\t\t\t\tthis.errorModal.open();\n\t\t\t});\n\t\t});\n\t}\n\t\n  setStatus(statusId) {\n    this.domain.statusId = statusId;\n  }\n\n  setActive(active) {\n    this.domain.status = active ? 'complete' : 'inactive';\n  }\n\n  setMail(mail) {\n    this.domain.mail = mail;\n  }\n\n\taddAnotherNameServer() : void {\n\t\tthis.nameServers.push({address : ''})\n\t}\n\n\taddFromZoneInfo() : void {\n\t\tthis.nameServers = [];\n\t\tthis.zoneInfo.ResourceRecordSets.forEach((r) => {\n\t\t\tif(r.Type == 'NS') {\n\t\t\t\tr.ResourceRecords.forEach((rr) => {\n\t\t\t\t\tthis.nameServers.push({ address : rr.Value })\n\t\t\t\t});\n\t\t\t}\n\t\t})\n\t}\n\n\tupdateNameServers() : void {\n\t\tthis.domainService.setNameServers(this.domain, this.nameServers).then((response) => {\n\t\t\tthis.registerDomainError = '';\n\t\t\tthis.domainStep = 5;\n\t\t\tthis.registeringDomain = true;\n\t\t\tthis.show = 'guide';\n\t\t\tthis.orderInfo = response;\n\t\t\tthis.waitForOrdersCompleted(response.orderId, (completed, r) => {\n\t\t\t\tif(!completed) {\n\t\t\t\t\tthis.registerDomainError = r;\n\t\t\t\t\tthis.registeringDomain = false;           \n\t\t\t\t} else {\n\t\t\t\t\tthis.domainService.setStatus(this.domain, 4).then((response) => {\n\t\t\t\t\t\tthis.registeringDomain = false;           \n\t\t\t\t\t\tthis.domainStep = 6;\n\t\t\t\t\t\tthis.domain.statusId = 4;\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t});\n\t\t}).catch((e) => {\n\t\t\tthis.errorMessage = e.errorMessage;\n\t\t\tthis.errorModal.open();\n\t\t});\n\t}\n\n\tcheckAutoRenewal() {\n\t\tthis.waitModal.open().then(() => {\n\t\t\tthis.domainService.getDomainInfo(this.domain.domain).then((response) => {\n\t\t\t\tthis.waitModal.close().then(() => {\n\t\t\t\t\tif(response.info.domainname) {\n\t\t\t\t\t\tthis.nameISPInfo = response.info;\n\t\t\t\t\t\tthis.show = 'nameisp';\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t}).catch((e) => {\n\t\t\t\tthis.waitModal.close().then(() => {\n\t\t\t\t\tthis.errorMessage = e.errorMessage;\n\t\t\t\t\tthis.errorModal.open();\t\t\t\t\t\n\t\t\t\t});\n\t\t\t});\t\n\t\t})\n\t}\n\t\n\tdeleteDomain() {\n\t\tthis.isDeleting = true;\n\t\tthis.deleteError = '';\n\t\tthis.domain.forceDelete = this.forceDelete;\n\t\tthis.domainService.deleteDomain(this.domain).then((response) => {\n\t\t\tthis.isDeleting = false;\n\t\t\tthis.confirmDeleteModal.close().then(() => {\n\t\t\t\tthis.closedResult = { deletedDomain : this.domain }\n\t\t\t\tthis.closeModal();\n\t\t\t});\n    }).catch((e) => {\n\t\t\tthis.isDeleting = false;\n\t\t\tthis.errorModal.open().then(() => {\n\t\t\t\tthis.errorMessage = e.errorMessage || e.message;\n\t\t\t})\n\t\t});\n\t}\n\n\tsetHosting(hosting, force, removeZone) {\n\t\tif(removeZone) {\n\t\t\tthis.domain.removeZoneOnUpdate = true;\n\t\t}\n\t\tif(!force && (hosting == 'external' && this.domain.hosting == 'internal')) {\n\t\t\tthis.zoneWarning.open();\n\t\t} else {\n\t\t\tthis.domain.hosting = hosting;\n\t\t}\t\n\t}\n\n  saveDomain() {\n\t\tthis.waitModal.open().then(() => {\n\t\t\tthis.domain.subdomains = this.subDomains;\n\t    this.domainService.updateDomain(this.domain).then((response) => {\n\t\t\t\tthis.domain.id = response.id;\n\t\t\t\tthis.eventsService.broadcast('domain:updated', { domain : this.domain });\n\t\t\t\t// check zone info\n\t\t\t\tthis.waitModal.close().then(() => {\n\t\t\t\t\tif(this.domain.id != '' && typeof(this.domain.id) != \"undefined\") {\n\t\t\t\t\t\tthis.domainService.getR53Zone(this.domain.id).then((zone) => {\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tthis.zoneInfo = zone;\n\t\t\t\t\t\t}).catch((e) => {\n\t\t\t\t\t\t\tthis.errorMessage = e.errorMessage;\n\t\t\t\t\t\t\tthis.errorModal.open();\t\t\t\t\t\n\t\t\t\t\t\t});\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.zoneInfo = undefined;\n\t\t\t\t\t}\n\t\t\t\t});\n\t    }).catch((e) => {\n\t\t\t\tthis.waitModal.close().then(() => {\n\t\t\t\t\tthis.errorModal.open().then(() => {\n\t\t\t\t\t\tthis.errorMessage = e.errorMessage || e.message;\t\t\t\n\t\t\t\t\t});\n\t\t\t\t})\n\t\t\t});\n\t\t})\n  }\n\n  handleOnCompanyAssigned(company) {\n    this.show = 'guide';\n  }\n\n}\n\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/components/domaininfo.ts","import { Component, ViewChild } from '@angular/core';\nimport {  ModalComponent } from 'ng2-bs4-modal/ng2-bs4-modal';\n\nimport { AccountsService } from '../services/accounts';\nimport { SupportIssueService } from '../services/support';\nimport { HttpService } from '../services/http';\nimport { ErrorsService } from '../services/errors';\n\nfunction _window() : any {\n   // return the global native browser window object\n   return window;\n}\n\n@Component({\n\tselector : 'mailcomposer',\n  template: require('./templates/mailcomposer.html')\n})\n\nexport class MailComposer {\n\n\t@ViewChild('composerModal')\n  composerModal: ModalComponent;\n\n\t@ViewChild('errorModal')\n  errorModal: ModalComponent;\n\n\t@ViewChild('sendingModal')\n  sendingModal: ModalComponent;\n\n\t@ViewChild('addFileModal')\n  addFileModal: ModalComponent;\n\t\n\t@ViewChild('addFileErrorModal')\n  addFileErrorModal: ModalComponent;\n\t\n\t@ViewChild('myEditor')\n\tmyEditor;\n\n\t@ViewChild('createReplyModal')\n  createReplyModal: ModalComponent;\n\t\n\tonModalClosed : Function;\n\tactiveEditor : any;\n\tuser : any;\n\tsubject : string;\n\ttoEmail : string;\n\tccEmail : string;\n\tavailableContacts : any[];\n\tcompanyId : number;\n\tcommunicationId : number;\n\terrorMessage : string;\n\treplyAttachments : any[];\n\tfileName : string;\n\tstandardReplies : any[];\n\tstandardReply : any;\n\teditReplies : boolean;\n\taddFileError : string;\n\n\tconstructor(\n\t\tprivate httpService: HttpService,\n\t\tprivate supportIssueService : SupportIssueService,\n\t\tprivate errorsService : ErrorsService,\n\t\tprivate accountsService : AccountsService\n  ) {\n\t\tthis.user = this.httpService.getUser();\n\t\tthis.availableContacts = [];\n\t\tthis.replyAttachments = [];\n\t\tthis.standardReplies = [];\n\t\tthis.standardReply = { Name : 'Nytt standardsvar', Text : '' }\n\t\tthis.supportIssueService.getStandardReplies().then((replies) => {\n\t\t\treplies.forEach((r) => {\n\t\t\t\tthis.standardReplies.push(r._source);\n\t\t\t})\n\t\t}).catch((e) => {\n\t\t\tthis.errorsService.broadcast('error', e.errorMessage || e.message);\n\t\t});\n\t}\n\n\tclearContacts() {\n\t\tthis.availableContacts = [];\n\t}\n\n\taddContact(contact) {\n\t\tthis.availableContacts.push(contact);\n\t\tif(this.availableContacts.length == 1) {\n\t\t\tthis.toEmail = contact.email;\n\t\t}\n\t}\n\n\tsetSubject(value : string) : void {\n\t\tthis.subject = value;\n\t}\n\n\tsetEmail(value : string) : void {\n\t\tthis.toEmail = value;\n\t}\n\n  arrayBufferToBase64( buffer ) : string {\n    var binary = '';\n    var bytes = new Uint8Array( buffer );\n    var len = bytes.byteLength;\n    for (var i = 0; i < len; i++) {\n        binary += String.fromCharCode( bytes[ i ] );\n    }\n    return window.btoa( binary );\n\t}\n\n\thandleAddedFile($event, f) : void {\n\t\tif($event.target.files.length > 0)\n\t\t\tthis.uploadFile($event.target.files[0]);\n\t}\n\n\tcloseAddFileErrorModal() : void {\n\t\tthis.addFileErrorModal.close();\n\t}\n\t\t\n\tuploadFile(file) : void {\n\t\tthis.addFileModal.open().then(() => {\n\t\t\tvar reader = new FileReader();\n\t\t\treader.onload = (evt) => {\n\t\t\t\tvar fr = (evt.target as FileReader);\t\t\t\n\t\t\t\tvar buf = fr.result;\n\t\t\t\tthis.supportIssueService.uploadLargeAttachment(buf, file.name, file.type).then((response) => {\n\t\t\t\t\tthis.addFileModal.close().then(() => {\n\t\t\t\t\t\tthis.fileName = '';\n\t\t\t\t\t\tthis.replyAttachments.push({ uri : response.uri, fileName : file.name, length : file.size });\n\t\t\t\t\t})\n\t\t\t\t}).catch((e) => {\n\t\t\t\t\tthis.addFileModal.close().then(() => {\n\t\t\t\t\t\tthis.fileName = '';\n\t\t\t\t\t\tthis.errorMessage = e.errorMessage;\n\t\t\t\t\t\tthis.errorModal.open().then(() => {\n\t\t\t\t\t\t\tif(this.onModalClosed) {\n\t\t\t\t\t\t\t\tthis.onModalClosed({ status : 'sent' , error : e });\n\t\t\t\t\t\t\t}\t\t\n\t\t\t\t\t\t})\n\t\t\t\t\t})\n\t\t\t\t});\n\t\t\t}\n\t\t\treader.readAsArrayBuffer(file);\n\t\t});\n\t}\n\n\tsetEditedReply(event) : void {\n\t\tthis.standardReply = this.standardReplies[parseInt(event.target.value)];\n\t}\n\n\tsaveStandardReply() : void {\n\t\tthis.supportIssueService.saveStandardReply(this.standardReply).then((response) => {\n\t\t\tthis.createReplyModal.close().then(() => {\n\t\t\t\tsetTimeout(() => {\n\t\t\t\t\tthis.supportIssueService.getStandardReplies().then((replies) => {\n\t\t\t\t\t\tthis.standardReplies = [];\n\t\t\t\t\t\treplies.forEach((r) => {\n\t\t\t\t\t\t\tthis.standardReplies.push(r._source);\n\t\t\t\t\t\t});\n\t\t\t\t\t});\n\t\t\t\t}, 1000);\t\t\t\t\n\t\t\t\t})\n\t\t}).catch((e) => {\n\t\t\tthis.errorsService.broadcast('error', e.errorMessage || e.error);\n\t\t});\n\t}\n\n\tcreateStandardReply() : void {\n\t\tthis.createReplyModal.open('lg').then(() => {\n\t\t\tthis.editReplies = false;\n\t\t\tthis.standardReply = { Name : 'Nytt standardsvar', Text : '' };\n\t\t})\n\t}\n\n\teditStandardReply() : void {\n\t\tthis.createReplyModal.open('lg').then(() => {\n\t\t\tthis.editReplies = true;\n\t\t\tthis.standardReply = this.standardReplies[0];\n\t\t});\n\t}\n  \n\tsetStandardReply(reply) : void {\n\t\tthis.activeEditor.execCommand('mceInsertContent', false, reply.Text);;\t\n\t}\n\n\tcloseModal(reason) : void {\n\t\tthis.composerModal.close().then(() => {\n\t\t\tif(reason == 'send') {\n\t\t\t\tthis.sendingModal.open().then(() => {\n\t\t\t\t\tvar contents = this.activeEditor.getContent();\n\t\t\t\t\tvar contents_text = this.activeEditor.getContent({ format: 'text' });\n\t\t\t\t\tthis.supportIssueService.sendReply(this.subject, contents, contents_text, this.toEmail, this.ccEmail, this.replyAttachments, undefined).then(({ messageId, body }) => {\n\t\t\t\t\t\tthis.replyAttachments = [];\n\t\t\t\t\t\tthis.sendingModal.close().then(() => {\n\t\t\t\t\t\t\tif(this.companyId && this.communicationId) {\n\t\t\t\t\t\t\t\tthis.accountsService.addCommunication(this.companyId, this.communicationId, this.user.userId, 24, JSON.stringify({ messageId, body: contents })).then(() => {\n\t\t\t\t\t\t\t\t\tif(this.onModalClosed) {\n\t\t\t\t\t\t\t\t\t\tthis.onModalClosed({ status : 'sent' });\n\t\t\t\t\t\t\t\t\t}\t\t\n\t\t\t\t\t\t\t\t}).catch((e) => {\n\t\t\t\t\t\t\t\t\tthis.sendingModal.close().then(() => {\n\t\t\t\t\t\t\t\t\t\tthis.errorMessage = e.errorMessage;\n\t\t\t\t\t\t\t\t\t\tthis.errorModal.open().then(() => {\n\t\t\t\t\t\t\t\t\t\t\tif(this.onModalClosed) {\n\t\t\t\t\t\t\t\t\t\t\t\tthis.onModalClosed({ status : 'sent' , error : e });\n\t\t\t\t\t\t\t\t\t\t\t}\t\t\n\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif(this.onModalClosed) {\n\t\t\t\t\t\t\t\t\tthis.onModalClosed({ status : 'sent' });\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})\n\n\t\t\t\t\t}).catch((e) => {\n\t\t\t\t\t\tthis.sendingModal.close().then(() => {\n\t\t\t\t\t\t\tthis.errorMessage = e.errorMessage;\n\t\t\t\t\t\t\tthis.errorModal.open().then(() => {\n\t\t\t\t\t\t\t\tthis.composerModal.open().then(() => {\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t});\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\tif(this.onModalClosed) {\n\t\t\t\t\tthis.onModalClosed({ status : reason });\n\t\t\t\t}\n\t\t\t}\n\t\t})\n\t}\n\n\topen(companyId, communicationId) : Promise<string> {\n\t\tthis.companyId = companyId;\n\t\tthis.communicationId = communicationId;\n\t\tthis.replyAttachments = [];\n\t\tthis.ccEmail = '';\n\t\tthis.fileName = '';\n\t\treturn new Promise((resolver) => {\n\t\t\tthis.composerModal.open('lg').then(() => {\n\t\t\t\t_window().initTinyEditor(() => { // destroy func\n\t\t\t\t\tif(this.activeEditor)\n\t\t\t\t\t\tthis.activeEditor.destroy();\n\t\t\t\t\tthis.activeEditor = null;\n\t\t\t\t}, this.myEditor.nativeElement)\n\t\t\t\t.then((editors) => {\n\t\t\t\t\tconsole.log(editors)\n\t\t\t\t\tthis.activeEditor = editors[0];\n\t\t\t\t\tthis.activeEditor.focus();\n\t\t\t\t\tlet html = `\n\t\t\t\t\t<p></p>\n\t\t\t\t\t`;\n\t\t\t\t\tthis.activeEditor.setContent(html)\n\t\t\t\t});\n\t\t\t\tthis.onModalClosed = (reason) => {\n\t\t\t\t\tconsole.log('destroyEditors');\n\t\t\t\t\t_window().destroyEditors((r) => {\n\t\t\t\t\t\tconsole.log(r);\n\t\t\t\t\t});\n\t\t\t\t\tresolver(reason);\n\t\t\t\t}\n\t\t\t});\n\t\t})\n\t}\n\n\topenWithEmail(email) {\n\t\tthis.toEmail = email;\n\t\treturn this.open(0, 0);\n\t}\n\n}\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/components/mailcomposer.ts","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar root_1 = require('../util/root');\nvar Action_1 = require('./Action');\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar AsyncAction = (function (_super) {\n    __extends(AsyncAction, _super);\n    function AsyncAction(scheduler, work) {\n        _super.call(this, scheduler, work);\n        this.scheduler = scheduler;\n        this.work = work;\n        this.pending = false;\n    }\n    AsyncAction.prototype.schedule = function (state, delay) {\n        if (delay === void 0) { delay = 0; }\n        if (this.closed) {\n            return this;\n        }\n        // Always replace the current state with the new state.\n        this.state = state;\n        // Set the pending flag indicating that this action has been scheduled, or\n        // has recursively rescheduled itself.\n        this.pending = true;\n        var id = this.id;\n        var scheduler = this.scheduler;\n        //\n        // Important implementation note:\n        //\n        // Actions only execute once by default, unless rescheduled from within the\n        // scheduled callback. This allows us to implement single and repeat\n        // actions via the same code path, without adding API surface area, as well\n        // as mimic traditional recursion but across asynchronous boundaries.\n        //\n        // However, JS runtimes and timers distinguish between intervals achieved by\n        // serial `setTimeout` calls vs. a single `setInterval` call. An interval of\n        // serial `setTimeout` calls can be individually delayed, which delays\n        // scheduling the next `setTimeout`, and so on. `setInterval` attempts to\n        // guarantee the interval callback will be invoked more precisely to the\n        // interval period, regardless of load.\n        //\n        // Therefore, we use `setInterval` to schedule single and repeat actions.\n        // If the action reschedules itself with the same delay, the interval is not\n        // canceled. If the action doesn't reschedule, or reschedules with a\n        // different delay, the interval will be canceled after scheduled callback\n        // execution.\n        //\n        if (id != null) {\n            this.id = this.recycleAsyncId(scheduler, id, delay);\n        }\n        this.delay = delay;\n        // If this action has already an async Id, don't request a new one.\n        this.id = this.id || this.requestAsyncId(scheduler, this.id, delay);\n        return this;\n    };\n    AsyncAction.prototype.requestAsyncId = function (scheduler, id, delay) {\n        if (delay === void 0) { delay = 0; }\n        return root_1.root.setInterval(scheduler.flush.bind(scheduler, this), delay);\n    };\n    AsyncAction.prototype.recycleAsyncId = function (scheduler, id, delay) {\n        if (delay === void 0) { delay = 0; }\n        // If this action is rescheduled with the same delay time, don't clear the interval id.\n        if (delay !== null && this.delay === delay) {\n            return id;\n        }\n        // Otherwise, if the action's delay time is different from the current delay,\n        // clear the interval id\n        return root_1.root.clearInterval(id) && undefined || undefined;\n    };\n    /**\n     * Immediately executes this action and the `work` it contains.\n     * @return {any}\n     */\n    AsyncAction.prototype.execute = function (state, delay) {\n        if (this.closed) {\n            return new Error('executing a cancelled action');\n        }\n        this.pending = false;\n        var error = this._execute(state, delay);\n        if (error) {\n            return error;\n        }\n        else if (this.pending === false && this.id != null) {\n            // Dequeue if the action didn't reschedule itself. Don't call\n            // unsubscribe(), because the action could reschedule later.\n            // For example:\n            // ```\n            // scheduler.schedule(function doWork(counter) {\n            //   /* ... I'm a busy worker bee ... */\n            //   var originalAction = this;\n            //   /* wait 100ms before rescheduling the action */\n            //   setTimeout(function () {\n            //     originalAction.schedule(counter + 1);\n            //   }, 100);\n            // }, 1000);\n            // ```\n            this.id = this.recycleAsyncId(this.scheduler, this.id, null);\n        }\n    };\n    AsyncAction.prototype._execute = function (state, delay) {\n        var errored = false;\n        var errorValue = undefined;\n        try {\n            this.work(state);\n        }\n        catch (e) {\n            errored = true;\n            errorValue = !!e && e || new Error(e);\n        }\n        if (errored) {\n            this.unsubscribe();\n            return errorValue;\n        }\n    };\n    AsyncAction.prototype._unsubscribe = function () {\n        var id = this.id;\n        var scheduler = this.scheduler;\n        var actions = scheduler.actions;\n        var index = actions.indexOf(this);\n        this.work = null;\n        this.delay = null;\n        this.state = null;\n        this.pending = false;\n        this.scheduler = null;\n        if (index !== -1) {\n            actions.splice(index, 1);\n        }\n        if (id != null) {\n            this.id = this.recycleAsyncId(scheduler, id, null);\n        }\n    };\n    return AsyncAction;\n}(Action_1.Action));\nexports.AsyncAction = AsyncAction;\n//# sourceMappingURL=AsyncAction.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/scheduler/AsyncAction.js\n// module id = 154\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Scheduler_1 = require('../Scheduler');\nvar AsyncScheduler = (function (_super) {\n    __extends(AsyncScheduler, _super);\n    function AsyncScheduler() {\n        _super.apply(this, arguments);\n        this.actions = [];\n        /**\n         * A flag to indicate whether the Scheduler is currently executing a batch of\n         * queued actions.\n         * @type {boolean}\n         */\n        this.active = false;\n        /**\n         * An internal ID used to track the latest asynchronous task such as those\n         * coming from `setTimeout`, `setInterval`, `requestAnimationFrame`, and\n         * others.\n         * @type {any}\n         */\n        this.scheduled = undefined;\n    }\n    AsyncScheduler.prototype.flush = function (action) {\n        var actions = this.actions;\n        if (this.active) {\n            actions.push(action);\n            return;\n        }\n        var error;\n        this.active = true;\n        do {\n            if (error = action.execute(action.state, action.delay)) {\n                break;\n            }\n        } while (action = actions.shift()); // exhaust the scheduler queue\n        this.active = false;\n        if (error) {\n            while (action = actions.shift()) {\n                action.unsubscribe();\n            }\n            throw error;\n        }\n    };\n    return AsyncScheduler;\n}(Scheduler_1.Scheduler));\nexports.AsyncScheduler = AsyncScheduler;\n//# sourceMappingURL=AsyncScheduler.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/scheduler/AsyncScheduler.js\n// module id = 155\n// module chunks = 0","\"use strict\";\nvar core_1 = require('@angular/core');\nvar AxisResolverFactory = (function () {\n    function AxisResolverFactory() {\n    }\n    AxisResolverFactory.prototype.create = function (vertical) {\n        if (vertical === void 0) { vertical = true; }\n        return new AxisResolver(vertical);\n    };\n    AxisResolverFactory.decorators = [\n        { type: core_1.Injectable },\n    ];\n    /** @nocollapse */\n    AxisResolverFactory.ctorParameters = function () { return []; };\n    return AxisResolverFactory;\n}());\nexports.AxisResolverFactory = AxisResolverFactory;\nvar AxisResolver = (function () {\n    function AxisResolver(vertical) {\n        if (vertical === void 0) { vertical = true; }\n        this.vertical = vertical;\n    }\n    AxisResolver.prototype.clientHeightKey = function () { return this.vertical ? 'clientHeight' : 'clientWidth'; };\n    AxisResolver.prototype.offsetHeightKey = function () { return this.vertical ? 'offsetHeight' : 'offsetWidth'; };\n    AxisResolver.prototype.scrollHeightKey = function () { return this.vertical ? 'scrollHeight' : 'scrollWidth'; };\n    AxisResolver.prototype.pageYOffsetKey = function () { return this.vertical ? 'pageYOffset' : 'pageXOffset'; };\n    AxisResolver.prototype.offsetTopKey = function () { return this.vertical ? 'offsetTop' : 'offsetLeft'; };\n    AxisResolver.prototype.scrollTopKey = function () { return this.vertical ? 'scrollTop' : 'scrollLeft'; };\n    AxisResolver.prototype.topKey = function () { return this.vertical ? 'top' : 'left'; };\n    return AxisResolver;\n}());\nexports.AxisResolver = AxisResolver;\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXhpcy1yZXNvbHZlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImF4aXMtcmVzb2x2ZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLHFCQUFtQyxlQUFlLENBQUMsQ0FBQTtBQUduRDtJQUNFO0lBQWdCLENBQUM7SUFFakIsb0NBQU0sR0FBTixVQUFPLFFBQXdCO1FBQXhCLHdCQUF3QixHQUF4QixlQUF3QjtRQUM3QixNQUFNLENBQUMsSUFBSSxZQUFZLENBQUMsUUFBUSxDQUFDLENBQUM7SUFDcEMsQ0FBQztJQUNJLDhCQUFVLEdBQTBCO1FBQzNDLEVBQUUsSUFBSSxFQUFFLGlCQUFVLEVBQUU7S0FDbkIsQ0FBQztJQUNGLGtCQUFrQjtJQUNYLGtDQUFjLEdBQW1FLGNBQU0sT0FBQSxFQUM3RixFQUQ2RixDQUM3RixDQUFDO0lBQ0YsMEJBQUM7QUFBRCxDQUFDLEFBWkQsSUFZQztBQVpZLDJCQUFtQixzQkFZL0IsQ0FBQTtBQUVEO0lBQ0Usc0JBQW9CLFFBQXdCO1FBQWhDLHdCQUFnQyxHQUFoQyxlQUFnQztRQUF4QixhQUFRLEdBQVIsUUFBUSxDQUFnQjtJQUM1QyxDQUFDO0lBQ0Qsc0NBQWUsR0FBZixjQUFvQixNQUFNLENBQUMsSUFBSSxDQUFDLFFBQVEsR0FBRyxjQUFjLEdBQUcsYUFBYSxDQUFDLENBQUMsQ0FBQztJQUM1RSxzQ0FBZSxHQUFmLGNBQW9CLE1BQU0sQ0FBQyxJQUFJLENBQUMsUUFBUSxHQUFHLGNBQWMsR0FBRyxhQUFhLENBQUMsQ0FBQyxDQUFDO0lBQzVFLHNDQUFlLEdBQWYsY0FBb0IsTUFBTSxDQUFDLElBQUksQ0FBQyxRQUFRLEdBQUcsY0FBYyxHQUFHLGFBQWEsQ0FBQyxDQUFDLENBQUM7SUFDNUUscUNBQWMsR0FBZCxjQUFtQixNQUFNLENBQUMsSUFBSSxDQUFDLFFBQVEsR0FBRyxhQUFhLEdBQUcsYUFBYSxDQUFDLENBQUMsQ0FBQztJQUMxRSxtQ0FBWSxHQUFaLGNBQWlCLE1BQU0sQ0FBQyxJQUFJLENBQUMsUUFBUSxHQUFHLFdBQVcsR0FBRyxZQUFZLENBQUMsQ0FBQyxDQUFDO0lBQ3JFLG1DQUFZLEdBQVosY0FBaUIsTUFBTSxDQUFDLElBQUksQ0FBQyxRQUFRLEdBQUcsV0FBVyxHQUFHLFlBQVksQ0FBQyxDQUFDLENBQUM7SUFDckUsNkJBQU0sR0FBTixjQUFXLE1BQU0sQ0FBQyxJQUFJLENBQUMsUUFBUSxHQUFHLEtBQUssR0FBRyxNQUFNLENBQUMsQ0FBQyxDQUFDO0lBQ3JELG1CQUFDO0FBQUQsQ0FBQyxBQVZELElBVUM7QUFWWSxvQkFBWSxlQVV4QixDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgSW5qZWN0YWJsZSwgSW5qZWN0IH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cblxuZXhwb3J0IGNsYXNzIEF4aXNSZXNvbHZlckZhY3Rvcnkge1xuICBjb25zdHJ1Y3RvcigpIHsgfVxuXG4gIGNyZWF0ZSh2ZXJ0aWNhbDogYm9vbGVhbiA9IHRydWUpIHtcbiAgICByZXR1cm4gbmV3IEF4aXNSZXNvbHZlcih2ZXJ0aWNhbCk7XG4gIH1cbnN0YXRpYyBkZWNvcmF0b3JzOiBEZWNvcmF0b3JJbnZvY2F0aW9uW10gPSBbXG57IHR5cGU6IEluamVjdGFibGUgfSxcbl07XG4vKiogQG5vY29sbGFwc2UgKi9cbnN0YXRpYyBjdG9yUGFyYW1ldGVyczogKCkgPT4gKHt0eXBlOiBhbnksIGRlY29yYXRvcnM/OiBEZWNvcmF0b3JJbnZvY2F0aW9uW119fG51bGwpW10gPSAoKSA9PiBbXG5dO1xufVxuXG5leHBvcnQgY2xhc3MgQXhpc1Jlc29sdmVyIHtcbiAgY29uc3RydWN0b3IocHJpdmF0ZSB2ZXJ0aWNhbDogYm9vbGVhbiA9IHRydWUpIHtcbiAgfVxuICBjbGllbnRIZWlnaHRLZXkoKSB7IHJldHVybiB0aGlzLnZlcnRpY2FsID8gJ2NsaWVudEhlaWdodCcgOiAnY2xpZW50V2lkdGgnOyB9XG4gIG9mZnNldEhlaWdodEtleSgpIHsgcmV0dXJuIHRoaXMudmVydGljYWwgPyAnb2Zmc2V0SGVpZ2h0JyA6ICdvZmZzZXRXaWR0aCc7IH1cbiAgc2Nyb2xsSGVpZ2h0S2V5KCkgeyByZXR1cm4gdGhpcy52ZXJ0aWNhbCA/ICdzY3JvbGxIZWlnaHQnIDogJ3Njcm9sbFdpZHRoJzsgfVxuICBwYWdlWU9mZnNldEtleSgpIHsgcmV0dXJuIHRoaXMudmVydGljYWwgPyAncGFnZVlPZmZzZXQnIDogJ3BhZ2VYT2Zmc2V0JzsgfVxuICBvZmZzZXRUb3BLZXkoKSB7IHJldHVybiB0aGlzLnZlcnRpY2FsID8gJ29mZnNldFRvcCcgOiAnb2Zmc2V0TGVmdCc7IH1cbiAgc2Nyb2xsVG9wS2V5KCkgeyByZXR1cm4gdGhpcy52ZXJ0aWNhbCA/ICdzY3JvbGxUb3AnIDogJ3Njcm9sbExlZnQnOyB9XG4gIHRvcEtleSgpIHsgcmV0dXJuIHRoaXMudmVydGljYWwgPyAndG9wJyA6ICdsZWZ0JzsgfVxufVxuXG5pbnRlcmZhY2UgRGVjb3JhdG9ySW52b2NhdGlvbiB7XG4gIHR5cGU6IEZ1bmN0aW9uO1xuICBhcmdzPzogYW55W107XG59XG4iXX0=\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/angular2-infinite-scroll/src/axis-resolver.js\n// module id = 199\n// module chunks = 0","\"use strict\";\nvar core_1 = require('@angular/core');\nvar axis_resolver_1 = require('./axis-resolver');\nvar PositionResolverFactory = (function () {\n    function PositionResolverFactory(axisResolver) {\n        this.axisResolver = axisResolver;\n    }\n    PositionResolverFactory.prototype.create = function (options) {\n        return new PositionResolver(this.axisResolver.create(!options.horizontal), options);\n    };\n    PositionResolverFactory.decorators = [\n        { type: core_1.Injectable },\n    ];\n    /** @nocollapse */\n    PositionResolverFactory.ctorParameters = function () { return [\n        { type: axis_resolver_1.AxisResolverFactory, },\n    ]; };\n    return PositionResolverFactory;\n}());\nexports.PositionResolverFactory = PositionResolverFactory;\nvar PositionResolver = (function () {\n    function PositionResolver(axis, options) {\n        this.axis = axis;\n        this.options = options;\n        this.resolveContainer(this.options.windowElement);\n        this.defineContainer(this.options.windowElement);\n    }\n    PositionResolver.prototype.defineContainer = function (windowElement) {\n        if (this.resolveContainer(windowElement) || !windowElement.nativeElement) {\n            this.container = windowElement;\n        }\n        else {\n            this.container = windowElement.nativeElement;\n        }\n        return this.container;\n    };\n    PositionResolver.prototype.resolveContainer = function (windowElement) {\n        var isContainerWindow = Object.prototype.toString.call(windowElement).includes('Window');\n        this.isContainerWindow = isContainerWindow;\n        return isContainerWindow;\n    };\n    PositionResolver.prototype.getDocumentElement = function () {\n        return this.isContainerWindow\n            ? this.options.windowElement.document.documentElement\n            : null;\n    };\n    PositionResolver.prototype.calculatePoints = function (element) {\n        return this.isContainerWindow\n            ? this.calculatePointsForWindow(element)\n            : this.calculatePointsForElement(element);\n    };\n    PositionResolver.prototype.calculatePointsForWindow = function (element) {\n        // container's height\n        var height = this.height(this.container);\n        // scrolled until now / current y point\n        var scrolledUntilNow = height + this.pageYOffset(this.getDocumentElement());\n        // total height / most bottom y point\n        var totalToScroll = this.offsetTop(element.nativeElement) + this.height(element.nativeElement);\n        return { height: height, scrolledUntilNow: scrolledUntilNow, totalToScroll: totalToScroll };\n    };\n    PositionResolver.prototype.calculatePointsForElement = function (element) {\n        var scrollTop = this.axis.scrollTopKey();\n        var scrollHeight = this.axis.scrollHeightKey();\n        var container = this.container;\n        var height = this.height(container);\n        // perhaps use this.container.offsetTop instead of 'scrollTop'\n        var scrolledUntilNow = container[scrollTop];\n        var containerTopOffset = 0;\n        var offsetTop = this.offsetTop(container);\n        if (offsetTop !== void 0) {\n            containerTopOffset = offsetTop;\n        }\n        var totalToScroll = container[scrollHeight];\n        return { height: height, scrolledUntilNow: scrolledUntilNow, totalToScroll: totalToScroll };\n    };\n    PositionResolver.prototype.height = function (elem) {\n        var offsetHeight = this.axis.offsetHeightKey();\n        var clientHeight = this.axis.clientHeightKey();\n        // elem = elem.nativeElement;\n        if (isNaN(elem[offsetHeight])) {\n            return this.getDocumentElement()[clientHeight];\n        }\n        else {\n            return elem[offsetHeight];\n        }\n    };\n    PositionResolver.prototype.offsetTop = function (elem) {\n        var top = this.axis.topKey();\n        // elem = elem.nativeElement;\n        if (!elem.getBoundingClientRect) {\n            return;\n        }\n        return elem.getBoundingClientRect()[top] + this.pageYOffset(elem);\n    };\n    PositionResolver.prototype.pageYOffset = function (elem) {\n        var pageYOffset = this.axis.pageYOffsetKey();\n        var scrollTop = this.axis.scrollTopKey();\n        var offsetTop = this.axis.offsetTopKey();\n        // elem = elem.nativeElement;\n        if (isNaN(window[pageYOffset])) {\n            return this.getDocumentElement()[scrollTop];\n        }\n        else if (elem.ownerDocument) {\n            return elem.ownerDocument.defaultView[pageYOffset];\n        }\n        else {\n            return elem[offsetTop];\n        }\n    };\n    return PositionResolver;\n}());\nexports.PositionResolver = PositionResolver;\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG9zaXRpb24tcmVzb2x2ZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJwb3NpdGlvbi1yZXNvbHZlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEscUJBQXVDLGVBQWUsQ0FBQyxDQUFBO0FBQ3ZELDhCQUFrRCxpQkFBaUIsQ0FBQyxDQUFBO0FBSXBFO0lBRUUsaUNBQW9CLFlBQWlDO1FBQWpDLGlCQUFZLEdBQVosWUFBWSxDQUFxQjtJQUNyRCxDQUFDO0lBRUQsd0NBQU0sR0FBTixVQUFRLE9BQXlCO1FBQy9CLE1BQU0sQ0FBQyxJQUFJLGdCQUFnQixDQUFDLElBQUksQ0FBQyxZQUFZLENBQUMsTUFBTSxDQUFDLENBQUMsT0FBTyxDQUFDLFVBQVUsQ0FBQyxFQUFFLE9BQU8sQ0FBQyxDQUFDO0lBQ3RGLENBQUM7SUFDSSxrQ0FBVSxHQUEwQjtRQUMzQyxFQUFFLElBQUksRUFBRSxpQkFBVSxFQUFFO0tBQ25CLENBQUM7SUFDRixrQkFBa0I7SUFDWCxzQ0FBYyxHQUFtRSxjQUFNLE9BQUE7UUFDOUYsRUFBQyxJQUFJLEVBQUUsbUNBQW1CLEdBQUc7S0FDNUIsRUFGNkYsQ0FFN0YsQ0FBQztJQUNGLDhCQUFDO0FBQUQsQ0FBQyxBQWZELElBZUM7QUFmWSwrQkFBdUIsMEJBZW5DLENBQUE7QUFFRDtJQUtFLDBCQUFxQixJQUFrQixFQUFVLE9BQXlCO1FBQXJELFNBQUksR0FBSixJQUFJLENBQWM7UUFBVSxZQUFPLEdBQVAsT0FBTyxDQUFrQjtRQUN4RSxJQUFJLENBQUMsZ0JBQWdCLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxhQUFhLENBQUMsQ0FBQztRQUNsRCxJQUFJLENBQUMsZUFBZSxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUMsYUFBYSxDQUFDLENBQUM7SUFDbkQsQ0FBQztJQUVELDBDQUFlLEdBQWYsVUFBZ0IsYUFBMkI7UUFDekMsRUFBRSxDQUFDLENBQUMsSUFBSSxDQUFDLGdCQUFnQixDQUFDLGFBQWEsQ0FBQyxJQUFJLENBQUMsYUFBYSxDQUFDLGFBQWEsQ0FBQyxDQUFDLENBQUM7WUFDekUsSUFBSSxDQUFDLFNBQVMsR0FBRyxhQUFhLENBQUM7UUFDakMsQ0FBQztRQUFDLElBQUksQ0FBQyxDQUFDO1lBQ04sSUFBSSxDQUFDLFNBQVMsR0FBRyxhQUFhLENBQUMsYUFBYSxDQUFDO1FBQy9DLENBQUM7UUFDRCxNQUFNLENBQUMsSUFBSSxDQUFDLFNBQVMsQ0FBQztJQUN4QixDQUFDO0lBRUQsMkNBQWdCLEdBQWhCLFVBQWlCLGFBQTJCO1FBQzFDLElBQU0saUJBQWlCLEdBQUcsTUFBTSxDQUFDLFNBQVMsQ0FBQyxRQUFRLENBQUMsSUFBSSxDQUFDLGFBQWEsQ0FBQyxDQUFDLFFBQVEsQ0FBQyxRQUFRLENBQUMsQ0FBQztRQUMzRixJQUFJLENBQUMsaUJBQWlCLEdBQUcsaUJBQWlCLENBQUM7UUFDM0MsTUFBTSxDQUFDLGlCQUFpQixDQUFDO0lBQzNCLENBQUM7SUFFRCw2Q0FBa0IsR0FBbEI7UUFDRSxNQUFNLENBQUMsSUFBSSxDQUFDLGlCQUFpQjtjQUN6QixJQUFJLENBQUMsT0FBTyxDQUFDLGFBQWEsQ0FBQyxRQUFRLENBQUMsZUFBZTtjQUNuRCxJQUFJLENBQUM7SUFDWCxDQUFDO0lBRUQsMENBQWUsR0FBZixVQUFpQixPQUFtQjtRQUNsQyxNQUFNLENBQUMsSUFBSSxDQUFDLGlCQUFpQjtjQUN6QixJQUFJLENBQUMsd0JBQXdCLENBQUMsT0FBTyxDQUFDO2NBQ3RDLElBQUksQ0FBQyx5QkFBeUIsQ0FBQyxPQUFPLENBQUMsQ0FBQztJQUM5QyxDQUFDO0lBRUQsbURBQXdCLEdBQXhCLFVBQTBCLE9BQW1CO1FBQzNDLHFCQUFxQjtRQUNyQixJQUFNLE1BQU0sR0FBRyxJQUFJLENBQUMsTUFBTSxDQUFDLElBQUksQ0FBQyxTQUFTLENBQUMsQ0FBQztRQUMzQyx1Q0FBdUM7UUFDdkMsSUFBTSxnQkFBZ0IsR0FBRyxNQUFNLEdBQUcsSUFBSSxDQUFDLFdBQVcsQ0FBQyxJQUFJLENBQUMsa0JBQWtCLEVBQUUsQ0FBQyxDQUFDO1FBQzlFLHFDQUFxQztRQUNyQyxJQUFNLGFBQWEsR0FBRyxJQUFJLENBQUMsU0FBUyxDQUFDLE9BQU8sQ0FBQyxhQUFhLENBQUMsR0FBRyxJQUFJLENBQUMsTUFBTSxDQUFDLE9BQU8sQ0FBQyxhQUFhLENBQUMsQ0FBQztRQUNqRyxNQUFNLENBQUMsRUFBRSxjQUFNLEVBQUUsa0NBQWdCLEVBQUUsNEJBQWEsRUFBRSxDQUFDO0lBQ3JELENBQUM7SUFFRCxvREFBeUIsR0FBekIsVUFBMkIsT0FBbUI7UUFDNUMsSUFBSSxTQUFTLEdBQU0sSUFBSSxDQUFDLElBQUksQ0FBQyxZQUFZLEVBQUUsQ0FBQztRQUM1QyxJQUFJLFlBQVksR0FBRyxJQUFJLENBQUMsSUFBSSxDQUFDLGVBQWUsRUFBRSxDQUFDO1FBQy9DLElBQU0sU0FBUyxHQUFHLElBQUksQ0FBQyxTQUFTLENBQUM7UUFFakMsSUFBTSxNQUFNLEdBQUcsSUFBSSxDQUFDLE1BQU0sQ0FBQyxTQUFTLENBQUMsQ0FBQztRQUN0Qyw4REFBOEQ7UUFDOUQsSUFBTSxnQkFBZ0IsR0FBRyxTQUFTLENBQUMsU0FBUyxDQUFDLENBQUM7UUFDOUMsSUFBSSxrQkFBa0IsR0FBRyxDQUFDLENBQUM7UUFDM0IsSUFBTSxTQUFTLEdBQUcsSUFBSSxDQUFDLFNBQVMsQ0FBQyxTQUFTLENBQUMsQ0FBQztRQUM1QyxFQUFFLENBQUMsQ0FBQyxTQUFTLEtBQUssS0FBSyxDQUFDLENBQUMsQ0FBQyxDQUFDO1lBQ3pCLGtCQUFrQixHQUFHLFNBQVMsQ0FBQztRQUNqQyxDQUFDO1FBQ0QsSUFBTSxhQUFhLEdBQUcsU0FBUyxDQUFDLFlBQVksQ0FBQyxDQUFDO1FBQzlDLE1BQU0sQ0FBQyxFQUFFLGNBQU0sRUFBRSxrQ0FBZ0IsRUFBRSw0QkFBYSxFQUFFLENBQUM7SUFDckQsQ0FBQztJQUVPLGlDQUFNLEdBQWQsVUFBZ0IsSUFBUztRQUN2QixJQUFJLFlBQVksR0FBRyxJQUFJLENBQUMsSUFBSSxDQUFDLGVBQWUsRUFBRSxDQUFDO1FBQy9DLElBQUksWUFBWSxHQUFHLElBQUksQ0FBQyxJQUFJLENBQUMsZUFBZSxFQUFFLENBQUM7UUFFL0MsNkJBQTZCO1FBQzdCLEVBQUUsQ0FBQyxDQUFDLEtBQUssQ0FBQyxJQUFJLENBQUMsWUFBWSxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUM7WUFDOUIsTUFBTSxDQUFDLElBQUksQ0FBQyxrQkFBa0IsRUFBRSxDQUFDLFlBQVksQ0FBQyxDQUFDO1FBQ2pELENBQUM7UUFBQyxJQUFJLENBQUMsQ0FBQztZQUNOLE1BQU0sQ0FBQyxJQUFJLENBQUMsWUFBWSxDQUFDLENBQUM7UUFDNUIsQ0FBQztJQUNILENBQUM7SUFFTyxvQ0FBUyxHQUFqQixVQUFtQixJQUFTO1FBQzFCLElBQUksR0FBRyxHQUFHLElBQUksQ0FBQyxJQUFJLENBQUMsTUFBTSxFQUFFLENBQUM7UUFFN0IsNkJBQTZCO1FBQzdCLEVBQUUsQ0FBQyxDQUFDLENBQUMsSUFBSSxDQUFDLHFCQUFxQixDQUFDLENBQUMsQ0FBQztZQUNoQyxNQUFNLENBQUM7UUFDVCxDQUFDO1FBQ0QsTUFBTSxDQUFDLElBQUksQ0FBQyxxQkFBcUIsRUFBRSxDQUFDLEdBQUcsQ0FBQyxHQUFHLElBQUksQ0FBQyxXQUFXLENBQUMsSUFBSSxDQUFDLENBQUM7SUFDcEUsQ0FBQztJQUVELHNDQUFXLEdBQVgsVUFBYSxJQUFTO1FBQ3BCLElBQUksV0FBVyxHQUFHLElBQUksQ0FBQyxJQUFJLENBQUMsY0FBYyxFQUFFLENBQUM7UUFDN0MsSUFBSSxTQUFTLEdBQUssSUFBSSxDQUFDLElBQUksQ0FBQyxZQUFZLEVBQUUsQ0FBQztRQUMzQyxJQUFJLFNBQVMsR0FBSyxJQUFJLENBQUMsSUFBSSxDQUFDLFlBQVksRUFBRSxDQUFDO1FBRTNDLDZCQUE2QjtRQUM3QixFQUFFLENBQUMsQ0FBQyxLQUFLLENBQUMsTUFBTSxDQUFDLFdBQVcsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDO1lBQy9CLE1BQU0sQ0FBQyxJQUFJLENBQUMsa0JBQWtCLEVBQUUsQ0FBQyxTQUFTLENBQUMsQ0FBQztRQUM5QyxDQUFDO1FBQUMsSUFBSSxDQUFDLEVBQUUsQ0FBQyxDQUFDLElBQUksQ0FBQyxhQUFhLENBQUMsQ0FBQyxDQUFDO1lBQzlCLE1BQU0sQ0FBQyxJQUFJLENBQUMsYUFBYSxDQUFDLFdBQVcsQ0FBQyxXQUFXLENBQUMsQ0FBQztRQUNyRCxDQUFDO1FBQUMsSUFBSSxDQUFDLENBQUM7WUFDTixNQUFNLENBQUMsSUFBSSxDQUFDLFNBQVMsQ0FBQyxDQUFDO1FBQ3pCLENBQUM7SUFDSCxDQUFDO0lBQ0gsdUJBQUM7QUFBRCxDQUFDLEFBcEdELElBb0dDO0FBcEdZLHdCQUFnQixtQkFvRzVCLENBQUEiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBJbmplY3RhYmxlLCBFbGVtZW50UmVmIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgeyBBeGlzUmVzb2x2ZXIsIEF4aXNSZXNvbHZlckZhY3RvcnkgfSBmcm9tICcuL2F4aXMtcmVzb2x2ZXInO1xuaW1wb3J0IHsgQ29udGFpbmVyUmVmLCBQb3NpdGlvbkVsZW1lbnRzLCBQb3NpdGlvblN0YXRzIH0gZnJvbSAnLi9tb2RlbHMnO1xuXG5cbmV4cG9ydCBjbGFzcyBQb3NpdGlvblJlc29sdmVyRmFjdG9yeSB7XG5cbiAgY29uc3RydWN0b3IocHJpdmF0ZSBheGlzUmVzb2x2ZXI6IEF4aXNSZXNvbHZlckZhY3RvcnkpIHtcbiAgfVxuXG4gIGNyZWF0ZSAob3B0aW9uczogUG9zaXRpb25FbGVtZW50cykge1xuICAgIHJldHVybiBuZXcgUG9zaXRpb25SZXNvbHZlcih0aGlzLmF4aXNSZXNvbHZlci5jcmVhdGUoIW9wdGlvbnMuaG9yaXpvbnRhbCksIG9wdGlvbnMpO1xuICB9XG5zdGF0aWMgZGVjb3JhdG9yczogRGVjb3JhdG9ySW52b2NhdGlvbltdID0gW1xueyB0eXBlOiBJbmplY3RhYmxlIH0sXG5dO1xuLyoqIEBub2NvbGxhcHNlICovXG5zdGF0aWMgY3RvclBhcmFtZXRlcnM6ICgpID0+ICh7dHlwZTogYW55LCBkZWNvcmF0b3JzPzogRGVjb3JhdG9ySW52b2NhdGlvbltdfXxudWxsKVtdID0gKCkgPT4gW1xue3R5cGU6IEF4aXNSZXNvbHZlckZhY3RvcnksIH0sXG5dO1xufVxuXG5leHBvcnQgY2xhc3MgUG9zaXRpb25SZXNvbHZlciB7XG4gIHByaXZhdGUgZG9jdW1lbnRFbGVtZW50OiBDb250YWluZXJSZWY7XG4gIHByaXZhdGUgaXNDb250YWluZXJXaW5kb3c6IGJvb2xlYW47XG4gIHB1YmxpYyBjb250YWluZXI6IENvbnRhaW5lclJlZjtcblxuICBjb25zdHJ1Y3RvciAocHJpdmF0ZSBheGlzOiBBeGlzUmVzb2x2ZXIsIHByaXZhdGUgb3B0aW9uczogUG9zaXRpb25FbGVtZW50cykge1xuICAgIHRoaXMucmVzb2x2ZUNvbnRhaW5lcih0aGlzLm9wdGlvbnMud2luZG93RWxlbWVudCk7XG4gICAgdGhpcy5kZWZpbmVDb250YWluZXIodGhpcy5vcHRpb25zLndpbmRvd0VsZW1lbnQpO1xuICB9XG5cbiAgZGVmaW5lQ29udGFpbmVyKHdpbmRvd0VsZW1lbnQ6IENvbnRhaW5lclJlZikge1xuICAgIGlmICh0aGlzLnJlc29sdmVDb250YWluZXIod2luZG93RWxlbWVudCkgfHwgIXdpbmRvd0VsZW1lbnQubmF0aXZlRWxlbWVudCkge1xuICAgICAgdGhpcy5jb250YWluZXIgPSB3aW5kb3dFbGVtZW50O1xuICAgIH0gZWxzZSB7XG4gICAgICB0aGlzLmNvbnRhaW5lciA9IHdpbmRvd0VsZW1lbnQubmF0aXZlRWxlbWVudDtcbiAgICB9XG4gICAgcmV0dXJuIHRoaXMuY29udGFpbmVyO1xuICB9XG5cbiAgcmVzb2x2ZUNvbnRhaW5lcih3aW5kb3dFbGVtZW50OiBDb250YWluZXJSZWYpOiBib29sZWFuIHtcbiAgICBjb25zdCBpc0NvbnRhaW5lcldpbmRvdyA9IE9iamVjdC5wcm90b3R5cGUudG9TdHJpbmcuY2FsbCh3aW5kb3dFbGVtZW50KS5pbmNsdWRlcygnV2luZG93Jyk7XG4gICAgdGhpcy5pc0NvbnRhaW5lcldpbmRvdyA9IGlzQ29udGFpbmVyV2luZG93O1xuICAgIHJldHVybiBpc0NvbnRhaW5lcldpbmRvdztcbiAgfVxuXG4gIGdldERvY3VtZW50RWxlbWVudCgpIHtcbiAgICByZXR1cm4gdGhpcy5pc0NvbnRhaW5lcldpbmRvd1xuICAgICAgPyB0aGlzLm9wdGlvbnMud2luZG93RWxlbWVudC5kb2N1bWVudC5kb2N1bWVudEVsZW1lbnRcbiAgICAgIDogbnVsbDtcbiAgfVxuXG4gIGNhbGN1bGF0ZVBvaW50cyAoZWxlbWVudDogRWxlbWVudFJlZikge1xuICAgIHJldHVybiB0aGlzLmlzQ29udGFpbmVyV2luZG93XG4gICAgICA/IHRoaXMuY2FsY3VsYXRlUG9pbnRzRm9yV2luZG93KGVsZW1lbnQpXG4gICAgICA6IHRoaXMuY2FsY3VsYXRlUG9pbnRzRm9yRWxlbWVudChlbGVtZW50KTtcbiAgfVxuXG4gIGNhbGN1bGF0ZVBvaW50c0ZvcldpbmRvdyAoZWxlbWVudDogRWxlbWVudFJlZik6IFBvc2l0aW9uU3RhdHMge1xuICAgIC8vIGNvbnRhaW5lcidzIGhlaWdodFxuICAgIGNvbnN0IGhlaWdodCA9IHRoaXMuaGVpZ2h0KHRoaXMuY29udGFpbmVyKTtcbiAgICAvLyBzY3JvbGxlZCB1bnRpbCBub3cgLyBjdXJyZW50IHkgcG9pbnRcbiAgICBjb25zdCBzY3JvbGxlZFVudGlsTm93ID0gaGVpZ2h0ICsgdGhpcy5wYWdlWU9mZnNldCh0aGlzLmdldERvY3VtZW50RWxlbWVudCgpKTtcbiAgICAvLyB0b3RhbCBoZWlnaHQgLyBtb3N0IGJvdHRvbSB5IHBvaW50XG4gICAgY29uc3QgdG90YWxUb1Njcm9sbCA9IHRoaXMub2Zmc2V0VG9wKGVsZW1lbnQubmF0aXZlRWxlbWVudCkgKyB0aGlzLmhlaWdodChlbGVtZW50Lm5hdGl2ZUVsZW1lbnQpO1xuICAgIHJldHVybiB7IGhlaWdodCwgc2Nyb2xsZWRVbnRpbE5vdywgdG90YWxUb1Njcm9sbCB9O1xuICB9XG5cbiAgY2FsY3VsYXRlUG9pbnRzRm9yRWxlbWVudCAoZWxlbWVudDogRWxlbWVudFJlZikge1xuICAgIGxldCBzY3JvbGxUb3AgICAgPSB0aGlzLmF4aXMuc2Nyb2xsVG9wS2V5KCk7XG4gICAgbGV0IHNjcm9sbEhlaWdodCA9IHRoaXMuYXhpcy5zY3JvbGxIZWlnaHRLZXkoKTtcbiAgICBjb25zdCBjb250YWluZXIgPSB0aGlzLmNvbnRhaW5lcjtcblxuICAgIGNvbnN0IGhlaWdodCA9IHRoaXMuaGVpZ2h0KGNvbnRhaW5lcik7XG4gICAgLy8gcGVyaGFwcyB1c2UgdGhpcy5jb250YWluZXIub2Zmc2V0VG9wIGluc3RlYWQgb2YgJ3Njcm9sbFRvcCdcbiAgICBjb25zdCBzY3JvbGxlZFVudGlsTm93ID0gY29udGFpbmVyW3Njcm9sbFRvcF07XG4gICAgbGV0IGNvbnRhaW5lclRvcE9mZnNldCA9IDA7XG4gICAgY29uc3Qgb2Zmc2V0VG9wID0gdGhpcy5vZmZzZXRUb3AoY29udGFpbmVyKTtcbiAgICBpZiAob2Zmc2V0VG9wICE9PSB2b2lkIDApIHtcbiAgICAgIGNvbnRhaW5lclRvcE9mZnNldCA9IG9mZnNldFRvcDtcbiAgICB9XG4gICAgY29uc3QgdG90YWxUb1Njcm9sbCA9IGNvbnRhaW5lcltzY3JvbGxIZWlnaHRdO1xuICAgIHJldHVybiB7IGhlaWdodCwgc2Nyb2xsZWRVbnRpbE5vdywgdG90YWxUb1Njcm9sbCB9O1xuICB9XG5cbiAgcHJpdmF0ZSBoZWlnaHQgKGVsZW06IGFueSkge1xuICAgIGxldCBvZmZzZXRIZWlnaHQgPSB0aGlzLmF4aXMub2Zmc2V0SGVpZ2h0S2V5KCk7XG4gICAgbGV0IGNsaWVudEhlaWdodCA9IHRoaXMuYXhpcy5jbGllbnRIZWlnaHRLZXkoKTtcblxuICAgIC8vIGVsZW0gPSBlbGVtLm5hdGl2ZUVsZW1lbnQ7XG4gICAgaWYgKGlzTmFOKGVsZW1bb2Zmc2V0SGVpZ2h0XSkpIHtcbiAgICAgIHJldHVybiB0aGlzLmdldERvY3VtZW50RWxlbWVudCgpW2NsaWVudEhlaWdodF07XG4gICAgfSBlbHNlIHtcbiAgICAgIHJldHVybiBlbGVtW29mZnNldEhlaWdodF07XG4gICAgfVxuICB9XG5cbiAgcHJpdmF0ZSBvZmZzZXRUb3AgKGVsZW06IGFueSkge1xuICAgIGxldCB0b3AgPSB0aGlzLmF4aXMudG9wS2V5KCk7XG5cbiAgICAvLyBlbGVtID0gZWxlbS5uYXRpdmVFbGVtZW50O1xuICAgIGlmICghZWxlbS5nZXRCb3VuZGluZ0NsaWVudFJlY3QpIHsgLy8gfHwgZWxlbS5jc3MoJ25vbmUnKSkge1xuICAgICAgcmV0dXJuO1xuICAgIH1cbiAgICByZXR1cm4gZWxlbS5nZXRCb3VuZGluZ0NsaWVudFJlY3QoKVt0b3BdICsgdGhpcy5wYWdlWU9mZnNldChlbGVtKTtcbiAgfVxuXG4gIHBhZ2VZT2Zmc2V0IChlbGVtOiBhbnkpIHtcbiAgICBsZXQgcGFnZVlPZmZzZXQgPSB0aGlzLmF4aXMucGFnZVlPZmZzZXRLZXkoKTtcbiAgICBsZXQgc2Nyb2xsVG9wICAgPSB0aGlzLmF4aXMuc2Nyb2xsVG9wS2V5KCk7XG4gICAgbGV0IG9mZnNldFRvcCAgID0gdGhpcy5heGlzLm9mZnNldFRvcEtleSgpO1xuXG4gICAgLy8gZWxlbSA9IGVsZW0ubmF0aXZlRWxlbWVudDtcbiAgICBpZiAoaXNOYU4od2luZG93W3BhZ2VZT2Zmc2V0XSkpIHtcbiAgICAgIHJldHVybiB0aGlzLmdldERvY3VtZW50RWxlbWVudCgpW3Njcm9sbFRvcF07XG4gICAgfSBlbHNlIGlmIChlbGVtLm93bmVyRG9jdW1lbnQpIHtcbiAgICAgIHJldHVybiBlbGVtLm93bmVyRG9jdW1lbnQuZGVmYXVsdFZpZXdbcGFnZVlPZmZzZXRdO1xuICAgIH0gZWxzZSB7XG4gICAgICByZXR1cm4gZWxlbVtvZmZzZXRUb3BdO1xuICAgIH1cbiAgfVxufVxuXG5pbnRlcmZhY2UgRGVjb3JhdG9ySW52b2NhdGlvbiB7XG4gIHR5cGU6IEZ1bmN0aW9uO1xuICBhcmdzPzogYW55W107XG59XG4iXX0=\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/angular2-infinite-scroll/src/position-resolver.js\n// module id = 200\n// module chunks = 0","export const isDate = d => d instanceof Date;\nexport const isEmpty = o => Object.keys(o).length === 0;\nexport const isObject = o => o != null && typeof o === 'object';\nexport const hasOwnProperty = (o, ...args) => Object.prototype.hasOwnProperty.call(o, ...args)\nexport const isEmptyObject = (o) => isObject(o) && isEmpty(o);\nexport const makeObjectWithoutPrototype = () => Object.create(null);\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/deep-object-diff/mjs/utils.js\n// module id = 211\n// module chunks = 0","import { STORAGE } from '../enums/storage';\r\nexport var LIB_KEY = 'ng2-webstorage';\r\nexport var LIB_KEY_SEPARATOR = '|';\r\nexport var STORAGE_NAMES = (_a = {},\r\n    _a[STORAGE.local] = 'local',\r\n    _a[STORAGE.session] = 'session',\r\n    _a\r\n);\r\nvar _a;\r\n//# sourceMappingURL=lib.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ng2-webstorage/dist/constants/lib.js\n// module id = 212\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subject_1 = require('./Subject');\nvar Subscription_1 = require('./Subscription');\n/**\n * @class AsyncSubject<T>\n */\nvar AsyncSubject = (function (_super) {\n    __extends(AsyncSubject, _super);\n    function AsyncSubject() {\n        _super.apply(this, arguments);\n        this.value = null;\n        this.hasNext = false;\n        this.hasCompleted = false;\n    }\n    AsyncSubject.prototype._subscribe = function (subscriber) {\n        if (this.hasCompleted && this.hasNext) {\n            subscriber.next(this.value);\n            subscriber.complete();\n            return Subscription_1.Subscription.EMPTY;\n        }\n        else if (this.hasError) {\n            subscriber.error(this.thrownError);\n            return Subscription_1.Subscription.EMPTY;\n        }\n        return _super.prototype._subscribe.call(this, subscriber);\n    };\n    AsyncSubject.prototype.next = function (value) {\n        if (!this.hasCompleted) {\n            this.value = value;\n            this.hasNext = true;\n        }\n    };\n    AsyncSubject.prototype.complete = function () {\n        this.hasCompleted = true;\n        if (this.hasNext) {\n            _super.prototype.next.call(this, this.value);\n        }\n        _super.prototype.complete.call(this);\n    };\n    return AsyncSubject;\n}(Subject_1.Subject));\nexports.AsyncSubject = AsyncSubject;\n//# sourceMappingURL=AsyncSubject.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/AsyncSubject.js\n// module id = 213\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\n/**\n * An error thrown when an element was queried at a certain index of an\n * Observable, but no such index or position exists in that sequence.\n *\n * @see {@link elementAt}\n * @see {@link take}\n * @see {@link takeLast}\n *\n * @class ArgumentOutOfRangeError\n */\nvar ArgumentOutOfRangeError = (function (_super) {\n    __extends(ArgumentOutOfRangeError, _super);\n    function ArgumentOutOfRangeError() {\n        var err = _super.call(this, 'argument out of range');\n        this.name = err.name = 'ArgumentOutOfRangeError';\n        this.stack = err.stack;\n        this.message = err.message;\n    }\n    return ArgumentOutOfRangeError;\n}(Error));\nexports.ArgumentOutOfRangeError = ArgumentOutOfRangeError;\n//# sourceMappingURL=ArgumentOutOfRangeError.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/util/ArgumentOutOfRangeError.js\n// module id = 218\n// module chunks = 0","\"use strict\";\nfunction isDate(value) {\n    return value instanceof Date && !isNaN(+value);\n}\nexports.isDate = isDate;\n//# sourceMappingURL=isDate.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/util/isDate.js\n// module id = 220\n// module chunks = 0","import { Component, Input, ViewChild } from '@angular/core';\nimport { ModalModule, ModalComponent } from 'ng2-bs4-modal/ng2-bs4-modal';\nimport { FormGroup, FormBuilder, Validators, ValidatorFn, AbstractControl } from '@angular/forms';\n\nimport { CompanyService } from '../services/company';\nimport { HttpService } from '../services/http';\nimport { CustomerInfo } from './customerinfo';\n\n@Component({\n\tselector : 'addressInfo',\n  template: require('./templates/addressinfo.html')\n})\n\nexport class AddressInfo {\n\n\t@ViewChild('infoModal')\n  infoModal: ModalComponent;\n\n\t@ViewChild('loadingModal')\n  loadingModal: ModalComponent;\n\n\t@ViewChild('errorModal')\n  errorModal: ModalComponent;\n\n\tloading : boolean;\n\taddress : any;\n\terrorMessage : string;\n\tresolver : Function;\n\trejector : Function;\n\n  addressForm: FormGroup;\n\tcountries : any;\n\taddressTypes : any;\n\n\tformErrors = {\n\t  'adress1': '',\n\t  'adress2': '',\n\t  'postalCode': '',\n\t  'city': ''\n\t};\n\n\tvalidationMessages = {\n    'adress1': {\n      'minlength':     'Adress måste vara minst 1 tecken långt.',\n      'maxlength':     'Adress får inte vara längre än 64 tecken.',\n    },\n\t\t'adress2': {\n      'minlength':     'Adress måste vara minst 1 tecken långt.',\n      'maxlength':     'Adress får inte vara längre än 64 tecken.',\n    },\n\t\t'postalCode': {\n      'minlength':     'Postnr måste vara minst 1 tecken långt.',\n      'maxlength':     'Adress får inte vara längre än 64 tecken.',\n    },\n\t\t'city': {\n      'minlength':     'Adress måste vara minst 1 tecken långt.',\n      'maxlength':     'Adress får inte vara längre än 64 tecken.',\n    }\n  };\n\n\tconstructor(\n\t\tprivate httpService: HttpService,\n\t\tprivate companyService: CompanyService,\n\t\tprivate fb: FormBuilder\n  ) {\n\t\tthis.loading = true;\n\t\tthis.companyService.getCountries().then((countries) => {\n\t\t\tthis.countries = countries;\n\t\t})\n\t\tthis.companyService.getAddressTypes().then((addressTypes) => {\n\t\t\tthis.addressTypes = addressTypes;\n\t\t})\n\t}\n\n\tcancelSave() {\n\t\tthis.infoModal.close().then(() => {\n\t\t\tthis.rejector('cancelled');\n\t\t});\n\t}\n\n\tdeleteAddress() {\n\t\tthis.loadingModal.open().then(() => {\n\t\t\tthis.companyService.deleteAddress(this.address).then(() => {\n\t\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\t\tthis.infoModal.close().then(() => {\n\t\t\t\t\t\tthis.resolver({ Reason : 'deleted', address : this.address });\t\n\t\t\t\t\t})\t\t\t\t\t\n\t\t\t\t})\n\t\t\t}).catch((e) => {\n\t\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\t\tthis.errorMessage = e.errorMessage || e.message;\n\t\t\t\t\tthis.errorModal.open()\n\t\t\t\t});\n\t\t\t});\n\t\t});\n\t}\n\n\tsaveAddress() {\n\t\tthis.loadingModal.open().then(() => {\n\t\t\tthis.companyService.saveAddres(this.address).then((newAddressInfo) => {\n\t\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\t\tthis.infoModal.close().then(() => {\n\t\t\t\t\t\tif(!this.address.adressId)\n\t\t\t\t\t\t\tthis.resolver({ Reason : 'added', address : newAddressInfo });\t\n\t\t\t\t\t\telse \n\t\t\t\t\t\t\tthis.resolver({ Reason : 'updated', address : newAddressInfo });\t\n\t\t\t\t\t})\t\t\t\t\t\n\t\t\t\t})\n\t\t\t}).catch((e) => {\n\t\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\t\tthis.errorMessage = e.errorMessage || e.message;\n\t\t\t\t\tthis.errorModal.open()\n\t\t\t\t});\n\t\t\t});\n\t\t});\n\t}\n\n\topen(address) : Promise<any> {\n\t\tthis.address = address;\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tthis.addressForm = this.fb.group({\n\t      'adress1': [this.address.adress1, [\n\t          Validators.minLength(1),\n\t          Validators.maxLength(64),\n\t        ]\n\t      ],\n\t\t\t\t'adress2': [this.address.adress2, [\n\t          Validators.minLength(1),\n\t          Validators.maxLength(64),\n\t        ]\n\t      ],\n\t\t\t\t'postalCode': [this.address.postalCode, [\n\t          Validators.minLength(1),\n\t          Validators.maxLength(64),\n\t        ]\n\t      ],\n\t\t\t\t'city': [this.address.city, [\n\t          Validators.minLength(1),\n\t          Validators.maxLength(64),\n\t        ]\n\t      ]\n\t    });\n\t\t\tthis.addressForm.valueChanges.subscribe(data => this.onValueChanged(data));\n\t\t\tthis.resolver = resolve;\n\t\t\tthis.rejector = reject;\n\t\t\tthis.infoModal.open().then(() => {\n\t\t\t\tthis.onValueChanged();\n\t\t\t})\n\t\t});\n\t}\n\n\tonValueChanged(data?: any) {\n    if (!this.addressForm) { return; }\n    const form = this.addressForm;\n    for (const field in this.formErrors) {\n      // clear previous error message (if any)\n      this.formErrors[field] = '';\n      const control = form.get(field);\n\t\t\tif (control && control.status == 'INVALID') {\n        const messages = this.validationMessages[field];\n        for (const key in control.errors) {\n          this.formErrors[field] += messages[key] + '<br />';\n        }\n      } else {\n\t\t\t\tthis.address[field] = control.value;\n\t\t\t}\n    }\n  }\n\n}\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/components/addressinfo.ts","import { Component, Input, Output, EventEmitter, ViewChild } from '@angular/core';\nimport { ActivatedRoute } from '@angular/router';\nimport { CompanyService } from '../services/company';\nimport { SupportIssueService } from '../services/support';\nimport { AccountsService } from '../services/accounts';\nimport { HttpService } from '../services/http';\nimport { ActivityService } from '../services/activity';\nimport { ModalComponent } from 'ng2-bs4-modal/ng2-bs4-modal';\nimport { StorageService } from '../services/storage';\n\n@Component({\n  selector: 'communication-history',\n  template: require('./templates/communicationhistory.html')\n})\n\nexport class CommunicationHistory { \n\t\n\t@ViewChild('savingModal')\n  savingModal: ModalComponent;\n\n\t@ViewChild('newCorrModal')\n  newCorrModal: ModalComponent;\n\n\tprivate _companyId : Number;\n\tprivate history : any[];\n\tprivate _loading : boolean;\n\tprivate _loadingMore : boolean;\n\tprivate _accounts : any[];\n\tprivate filteredHistory : any[];\n\tprivate _showSupport : boolean;\n\tprivate _showActivities : boolean;\n\tprivate _showEvents : boolean;\n\tprivate _accountId : number;\n\tprivate searchKeyword : string;\n\tprivate accountsMap : any;\n\tprivate newCommunicationText : string;\n\tprivate _autoRefresh : boolean;\n\tprivate _returnPath ; string;\n\tprivate selectedAccountId : number;\n\tprivate historyLaterThanDate : Date;\n\n\tconstructor(\n\t\tprivate storageService : StorageService,\n    private companyService: CompanyService,\n    private supportIssueService: SupportIssueService,\n    private accountsService: AccountsService,\n    private activityService: ActivityService,\n    private httpService: HttpService,\n\t\tprivate route: ActivatedRoute\n  ) {\n\t\tconst thisMonth = new Date();\n\t\tthisMonth.setDate(1);\n\t\tthisMonth.setHours(0);\n\t\tthisMonth.setMinutes(0);\n\t\tthis.historyLaterThanDate = thisMonth;\n\t\tthis._showSupport = this._showActivities = this._showEvents = true;\n\t\tthis.accountsMap = {};\n\t\tthis._accounts = [];\n\t\tthis._returnPath = this.route.parent ? (this.route.parent.snapshot.url[0] + ':')  : '';\n\t\tthis.route.snapshot.url.forEach((u, i) => {\n\t\t\tthis._returnPath += (i > 0 ? ':' : '') + u;\n\t\t})\n\t\tthis.selectedAccountId = 0;\n\t}\n\n\t@Input()\n\tset autoRefresh(value) {\n\t\tthis._autoRefresh = value;\n\t\tif(this._companyId > 0 && value) {\n\t\t\tthis.refresh();\n\t\t}\n\t}\n\n\t@Input()\n\tset companyId(id) {\n\t\tthis._companyId = id;\n\t\tif(this._autoRefresh) {\n\t\t\tthis.refresh();\n\t\t}\n\t}\n\n\tget companyId() {\n\t\treturn this._companyId;\n\t}\n\n\t@Input()\n\tset accounts(accounts) {\n\t\taccounts.forEach((a) => {\n\t\t\ta.includeInHistory = true;\n\t\t\tthis.accountsMap[a.accountId] = a;\n\t\t})\n\t\tthis._accounts = accounts;\n\t}\n\n\tget accounts() {\n\t\treturn this._accounts;\n\t}\n\n\t@Input()\n\tget showSupport() {\n\t\treturn this._showSupport;\n\t}\n\n\tset showSupport(val: boolean) {\n\t\tthis._showSupport = val;\n\t}\n\n\t@Input()\n\tget showActivities() {\n\t\treturn this._showActivities;\n\t}\n\n\tset showActivities(val: boolean) {\n\t\tthis._showActivities = val;\n\t}\n\n\t@Input()\n\tget showEvents() {\n\t\treturn this._showEvents;\n\t}\n\n\tset showEvents(val: boolean) {\n\t\tthis._showEvents = val;\n\t}\n\n\t@Input()\n\tget accountId() {\n\t\treturn this._accountId;\n\t}\n\n\tset accountId(val: number) {\n\t\tthis._accountId = val;\n\t\tthis.accounts.forEach((a) => {\n\t\t\ta.includeInHistory = a.accountId == val;\n\t\t})\n\t}\n\n\t@Input()\n\tget loading() : boolean {\n\t\treturn this._loading;\n\t}\n\n\t@Input()\n\tget loadingMore() : boolean {\n\t\treturn this._loadingMore;\n\t}\n\n\t@Input()\n\tget length() : number {\n\t\treturn this.history ? this.history.length : 0;\n\t}\n\n\tpublic refresh() {\n\t\tthis.loadHistory();\n\t}\n\n\taddCommunication() {\n\t\tthis.newCorrModal.open('lg');\n\t}\n\n\tsaveCommunication() {\n\t\tthis.newCorrModal.close().then(() => {\n\t\t\tthis.savingModal.open().then(() => {\n\t\t\t\t\tthis.accountsService.getAccount(this.selectedAccountId)\n\t\t\t\t\t.catch(() => {\n\t\t\t\t\t\treturn({ accountId : 0, companyId : this._companyId })\n\t\t\t\t\t})\n\t\t\t\t\t.then((account) => {\n\t\t\t\t\t\tthis.accountsService.addCommunication(account.companyId, account.accountId, this.httpService.getUser().userId, 9, this.newCommunicationText).then((response) => {\n\t\t\t\t\t\t\tif(response.success) {\n\t\t\t\t\t\t\t\tthis.refresh();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\talert('Fel, kunde inte spara.');\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tthis.savingModal.close();\n\t\t\t\t\t\t})\n\t\t\t\t\t\tconsole.log('account', account)\t\t\n\t\t\t\t\t})\n\t\t\t})\n\t\t});\n\t}\n\n\tdownloadAttachment(bucket, key) {\n\t\tthis.storageService.getSignedUrl(bucket,  key).then((url) => {\n\t\t\tif(url.url) {\n\t\t\t\twindow.open(url.url, '');\n\t\t\t} else {\n\t\t\t\tconsole.log('err', url)\n\t\t\t}\n\t\t})\n\t}\n\n\tloadMoreHistory() {\n\t\tthis._loadingMore = true;\n\t\tthis.historyLaterThanDate.setMonth(this.historyLaterThanDate.getMonth() - 1);\n\t\tthis.loadSomeHistory(this.historyLaterThanDate.toISOString()).then(() => {\n\t\t\tthis.searchHistory()\n\t\t\tthis._loadingMore = false;\n\t\t})\n\t}\n\n\tloadHistory(): void {\n\t\tthis.history = [];\n\t\tthis._loading = true;\n\t\tthis.loadSomeHistory(this.historyLaterThanDate.toISOString()).then(() => {\n\t\t\tthis.searchHistory()\n\t\t\tthis._loading = false;\n\t\t})\n\t}\n\n\tloadSomeHistory(laterThan) {\n\n\t\tconst butNotAfter_ = new Date(laterThan);\n\t\tbutNotAfter_.setMonth(butNotAfter_.getMonth() + 1);\n\t\tconst butNotAfter = butNotAfter_.toISOString();\n\n\t\tlet startDate = parseInt(\"\" + (new Date(laterThan).valueOf() / 1000));\n\t\tlet endDate = parseInt(\"\" + (new Date(butNotAfter).valueOf() / 1000));\n\n\t\tconst filter = { \n\t\t\tcompanyId: this._companyId,\n\t\t\tdateRange: {\n\t\t\t\tstartDate: laterThan,\n\t\t\t\tendDate: butNotAfter\n\t\t\t}\n\t\t}\n\n\t\treturn this.supportIssueService.getAllIssues(filter, 0, 10).then((supportList) => {\n\n\t\t\tsupportList.issues.forEach((i) => {\n\t\t\t\ti.cType = 'Support';\n\t\t\t\tthis.history.push(i);\n\t\t\t\tif(i._source.replies) {\n\t\t\t\t\ti._source.replies.forEach((r) => {\n\t\t\t\t\t\tr.isReply = r;\n\t\t\t\t\t\tr._id = i._id;\n\t\t\t\t\t\tr.inReplyTo = i;\n\t\t\t\t\t\tr.cType = 'Support';\n\t\t\t\t\t\tthis.history.push(r);\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t});\n\n\t\t\treturn this.companyService.getSupportHistory(this._companyId, startDate, endDate).then((history) => {\n\n\t\t\t\thistory.support.forEach((s) => {\n\t\t\t\t\ts.cType = 'Support';\n\t\t\t\t\tthis.history.push(s);\n\t\t\t\t});\n\n\t\t\t\thistory.communications.forEach((c) => {\n\t\t\t\t\tif(c.typeId != 20) {\n\t\t\t\t\t\tthis.history.push(c);\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tvar promises = [];\t\t\t\t\n\n\t\t\t\tthis._accounts.forEach((account) => {\n\t\t\t\t\tpromises.push(new Promise((resolve) => {\n\t\t\t\t\t\tthis.activityService.getActivities({ accountId: account.accountId, startDate, endDate }, 0, 500).then((activityList) => {\n\t\t\t\t\t\t\tactivityList.list.forEach((a) => {\n\t\t\t\t\t\t\t\ta.cType = 'Aktivitet';\n\t\t\t\t\t\t\t\tthis.history.push(a);\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tresolve(null);\n\t\t\t\t\t\t});\n\t\t\t\t\t}));\n\t\t\t\t});\n\n\t\t\t\tthis.history.forEach((h) => {\n\t\t\t\t\tif(h.typeId == 24) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tvar c = JSON.parse(h.note || '{ }');\n\t\t\t\t\t\t\tvar body = c.body;\n\t\t\t\t\t\t\t//delete h.note;\n\t\t\t\t\t\t\th.status = 'out';\n\t\t\t\t\t\t\th.attachments = body.attachments;\n\t\t\t\t\t\t\th.replyTo = h.firstName + ' ' + h.lastName;\n\t\t\t\t\t\t\th.subject = body.subject;\n\t\t\t\t\t\t\th.text = body.text;\n\t\t\t\t\t\t\th.html = body.html;\n\t\t\t\t\t\t} catch(e) {\n\t\t\t\t\t\t\tconsole.error('faield to parse typeId 24', e, h);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t})\n\n\t\t\t\treturn Promise.all(promises).then(() => {\n\t\t\t\t\tthis.history.sort((a : any, b : any) => {\n\t\t\t\t\t\tvar d1 = a.startDate || (a.createdDate || (a._source ? (new Date(a._source.date).getTime() / 1000) : a.date));\n\t\t\t\t\t\tvar d2 = b.startDate || (b.createdDate || (b._source ? (new Date(b._source.date).getTime() / 1000) : b.date));\n\t\t\t\t\t\treturn d2 - d1;\n\t\t\t\t\t});\n\t\t\t\t})\n\n\t\t\t});\n\n\t\t})\n  }\n\n\tsearchHistory() : void {\n\t\tthis.filteredHistory = [];\n\t\tvar phrase = (this.searchKeyword || '').toLowerCase();\n\t\tthis.history.forEach((h) => {\n\t\t\tif(!this._showSupport && (h._source || h.supportId || h.isReply)) return;\n\t\t\tif(!this._showActivities && (h.taskId && !h.communicationId)) return;\n\t\t\tif(!this._showEvents && h.communicationId) return;\n\t\t\tif(h._source) {\n\t\t\t\tif(phrase != '' && \n\t\t\t\t\t(h._source.headers.subject || '').toLowerCase().indexOf(phrase) == -1 &&\n\t\t\t\t\t((h._source.html || h._source.text) || '').toLowerCase().indexOf(phrase) == -1\n\t\t\t\t) return;\n\t\t\t\tthis.filteredHistory.push(h);\n\t\t\t}\n\t\t\tif(h.isReply) {\n\t\t\t\tif(phrase != '' &&\n\t\t\t\t\th.subject.toLowerCase().indexOf(phrase) == -1 &&\n\t\t\t\t\th.content.toLowerCase().indexOf(phrase) == -1 &&\n\t\t\t\t\th.from.email.toLowerCase().indexOf(phrase) == -1\n\t\t\t\t) return;\n\t\t\t\tthis.filteredHistory.push(h);\n\t\t\t}\n\t\t\tif(h.communicationId) {\n\t\t\t\tif(this.accountsMap[h.id] && !this.accountsMap[h.id].includeInHistory) return;\n\t\t\t\tif(phrase != '' && (h.note || '').toLowerCase().indexOf(phrase) == -1) return;\n\t\t\t\tthis.filteredHistory.push(h);\n\t\t\t}\n\t\t\tif(h.supportId) {\n\t\t\t\tif(phrase != '' &&\n\t\t\t\t\t(h.subject || '').toLowerCase().indexOf(phrase) == -1 &&\n\t\t\t\t\t(h.body || '').toLowerCase().indexOf(phrase) == -1\n\t\t\t\t) return;\n\t\t\t\tthis.filteredHistory.push(h);\n\t\t\t}\n\t\t\tif(h.taskId && !h.communicationId) {\n\t\t\t\tif(!this.accountsMap[h.accountId]) return;\n\t\t\t\tif(this.accountsMap[h.accountId] && !this.accountsMap[h.accountId].includeInHistory) return;\n\t\t\t\tif(phrase != '' &&\n\t\t\t\t\t(h.description || '').toLowerCase().indexOf(phrase) == -1\n\t\t\t\t) return;\n\t\t\t\tthis.filteredHistory.push(h);\n\t\t\t}\t\t\t\n\t\t});\n\t\tvar lastDateStr = '';\n\t\tthis.filteredHistory.forEach((h) => {\n\t\t\tvar date = h.startDate || (h.createdDate || (h._source ? h._source.date : h.date));\n\t\t\tvar _date;\n\t\t\tif(typeof(date) == \"number\" || parseInt(date) > 1400000000)\n\t\t    _date = new Date(Number(date) * 1000);\n\t\t\telse\n\t  \t  _date = new Date(date);\n\t\t\tvar dateStr = _date.getFullYear() + '-' + _date.getMonth() + '-' + _date.getDate();\n\t\t\tif(dateStr != lastDateStr) {\n\t\t\t\tlastDateStr = dateStr;\n\t\t\t\th.hasDivider = true;\n\t\t\t\th.dividerDate = date;\n\t\t\t}\n\t\t});\n\t}\n\n}\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/components/communicationhistory.ts","import { Component, OnInit, OnDestroy, Input, ViewChild } from '@angular/core';\nimport {  ModalComponent } from 'ng2-bs4-modal/ng2-bs4-modal';\n\nimport { CompanyService } from '../services/company';\nimport { AccountsService } from '../services/accounts';\nimport { Company }           from '../models/company';\n\n@Component({\n  selector: 'email-utils',\n  template: require('./templates/emailutils.html')\n})\n\nexport class EmailUtils implements OnInit, OnDestroy {\n\t\n\t@ViewChild('errorModal')\n  errorModal: ModalComponent;\n\n\t@ViewChild('aliasModal')\n  aliasModal: ModalComponent;\n\n\t@ViewChild('aliasWarningModal')\n\taliasWarningModal: ModalComponent;\n\t\n\t@ViewChild('forwardModal')\n  forwardModal: ModalComponent;\n\n\t@ViewChild('forwardWarningModal')\n  forwardWarningModal: ModalComponent;\n\n\t@ViewChild('emailModal')\n  emailModal: ModalComponent;\n\n\t@ViewChild('emailLogsModal')\n  emailLogsModal: ModalComponent;\n\n\t@ViewChild('emailWarningModal')\n  emailWarningModal: ModalComponent;\n\n\t@ViewChild('loadingModal')\n  loadingModal: ModalComponent;\n\n\teditedAlias : any;\n\teditedForward : any;\n\teditedEmailAccount: any;\n\tlogsForEmailAddress: any;\n\n\tcompany : Company;\n\n\tonAliasModalClosed : Function;\n\tonForwardModalClosed : Function;\n\tonEmailModalClosed : Function;\n\n\tloadingError : boolean;\n\tcloseErrorDialog : Function;\n\t\n\teximLogEntries: any;\n\tmailLogEntries: any;\n\tlogName: any;\n\teximLogEntriesLoading: Boolean;\n\tmailLogEntriesLoading: Boolean;\n\n\tconstructor(\n    private companyService: CompanyService,\n    private accountsService: AccountsService,\n  ) {\n\t\tthis.logName = 'exim';\n  }\n\n\tngOnInit() {\n\t\tthis.eximLogEntries = [];\n\t\tthis.mailLogEntries = [];\n\t}  \n\n\tngOnDestroy() {\n\t}\n\n\t@Input()\n\tset companyId(companyId : number) {\n\t\tthis.companyService.getById(companyId).then((company) => {\n\t\t\tconsole.log(company);\n\t\t\tthis.company = company;\n\t\t});\n\t}\n\n\tgeneratePassword() {\n\t\tthis.editedEmailAccount.password = Math.random().toString(36).slice(-10);;\n\t}\n\n\tshowError(message) : Promise<any> {\n\t\treturn new Promise((resolve) => {\n\t\t\tthis.loadingError = message;\n\t\t\tthis.errorModal.open().then(() => {\n\t\t\t\tthis.closeErrorDialog = () => {\n\t\t\t\t\tthis.errorModal.close().then(() => {\n\t\t\t\t\t\tresolve('error-closed');\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t})\n\t\t});\n\t}\n\n\taddEmailAlias() : Promise<any> {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tthis.editedAlias = { isNew : true, ftg_id : this.company.domain[0].ftg_id, newEmailDomain : this.company.domain[0].domain, accountId : this.company.domain[0].ftg_id, domainId : this.company.domain[0].domainId };\n\t\t\tthis.aliasModal.open().then(() => {\n\t\t\t\tthis.onAliasModalClosed = (reason) => {\n\t\t\t\t\tthis.aliasModal.close().then(() => {\n\t\t\t\t\t\tif(reason == 'cancel-all') {\n\t\t\t\t\t\t\tthis.aliasModal.close().then(() => {\n\t\t\t\t\t\t\t\tresolve({ action : 'cancelled' });\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t} else if(reason == 'save') {\n\t\t\t\t\t\t\tthis.loadingModal.open().then(() => {\n\t\t\t\t\t\t\t\tthis.accountsService.createEmailAlias(this.editedAlias, this.company.companyId).then((response) => {\n\t\t\t\t\t\t\t\t\tthis.editedAlias.email = this.editedAlias.newEmail + '@' + this.editedAlias.newEmailDomain;\n\t\t\t\t\t\t\t\t\tthis.editedAlias.isNew = false;\n\t\t\t\t\t\t\t\t\tthis.editedAlias.id = response.data[0].id;\n\t\t\t\t\t\t\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\t\t\t\t\t\t\tresolve({ action : 'added', alias : JSON.parse(JSON.stringify(this.editedAlias)) });\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t}).catch((e) => {\n\t\t\t\t\t\t\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\t\t\t\t\t\t\treject(e);\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t});\t\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t});\n\t\t})\n\t}\n\n\taddEmailForward() : Promise<any> {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tthis.editedForward = { isNew : true, ftg_id : this.company.domain[0].ftg_id, newEmailDomain : this.company.domain[0].domain, accountId : this.company.domain[0].ftg_id, domainId : this.company.domain[0].domainId };\n\t\t\tthis.forwardModal.open().then(() => {\n\t\t\t\tthis.onForwardModalClosed = (reason) => {\n\t\t\t\t\tthis.forwardModal.close().then(() => {\n\t\t\t\t\t\tif(reason == 'cancel-all') {\n\t\t\t\t\t\t\tthis.forwardModal.close().then(() => {\n\t\t\t\t\t\t\t\tresolve({ action : 'cancelled' });\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t} else if(reason == 'save') {\n\t\t\t\t\t\t\tthis.loadingModal.open().then(() => {\n\t\t\t\t\t\t\t\tthis.accountsService.createEmailForward(this.editedForward, this.company.companyId).then((response) => {\n\t\t\t\t\t\t\t\t\tthis.editedForward.email = this.editedForward.newEmail + '@' + this.editedForward.newEmailDomain;\n\t\t\t\t\t\t\t\t\tthis.editedForward.isNew = false;\n\t\t\t\t\t\t\t\t\tthis.editedForward.id = response.data[0].id;\n\t\t\t\t\t\t\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\t\t\t\t\t\t\tresolve({ action : 'added', forward : JSON.parse(JSON.stringify(this.editedForward)) });\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t}).catch((e) => {\n\t\t\t\t\t\t\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\t\t\t\t\t\t\treject(e);\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t});\t\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t});\n\t\t})\n\t}\n\n\teditAlias(alias) : Promise<any> {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tthis.editedAlias = alias;\n\t\t\talias.newEmail = alias.email;\n\t\t\talias.newEmail = alias.email.substr(0, alias.email.indexOf('@'));\n\t\t\talias.newEmailDomain = alias.email.substr(alias.email.indexOf('@') + 1);\n\t\t\tthis.aliasModal.open().then(() => {\n\t\t\t\tthis.onAliasModalClosed = (reason) => {\n\t\t\t\t\tthis.aliasModal.close().then(() => {\n\t\t\t\t\t\tif(reason == 'cancel-all') {\n\t\t\t\t\t\t\tresolve({ action : 'cancelled' });\n\t\t\t\t\t\t} else if(reason == 'confirm-delete') {\n\t\t\t\t\t\t\tthis.aliasWarningModal.open();\n\t\t\t\t\t\t} else if(reason == 'cancel') {\n\t\t\t\t\t\t\tthis.aliasWarningModal.close().then(() => {\n\t\t\t\t\t\t\t\tresolve({ action : 'cancel-delete' });\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t} else if(reason == 'delete') {\n\t\t\t\t\t\t\tthis.aliasWarningModal.close().then(() => {\n\t\t\t\t\t\t\t\tthis.loadingModal.open().then(() => {\n\t\t\t\t\t\t\t\t\tthis.accountsService.deleteEmailAlias(alias, this.company.companyId).then((response) => {\n\t\t\t\t\t\t\t\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\t\t\t\t\t\t\t\tresolve({ action : 'deleted' });\n\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t} else if(reason == 'save') {\n\t\t\t\t\t\t\tthis.loadingModal.open().then(() => {\n\t\t\t\t\t\t\t\tthis.accountsService.updateEmailAlias(alias, this.company.companyId).then((response) => {\n\t\t\t\t\t\t\t\t\tthis.editedAlias.email = this.editedAlias.newEmail + '@' + this.editedAlias.newEmailDomain;\n\t\t\t\t\t\t\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\t\t\t\t\t\t\tresolve({ action : 'saved' });\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t}).catch((e) => {\n\t\t\t\t\t\t\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\t\t\t\t\t\t\treject(e);\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t});\n\t\t\t})\n\t}\n\n\teditForward(forward) : Promise<any> {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tthis.editedForward = forward;\n\t\t\tforward.newEmail = forward.email;\n\t\t\tforward.newEmail = forward.email.substr(0, forward.email.indexOf('@'));\n\t\t\tforward.newEmailDomain = forward.email.substr(forward.email.indexOf('@') + 1);\n\t\t\tthis.forwardModal.open().then(() => {\n\t\t\t\tthis.onForwardModalClosed = (reason) => {\n\t\t\t\t\tthis.forwardModal.close().then(() => {\n\t\t\t\t\t\tif(reason == 'cancel-all') {\n\t\t\t\t\t\t\tresolve({ action : 'cancelled' });\n\t\t\t\t\t\t} else if(reason == 'confirm-delete') {\n\t\t\t\t\t\t\tthis.forwardWarningModal.open();\n\t\t\t\t\t\t} else if(reason == 'cancel') {\n\t\t\t\t\t\t\tthis.forwardWarningModal.close().then(() => {\n\t\t\t\t\t\t\t\tresolve({ action : 'cancel-delete' });\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t} else if(reason == 'delete') {\n\t\t\t\t\t\t\tthis.forwardWarningModal.close().then(() => {\n\t\t\t\t\t\t\t\tthis.loadingModal.open().then(() => {\n\t\t\t\t\t\t\t\t\tthis.accountsService.deleteEmailForward(forward, this.company.companyId).then((response) => {\n\t\t\t\t\t\t\t\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\t\t\t\t\t\t\t\tresolve({ action : 'deleted' });\n\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t} else if(reason == 'save') {\n\t\t\t\t\t\t\tthis.loadingModal.open().then(() => {\n\t\t\t\t\t\t\t\tthis.accountsService.updateEmailForward(forward, this.company.companyId).then((response) => {\n\t\t\t\t\t\t\t\t\tthis.editedForward.email = this.editedForward.newEmail + '@' + this.editedForward.newEmailDomain;\n\t\t\t\t\t\t\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\t\t\t\t\t\t\tresolve({ action : 'saved' });\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t}).catch((e) => {\n\t\t\t\t\t\t\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\t\t\t\t\t\t\treject(e);\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t});\n\t\t\t})\n\t}\n\n\taddEmailAccount() : Promise<any> {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tthis.editedEmailAccount = { ftg_id : this.company.domain[0].ftg_id, isNew : true, quota : 500 * 1024 * 1024, newEmailDomain : this.company.domain[0].domain, accountId : this.company.domain[0].ftg_id, domainId : this.company.domain[0].domainId };\n\t\t\tthis.emailModal.open().then(() => {\n\t\t\t\tthis.onEmailModalClosed = (reason) => {\n\t\t\t\t\tthis.emailModal.close().then(() => {\n\t\t\t\t\t\tif(reason == 'cancel-all') {\n\t\t\t\t\t\t\tthis.emailModal.close().then(() => {\n\t\t\t\t\t\t\t\tresolve({ action : 'cancelled'})\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t} else if(reason == 'save') {\n\t\t\t\t\t\t\tthis.loadingModal.open().then(() => {\n\t\t\t\t\t\t\t\tthis.accountsService.createEmailAccount(this.editedEmailAccount, this.company.companyId).then((response) => {\n\t\t\t\t\t\t\t\t\tthis.editedEmailAccount.email = this.editedEmailAccount.newEmail + '@' + this.editedEmailAccount.newEmailDomain;\n\t\t\t\t\t\t\t\t\tthis.editedEmailAccount.quota_used = 0;\n\t\t\t\t\t\t\t\t\tthis.editedEmailAccount.isNew = false;\n\t\t\t\t\t\t\t\t\tthis.editedEmailAccount.mailId = response.data[0].id;\n\t\t\t\t\t\t\t\t\tthis.accountsService.updateEmailAccount(this.editedEmailAccount, this.company.companyId).then((response) => {\n\t\t\t\t\t\t\t\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\t\t\t\t\t\t\t\tresolve({ action : 'added', account : JSON.parse(JSON.stringify(this.editedEmailAccount)) });\n\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t}).catch((e) => {\n\t\t\t\t\t\t\t\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\t\t\t\t\t\t\t\tthis.showError(e.errorMessage || e.message).then(() => {\n\t\t\t\t\t\t\t\t\t\t\t\tthis.emailModal.open();\n\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t}).catch((e) => {\n\t\t\t\t\t\t\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\t\t\t\t\t\t\treject(e)\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t});\n\t\t})\n\t}\n\n\tloadEximLogs(emailAccount, nextToken): Promise<any> {\n\t\treturn this.accountsService.getEximLogs(emailAccount, nextToken).then((data) => {\n\t\t\tthis.eximLogEntries = this.eximLogEntries.concat(data.events);\n\t\t\tthis.eximLogEntries.sort(function(a, b) {\n\t\t\t\treturn(b.timestamp - a.timestamp);\n\t\t\t});\n\t\t\tif(data.nextToken) {\t\t\t\t\n\t\t\t\treturn this.loadEximLogs(emailAccount, data.nextToken);\n\t\t\t}\n\t\t})\n\t}\n\n\tloadMailLogs(emailAccount, nextToken): Promise<any> {\n\t\treturn this.accountsService.getMailLogs(emailAccount, nextToken).then((data) => {\n\t\t\tthis.mailLogEntries = this.mailLogEntries.concat(data.events);\n\t\t\tthis.mailLogEntries.sort(function(a, b) {\n\t\t\t\treturn(b.timestamp - a.timestamp);\n\t\t\t});\n\t\t\tif(data.nextToken) {\t\t\t\t\n\t\t\t\treturn this.loadMailLogs(emailAccount, data.nextToken);\n\t\t\t}\n\t\t})\n\t}\n\n\tviewEmailLogs(emailAccount) : Promise<any> {\n\t\treturn new Promise((resolve, reject) => {\t\n\t\t\tthis.logsForEmailAddress = emailAccount;\n\t\t\tthis.emailLogsModal.open('lg').then(() => {\n\t\t\t\tthis.eximLogEntriesLoading = true;\n\t\t\t\tthis.mailLogEntriesLoading = true;\t\t\n\t\t\t\tthis.eximLogEntries = [];\n\t\t\t\tthis.mailLogEntries = [];\t\t\n\t\t\t\tthis.loadEximLogs(emailAccount, undefined).then(() => {\n\t\t\t\t\tthis.eximLogEntriesLoading = false;\t\t\t\t\n\t\t\t\t})\n\t\t\t\tthis.loadMailLogs(emailAccount, undefined).then(() => {\n\t\t\t\t\tthis.mailLogEntriesLoading = false;\n\t\t\t\t})\n\t\t\t});\n\t\t});\n\t}\n\n\teditEmail(account) : Promise<any> {\n\t\tconsole.log('account', account)\n\t\treturn new Promise((resolve, reject) => {\t\n\t\t\tthis.editedEmailAccount = account;\n\t\t\taccount.password = '';\n\t\t\taccount.newEmail = account.email.substr(0, account.email.indexOf('@'));\n\t\t\taccount.newEmailDomain = account.email.substr(account.email.indexOf('@') + 1);\n\t\t\tthis.emailModal.open().then(() => {\n\t\t\t\tthis.onEmailModalClosed = (reason) => {\n\t\t\t\t\tthis.emailModal.close().then(() => {\n\t\t\t\t\t\tif(reason == 'cancel-all') {\n\t\t\t\t\t\t\tresolve({ action : 'cancelled' });\n\t\t\t\t\t\t} else if(reason == 'confirm-delete') {\n\t\t\t\t\t\t\tthis.emailWarningModal.open();\n\t\t\t\t\t\t} else if(reason == 'cancel') {\n\t\t\t\t\t\t\tthis.emailWarningModal.close().then(() => {\n\t\t\t\t\t\t\t\tresolve({ action : 'cancel-delete' });\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t} else if(reason == 'delete') {\n\t\t\t\t\t\t\tthis.emailWarningModal.close().then(() => {\n\t\t\t\t\t\t\t\tthis.loadingError = null;\n\t\t\t\t\t\t\t\tthis.loadingModal.open().then(() => {\n\t\t\t\t\t\t\t\t\tthis.accountsService.deleteEmailAccount(account, this.company.companyId).then((response) => {\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\t\t\t\t\t\t\t\tresolve({action : 'deleted'})\n\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t}).catch((e) => {\n\t\t\t\t\t\t\t\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\t\t\t\t\t\t\t\treject(e);\n\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t} else if(reason == 'save') {\n\t\t\t\t\t\t\tthis.loadingModal.open().then(() => {\n\t\t\t\t\t\t\t\tthis.accountsService.updateEmailAccount(account, this.company.companyId).then((response) => {\n\t\t\t\t\t\t\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\t\t\t\t\t\t\tresolve({ action : 'saved' });\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t}).catch((e) => {\n\t\t\t\t\t\t\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\t\t\t\t\t\t\treject(e);\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t});\t\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\t}\n\n\tcloseAliasModal(reason) {\n\t\tif(this.onAliasModalClosed)\n\t\t\tthis.onAliasModalClosed(reason);\n\t}\n\n\tcloseForwardModal(reason) {\n\t\tif(this.onForwardModalClosed)\n\t\t\tthis.onForwardModalClosed(reason);\n\t}\n\n\tcloseEmailModal(reason) {\n\t\tif(this.onEmailModalClosed)\n\t\t\tthis.onEmailModalClosed(reason);\n\t}\n\n}\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/components/emailutils.ts","import { Component, OnInit, ViewChild, ElementRef, ChangeDetectorRef, OnDestroy, EventEmitter } from '@angular/core';\nimport { HttpService } from '../services/http';\nimport { EventsService } from '../services/event';\nimport { Router, ActivatedRoute, Params }            from '@angular/router';\nimport { FileUploader, FileDropDirective } from 'ng2-file-upload/ng2-file-upload';\nimport { ModalModule, ModalComponent } from 'ng2-bs4-modal/ng2-bs4-modal';\nimport { StorageService } from '../services/storage';\nimport { StorageList } from './storagelist';\n\nfunction _window() : any {\n   // return the global native browser window object\n   return window;\n}\n\n@Component({\n\tselector : 'file-upload',\n  template: require('./templates/fileupload.html')\n})\n\nexport class FileUpload  {\n\t\n\t@ViewChild('uploadModal')\n  uploadModal: ModalComponent;\n\n\thasUploadErrors : boolean;\n\tuploader : FileUploader;\n  hasBaseDropZoneOver:boolean = false;\n\tmultiple : boolean;\n\n\tconstructor(\n\t\tprivate storageService : StorageService\n\t) {\n\t}\n\n\topen(bucket : string, prefix : string, acl : string) : Promise<boolean> {\n\t\tthis.multiple = true;\n\t\tthis.hasUploadErrors = false;\n\t\treturn new Promise((resolver) => {\n\t\t\tthis.uploadModal.open().then(() => {\n\t\t\t\tthis.uploader = new FileUploader({disableMultipart : true, method : 'PUT' });\n\t\t\t\tthis.uploader.onAfterAddingFile = (file) => {\n\t\t\t\t\tvar key = prefix + file.file.name;\n\t\t\t\t\tthis.storageService.getSignedUrlForUpload(bucket, key, file.file.type, acl).then((signedUrl) => {\n\t\t\t\t\t\tfile.url = signedUrl.url;\n\t\t\t\t\t\tfile.method = 'PUT';\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\tthis.uploader.onBeforeUploadItem = (itm) => {\n\t\t\t\t\tthis.uploader.options.headers = [{ name : 'Content-Type' , value : itm._file.type }]\n\t\t\t\t}\n\t\t\t\tthis.uploader.onErrorItem = (itm) => {\n\t\t\t\t\tthis.hasUploadErrors = true;\n\t\t\t\t}\n\t\t\t\tthis.uploader.onCompleteAll = () => {\n\t\t\t\t\tresolver(!this.hasUploadErrors);\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\t}\n\n\tuploadOne(bucket : string, key : string, acl : string) : Promise<boolean> {\n\t\tthis.multiple = false;\n\t\tthis.hasUploadErrors = false;\n\t\treturn new Promise((resolver) => {\n\t\t\tthis.uploadModal.open().then(() => {\n\t\t\t\tthis.uploader = new FileUploader({disableMultipart : true });\n\t\t\t\tthis.uploader.onAfterAddingFile = (file) => {\n\t\t\t\t\tthis.storageService.getSignedUrlForUpload(bucket, key, file.file.type, acl).then((signedUrl) => {\n\t\t\t\t\t\tfile.url = signedUrl.url;\n\t\t\t\t\t\tfile.method = 'PUT';\n\t\t\t\t\t\tthis.uploader.uploadAll();\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\tthis.uploader.onBeforeUploadItem = (itm) => {\n\t\t\t\t\tthis.uploader.options.headers = [{ name : 'Content-Type' , value : itm._file.type }]\n\t\t\t\t}\n\t\t\t\tthis.uploader.onErrorItem = (itm) => {\n\t\t\t\t\tthis.hasUploadErrors = true;\n\t\t\t\t}\n\t\t\t\tthis.uploader.onCompleteAll = () => {\n\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\tresolver(!this.hasUploadErrors);\n\t\t\t\t\t}, 1000)\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\t}\n\n\tclose() : Promise<void> {\n\t\treturn this.uploadModal.close();\n\t}\n\n\tpublic fileOverBase(e:any):void {\n    this.hasBaseDropZoneOver = e;\n  }\n\n}\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/components/fileupload.ts","import { Component, Input, ViewChild } from '@angular/core';\nimport { ModalModule, ModalComponent } from 'ng2-bs4-modal/ng2-bs4-modal';\nimport { FormGroup, FormBuilder, Validators, ValidatorFn, AbstractControl } from '@angular/forms';\n\nimport { CompanyService } from '../services/company';\nimport { HttpService } from '../services/http';\nimport { CustomerInfo } from './customerinfo';\n\nexport function validRegexpValidator(nameRe: RegExp): ValidatorFn {\n  return (control: AbstractControl): {[key: string]: any} => {\n    const nr = control.value;\n    const matches = nameRe.test(nr);\n    return !matches ? {'forbiddenValue': {name}} : null;\n  };\n}\n\n@Component({\n\tselector : 'phoneinfo',\n  template: require('./templates/phoneinfo.html')\n})\n\nexport class PhoneInfo {\n\n\t@ViewChild('infoModal')\n  infoModal: ModalComponent;\n\n\t@ViewChild('loadingModal')\n  loadingModal: ModalComponent;\n\n\t@ViewChild('errorModal')\n  errorModal: ModalComponent;\n\n\tloading : boolean;\n\tphone : any;\n\terrorMessage : string;\n\tresolver : Function;\n\trejector : Function;\n\ttelnrtypes : any;\n  telnrForm: FormGroup;\n\tformErrors = {\n\t  'telnr': '',\n\t  'areaCode': '',\n\t\t'note' : ''\n\t};\n\n\tvalidationMessages = {\n    'telnr': {\n      'required':      'Telnr får inte vara tomt.',\n      'minlength':     'Telnr måste vara minst 1 tecken långt.',\n      'maxlength':     'Telnr får inte vara längre än 16 tecken.',\n\t\t\t'forbiddenValue': 'Telnr får bara innehålla siffror.'\n    },\n\t\t'areaCode': {\n      'required':      'Riktnr får inte vara tomt.',\n      'minlength':     'Riktnr måste vara minst 1 tecken långt.',\n      'maxlength':     'Riktnr får inte vara längre än 16 tecken.',\n\t\t\t'forbiddenValue': 'Riktnr får bara innehålla siffror.'\n    },\n\t\t'note': {\n      'maxlength':     'Notis får inte vara längre än 128 tecken.',\n    },\n  };\n\n\tconstructor(\n\t\tprivate httpService: HttpService,\n\t\tprivate companyService: CompanyService,\n\t\tprivate fb: FormBuilder\n  ) {\n\t\tthis.loading = true;\n\t\tthis.companyService.getTelnrTypes().then((telnrtypes) => {\n\t\t\tthis.telnrtypes = telnrtypes;\n\t\t})\n\t}\n\n\tcancelSave() {\n\t\tthis.infoModal.close().then(() => {\n\t\t\tthis.rejector('cancelled');\n\t\t});\n\t}\n\n\tdeletePhone() {\n\t\tthis.loadingModal.open().then(() => {\n\t\t\tthis.companyService.deletePhone(this.phone).then(() => {\n\t\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\t\tthis.infoModal.close().then(() => {\n\t\t\t\t\t\tthis.resolver({ Reason : 'deleted', phone : this.phone });\t\n\t\t\t\t\t})\t\t\t\t\t\n\t\t\t\t})\n\t\t\t}).catch((e) => {\n\t\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\t\tthis.errorMessage = e.errorMessage || e.message;\n\t\t\t\t\tthis.errorModal.open()\n\t\t\t\t});\n\t\t\t});\n\t\t});\n\t}\n\n\tsavePhone() {\n\t\tthis.loadingModal.open().then(() => {\n\t\t\tthis.companyService.savePhone(this.phone).then((newPhoneInfo) => {\n\t\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\t\tthis.infoModal.close().then(() => {\n\t\t\t\t\t\tif(!this.phone.telnrId)\n\t\t\t\t\t\t\tthis.resolver({ Reason : 'added', phone : newPhoneInfo });\t\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tthis.resolver({ Reason : 'updated', phone : newPhoneInfo });\t\n\t\t\t\t\t})\t\t\t\t\t\n\t\t\t\t})\n\t\t\t}).catch((e) => {\n\t\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\t\tthis.errorMessage = e.errorMessage || e.message;\n\t\t\t\t\tthis.errorModal.open()\n\t\t\t\t});\n\t\t\t});\n\t\t});\n\t}\n\n\topen(phone) : Promise<any> {\n\t\tthis.phone = phone;\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tthis.telnrForm = this.fb.group({\n\t      'telnr': [this.phone.telnr, [\n\t          Validators.required,\n\t          Validators.minLength(1),\n\t          Validators.maxLength(16),\n\t\t\t\t\t\tvalidRegexpValidator(/^([0-9]*)$/i)\n\t        ]\n\t      ],\n\t\t\t\t'areaCode': [this.phone.telnr, [\n\t          Validators.required,\n\t          Validators.minLength(1),\n\t          Validators.maxLength(16),\n\t\t\t\t\t\tvalidRegexpValidator(/^([0-9]*)$/i)\n\t        ]\n\t      ],\n\t\t\t\t'note': [this.phone.note, [\n\t          Validators.maxLength(128),\n\t        ]\n\t      ]\n\t    });\n\t\t\tthis.telnrForm.valueChanges.subscribe(data => this.onValueChanged(data));\n\t\t\tthis.resolver = resolve;\n\t\t\tthis.rejector = reject;\n\t\t\tthis.infoModal.open().then(() => {\n\t\t\t\tthis.onValueChanged();\n\t\t\t})\n\t\t});\n\t}\n\n\tonValueChanged(data?: any) {\n    if (!this.telnrForm) { return; }\n    const form = this.telnrForm;\n    for (const field in this.formErrors) {\n      // clear previous error message (if any)\n      this.formErrors[field] = '';\n      const control = form.get(field);\n\t\t\tif (control && control.status == 'INVALID') {\n        const messages = this.validationMessages[field];\n        for (const key in control.errors) {\n          this.formErrors[field] += messages[key] + '<br />';\n        }\n      } else {\n\t\t\t\tthis.phone[field] = control.value;\n\t\t\t}\n    }\n  }\n\n}\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/components/phoneinfo.ts","import { Component, OnInit, EventEmitter, ViewChild, OnDestroy } from '@angular/core';\nimport { Router, ActivatedRoute, NavigationEnd }            from '@angular/router';\nimport { }        from 'rxjs/Observable';\nimport { DomSanitizer } from '@angular/platform-browser';\nimport {  ModalComponent } from 'ng2-bs4-modal/ng2-bs4-modal';\n\nimport { SupportIssueService } from '../services/support';\nimport { ActivityService } from '../services/activity';\nimport { ErrorsService } from '../services/errors';\nimport { HttpService } from '../services/http';\nimport { StorageService } from '../services/storage';\nimport { LocalStorageService } from 'ng2-webstorage';\nimport { EventsService } from '../services/event';\nimport { HtmlSource } from './htmlsource';\n\nimport { CreateActivityModal }           from './createactivitymodal';\n\nimport { DatePicker }           from './datepicker';\n\nimport { Activity }           from '../models/activity';\nimport { SupportIssue }           from '../models/supportissue';\n\nfunction _window() : any {\n   // return the global native browser window object\n   return window;\n}\n\n@Component({\n\tselector : 'support-details',\n  template: require('./templates/supportdetails.html')\n})\n\nexport class SupportDetails implements OnInit, OnDestroy {\n\t\n\t@ViewChild('errorModal')\n  errorModal: ModalComponent;\n\n\t@ViewChild('sourceDialog')\n  sourceDialog: ModalComponent;\n\n\t@ViewChild('sourceDialogSourceComponent')\n\tsourceDialogSourceComponent : HtmlSource;\n\n\t@ViewChild('createActivityModal')\n  createActivityModal: CreateActivityModal;\n\t\n\t@ViewChild('waitDialog')\n  waitDialog: ModalComponent;\n\t\t\n\t@ViewChild('draftModal')\n  draftModal: ModalComponent;\n\n\t@ViewChild('addFileModal')\n  addFileModal: ModalComponent;\n\n\t@ViewChild('createReplyModal')\n  createReplyModal: ModalComponent;\n\t\n\t@ViewChild('sendingMailModal')\n  sendingMailModal: ModalComponent;\n\n\t@ViewChild('sendingMailErrorModal')\n  sendingMailErrorModal: ModalComponent;\n\n\t@ViewChild('replySentModal')\n  replySentModal: ModalComponent;\n\n\t@ViewChild('noCompanyModal')\n  noCompanyModal: ModalComponent;\n\n\t@ViewChild('copyFilesModal')\n  copyFilesModal: ModalComponent;\n\n\t@ViewChild('noteModal')\n  noteModal: ModalComponent;\n\n\t@ViewChild('newActivityStartDate')\n  newActivityStartDate: DatePicker;\n\n\t@ViewChild('newActivityEndDate')\n  newActivityEndDate: DatePicker;\n\n\thistoryLoading : boolean;\n\tactivitiesLoading : boolean;\n\n\thistory : SupportIssue[];\n\tsupportIssue : SupportIssue;\n\t_issue : SupportIssue;\n\teditorOpen : boolean;\n\tactiveEditor : any;\n\tsendmailError : string;\n\treplySubject : string;\n\treplyToEmail : string;\n\treplyToEmailCopy : string;\n\treplyAttachments : any[];\n\terrorMessage : string;\n\tfileName : string;\n\n  loaded: boolean;\n  path : string;\n\tcurrentStart : number;\n\tnumIssuesPerLoad : number;\n  hasMore : boolean;\n  show : string;\n\tshowSource : string;\n\thasSelectedAttachments : boolean;\n\tloadError ; boolean;\n\t\n\ttoday : number;\n\n\tactivities : Activity[];\n\n\thasInvalidFiles : boolean;\n\thasRenamedFiles : boolean;\n\tcopyFilesToPrefix : string;\n\tcopyFilesToFolder : string;\n\tcopyFilesIgnoreExisting : boolean;\n\tisCopyingFiles : boolean;\n\tcopyToBucket : string;\n\n\tavailableUsers : Array<any>;\n\tuser : { userId : number, scope : string, email : string, firstName : string, lastName : string };\n\tactivityTypes : any[];\n\n\tnumFilesToCopy : number;\n\n\tstandardReplies : any[];\n\tstandardReply : any;\n\teditReplies : boolean;\n\n\treplyHasChanges : boolean;\n\toriginalReplyContent : string;\n\toriginalReplySubject : string;\n\trefPath : string;\n\tnoteBody : string;\n  private _htmlProperty: string;\n\n\thistoryLength : number;\n\n\tonEditorClosed = new EventEmitter();\n\tonReplySent = new EventEmitter();\n\tnoNoteDialogClosed = new EventEmitter();\n\tnavigationSubscriber : any;\n\tlistType : string;\n\t\n  constructor(\n    private supportIssueService: SupportIssueService,\n    private activityService: ActivityService,\n    private httpService: HttpService,\n    private router: Router,\n\t\tprivate route: ActivatedRoute,\n\t\tprivate sanitizer: DomSanitizer,\n\t\tprivate localStorageService : LocalStorageService,\n\t\tprivate errorsService : ErrorsService,\n\t\tprivate storageService : StorageService,\n\t\tprivate eventsService: EventsService,\n  ) {\n\n\t\tthis.standardReplies = [];\n\t  this.today = Number(new Date().getTime() / 1000);\n\t  this.user = this.httpService.getUser();\n\t  this.availableUsers = [];\n\t\tthis.standardReply = { Name : 'Nytt standardsvar', Text : '' }\n\n\t  this.httpService.getAllUsers().then((users) => {\n  \t  users.forEach((u) => {\n\t  \t  if(u.userId == 26) return;\n\t  \t  this.availableUsers.push(u);\n  \t  })\n\t  });\n\n\t\tthis.replyAttachments = [];\n\n\t\tthis.activityTypes = this.activityService.types;\n\n\t\tthis.standardReplies = [];\n\n\t\tthis.supportIssueService.getStandardReplies().then((replies) => {\n\t\t\treplies.forEach((r) => {\n\t\t\t\tthis.standardReplies.push(r._source);\n\t\t\t})\n\t\t}).catch((e) => {\n\t\t\tthis.errorsService.broadcast('error', e.errorMessage || e.message);\n\t\t});\n\n\t\tthis.listType = this.route.parent.snapshot.params['type'];\n\n\t}\n\n\tngOnInit() {\n\t\tthis.navigationSubscriber = this.router.events.subscribe((event) => { this.navigationEnd(event); });\n\t}\n\n\tngOnDestroy() {\n\t\t_window().destroyEditors((r) => {\n\t\t\tconsole.log(r);\n\t\t});\n\t\tthis.navigationSubscriber.unsubscribe();\n\t}\n  \n\tnavigationEnd(event) {\n\t\tif(event instanceof NavigationEnd) {\n\t\t\tvar id = this.route.snapshot.params['id'];\n\t\t\tthis.refPath = '';\n\t\t\tthis.route.snapshot.parent.url.forEach((u) => {\n\t\t\t\tthis.refPath = this.refPath + (this.refPath != '' ? ':' : '') + u;\t\n\t\t\t});\n\t\t\tif(id) {\n\t\t\t\tthis.eventsService.broadcast('supportdetails-loading', { id : id });\n\t\t\t\tthis.loaded = false;\n\t\t\t\tthis.supportIssueService.getIssueById(id).then((issue) => {\n\t\t\t\t\tif(issue.url) {\n\t\t\t\t\t\tthis.httpService.getURL(issue.url).then((data) => {\n\t\t\t\t\t\t\tthis._issue = data.json();\n\t\t\t\t\t\t\tthis.load().then(() => {\n\t\t\t\t\t\t\t\tthis.eventsService.broadcast('supportdetails-loaded', { issue : this._issue });\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t})\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis._issue = issue;\n\t\t\t\t\t\tthis.load().then(() => {\n\t\t\t\t\t\t\tthis.eventsService.broadcast('supportdetails-loaded', { issue : this._issue });\n\t\t\t\t\t\t})\n\t\t\t\t\t}\n\t\t\t\t}).catch((e) => {\n\t\t\t\t\tthis.loadError = true;\n\t\t\t\t\tconsole.log('err', e);\n\t\t\t\t\tthis.errorsService.broadcast('error', e.errorMessage || e.message);\n\t\t\t\t});\n\t\t\t\tthis.refPath += \":\" + id;\n\t\t\t}\n\t\t}\n\t}\n\n\tdownloadAttachment(bucket, key) {\n\t\tthis.storageService.getSignedUrl(bucket,  key).then((url) => {\n\t\t\tif(url.url) {\n\t\t\t\twindow.open(url.url, '');\n\t\t\t} else {\n\t\t\t\tconsole.log('err', url)\n\t\t\t}\n\t\t})\n\t}\n\n\tdisplaySource(source) {\n\t\tthis.sourceDialog.open().then(() => {\n\t\t\tsetTimeout(() => {\n\t\t\t\tconsole.log(this.sourceDialogSourceComponent)\n\t\t\t}, 100);\n\t\t\tthis.sourceDialogSourceComponent.source = source;\n\t\t})\n\t}\n\t\n  arrayBufferToBase64( buffer ) : string {\n    var binary = '';\n    var bytes = new Uint8Array( buffer );\n    var len = bytes.byteLength;\n    for (var i = 0; i < len; i++) {\n        binary += String.fromCharCode( bytes[ i ] );\n    }\n    return window.btoa( binary );\n\t}\n\n\tclearReply() : void {\n\t\tthis.standardReply = { Name : 'Nytt standardsvar', 'Text' : 'Text här!' }\n\t}\n\n\tsetEditedReply(event) : void {\n\t\tthis.standardReply = this.standardReplies[parseInt(event.target.value)];\n\t}\n\n\tsaveStandardReply() : void {\n\t\tthis.supportIssueService.saveStandardReply(this.standardReply).then((response) => {\n\t\t\tthis.createReplyModal.close().then(() => {\n\t\t\t\tsetTimeout(() => {\n\t\t\t\t\tthis.supportIssueService.getStandardReplies().then((replies) => {\n\t\t\t\t\t\tthis.standardReplies = [];\n\t\t\t\t\t\treplies.forEach((r) => {\n\t\t\t\t\t\t\tthis.standardReplies.push(r._source);\n\t\t\t\t\t\t});\n\t\t\t\t\t});\n\t\t\t\t}, 1000);\t\t\t\t\n\t\t\t\t})\n\t\t}).catch((e) => {\n\t\t\tthis.errorsService.broadcast('error', e.errorMessage || e.error);\n\t\t});\n\t}\n\n\tcreateStandardReply() : void {\n\t\tthis.createReplyModal.open('lg').then(() => {\n\t\t\tthis.editReplies = false;\n\t\t\tthis.standardReply = { Name : 'Nytt standardsvar', Text : '' };\n\t\t})\n\t}\n\n\teditStandardReply() : void {\n\t\tthis.createReplyModal.open('lg').then(() => {\n\t\t\tthis.editReplies = true;\n\t\t\tthis.standardReply = this.standardReplies[0];\n\t\t});\n\t}\n  \n\tsetStandardReply(reply) : void {\n\t\tthis.activeEditor.execCommand('mceInsertContent', false, reply.Text);;\t\n\t}\n\t\n\tsend() : void {\n\t\tvar contents = this.activeEditor.getContent();\n\t\tvar contents_text = this.activeEditor.getContent({ format: 'text' });\n\t\tvar subject = this.replySubject;\n\t\tvar email = this.replyToEmail;\n\t\tvar copyEmail = this.replyToEmailCopy;\n\t\tvar from = undefined;\n\t\tif(this.route.parent && this.route.parent.snapshot.url.length > 1 && this.route.parent.snapshot.url[1].path == 'private') {\n\t\t\tfrom = \"\\\"\" + this.user.firstName + ' ' + this.user.lastName + \"\\\" <\" + this.user.email + \">\";\n\t\t}\n\t\tthis.sendingMailModal.open();\n\t\tthis.supportIssueService.sendReply(subject, contents, contents_text, email, copyEmail, this.replyAttachments, from)\n\t\t.then((response) => {\n\t\t\tvar reply = {\n\t\t\t\t\"_id\" : response.messageId,\n\t\t\t\tfrom : this.user,\n\t\t\t\tto : email,\n\t\t\t\tcc : copyEmail,\n\t\t\t\tsubject : subject,\n\t\t\t\tcontent : contents,\n\t\t\t\tdate : (new Date().getTime() / 1000),\n\t\t\t\tattachments : []\n\t\t\t};\n\t\t\tthis.replyAttachments.forEach((a) => {\n\t\t\t\treply.attachments.push({   // utf-8 string as an attachment\n\t\t\t\t\tfilename: a.fileName,\n\t\t\t\t\tpath : a.uri\n\t\t\t\t});\n\t\t\t});\n\t\t\tthis.supportIssueService.addReply(reply, this._issue._id).then((success) => {\n\t\t\t\tif(success) {\n\t\t\t\t\tthis.sendingMailModal.close().then(() => {\n\t\t\t\t\t\tthis.localStorageService.clear('draft-' + this._issue._id);\t\t\t\t\n\t\t\t\t\t\tthis.closeEditor('sent');\n\t\t\t\t\t\t// add to list of replies\n\t\t\t\t\t\tif(!this._issue._source.replies)\n\t\t\t\t\t\t\tthis._issue._source.replies = [];\n\t\t\t\t\t\tthis._issue._source.replies.push(reply);\n\t\t\t\t\t\tthis.onReplySent.next(reply);\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t})\n\t\t\t\t} else {\n\t\t\t\t\talert('Fel när svaret skulle sparas.');\n\t\t\t\t}\n\t\t\t});\t\t\t\n\t\t\tthis.replyAttachments = [];\n\t\t\tthis.activeEditor.setContent('');\n\t\t}).catch((e) => {\n\t\t\tthis.sendingMailModal.close().then(() => {\n\t\t\t\tthis.sendmailError = e.errorMessage || e.message;\n\t\t\t\tthis.sendingMailErrorModal.open();\n\t\t\t})\n\t\t});\n\t}\n\n\tclearDraft() : void {\n\t\tthis.localStorageService.clear('draft-' + this._issue._id);\n\t\tthis.draftModal.close();\n\t\tthis.closeEditor('draft-cleared');\n\t\tthis.activeEditor.setContent(this.originalReplyContent);\n\t\tthis.replySubject =\tthis.originalReplySubject;\n\t}\n\n\tsaveDraft() : void {\n\t\tthis.localStorageService.store('draft-' + this._issue._id, JSON.stringify({\n\t\t\tsubject : this.replySubject,\n\t\t\tcontent : this.activeEditor.getContent()\n\t\t}));\n\t\tthis.draftModal.close();\n\t\tthis.closeEditor('draft-saved');\n\t}\n\n\tcancelReply() : void {\n\t\tif(!this.replyHasChanges) {\n\t\t\tthis.closeEditor('cancelled');\n\t\t} else {\n\t\t\tthis.draftModal.open();\n\t\t}\n\t}\n\n\tstartReply(eventFunc : Function) : void {\n\t\tthis.editorOpen = true;\t\n\t\tif(eventFunc) {\n\t\t\tthis.onEditorClosed.subscribe(eventFunc);\n\t\t}\n\t}\n\n\tcloseEditor(reason : string) {\n\t\tthis.editorOpen = false;\n\t\tthis.onEditorClosed.next({ status : reason });\n\t}\n\n\tnewNote() {\n\t\tthis.note().then((result) => {\n\t\t\tif(result == 'ok') {\n\t\t\t\tthis.waitDialog.open();\n\t\t\t\tthis.noteModal.close();\n\t\t\t\tvar note = {\n\t\t\t\t\tbody : this.noteBody,\n\t\t\t\t\tfrom : this.user,\n\t\t\t\t\tdate : parseInt((new Date().getTime() / 1000).toString())\n\t\t\t\t}\n\t\t\t\tthis.supportIssueService.addNote(note, this._issue._id).then((response) => {\n\t\t\t\t\tvar gotCurrentId = false;\n\t\t\t\t\tresponse.forEach((i) => {\n\t\t\t\t\t\tif(i.success && i.id && this._issue._id) {\n\t\t\t\t\t\t\tif(!this._issue._source.comments)\n\t\t\t\t\t\t\t\tthis._issue._source.comments = [];\n\t\t\t\t\t\t\tthis._issue._source.comments.push(note);\n\t\t\t\t\t\t\tgotCurrentId = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tif(!gotCurrentId) {\n\t\t\t\t\t\talert('fel, kunde inte spara anteckning');\n\t\t\t\t\t}\n\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\tthis.waitDialog.close();\n\t\t\t\t\t}, 750);\n\t\t\t\t});\n\t\t\t}\n\t\t})\n\t}\n\n\tnote() {\n\t\treturn new Promise((resolver) => {\n\t\t\tthis.noteModal.open().then(() => {\n\t\t\t\tthis.noNoteDialogClosed.subscribe((reason) => {\n\t\t\t\t\tresolver(reason);\n\t\t\t\t})\n\t\t\t});\n\t\t});\n\t}\n\n\tcancelNote() {\n\t\tthis.noteModal.close().then(() => {\n\t\t\tthis.noNoteDialogClosed.next('cancel');\n\t\t})\n\t}\n\n\tsaveNote() {\n\t\tthis.noteModal.close().then(() => {\n\t\t\tthis.noNoteDialogClosed.next('ok');\n\t\t})\n\t}\n\n\tnewReply() {\n\t\tthis.reply(false).then((result) => {\n\t\t\tif(result.status == 'sent')\n\t\t\t\tthis.replySentModal.open();\n\t\t})\n\t}\n\n\treply(force): Promise<any> {\n\n\t  this.show = 'contents';\n\n\t\tif(!this._issue._source.company && !force) {\n\t\t\tthis.noCompanyModal.open();\n\t\t\treturn new Promise((resolver) => {\n\t\t\t\tresolver('cancelled');\n\t\t\t});\n\t\t}\n\n\t\treturn new Promise<any>((resolver) => {\n\t\t\tthis.replySubject = this._issue._source.headers.subject || 'inget ämne';\n\t\t\tthis.replyToEmail = this._issue._source.from[0].address;\n\t\t\tif(this.replySubject.toLowerCase().substr(0, 3) != \"sv:\") {\n\t\t\t\tthis.replySubject = \"Sv: \" + this.replySubject;\n\t\t\t}\n\t\t\tif(this.activeEditor) {\n\t\t\t\tthis.startReply((data) => {\n\t\t\t\t\tresolver(data);\n\t\t\t\t});\t\t\t\t\n\t\t\t} else {\n\t\t\t\t_window().initTinyEditor(() => { // destroy func\n\t\t\t\t\tthis.closeEditor('closed');\n\t\t\t\t\tif(this.activeEditor)\n\t\t\t\t\t\tthis.activeEditor.destroy();\n\t\t\t\t\tthis.activeEditor = null;\n\t\t\t\t})\n\t\t\t\t.then((editors) => {\n\t\t\t\t\tthis.activeEditor = editors[0];\n\t\t\t\t\tthis.originalReplyContent = this.activeEditor.getContent();\n\t\t\t\t\tthis.originalReplySubject = this.replySubject;\n\t\t\t\t\tthis.activeEditor.on('change', () => {\n\t\t\t\t\t\tthis.replyHasChanges = true;\n\t\t\t\t\t})\n\t\t\t\t\tthis.activeEditor.focus();\n\t\t\t\t\tvar draft = this.localStorageService.retrieve('draft-' + this._issue._id);\n\t\t\t\t\tif(draft) {\n\t\t\t\t\t\tvar draftObj = JSON.parse(draft);\n\t\t\t\t\t\tthis.replySubject = draftObj.subject;\n\t\t\t\t\t\tthis.activeEditor.setContent(draftObj.content);\n\t\t\t\t\t}\n\t\t\t\t\tthis.startReply((data) => {\n\t\t\t\t\t\tresolver(data);\n\t\t\t\t\t});\n\t\t\t\t}).catch((err) => {\n\t\t\t\t\tresolver({ status : 'failed', err : err });\n\t\t\t\t});\n\t\t\t}\n\t\t})\n\t\t\n\t}\n\n\tconfirmCopy() : void {\n\t\tvar files = [];\n\t\tthis._issue._source.attachments.forEach((a) => {\n\t\t\tif(!a.selected) return;\n\t\t\tfiles.push(\n\t\t\t\t{\n\t\t\t\t\t\"source\" : \"attachments/\" + this._issue._id +  \"/\" + a.contentId,\n\t\t\t\t\t\"destination\" : a.generatedFileName\n\t\t\t\t}\n\t\t\t);\n\t\t});\n\t\tif(this.copyToBucket == 'storage') {\n\t\t\tvar toFolder = this.copyFilesToPrefix + (this.copyFilesToFolder == '/' ? '' : this.copyFilesToFolder);\n\t\t\tthis.isCopyingFiles = true;\n\t\t\tthis.supportIssueService.copyAttachmentsToStorage(toFolder, files, this.copyFilesIgnoreExisting).then((response) => {\n\t\t\t\tif(response.success) {\n\t\t\t\t\tthis.copyFilesModal.close();\n\t\t\t\t} else {\n\t\t\t\t\tthis.isCopyingFiles = false;\n\t\t\t\t\tif(response.response == 'folder-exists') {\n\t\t\t\t\t\talert('Fel, mappen \"' + this.copyFilesToFolder + '\" finns redan.');\n\t\t\t\t\t} else {\n\t\t\t\t\t\talert('Fel, ' + response.response);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t} else if(this.copyToBucket == 'mamba') {\n\t\t\tvar toFolder = this.copyFilesToPrefix.substr(0, 1) + '/' + this.copyFilesToPrefix + (this.copyFilesToFolder == '/' ? '' : this.copyFilesToFolder);\n\t\t\tthis.isCopyingFiles = true;\n\t\t\tthis.supportIssueService.copyAttachmentsToMamba(toFolder, files, this.copyFilesIgnoreExisting).then((response) => {\n\t\t\t\tif(response.success) {\n\t\t\t\t\tthis.copyFilesModal.close();\n\t\t\t\t} else {\n\t\t\t\t\tthis.isCopyingFiles = false;\n\t\t\t\t\tif(response.response == 'folder-exists') {\n\t\t\t\t\t\talert('Fel, mappen \"' + this.copyFilesToFolder + '\" finns redan.');\n\t\t\t\t\t} else {\n\t\t\t\t\t\talert('Fel, ' + response.response);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}\n\n\tcopyToMamba() : void {\n\t\tthis.numFilesToCopy = 0;\n\t\tthis._issue._source.attachments.forEach((a) => {\n\t\t\tif(!a.selected) return;\n\t\t\tthis.numFilesToCopy++;\n\t\t});\n\t\tthis.copyToBucket = 'mamba';\n\t\tthis.isCopyingFiles = false;\n\t\tif(this._issue._source.company.accounts.length == 0) {\n\t\t\talert('Fel, Kunden har inga konton kopplade.');\n\t\t\treturn;\n\t\t}\n\t\tthis.copyFilesModal.open().then(() => {\n\t\t\tvar d = new Date();\n\t\t\tvar m = d.getMonth() + 1;\n\t\t\tvar day = d.getDate();\n\t\t\tthis.hasInvalidFiles = false;\n\t\t\tthis.hasRenamedFiles = false;\n\t\t\tthis.copyFilesToFolder = '/Ändringar/' + d.getFullYear() + '-' + (m < 10 ? ('0' + m) : m) + '-' + (day < 10 ? ('0' + day) : day);\n\t\t\tthis.copyFilesIgnoreExisting = false;\n\t\t\tthis.copyFilesToPrefix = this._issue._source.company.accounts[0].prefix;\n\t\t\tthis._issue._source.attachments.forEach((a) => {\n\t\t\t\tif(!a.selected) return;\n\t\t\t\ta.wasInvalidFileName = false;\n\t\t\t\ta.validFileName = true;\n\t\t\t\tvar replacedFileName = a.generatedFileName.replace(/ /g, '_').replace('å', 'a').replace('ä', 'a').replace('ö', 'o');\n\t\t\t\tif(a.generatedFileName != replacedFileName)\n\t\t\t\t\tthis.hasRenamedFiles = a.fileNameAutoReplaced = true;\n\t\t\t\ta.generatedFileName = replacedFileName;\n\t\t\t\tif(!a.generatedFileName.match(/^[a-z0-9\\.\\-\\_]*$/i)) {\n\t\t\t\t\ta.validFileName = false;\n\t\t\t\t\ta.wasInvalidFileName = true;\n\t\t\t\t\tthis.hasInvalidFiles = true;\n\t\t\t\t}\n\t\t\t});\n\t\t})\n\t}\n\n\tvalidateUploadedFileNames() : void {\n\t\tvar hasInvalid = false;\n\t\tthis._issue._source.attachments.forEach((a) => {\n\t\t\tif(!a.selected) return;\n\t\t\t\tif(!a.generatedFileName.match(/^[a-z0-9\\.\\-\\_]*$/i) || a.generatedFileName == '') {\n\t\t\t\t\ta.validFileName = false;\n\t\t\t\t\tthis.hasInvalidFiles = true;\n\t\t\t\t\thasInvalid = true;\n\t\t\t\t} else {\n\t\t\t\t\ta.validFileName = true;\n\t\t\t\t}\n\t\t});\n\t\tthis.hasInvalidFiles = hasInvalid;\n\t}\n\n\tcopyToStorage() : void {\n\t\tthis.numFilesToCopy = 0;\n\t\tthis._issue._source.attachments.forEach((a) => {\n\t\t\tif(!a.selected) return;\n\t\t\tthis.numFilesToCopy++;\n\t\t});\n\t\tthis.copyToBucket = 'storage';\n\t\tthis.isCopyingFiles = false;\n\t\tif(this._issue._source.company.accounts.length == 0) {\n\t\t\talert('Fel, Kunden har inga konton kopplade.');\n\t\t\treturn;\n\t\t}\n\t\tthis.copyFilesModal.open().then(() => {\n\t\t\tvar d = new Date();\n\t\t\tthis.copyFilesToFolder = '/';\n\t\t\tthis.copyFilesIgnoreExisting = false;\n\t\t\tthis.copyFilesToPrefix = this._issue._source.company.accounts[0].prefix;\n\t\t})\n\t}\n\n\ttoggleAttachmentSelected(a) : void {\n\t\ta.selected = !a.selected;\n\t\tthis.hasSelectedAttachments = false;\n\t\tthis._issue._source.attachments.forEach((a) => {\n\t\t\tif(a.selected)\n\t\t\t\tthis.hasSelectedAttachments = true;\n\t\t})\n\t}\n\t\n  load() : Promise<any> {\n\t\treturn new Promise((resolve) => {\t\t\t\n\t\t  this.show = this.route.snapshot.params['action'] || 'contents';\n\t\t\tthis.showSource = this._issue._source.html ? 'html' : 'text';\n\t\t  this.loaded = false;\n\t\t\tif(!this._issue.activities) {\n\t\t\t\tthis._issue.activities = [];\n\t\t\t}\n\t\t\tif(this._issue._id) {\n\t\t\t\tthis._issue.headers = new Array();\t    \t\n\t\t\t}\n\t\t\tif(this._issue._source.html && this._issue._source.attachments) {\n\t\t\t\tthis._issue._source.attachments.forEach((a) => {\n\t\t\t\t\tconsole.log('a', a)\n\t\t\t\t\ta.humanReadableSize = (a.length / 1024).toFixed(1), \n\t\t\t\t\tthis._issue._source.html = this._issue._source.html.replace(\"cid:\" + a.contentId, \"https://s3-eu-west-1.amazonaws.com/hsd-incoming-bucket/attachments/\" + this._issue._id + \"/\" + a.contentId);\n\t\t\t\t})\n\t\t\t}\n\t\t\tif(this._issue._source.replies) {\n\t\t\t\tthis._issue._source.replies.sort((a : any, b : any) : number => {\n\t\t\t\t\tif(!a.date) return(1);\n\t\t\t\t\tif(!b.date) return(-1);\n\t\t\t\t\treturn b.date - a.date;\n\t\t\t\t});\n\t\t\t}\n\t\t\tif(!this._issue._source.attachments) {\n\t\t\t\tthis._issue._source.attachments = [];\n\t\t\t}\t\t\t\n\t\t\tthis.supportIssue = this._issue;\n\t\t\tthis.loaded = true;\n\t\t\tresolve(true);\n\t\t})\n  }\n  \n\tloadActivities(): Promise<any> {\n\t\tvar accountsToSearch = [];\n\t\tif(this._issue._source.company) {\n\t\t\tthis._issue._source.company.accounts.forEach((a) => {\n\t\t\t\taccountsToSearch.push(a.accountId);\n\t\t\t})\n\t\t}\n\t\tif(accountsToSearch.length > 0) {\n\t\t\tthis.activitiesLoading = true;\n\t\t\treturn this.activityService.getActivities({ accountId : accountsToSearch }, 0, 100).then((activityList) => {\n\t\t\t\tthis.activities = activityList.list;\n\t\t\t\tthis.activitiesLoading = false;\n\t\t\t}).catch((e) => {\n\t\t\t\tthis.errorsService.broadcast('error', e.errorMessage || e.message);\n\t\t\t});;\n\t\t}\n\t}\n\n  loadHistory(start, size): Promise<any> {\n\t\tif(start == 0)\n\t\t\tthis.history = [];\n\t\tthis.historyLoading = true;\n\t\tlet processFields = [\n\t\t\t{\n\t\t\t\t\"name\" : \"text\",\n\t\t\t\t\"type\" : \"truncate\",\n\t\t\t\t\"params\" : [\n\t\t\t\t\t0, \n\t\t\t\t\t512\n\t\t\t\t]\n\t\t\t}\n\t\t]\n\t\tlet includeFields = [\"company.name\", \"company.companyId\", \"company.accounts\", \"text\", \"user\", \"subject\", \"messageId\", \"from\", \"to\", \"date\", \"receivedDate\", \"status\", \"headers.cc\", \"headers.to\", \"headers.from\", \"headers.subject\", \"headers.x-spam-result\", \"headers.references\", \"headers.date\"];\n\t\treturn this.supportIssueService.getAllIssues({ companyId : this._issue._source.company.companyId, includeFields, processFields }, start, size).then((supportIssueList) => {\n\t\t\tsupportIssueList.issues.forEach((issue) => {\n\t\t\t\tthis.history.push(issue);\n\t\t\t})\n\t\t\tthis.historyLength = supportIssueList.totalIssues;\n\t\t\tthis.historyLoading = false;\n\t\t});\n  }\n  \n\tcreateActivity() : void {\n\t\tvar data = {\n\t\t\tdescription : 'Ämne: ' + (this.supportIssue._source.headers.subject) + '\\n\\n' + \n\t\t\t\t\t\t\t\t\t  (this.supportIssue._source.text || this.supportIssue._source.html) + \n\t\t\t\t\t\t\t\t\t\t'--- Skapades från inkommande ärende ' + \n\t\t\t\t\t\t\t\t\t\tthis.supportIssue._id +\n\t\t\t\t\t\t\t\t\t\t' ---\\n\\n',\n\t\t\tstartDate : new Date(),\n\t\t\tendDate : new Date(),\n\t\t\tname : this.activityService.types[0].value,\n\t\t\tstatus : 2,\n\t\t\tcompanyId : this._issue._source.company.companyId,\n\t\t\taccount : (this._issue._source.company && this._issue._source.company.accounts && this._issue._source.company.accounts.length) ? this._issue._source.company.accounts[0] : null,\n\t\t\tattributes : [ { name : 'supportId', value : this._issue._id }]\n\t\t}\t\t\n\t\tthis.createActivityModal.open(data).then((result) => {\n\t\t\t\n\t\t});\n\t}\n\t\n\topenIssue() : void {\n\t\tthis.fireOnOpenIssue();\n\t}\n\n\tmarkSpam() : void {\n\t\tthis.fireOnSpamIssue();\n\t}\n\n  closeIssue() : void {\n\t  this.fireOnCloseIssue();\n  }\n\n  deleteIssue() : void {\n\t  this.fireOnDeleteIssue();\n  }\n  \n  assignTo(user) : void {\n\t  this.fireOnUserAssigned(user);\n  }\n\n\thandleAddedFile($event, f) : void {\n\t\tif($event.target.files.length > 0)\n\t\t\tthis.uploadFile($event.target.files[0]);\n\t}\n\n\tuploadFile(file) : void {\n\t\tthis.addFileModal.open().then(() => {\n\t\t\tvar reader = new FileReader();\n\t\t\treader.onload = (evt) => {\n\t\t\t\tvar fr = (evt.target as FileReader);\t\t\t\n\t\t\t\tvar buf = fr.result;\n\t\t\t\tthis.supportIssueService.uploadLargeAttachment(buf, file.name, file.type)\n\t\t\t\t.then((response) => {\n\t\t\t\t\tthis.fileName = '';\n\t\t\t\t\tthis.addFileModal.close().then(() => {\n\t\t\t\t\t\tthis.replyAttachments.push({ uri : response.uri, fileName: file.name, length: file.size });\n\t\t\t\t\t})\n\t\t\t\t}).catch((e) => {\n\t\t\t\t\tthis.addFileModal.close().then(() => {\n\t\t\t\t\t\tthis.fileName = '';\n\t\t\t\t\t\tthis.errorMessage = e.errorMessage;\n\t\t\t\t\t\tthis.errorModal.open();\n\t\t\t\t\t})\n\t\t\t\t});\n\t\t\t}\n\t\t\treader.readAsArrayBuffer(file);\n\t\t});\n\t}\n\n  fireOnSpamIssue() {\n\t  this.eventsService.broadcast('supportissue-spam', { issue : this._issue });\n  }\n\n  fireOnOpenIssue() {\n\t  this.eventsService.broadcast('supportissue-open', { issue : this._issue });\n  }\n \n  fireOnCloseIssue() {\n\t\tthis.eventsService.broadcast('supportissue-close', { issue : this._issue });\n  }\n  \n  fireOnDeleteIssue() {\n\t  this.eventsService.broadcast('supportissue-delete', { issue : this._issue });\n  }\n\n  fireOnUserAssigned(user) {\n\t  this.eventsService.broadcast('supportissue-user-assigned', { issue : this._issue, user : user });\n  } \n    \n  fireOnCompanyAssigned(issue, company) {\n\t\tthis.eventsService.broadcast('supportissue-company-assigned', { issue : issue, company : company });\n  }\n\n\tfireOnCompanyUnAssigned(issue) {\n\t\tthis.eventsService.broadcast('supportissue-company-unassigned', { issue : issue });\n  }\n\n\tclose() {\n\t\tthis.eventsService.broadcast('supportissue-closed', { issue : this._issue });\n  }\n\n  handleOnCompanyAssigned(company) {\t\t\n\t  this.supportIssueService.setCompany(company, this.supportIssue._id).then((success) => {\n\t\t  if(success) {\n\t\t\t  var fireEvent = true;\n\t\t\t  if(this._issue._source.company)\n\t\t\t  \tfireEvent = false;\n\t\t\t\tthis._issue._source.company = company;\n\t\t\t\tif(fireEvent)\n\t\t\t\t\tthis.fireOnCompanyAssigned(this._issue, company)\n\t\t    this.loadHistory(0, 10);\n\t\t\t\tthis.loadActivities();\n\t\t\t} else {\n\t\t\t\talert('Fel, kunde inte sätta företag');\n\t\t\t}\n\t\t }).catch((e) => {\n\t\t\t this.errorsService.broadcast('error', e.errorMessage || e.message);\n\t\t });\n  }\n\n\thandleOnCompanyLoaded(company) {\n\t\tthis.loadHistory(0, 10);\n\t\tthis.loadActivities();\n\t}\n  \n  handleOnCompanyUnAssigned() {\t\t\n\t  this.supportIssueService.setCompany({}, this.supportIssue._id).then((success) => {\n\t\t\tthis.history = null;\n\t\t\tthis.fireOnCompanyUnAssigned(this._issue);\n\t\t\tdelete this._issue._source.company;\n\t\t});\n  }\n  \n}\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/components/supportdetails.ts","\"use strict\";\nvar core_1 = require('@angular/core');\nvar position_resolver_1 = require('./position-resolver');\nvar scroll_register_1 = require('./scroll-register');\nvar scroll_resolver_1 = require('./scroll-resolver');\nvar InfiniteScroll = (function () {\n    function InfiniteScroll(element, zone, positionResolverFactory, scrollRegister, scrollerResolver) {\n        this.element = element;\n        this.zone = zone;\n        this.positionResolverFactory = positionResolverFactory;\n        this.scrollRegister = scrollRegister;\n        this.scrollerResolver = scrollerResolver;\n        this.scrolled = new core_1.EventEmitter();\n        this.scrolledUp = new core_1.EventEmitter();\n        this._distanceDown = 2;\n        this._distanceUp = 1.5;\n        this._throttle = 300;\n        this._disabled = false;\n        this._container = null;\n        this.scrollWindow = true;\n        this._immediate = false;\n        this._horizontal = false;\n        this._alwaysCallback = false;\n        this.throttleType = 'throttle';\n    }\n    Object.defineProperty(InfiniteScroll.prototype, \"debounce\", {\n        set: function (value) {\n            this.throttleType = value === '' || !!value ? 'debounce' : 'throttle';\n        },\n        enumerable: true,\n        configurable: true\n    });\n    InfiniteScroll.prototype.ngOnInit = function () {\n        var _this = this;\n        if (typeof window !== 'undefined') {\n            var containerElement = this.resolveContainerElement();\n            var positionResolver_1 = this.positionResolverFactory.create({\n                windowElement: containerElement,\n                horizontal: this._horizontal\n            });\n            var options = {\n                container: positionResolver_1.container,\n                throttleType: this.throttleType,\n                throttleDuration: this._throttle,\n                filterBefore: function () { return !_this._disabled; },\n                mergeMap: function () { return positionResolver_1.calculatePoints(_this.element); },\n                scrollHandler: function (container) { return _this.handleOnScroll(container); }\n            };\n            this.disposeScroller = this.scrollRegister.attachEvent(options);\n        }\n    };\n    InfiniteScroll.prototype.handleOnScroll = function (container) {\n        var scrollResolverConfig = {\n            distance: {\n                down: this._distanceDown,\n                up: this._distanceUp\n            }\n        };\n        var scrollStats = this.scrollerResolver.getScrollStats(container, scrollResolverConfig);\n        if (this.shouldTriggerEvents(scrollStats.shouldScroll)) {\n            var infiniteScrollEvent = {\n                currentScrollPosition: container.scrolledUntilNow\n            };\n            if (scrollStats.isScrollingDown) {\n                this.onScrollDown(infiniteScrollEvent);\n            }\n            else {\n                this.onScrollUp(infiniteScrollEvent);\n            }\n        }\n    };\n    InfiniteScroll.prototype.shouldTriggerEvents = function (shouldScroll) {\n        return (this._alwaysCallback || shouldScroll) && !this._disabled;\n    };\n    InfiniteScroll.prototype.ngOnDestroy = function () {\n        if (this.disposeScroller) {\n            this.disposeScroller.unsubscribe();\n        }\n    };\n    InfiniteScroll.prototype.onScrollDown = function (data) {\n        var _this = this;\n        if (data === void 0) { data = { currentScrollPosition: 0 }; }\n        this.zone.run(function () { return _this.scrolled.emit(data); });\n    };\n    InfiniteScroll.prototype.onScrollUp = function (data) {\n        var _this = this;\n        if (data === void 0) { data = { currentScrollPosition: 0 }; }\n        this.zone.run(function () { return _this.scrolledUp.emit(data); });\n    };\n    InfiniteScroll.prototype.resolveContainerElement = function () {\n        if (this._container) {\n            return typeof (this._container) === 'string' ? window.document.querySelector(this._container) : this._container;\n        }\n        else {\n            return this.scrollWindow ? window : this.element;\n        }\n    };\n    InfiniteScroll.decorators = [\n        { type: core_1.Directive, args: [{\n                    selector: '[infinite-scroll]'\n                },] },\n    ];\n    /** @nocollapse */\n    InfiniteScroll.ctorParameters = function () { return [\n        { type: core_1.ElementRef, },\n        { type: core_1.NgZone, },\n        { type: position_resolver_1.PositionResolverFactory, },\n        { type: scroll_register_1.ScrollRegister, },\n        { type: scroll_resolver_1.ScrollResolver, },\n    ]; };\n    InfiniteScroll.propDecorators = {\n        'scrolled': [{ type: core_1.Output },],\n        'scrolledUp': [{ type: core_1.Output },],\n        '_distanceDown': [{ type: core_1.Input, args: ['infiniteScrollDistance',] },],\n        '_distanceUp': [{ type: core_1.Input, args: ['infiniteScrollUpDistance',] },],\n        '_throttle': [{ type: core_1.Input, args: ['infiniteScrollThrottle',] },],\n        '_disabled': [{ type: core_1.Input, args: ['infiniteScrollDisabled',] },],\n        '_container': [{ type: core_1.Input, args: ['infiniteScrollContainer',] },],\n        'scrollWindow': [{ type: core_1.Input, args: ['scrollWindow',] },],\n        '_immediate': [{ type: core_1.Input, args: ['immediateCheck',] },],\n        '_horizontal': [{ type: core_1.Input, args: ['horizontal',] },],\n        '_alwaysCallback': [{ type: core_1.Input, args: ['alwaysCallback',] },],\n        'debounce': [{ type: core_1.Input },],\n    };\n    return InfiniteScroll;\n}());\nexports.InfiniteScroll = InfiniteScroll;\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5maW5pdGUtc2Nyb2xsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW5maW5pdGUtc2Nyb2xsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFDQSxxQkFJTyxlQUFlLENBQUMsQ0FBQTtBQUN2QixrQ0FBd0MscUJBQXFCLENBQUMsQ0FBQTtBQUM5RCxnQ0FBcUQsbUJBQW1CLENBQUMsQ0FBQTtBQUN6RSxnQ0FBK0IsbUJBQW1CLENBQUMsQ0FBQTtBQUtuRDtJQXFCRSx3QkFDVSxPQUFtQixFQUNuQixJQUFZLEVBQ1osdUJBQWdELEVBQ2hELGNBQThCLEVBQzlCLGdCQUFnQztRQUpoQyxZQUFPLEdBQVAsT0FBTyxDQUFZO1FBQ25CLFNBQUksR0FBSixJQUFJLENBQVE7UUFDWiw0QkFBdUIsR0FBdkIsdUJBQXVCLENBQXlCO1FBQ2hELG1CQUFjLEdBQWQsY0FBYyxDQUFnQjtRQUM5QixxQkFBZ0IsR0FBaEIsZ0JBQWdCLENBQWdCO1FBekJ6QyxhQUFRLEdBQUcsSUFBSSxtQkFBWSxFQUF1QixDQUFDO1FBQ25ELGVBQVUsR0FBRyxJQUFJLG1CQUFZLEVBQXVCLENBQUM7UUFFckQsa0JBQWEsR0FBVyxDQUFDLENBQUM7UUFDMUIsZ0JBQVcsR0FBVyxHQUFHLENBQUM7UUFDMUIsY0FBUyxHQUFXLEdBQUcsQ0FBQztRQUN4QixjQUFTLEdBQVksS0FBSyxDQUFDO1FBQzNCLGVBQVUsR0FBUSxJQUFJLENBQUM7UUFDdkIsaUJBQVksR0FBWSxJQUFJLENBQUM7UUFDN0IsZUFBVSxHQUFZLEtBQUssQ0FBQztRQUM1QixnQkFBVyxHQUFZLEtBQUssQ0FBQztRQUM3QixvQkFBZSxHQUFZLEtBQUssQ0FBQztRQU0xQixpQkFBWSxHQUFXLFVBQVUsQ0FBQztJQVN2QyxDQUFDO0lBYkosc0JBQUksb0NBQVE7YUFBWixVQUFhLEtBQXVCO1lBQ2xDLElBQUksQ0FBQyxZQUFZLEdBQUcsS0FBSyxLQUFLLEVBQUUsSUFBSSxDQUFDLENBQUMsS0FBSyxHQUFHLFVBQVUsR0FBRyxVQUFVLENBQUM7UUFDeEUsQ0FBQzs7O09BQUE7SUFhRCxpQ0FBUSxHQUFSO1FBQUEsaUJBaUJDO1FBaEJDLEVBQUUsQ0FBQyxDQUFDLE9BQU8sTUFBTSxLQUFLLFdBQVcsQ0FBQyxDQUFDLENBQUM7WUFDbEMsSUFBTSxnQkFBZ0IsR0FBRyxJQUFJLENBQUMsdUJBQXVCLEVBQUUsQ0FBQztZQUN4RCxJQUFNLGtCQUFnQixHQUFHLElBQUksQ0FBQyx1QkFBdUIsQ0FBQyxNQUFNLENBQUM7Z0JBQzNELGFBQWEsRUFBRSxnQkFBZ0I7Z0JBQy9CLFVBQVUsRUFBRSxJQUFJLENBQUMsV0FBVzthQUM3QixDQUFDLENBQUM7WUFDSCxJQUFNLE9BQU8sR0FBeUI7Z0JBQ3BDLFNBQVMsRUFBRSxrQkFBZ0IsQ0FBQyxTQUFTO2dCQUNyQyxZQUFZLEVBQUUsSUFBSSxDQUFDLFlBQVk7Z0JBQy9CLGdCQUFnQixFQUFFLElBQUksQ0FBQyxTQUFTO2dCQUNoQyxZQUFZLEVBQUUsY0FBTSxPQUFBLENBQUMsS0FBSSxDQUFDLFNBQVMsRUFBZixDQUFlO2dCQUNuQyxRQUFRLEVBQUUsY0FBTSxPQUFBLGtCQUFnQixDQUFDLGVBQWUsQ0FBQyxLQUFJLENBQUMsT0FBTyxDQUFDLEVBQTlDLENBQThDO2dCQUM5RCxhQUFhLEVBQUUsVUFBQyxTQUF3QixJQUFLLE9BQUEsS0FBSSxDQUFDLGNBQWMsQ0FBQyxTQUFTLENBQUMsRUFBOUIsQ0FBOEI7YUFDNUUsQ0FBQztZQUNGLElBQUksQ0FBQyxlQUFlLEdBQUcsSUFBSSxDQUFDLGNBQWMsQ0FBQyxXQUFXLENBQUMsT0FBTyxDQUFDLENBQUM7UUFDbEUsQ0FBQztJQUNILENBQUM7SUFFRCx1Q0FBYyxHQUFkLFVBQWUsU0FBd0I7UUFDckMsSUFBTSxvQkFBb0IsR0FBRztZQUMzQixRQUFRLEVBQUU7Z0JBQ1IsSUFBSSxFQUFFLElBQUksQ0FBQyxhQUFhO2dCQUN4QixFQUFFLEVBQUUsSUFBSSxDQUFDLFdBQVc7YUFDckI7U0FDRixDQUFDO1FBQ0YsSUFBTSxXQUFXLEdBQWdCLElBQUksQ0FBQyxnQkFBZ0IsQ0FBQyxjQUFjLENBQUMsU0FBUyxFQUFFLG9CQUFvQixDQUFDLENBQUM7UUFDdkcsRUFBRSxDQUFDLENBQUMsSUFBSSxDQUFDLG1CQUFtQixDQUFDLFdBQVcsQ0FBQyxZQUFZLENBQUMsQ0FBQyxDQUFDLENBQUM7WUFDdkQsSUFBTSxtQkFBbUIsR0FBd0I7Z0JBQy9DLHFCQUFxQixFQUFFLFNBQVMsQ0FBQyxnQkFBZ0I7YUFDbEQsQ0FBQztZQUNGLEVBQUUsQ0FBQyxDQUFDLFdBQVcsQ0FBQyxlQUFlLENBQUMsQ0FBQyxDQUFDO2dCQUNoQyxJQUFJLENBQUMsWUFBWSxDQUFDLG1CQUFtQixDQUFDLENBQUM7WUFDekMsQ0FBQztZQUFDLElBQUksQ0FBQyxDQUFDO2dCQUNOLElBQUksQ0FBQyxVQUFVLENBQUMsbUJBQW1CLENBQUMsQ0FBQztZQUN2QyxDQUFDO1FBQ0gsQ0FBQztJQUNILENBQUM7SUFFRCw0Q0FBbUIsR0FBbkIsVUFBb0IsWUFBcUI7UUFDdkMsTUFBTSxDQUFDLENBQUMsSUFBSSxDQUFDLGVBQWUsSUFBSSxZQUFZLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxTQUFTLENBQUM7SUFDbkUsQ0FBQztJQUVELG9DQUFXLEdBQVg7UUFDRSxFQUFFLENBQUMsQ0FBQyxJQUFJLENBQUMsZUFBZSxDQUFDLENBQUMsQ0FBQztZQUN6QixJQUFJLENBQUMsZUFBZSxDQUFDLFdBQVcsRUFBRSxDQUFDO1FBQ3JDLENBQUM7SUFDSCxDQUFDO0lBRUQscUNBQVksR0FBWixVQUFhLElBQXdEO1FBQXJFLGlCQUVDO1FBRlksb0JBQXdELEdBQXhELFNBQThCLHFCQUFxQixFQUFFLENBQUMsRUFBRTtRQUNuRSxJQUFJLENBQUMsSUFBSSxDQUFDLEdBQUcsQ0FBQyxjQUFNLE9BQUEsS0FBSSxDQUFDLFFBQVEsQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLEVBQXhCLENBQXdCLENBQUMsQ0FBQztJQUNoRCxDQUFDO0lBRUQsbUNBQVUsR0FBVixVQUFXLElBQXdEO1FBQW5FLGlCQUVDO1FBRlUsb0JBQXdELEdBQXhELFNBQThCLHFCQUFxQixFQUFFLENBQUMsRUFBRTtRQUNqRSxJQUFJLENBQUMsSUFBSSxDQUFDLEdBQUcsQ0FBQyxjQUFNLE9BQUEsS0FBSSxDQUFDLFVBQVUsQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLEVBQTFCLENBQTBCLENBQUMsQ0FBQztJQUNsRCxDQUFDO0lBRU8sZ0RBQXVCLEdBQS9CO1FBQ0UsRUFBRSxDQUFDLENBQUMsSUFBSSxDQUFDLFVBQVUsQ0FBQyxDQUFDLENBQUM7WUFDcEIsTUFBTSxDQUFDLE9BQU0sQ0FBQyxJQUFJLENBQUMsVUFBVSxDQUFDLEtBQUssUUFBUSxHQUFJLE1BQU0sQ0FBQyxRQUFRLENBQUMsYUFBYSxDQUFDLElBQUksQ0FBQyxVQUFVLENBQUMsR0FBRyxJQUFJLENBQUMsVUFBVSxDQUFDO1FBQ2xILENBQUM7UUFBQyxJQUFJLENBQUMsQ0FBQztZQUNOLE1BQU0sQ0FBQyxJQUFJLENBQUMsWUFBWSxHQUFHLE1BQU0sR0FBRyxJQUFJLENBQUMsT0FBTyxDQUFDO1FBQ25ELENBQUM7SUFDSCxDQUFDO0lBQ0kseUJBQVUsR0FBMEI7UUFDM0MsRUFBRSxJQUFJLEVBQUUsZ0JBQVMsRUFBRSxJQUFJLEVBQUUsQ0FBQztvQkFDeEIsUUFBUSxFQUFFLG1CQUFtQjtpQkFDOUIsRUFBRyxFQUFFO0tBQ0wsQ0FBQztJQUNGLGtCQUFrQjtJQUNYLDZCQUFjLEdBQW1FLGNBQU0sT0FBQTtRQUM5RixFQUFDLElBQUksRUFBRSxpQkFBVSxHQUFHO1FBQ3BCLEVBQUMsSUFBSSxFQUFFLGFBQU0sR0FBRztRQUNoQixFQUFDLElBQUksRUFBRSwyQ0FBdUIsR0FBRztRQUNqQyxFQUFDLElBQUksRUFBRSxnQ0FBYyxHQUFHO1FBQ3hCLEVBQUMsSUFBSSxFQUFFLGdDQUFjLEdBQUc7S0FDdkIsRUFONkYsQ0FNN0YsQ0FBQztJQUNLLDZCQUFjLEdBQTJDO1FBQ2hFLFVBQVUsRUFBRSxDQUFDLEVBQUUsSUFBSSxFQUFFLGFBQU0sRUFBRSxFQUFFO1FBQy9CLFlBQVksRUFBRSxDQUFDLEVBQUUsSUFBSSxFQUFFLGFBQU0sRUFBRSxFQUFFO1FBQ2pDLGVBQWUsRUFBRSxDQUFDLEVBQUUsSUFBSSxFQUFFLFlBQUssRUFBRSxJQUFJLEVBQUUsQ0FBQyx3QkFBd0IsRUFBRyxFQUFFLEVBQUU7UUFDdkUsYUFBYSxFQUFFLENBQUMsRUFBRSxJQUFJLEVBQUUsWUFBSyxFQUFFLElBQUksRUFBRSxDQUFDLDBCQUEwQixFQUFHLEVBQUUsRUFBRTtRQUN2RSxXQUFXLEVBQUUsQ0FBQyxFQUFFLElBQUksRUFBRSxZQUFLLEVBQUUsSUFBSSxFQUFFLENBQUMsd0JBQXdCLEVBQUcsRUFBRSxFQUFFO1FBQ25FLFdBQVcsRUFBRSxDQUFDLEVBQUUsSUFBSSxFQUFFLFlBQUssRUFBRSxJQUFJLEVBQUUsQ0FBQyx3QkFBd0IsRUFBRyxFQUFFLEVBQUU7UUFDbkUsWUFBWSxFQUFFLENBQUMsRUFBRSxJQUFJLEVBQUUsWUFBSyxFQUFFLElBQUksRUFBRSxDQUFDLHlCQUF5QixFQUFHLEVBQUUsRUFBRTtRQUNyRSxjQUFjLEVBQUUsQ0FBQyxFQUFFLElBQUksRUFBRSxZQUFLLEVBQUUsSUFBSSxFQUFFLENBQUMsY0FBYyxFQUFHLEVBQUUsRUFBRTtRQUM1RCxZQUFZLEVBQUUsQ0FBQyxFQUFFLElBQUksRUFBRSxZQUFLLEVBQUUsSUFBSSxFQUFFLENBQUMsZ0JBQWdCLEVBQUcsRUFBRSxFQUFFO1FBQzVELGFBQWEsRUFBRSxDQUFDLEVBQUUsSUFBSSxFQUFFLFlBQUssRUFBRSxJQUFJLEVBQUUsQ0FBQyxZQUFZLEVBQUcsRUFBRSxFQUFFO1FBQ3pELGlCQUFpQixFQUFFLENBQUMsRUFBRSxJQUFJLEVBQUUsWUFBSyxFQUFFLElBQUksRUFBRSxDQUFDLGdCQUFnQixFQUFHLEVBQUUsRUFBRTtRQUNqRSxVQUFVLEVBQUUsQ0FBQyxFQUFFLElBQUksRUFBRSxZQUFLLEVBQUUsRUFBRTtLQUM3QixDQUFDO0lBQ0YscUJBQUM7QUFBRCxDQUFDLEFBeEhELElBd0hDO0FBeEhZLHNCQUFjLGlCQXdIMUIsQ0FBQSIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEluZmluaXRlU2Nyb2xsRXZlbnQsIFNjcm9sbFN0YXRzLCBQb3NpdGlvblN0YXRzIH0gZnJvbSAnLi9tb2RlbHMnO1xuaW1wb3J0IHtcbiAgRGlyZWN0aXZlLCBFbGVtZW50UmVmLCBJbnB1dCwgT3V0cHV0LFxuICBFdmVudEVtaXR0ZXIsIE9uRGVzdHJveSwgT25Jbml0LFxuICBTaW1wbGVDaGFuZ2VzLCBOZ1pvbmVcbn0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgeyBQb3NpdGlvblJlc29sdmVyRmFjdG9yeSB9IGZyb20gJy4vcG9zaXRpb24tcmVzb2x2ZXInO1xuaW1wb3J0IHsgU2Nyb2xsUmVnaXN0ZXIsIFNjcm9sbFJlZ2lzdGVyQ29uZmlnIH0gZnJvbSAnLi9zY3JvbGwtcmVnaXN0ZXInO1xuaW1wb3J0IHsgU2Nyb2xsUmVzb2x2ZXIgfSBmcm9tICcuL3Njcm9sbC1yZXNvbHZlcic7XG5pbXBvcnQgeyBTdWJzY3JpcHRpb24gfSBmcm9tICdyeGpzL1J4JztcblxuXG5cbmV4cG9ydCBjbGFzcyBJbmZpbml0ZVNjcm9sbCBpbXBsZW1lbnRzIE9uRGVzdHJveSwgT25Jbml0IHtcbiAgIHNjcm9sbGVkID0gbmV3IEV2ZW50RW1pdHRlcjxJbmZpbml0ZVNjcm9sbEV2ZW50PigpO1xuICAgc2Nyb2xsZWRVcCA9IG5ldyBFdmVudEVtaXR0ZXI8SW5maW5pdGVTY3JvbGxFdmVudD4oKTtcblxuICAgX2Rpc3RhbmNlRG93bjogbnVtYmVyID0gMjtcbiAgIF9kaXN0YW5jZVVwOiBudW1iZXIgPSAxLjU7XG4gICBfdGhyb3R0bGU6IG51bWJlciA9IDMwMDtcbiAgIF9kaXNhYmxlZDogYm9vbGVhbiA9IGZhbHNlO1xuICAgX2NvbnRhaW5lcjogYW55ID0gbnVsbDtcbiAgIHNjcm9sbFdpbmRvdzogYm9vbGVhbiA9IHRydWU7XG4gICBfaW1tZWRpYXRlOiBib29sZWFuID0gZmFsc2U7XG4gICBfaG9yaXpvbnRhbDogYm9vbGVhbiA9IGZhbHNlO1xuICAgX2Fsd2F5c0NhbGxiYWNrOiBib29sZWFuID0gZmFsc2U7XG4gIFxuICBzZXQgZGVib3VuY2UodmFsdWU6IHN0cmluZyB8IGJvb2xlYW4pIHtcbiAgICB0aGlzLnRocm90dGxlVHlwZSA9IHZhbHVlID09PSAnJyB8fCAhIXZhbHVlID8gJ2RlYm91bmNlJyA6ICd0aHJvdHRsZSc7XG4gIH1cblxuICBwcml2YXRlIHRocm90dGxlVHlwZTogc3RyaW5nID0gJ3Rocm90dGxlJztcbiAgcHJpdmF0ZSBkaXNwb3NlU2Nyb2xsZXI6IFN1YnNjcmlwdGlvbjtcblxuICBjb25zdHJ1Y3RvcihcbiAgICBwcml2YXRlIGVsZW1lbnQ6IEVsZW1lbnRSZWYsXG4gICAgcHJpdmF0ZSB6b25lOiBOZ1pvbmUsXG4gICAgcHJpdmF0ZSBwb3NpdGlvblJlc29sdmVyRmFjdG9yeTogUG9zaXRpb25SZXNvbHZlckZhY3RvcnksXG4gICAgcHJpdmF0ZSBzY3JvbGxSZWdpc3RlcjogU2Nyb2xsUmVnaXN0ZXIsXG4gICAgcHJpdmF0ZSBzY3JvbGxlclJlc29sdmVyOiBTY3JvbGxSZXNvbHZlclxuICApIHt9XG5cbiAgbmdPbkluaXQoKSB7XG4gICAgaWYgKHR5cGVvZiB3aW5kb3cgIT09ICd1bmRlZmluZWQnKSB7XG4gICAgICBjb25zdCBjb250YWluZXJFbGVtZW50ID0gdGhpcy5yZXNvbHZlQ29udGFpbmVyRWxlbWVudCgpO1xuICAgICAgY29uc3QgcG9zaXRpb25SZXNvbHZlciA9IHRoaXMucG9zaXRpb25SZXNvbHZlckZhY3RvcnkuY3JlYXRlKHtcbiAgICAgICAgd2luZG93RWxlbWVudDogY29udGFpbmVyRWxlbWVudCxcbiAgICAgICAgaG9yaXpvbnRhbDogdGhpcy5faG9yaXpvbnRhbFxuICAgICAgfSk7XG4gICAgICBjb25zdCBvcHRpb25zOiBTY3JvbGxSZWdpc3RlckNvbmZpZyA9IHtcbiAgICAgICAgY29udGFpbmVyOiBwb3NpdGlvblJlc29sdmVyLmNvbnRhaW5lcixcbiAgICAgICAgdGhyb3R0bGVUeXBlOiB0aGlzLnRocm90dGxlVHlwZSxcbiAgICAgICAgdGhyb3R0bGVEdXJhdGlvbjogdGhpcy5fdGhyb3R0bGUsXG4gICAgICAgIGZpbHRlckJlZm9yZTogKCkgPT4gIXRoaXMuX2Rpc2FibGVkLFxuICAgICAgICBtZXJnZU1hcDogKCkgPT4gcG9zaXRpb25SZXNvbHZlci5jYWxjdWxhdGVQb2ludHModGhpcy5lbGVtZW50KSxcbiAgICAgICAgc2Nyb2xsSGFuZGxlcjogKGNvbnRhaW5lcjogUG9zaXRpb25TdGF0cykgPT4gdGhpcy5oYW5kbGVPblNjcm9sbChjb250YWluZXIpXG4gICAgICB9O1xuICAgICAgdGhpcy5kaXNwb3NlU2Nyb2xsZXIgPSB0aGlzLnNjcm9sbFJlZ2lzdGVyLmF0dGFjaEV2ZW50KG9wdGlvbnMpO1xuICAgIH1cbiAgfVxuXG4gIGhhbmRsZU9uU2Nyb2xsKGNvbnRhaW5lcjogUG9zaXRpb25TdGF0cykge1xuICAgIGNvbnN0IHNjcm9sbFJlc29sdmVyQ29uZmlnID0ge1xuICAgICAgZGlzdGFuY2U6IHtcbiAgICAgICAgZG93bjogdGhpcy5fZGlzdGFuY2VEb3duLFxuICAgICAgICB1cDogdGhpcy5fZGlzdGFuY2VVcFxuICAgICAgfVxuICAgIH07XG4gICAgY29uc3Qgc2Nyb2xsU3RhdHM6IFNjcm9sbFN0YXRzID0gdGhpcy5zY3JvbGxlclJlc29sdmVyLmdldFNjcm9sbFN0YXRzKGNvbnRhaW5lciwgc2Nyb2xsUmVzb2x2ZXJDb25maWcpO1xuICAgIGlmICh0aGlzLnNob3VsZFRyaWdnZXJFdmVudHMoc2Nyb2xsU3RhdHMuc2hvdWxkU2Nyb2xsKSkge1xuICAgICAgY29uc3QgaW5maW5pdGVTY3JvbGxFdmVudDogSW5maW5pdGVTY3JvbGxFdmVudCA9IHtcbiAgICAgICAgY3VycmVudFNjcm9sbFBvc2l0aW9uOiBjb250YWluZXIuc2Nyb2xsZWRVbnRpbE5vd1xuICAgICAgfTtcbiAgICAgIGlmIChzY3JvbGxTdGF0cy5pc1Njcm9sbGluZ0Rvd24pIHtcbiAgICAgICAgdGhpcy5vblNjcm9sbERvd24oaW5maW5pdGVTY3JvbGxFdmVudCk7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICB0aGlzLm9uU2Nyb2xsVXAoaW5maW5pdGVTY3JvbGxFdmVudCk7XG4gICAgICB9XG4gICAgfVxuICB9XG5cbiAgc2hvdWxkVHJpZ2dlckV2ZW50cyhzaG91bGRTY3JvbGw6IGJvb2xlYW4pIHtcbiAgICByZXR1cm4gKHRoaXMuX2Fsd2F5c0NhbGxiYWNrIHx8IHNob3VsZFNjcm9sbCkgJiYgIXRoaXMuX2Rpc2FibGVkO1xuICB9XG5cbiAgbmdPbkRlc3Ryb3kgKCkge1xuICAgIGlmICh0aGlzLmRpc3Bvc2VTY3JvbGxlcikge1xuICAgICAgdGhpcy5kaXNwb3NlU2Nyb2xsZXIudW5zdWJzY3JpYmUoKTtcbiAgICB9XG4gIH1cblxuICBvblNjcm9sbERvd24oZGF0YTogSW5maW5pdGVTY3JvbGxFdmVudCA9IHsgY3VycmVudFNjcm9sbFBvc2l0aW9uOiAwIH0pIHtcbiAgICB0aGlzLnpvbmUucnVuKCgpID0+IHRoaXMuc2Nyb2xsZWQuZW1pdChkYXRhKSk7XG4gIH1cblxuICBvblNjcm9sbFVwKGRhdGE6IEluZmluaXRlU2Nyb2xsRXZlbnQgPSB7IGN1cnJlbnRTY3JvbGxQb3NpdGlvbjogMCB9KSB7XG4gICAgdGhpcy56b25lLnJ1bigoKSA9PiB0aGlzLnNjcm9sbGVkVXAuZW1pdChkYXRhKSk7XG4gIH1cblxuICBwcml2YXRlIHJlc29sdmVDb250YWluZXJFbGVtZW50KCk6IGFueSB7XG4gICAgaWYgKHRoaXMuX2NvbnRhaW5lcikge1xuICAgICAgcmV0dXJuIHR5cGVvZih0aGlzLl9jb250YWluZXIpID09PSAnc3RyaW5nJyA/ICB3aW5kb3cuZG9jdW1lbnQucXVlcnlTZWxlY3Rvcih0aGlzLl9jb250YWluZXIpIDogdGhpcy5fY29udGFpbmVyO1xuICAgIH0gZWxzZSB7XG4gICAgICByZXR1cm4gdGhpcy5zY3JvbGxXaW5kb3cgPyB3aW5kb3cgOiB0aGlzLmVsZW1lbnQ7XG4gICAgfVxuICB9XG5zdGF0aWMgZGVjb3JhdG9yczogRGVjb3JhdG9ySW52b2NhdGlvbltdID0gW1xueyB0eXBlOiBEaXJlY3RpdmUsIGFyZ3M6IFt7XG4gIHNlbGVjdG9yOiAnW2luZmluaXRlLXNjcm9sbF0nXG59LCBdIH0sXG5dO1xuLyoqIEBub2NvbGxhcHNlICovXG5zdGF0aWMgY3RvclBhcmFtZXRlcnM6ICgpID0+ICh7dHlwZTogYW55LCBkZWNvcmF0b3JzPzogRGVjb3JhdG9ySW52b2NhdGlvbltdfXxudWxsKVtdID0gKCkgPT4gW1xue3R5cGU6IEVsZW1lbnRSZWYsIH0sXG57dHlwZTogTmdab25lLCB9LFxue3R5cGU6IFBvc2l0aW9uUmVzb2x2ZXJGYWN0b3J5LCB9LFxue3R5cGU6IFNjcm9sbFJlZ2lzdGVyLCB9LFxue3R5cGU6IFNjcm9sbFJlc29sdmVyLCB9LFxuXTtcbnN0YXRpYyBwcm9wRGVjb3JhdG9yczoge1trZXk6IHN0cmluZ106IERlY29yYXRvckludm9jYXRpb25bXX0gPSB7XG4nc2Nyb2xsZWQnOiBbeyB0eXBlOiBPdXRwdXQgfSxdLFxuJ3Njcm9sbGVkVXAnOiBbeyB0eXBlOiBPdXRwdXQgfSxdLFxuJ19kaXN0YW5jZURvd24nOiBbeyB0eXBlOiBJbnB1dCwgYXJnczogWydpbmZpbml0ZVNjcm9sbERpc3RhbmNlJywgXSB9LF0sXG4nX2Rpc3RhbmNlVXAnOiBbeyB0eXBlOiBJbnB1dCwgYXJnczogWydpbmZpbml0ZVNjcm9sbFVwRGlzdGFuY2UnLCBdIH0sXSxcbidfdGhyb3R0bGUnOiBbeyB0eXBlOiBJbnB1dCwgYXJnczogWydpbmZpbml0ZVNjcm9sbFRocm90dGxlJywgXSB9LF0sXG4nX2Rpc2FibGVkJzogW3sgdHlwZTogSW5wdXQsIGFyZ3M6IFsnaW5maW5pdGVTY3JvbGxEaXNhYmxlZCcsIF0gfSxdLFxuJ19jb250YWluZXInOiBbeyB0eXBlOiBJbnB1dCwgYXJnczogWydpbmZpbml0ZVNjcm9sbENvbnRhaW5lcicsIF0gfSxdLFxuJ3Njcm9sbFdpbmRvdyc6IFt7IHR5cGU6IElucHV0LCBhcmdzOiBbJ3Njcm9sbFdpbmRvdycsIF0gfSxdLFxuJ19pbW1lZGlhdGUnOiBbeyB0eXBlOiBJbnB1dCwgYXJnczogWydpbW1lZGlhdGVDaGVjaycsIF0gfSxdLFxuJ19ob3Jpem9udGFsJzogW3sgdHlwZTogSW5wdXQsIGFyZ3M6IFsnaG9yaXpvbnRhbCcsIF0gfSxdLFxuJ19hbHdheXNDYWxsYmFjayc6IFt7IHR5cGU6IElucHV0LCBhcmdzOiBbJ2Fsd2F5c0NhbGxiYWNrJywgXSB9LF0sXG4nZGVib3VuY2UnOiBbeyB0eXBlOiBJbnB1dCB9LF0sXG59O1xufVxuXG5pbnRlcmZhY2UgRGVjb3JhdG9ySW52b2NhdGlvbiB7XG4gIHR5cGU6IEZ1bmN0aW9uO1xuICBhcmdzPzogYW55W107XG59XG4iXX0=\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/angular2-infinite-scroll/src/infinite-scroll.js\n// module id = 282\n// module chunks = 0","\"use strict\";\nvar core_1 = require('@angular/core');\nvar Observable_1 = require('rxjs/Observable');\nrequire('rxjs/add/observable/fromEvent');\nrequire('rxjs/add/observable/timer');\nrequire('rxjs/add/observable/of');\nrequire('rxjs/add/operator/debounce');\nrequire('rxjs/add/operator/throttle');\nrequire('rxjs/add/operator/filter');\nrequire('rxjs/add/operator/mergeMap');\nvar ScrollRegister = (function () {\n    function ScrollRegister() {\n    }\n    ScrollRegister.prototype.attachEvent = function (options) {\n        var scroller$ = Observable_1.Observable.fromEvent(options.container, 'scroll')[options.throttleType](function () { return Observable_1.Observable.timer(options.throttleDuration); })\n            .filter(options.filterBefore)\n            .mergeMap(function (ev) { return Observable_1.Observable.of(options.mergeMap(ev)); })\n            .subscribe(options.scrollHandler);\n        return scroller$;\n    };\n    ScrollRegister.decorators = [\n        { type: core_1.Injectable },\n    ];\n    /** @nocollapse */\n    ScrollRegister.ctorParameters = function () { return []; };\n    return ScrollRegister;\n}());\nexports.ScrollRegister = ScrollRegister;\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2Nyb2xsLXJlZ2lzdGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsic2Nyb2xsLXJlZ2lzdGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFDQSxxQkFBdUMsZUFBZSxDQUFDLENBQUE7QUFDdkQsMkJBQTJCLGlCQUFpQixDQUFDLENBQUE7QUFFN0MsUUFBTywrQkFBK0IsQ0FBQyxDQUFBO0FBQ3ZDLFFBQU8sMkJBQTJCLENBQUMsQ0FBQTtBQUNuQyxRQUFPLHdCQUF3QixDQUFDLENBQUE7QUFDaEMsUUFBTyw0QkFBNEIsQ0FBQyxDQUFBO0FBQ3BDLFFBQU8sNEJBQTRCLENBQUMsQ0FBQTtBQUNwQyxRQUFPLDBCQUEwQixDQUFDLENBQUE7QUFDbEMsUUFBTyw0QkFBNEIsQ0FBQyxDQUFBO0FBYXBDO0lBQUE7SUFlQSxDQUFDO0lBZEMsb0NBQVcsR0FBWCxVQUFhLE9BQTZCO1FBQ3hDLElBQU0sU0FBUyxHQUFpQix1QkFBVSxDQUFDLFNBQVMsQ0FBQyxPQUFPLENBQUMsU0FBUyxFQUFFLFFBQVEsQ0FBQyxDQUM5RSxPQUFPLENBQUMsWUFBWSxDQUFDLENBQUMsY0FBTSxPQUFBLHVCQUFVLENBQUMsS0FBSyxDQUFDLE9BQU8sQ0FBQyxnQkFBZ0IsQ0FBQyxFQUExQyxDQUEwQyxDQUFDO2FBQ3ZFLE1BQU0sQ0FBQyxPQUFPLENBQUMsWUFBWSxDQUFDO2FBQzVCLFFBQVEsQ0FBQyxVQUFDLEVBQU8sSUFBSyxPQUFBLHVCQUFVLENBQUMsRUFBRSxDQUFDLE9BQU8sQ0FBQyxRQUFRLENBQUMsRUFBRSxDQUFDLENBQUMsRUFBbkMsQ0FBbUMsQ0FBQzthQUMxRCxTQUFTLENBQUMsT0FBTyxDQUFDLGFBQWEsQ0FBQyxDQUFDO1FBQ3BDLE1BQU0sQ0FBQyxTQUFTLENBQUM7SUFDbkIsQ0FBQztJQUNJLHlCQUFVLEdBQTBCO1FBQzNDLEVBQUUsSUFBSSxFQUFFLGlCQUFVLEVBQUU7S0FDbkIsQ0FBQztJQUNGLGtCQUFrQjtJQUNYLDZCQUFjLEdBQW1FLGNBQU0sT0FBQSxFQUM3RixFQUQ2RixDQUM3RixDQUFDO0lBQ0YscUJBQUM7QUFBRCxDQUFDLEFBZkQsSUFlQztBQWZZLHNCQUFjLGlCQWUxQixDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29udGFpbmVyUmVmIH0gZnJvbSAnLi9tb2RlbHMnO1xuaW1wb3J0IHsgSW5qZWN0YWJsZSwgRWxlbWVudFJlZiB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHsgT2JzZXJ2YWJsZSB9IGZyb20gJ3J4anMvT2JzZXJ2YWJsZSc7XG5pbXBvcnQgeyBTdWJzY3JpcHRpb24gfSBmcm9tICdyeGpzL1N1YnNjcmlwdGlvbic7XG5pbXBvcnQgJ3J4anMvYWRkL29ic2VydmFibGUvZnJvbUV2ZW50JztcbmltcG9ydCAncnhqcy9hZGQvb2JzZXJ2YWJsZS90aW1lcic7XG5pbXBvcnQgJ3J4anMvYWRkL29ic2VydmFibGUvb2YnO1xuaW1wb3J0ICdyeGpzL2FkZC9vcGVyYXRvci9kZWJvdW5jZSc7XG5pbXBvcnQgJ3J4anMvYWRkL29wZXJhdG9yL3Rocm90dGxlJztcbmltcG9ydCAncnhqcy9hZGQvb3BlcmF0b3IvZmlsdGVyJztcbmltcG9ydCAncnhqcy9hZGQvb3BlcmF0b3IvbWVyZ2VNYXAnO1xuXG5cbmV4cG9ydCBpbnRlcmZhY2UgU2Nyb2xsUmVnaXN0ZXJDb25maWcge1xuICBjb250YWluZXI6IENvbnRhaW5lclJlZjtcbiAgdGhyb3R0bGVUeXBlOiBzdHJpbmc7XG4gIHRocm90dGxlRHVyYXRpb246IG51bWJlcjtcbiAgZmlsdGVyQmVmb3JlOiBGdW5jdGlvbjtcbiAgbWVyZ2VNYXA6IEZ1bmN0aW9uO1xuICBzY3JvbGxIYW5kbGVyOiBGdW5jdGlvbjtcbn1cblxuXG5leHBvcnQgY2xhc3MgU2Nyb2xsUmVnaXN0ZXIge1xuICBhdHRhY2hFdmVudCAob3B0aW9uczogU2Nyb2xsUmVnaXN0ZXJDb25maWcpOiBTdWJzY3JpcHRpb24ge1xuICAgIGNvbnN0IHNjcm9sbGVyJDogU3Vic2NyaXB0aW9uID0gT2JzZXJ2YWJsZS5mcm9tRXZlbnQob3B0aW9ucy5jb250YWluZXIsICdzY3JvbGwnKVxuICAgICAgW29wdGlvbnMudGhyb3R0bGVUeXBlXSgoKSA9PiBPYnNlcnZhYmxlLnRpbWVyKG9wdGlvbnMudGhyb3R0bGVEdXJhdGlvbikpXG4gICAgICAuZmlsdGVyKG9wdGlvbnMuZmlsdGVyQmVmb3JlKVxuICAgICAgLm1lcmdlTWFwKChldjogYW55KSA9PiBPYnNlcnZhYmxlLm9mKG9wdGlvbnMubWVyZ2VNYXAoZXYpKSlcbiAgICAgIC5zdWJzY3JpYmUob3B0aW9ucy5zY3JvbGxIYW5kbGVyKTtcbiAgICByZXR1cm4gc2Nyb2xsZXIkO1xuICB9XG5zdGF0aWMgZGVjb3JhdG9yczogRGVjb3JhdG9ySW52b2NhdGlvbltdID0gW1xueyB0eXBlOiBJbmplY3RhYmxlIH0sXG5dO1xuLyoqIEBub2NvbGxhcHNlICovXG5zdGF0aWMgY3RvclBhcmFtZXRlcnM6ICgpID0+ICh7dHlwZTogYW55LCBkZWNvcmF0b3JzPzogRGVjb3JhdG9ySW52b2NhdGlvbltdfXxudWxsKVtdID0gKCkgPT4gW1xuXTtcbn1cblxuaW50ZXJmYWNlIERlY29yYXRvckludm9jYXRpb24ge1xuICB0eXBlOiBGdW5jdGlvbjtcbiAgYXJncz86IGFueVtdO1xufVxuIl19\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/angular2-infinite-scroll/src/scroll-register.js\n// module id = 283\n// module chunks = 0","\"use strict\";\nvar core_1 = require('@angular/core');\nvar ScrollResolver = (function () {\n    function ScrollResolver() {\n        this.lastScrollPosition = 0;\n    }\n    ScrollResolver.prototype.shouldScroll = function (container, config, scrollingDown) {\n        var distance = config.distance;\n        var remaining;\n        var containerBreakpoint;\n        if (scrollingDown) {\n            remaining = container.totalToScroll - container.scrolledUntilNow;\n            containerBreakpoint = container.height * distance.down + 1;\n        }\n        else {\n            remaining = container.scrolledUntilNow;\n            containerBreakpoint = container.height * distance.up + 1;\n        }\n        var shouldScroll = remaining <= containerBreakpoint;\n        this.lastScrollPosition = container.scrolledUntilNow;\n        return shouldScroll;\n    };\n    ScrollResolver.prototype.isScrollingDown = function (container) {\n        return this.lastScrollPosition < container.scrolledUntilNow;\n    };\n    ScrollResolver.prototype.getScrollStats = function (container, config) {\n        var isScrollingDown = this.isScrollingDown(container);\n        var shouldScroll = this.shouldScroll(container, config, isScrollingDown);\n        return { isScrollingDown: isScrollingDown, shouldScroll: shouldScroll };\n    };\n    ScrollResolver.decorators = [\n        { type: core_1.Injectable },\n    ];\n    /** @nocollapse */\n    ScrollResolver.ctorParameters = function () { return []; };\n    return ScrollResolver;\n}());\nexports.ScrollResolver = ScrollResolver;\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2Nyb2xsLXJlc29sdmVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsic2Nyb2xsLXJlc29sdmVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFDQSxxQkFBMkIsZUFBZSxDQUFDLENBQUE7QUFHM0M7SUFBQTtRQUNTLHVCQUFrQixHQUFXLENBQUMsQ0FBQztJQWlDeEMsQ0FBQztJQS9CQyxxQ0FBWSxHQUFaLFVBQWMsU0FBd0IsRUFBRSxNQUFzQixFQUFFLGFBQXNCO1FBQ3BGLElBQU0sUUFBUSxHQUFHLE1BQU0sQ0FBQyxRQUFRLENBQUM7UUFDakMsSUFBSSxTQUFpQixDQUFDO1FBQ3RCLElBQUksbUJBQTJCLENBQUM7UUFDaEMsRUFBRSxDQUFDLENBQUMsYUFBYSxDQUFDLENBQUMsQ0FBQztZQUNsQixTQUFTLEdBQUcsU0FBUyxDQUFDLGFBQWEsR0FBRyxTQUFTLENBQUMsZ0JBQWdCLENBQUM7WUFDakUsbUJBQW1CLEdBQUcsU0FBUyxDQUFDLE1BQU0sR0FBRyxRQUFRLENBQUMsSUFBSSxHQUFHLENBQUMsQ0FBQztRQUM3RCxDQUFDO1FBQUMsSUFBSSxDQUFDLENBQUM7WUFDTixTQUFTLEdBQUcsU0FBUyxDQUFDLGdCQUFnQixDQUFDO1lBQ3ZDLG1CQUFtQixHQUFHLFNBQVMsQ0FBQyxNQUFNLEdBQUcsUUFBUSxDQUFDLEVBQUUsR0FBRyxDQUFDLENBQUM7UUFDM0QsQ0FBQztRQUNELElBQU0sWUFBWSxHQUFZLFNBQVMsSUFBSSxtQkFBbUIsQ0FBQztRQUMvRCxJQUFJLENBQUMsa0JBQWtCLEdBQUcsU0FBUyxDQUFDLGdCQUFnQixDQUFDO1FBQ3JELE1BQU0sQ0FBQyxZQUFZLENBQUM7SUFDdEIsQ0FBQztJQUVELHdDQUFlLEdBQWYsVUFBaUIsU0FBd0I7UUFDdkMsTUFBTSxDQUFDLElBQUksQ0FBQyxrQkFBa0IsR0FBRyxTQUFTLENBQUMsZ0JBQWdCLENBQUM7SUFDOUQsQ0FBQztJQUVELHVDQUFjLEdBQWQsVUFBZ0IsU0FBd0IsRUFBRSxNQUFzQjtRQUM5RCxJQUFNLGVBQWUsR0FBRyxJQUFJLENBQUMsZUFBZSxDQUFDLFNBQVMsQ0FBQyxDQUFDO1FBQ3hELElBQU0sWUFBWSxHQUFHLElBQUksQ0FBQyxZQUFZLENBQUMsU0FBUyxFQUFFLE1BQU0sRUFBRSxlQUFlLENBQUMsQ0FBQztRQUMzRSxNQUFNLENBQUMsRUFBRSxnQ0FBZSxFQUFFLDBCQUFZLEVBQUUsQ0FBQztJQUMzQyxDQUFDO0lBQ0kseUJBQVUsR0FBMEI7UUFDM0MsRUFBRSxJQUFJLEVBQUUsaUJBQVUsRUFBRTtLQUNuQixDQUFDO0lBQ0Ysa0JBQWtCO0lBQ1gsNkJBQWMsR0FBbUUsY0FBTSxPQUFBLEVBQzdGLEVBRDZGLENBQzdGLENBQUM7SUFDRixxQkFBQztBQUFELENBQUMsQUFsQ0QsSUFrQ0M7QUFsQ1ksc0JBQWMsaUJBa0MxQixDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgUG9zaXRpb25TdGF0cywgU2Nyb2xsZXJDb25maWcgfSBmcm9tICcuL21vZGVscyc7XG5pbXBvcnQgeyBJbmplY3RhYmxlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cblxuZXhwb3J0IGNsYXNzIFNjcm9sbFJlc29sdmVyIHtcbiAgcHVibGljIGxhc3RTY3JvbGxQb3NpdGlvbjogbnVtYmVyID0gMDtcblxuICBzaG91bGRTY3JvbGwgKGNvbnRhaW5lcjogUG9zaXRpb25TdGF0cywgY29uZmlnOiBTY3JvbGxlckNvbmZpZywgc2Nyb2xsaW5nRG93bjogYm9vbGVhbikge1xuICAgIGNvbnN0IGRpc3RhbmNlID0gY29uZmlnLmRpc3RhbmNlO1xuICAgIGxldCByZW1haW5pbmc6IG51bWJlcjtcbiAgICBsZXQgY29udGFpbmVyQnJlYWtwb2ludDogbnVtYmVyO1xuICAgIGlmIChzY3JvbGxpbmdEb3duKSB7XG4gICAgICByZW1haW5pbmcgPSBjb250YWluZXIudG90YWxUb1Njcm9sbCAtIGNvbnRhaW5lci5zY3JvbGxlZFVudGlsTm93O1xuICAgICAgY29udGFpbmVyQnJlYWtwb2ludCA9IGNvbnRhaW5lci5oZWlnaHQgKiBkaXN0YW5jZS5kb3duICsgMTtcbiAgICB9IGVsc2Uge1xuICAgICAgcmVtYWluaW5nID0gY29udGFpbmVyLnNjcm9sbGVkVW50aWxOb3c7XG4gICAgICBjb250YWluZXJCcmVha3BvaW50ID0gY29udGFpbmVyLmhlaWdodCAqIGRpc3RhbmNlLnVwICsgMTtcbiAgICB9XG4gICAgY29uc3Qgc2hvdWxkU2Nyb2xsOiBib29sZWFuID0gcmVtYWluaW5nIDw9IGNvbnRhaW5lckJyZWFrcG9pbnQ7XG4gICAgdGhpcy5sYXN0U2Nyb2xsUG9zaXRpb24gPSBjb250YWluZXIuc2Nyb2xsZWRVbnRpbE5vdztcbiAgICByZXR1cm4gc2hvdWxkU2Nyb2xsO1xuICB9XG5cbiAgaXNTY3JvbGxpbmdEb3duIChjb250YWluZXI6IFBvc2l0aW9uU3RhdHMpIHtcbiAgICByZXR1cm4gdGhpcy5sYXN0U2Nyb2xsUG9zaXRpb24gPCBjb250YWluZXIuc2Nyb2xsZWRVbnRpbE5vdztcbiAgfVxuXG4gIGdldFNjcm9sbFN0YXRzIChjb250YWluZXI6IFBvc2l0aW9uU3RhdHMsIGNvbmZpZzogU2Nyb2xsZXJDb25maWcpIHtcbiAgICBjb25zdCBpc1Njcm9sbGluZ0Rvd24gPSB0aGlzLmlzU2Nyb2xsaW5nRG93bihjb250YWluZXIpO1xuICAgIGNvbnN0IHNob3VsZFNjcm9sbCA9IHRoaXMuc2hvdWxkU2Nyb2xsKGNvbnRhaW5lciwgY29uZmlnLCBpc1Njcm9sbGluZ0Rvd24pO1xuICAgIHJldHVybiB7IGlzU2Nyb2xsaW5nRG93biwgc2hvdWxkU2Nyb2xsIH07XG4gIH1cbnN0YXRpYyBkZWNvcmF0b3JzOiBEZWNvcmF0b3JJbnZvY2F0aW9uW10gPSBbXG57IHR5cGU6IEluamVjdGFibGUgfSxcbl07XG4vKiogQG5vY29sbGFwc2UgKi9cbnN0YXRpYyBjdG9yUGFyYW1ldGVyczogKCkgPT4gKHt0eXBlOiBhbnksIGRlY29yYXRvcnM/OiBEZWNvcmF0b3JJbnZvY2F0aW9uW119fG51bGwpW10gPSAoKSA9PiBbXG5dO1xufVxuXG5pbnRlcmZhY2UgRGVjb3JhdG9ySW52b2NhdGlvbiB7XG4gIHR5cGU6IEZ1bmN0aW9uO1xuICBhcmdzPzogYW55W107XG59XG4iXX0=\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/angular2-infinite-scroll/src/scroll-resolver.js\n// module id = 284\n// module chunks = 0","import { KeyStorageHelper, WebStorageHelper } from '../helpers/index';\r\nimport { STORAGE } from '../enums/storage';\r\nexport function WebStorage(webSKey, sType) {\r\n    return function (targetedClass, raw) {\r\n        WebStorageDecorator(webSKey, STORAGE.local, targetedClass, raw);\r\n    };\r\n}\r\n;\r\nexport function WebStorageDecorator(webSKey, sType, targetedClass, raw) {\r\n    var key = webSKey || raw;\r\n    Object.defineProperty(targetedClass, raw, {\r\n        get: function () {\r\n            var sKey = KeyStorageHelper.genKey(key);\r\n            return WebStorageHelper.retrieve(sType, sKey);\r\n        },\r\n        set: function (value) {\r\n            var sKey = KeyStorageHelper.genKey(key);\r\n            this[sKey] = value;\r\n            WebStorageHelper.store(sType, sKey, value);\r\n        }\r\n    });\r\n}\r\n;\r\n//# sourceMappingURL=webStorage.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ng2-webstorage/dist/decorators/webStorage.js\n// module id = 306\n// module chunks = 0","import { LIB_KEY, LIB_KEY_SEPARATOR } from '../constants/lib';\r\nvar CUSTOM_LIB_KEY = LIB_KEY;\r\nvar CUSTOM_LIB_KEY_SEPARATOR = LIB_KEY_SEPARATOR;\r\nexport var KeyStorageHelper = (function () {\r\n    function KeyStorageHelper() {\r\n    }\r\n    KeyStorageHelper.isManagedKey = function (sKey) {\r\n        return sKey.indexOf(CUSTOM_LIB_KEY + CUSTOM_LIB_KEY_SEPARATOR) === 0;\r\n    };\r\n    KeyStorageHelper.retrieveKeysFromStorage = function (storage) {\r\n        return Object.keys(storage).filter(function (key) { return key.indexOf(CUSTOM_LIB_KEY) === 0; });\r\n    };\r\n    KeyStorageHelper.genKey = function (raw) {\r\n        if (typeof raw !== 'string')\r\n            throw Error('attempt to generate a storage key with a non string value');\r\n        return \"\" + CUSTOM_LIB_KEY + CUSTOM_LIB_KEY_SEPARATOR + raw.toString().toLowerCase();\r\n    };\r\n    KeyStorageHelper.setStorageKeyPrefix = function (key) {\r\n        if (key === void 0) { key = LIB_KEY; }\r\n        CUSTOM_LIB_KEY = key;\r\n    };\r\n    KeyStorageHelper.setStorageKeySeparator = function (separator) {\r\n        if (separator === void 0) { separator = LIB_KEY_SEPARATOR; }\r\n        CUSTOM_LIB_KEY_SEPARATOR = separator;\r\n    };\r\n    return KeyStorageHelper;\r\n}());\r\n//# sourceMappingURL=keyStorage.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ng2-webstorage/dist/helpers/keyStorage.js\n// module id = 307\n// module chunks = 0","import { KeyStorageHelper, WebStorageHelper, StorageObserverHelper } from '../helpers/index';\r\nexport var WebStorageService = (function () {\r\n    function WebStorageService(sType) {\r\n        if (sType === void 0) { sType = null; }\r\n        this.sType = sType;\r\n        this.sType = sType;\r\n    }\r\n    WebStorageService.prototype.store = function (raw, value) {\r\n        var sKey = KeyStorageHelper.genKey(raw);\r\n        WebStorageHelper.store(this.sType, sKey, value);\r\n    };\r\n    WebStorageService.prototype.retrieve = function (raw) {\r\n        var sKey = KeyStorageHelper.genKey(raw);\r\n        return WebStorageHelper.retrieve(this.sType, sKey);\r\n    };\r\n    WebStorageService.prototype.clear = function (raw) {\r\n        if (raw)\r\n            WebStorageHelper.clear(this.sType, KeyStorageHelper.genKey(raw));\r\n        else\r\n            WebStorageHelper.clearAll(this.sType);\r\n    };\r\n    WebStorageService.prototype.observe = function (raw) {\r\n        var sKey = KeyStorageHelper.genKey(raw);\r\n        return StorageObserverHelper.observe(this.sType, sKey);\r\n    };\r\n    return WebStorageService;\r\n}());\r\n//# sourceMappingURL=webStorage.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ng2-webstorage/dist/services/webStorage.js\n// module id = 308\n// module chunks = 0","'use strict'\n\nmodule.exports = function promiseWaterfall (callbacks) {\n  // Don't assume we're running in an environment with promises\n  return callbacks.reduce(function (accumulator, callback) {\n    return accumulator.then(callback)\n  }, Promise.resolve())\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/promise.waterfall/index.js\n// module id = 309\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subject_1 = require('./Subject');\nvar queue_1 = require('./scheduler/queue');\nvar Subscription_1 = require('./Subscription');\nvar observeOn_1 = require('./operator/observeOn');\nvar ObjectUnsubscribedError_1 = require('./util/ObjectUnsubscribedError');\nvar SubjectSubscription_1 = require('./SubjectSubscription');\n/**\n * @class ReplaySubject<T>\n */\nvar ReplaySubject = (function (_super) {\n    __extends(ReplaySubject, _super);\n    function ReplaySubject(bufferSize, windowTime, scheduler) {\n        if (bufferSize === void 0) { bufferSize = Number.POSITIVE_INFINITY; }\n        if (windowTime === void 0) { windowTime = Number.POSITIVE_INFINITY; }\n        _super.call(this);\n        this.scheduler = scheduler;\n        this._events = [];\n        this._bufferSize = bufferSize < 1 ? 1 : bufferSize;\n        this._windowTime = windowTime < 1 ? 1 : windowTime;\n    }\n    ReplaySubject.prototype.next = function (value) {\n        var now = this._getNow();\n        this._events.push(new ReplayEvent(now, value));\n        this._trimBufferThenGetEvents();\n        _super.prototype.next.call(this, value);\n    };\n    ReplaySubject.prototype._subscribe = function (subscriber) {\n        var _events = this._trimBufferThenGetEvents();\n        var scheduler = this.scheduler;\n        var subscription;\n        if (this.closed) {\n            throw new ObjectUnsubscribedError_1.ObjectUnsubscribedError();\n        }\n        else if (this.hasError) {\n            subscription = Subscription_1.Subscription.EMPTY;\n        }\n        else if (this.isStopped) {\n            subscription = Subscription_1.Subscription.EMPTY;\n        }\n        else {\n            this.observers.push(subscriber);\n            subscription = new SubjectSubscription_1.SubjectSubscription(this, subscriber);\n        }\n        if (scheduler) {\n            subscriber.add(subscriber = new observeOn_1.ObserveOnSubscriber(subscriber, scheduler));\n        }\n        var len = _events.length;\n        for (var i = 0; i < len && !subscriber.closed; i++) {\n            subscriber.next(_events[i].value);\n        }\n        if (this.hasError) {\n            subscriber.error(this.thrownError);\n        }\n        else if (this.isStopped) {\n            subscriber.complete();\n        }\n        return subscription;\n    };\n    ReplaySubject.prototype._getNow = function () {\n        return (this.scheduler || queue_1.queue).now();\n    };\n    ReplaySubject.prototype._trimBufferThenGetEvents = function () {\n        var now = this._getNow();\n        var _bufferSize = this._bufferSize;\n        var _windowTime = this._windowTime;\n        var _events = this._events;\n        var eventsCount = _events.length;\n        var spliceCount = 0;\n        // Trim events that fall out of the time window.\n        // Start at the front of the list. Break early once\n        // we encounter an event that falls within the window.\n        while (spliceCount < eventsCount) {\n            if ((now - _events[spliceCount].time) < _windowTime) {\n                break;\n            }\n            spliceCount++;\n        }\n        if (eventsCount > _bufferSize) {\n            spliceCount = Math.max(spliceCount, eventsCount - _bufferSize);\n        }\n        if (spliceCount > 0) {\n            _events.splice(0, spliceCount);\n        }\n        return _events;\n    };\n    return ReplaySubject;\n}(Subject_1.Subject));\nexports.ReplaySubject = ReplaySubject;\nvar ReplayEvent = (function () {\n    function ReplayEvent(time, value) {\n        this.time = time;\n        this.value = value;\n    }\n    return ReplayEvent;\n}());\n//# sourceMappingURL=ReplaySubject.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/ReplaySubject.js\n// module id = 310\n// module chunks = 0","\"use strict\";\n/* tslint:disable:no-unused-variable */\n// Subject imported before Observable to bypass circular dependency issue since\n// Subject extends Observable and Observable references Subject in it's\n// definition\nvar Subject_1 = require('./Subject');\nexports.Subject = Subject_1.Subject;\nexports.AnonymousSubject = Subject_1.AnonymousSubject;\n/* tslint:enable:no-unused-variable */\nvar Observable_1 = require('./Observable');\nexports.Observable = Observable_1.Observable;\n// statics\n/* tslint:disable:no-use-before-declare */\nrequire('./add/observable/bindCallback');\nrequire('./add/observable/bindNodeCallback');\nrequire('./add/observable/combineLatest');\nrequire('./add/observable/concat');\nrequire('./add/observable/defer');\nrequire('./add/observable/empty');\nrequire('./add/observable/forkJoin');\nrequire('./add/observable/from');\nrequire('./add/observable/fromEvent');\nrequire('./add/observable/fromEventPattern');\nrequire('./add/observable/fromPromise');\nrequire('./add/observable/generate');\nrequire('./add/observable/if');\nrequire('./add/observable/interval');\nrequire('./add/observable/merge');\nrequire('./add/observable/race');\nrequire('./add/observable/never');\nrequire('./add/observable/of');\nrequire('./add/observable/onErrorResumeNext');\nrequire('./add/observable/pairs');\nrequire('./add/observable/range');\nrequire('./add/observable/using');\nrequire('./add/observable/throw');\nrequire('./add/observable/timer');\nrequire('./add/observable/zip');\n//dom\nrequire('./add/observable/dom/ajax');\nrequire('./add/observable/dom/webSocket');\n//operators\nrequire('./add/operator/buffer');\nrequire('./add/operator/bufferCount');\nrequire('./add/operator/bufferTime');\nrequire('./add/operator/bufferToggle');\nrequire('./add/operator/bufferWhen');\nrequire('./add/operator/catch');\nrequire('./add/operator/combineAll');\nrequire('./add/operator/combineLatest');\nrequire('./add/operator/concat');\nrequire('./add/operator/concatAll');\nrequire('./add/operator/concatMap');\nrequire('./add/operator/concatMapTo');\nrequire('./add/operator/count');\nrequire('./add/operator/dematerialize');\nrequire('./add/operator/debounce');\nrequire('./add/operator/debounceTime');\nrequire('./add/operator/defaultIfEmpty');\nrequire('./add/operator/delay');\nrequire('./add/operator/delayWhen');\nrequire('./add/operator/distinct');\nrequire('./add/operator/distinctUntilChanged');\nrequire('./add/operator/distinctUntilKeyChanged');\nrequire('./add/operator/do');\nrequire('./add/operator/exhaust');\nrequire('./add/operator/exhaustMap');\nrequire('./add/operator/expand');\nrequire('./add/operator/elementAt');\nrequire('./add/operator/filter');\nrequire('./add/operator/finally');\nrequire('./add/operator/find');\nrequire('./add/operator/findIndex');\nrequire('./add/operator/first');\nrequire('./add/operator/groupBy');\nrequire('./add/operator/ignoreElements');\nrequire('./add/operator/isEmpty');\nrequire('./add/operator/audit');\nrequire('./add/operator/auditTime');\nrequire('./add/operator/last');\nrequire('./add/operator/let');\nrequire('./add/operator/every');\nrequire('./add/operator/map');\nrequire('./add/operator/mapTo');\nrequire('./add/operator/materialize');\nrequire('./add/operator/max');\nrequire('./add/operator/merge');\nrequire('./add/operator/mergeAll');\nrequire('./add/operator/mergeMap');\nrequire('./add/operator/mergeMapTo');\nrequire('./add/operator/mergeScan');\nrequire('./add/operator/min');\nrequire('./add/operator/multicast');\nrequire('./add/operator/observeOn');\nrequire('./add/operator/onErrorResumeNext');\nrequire('./add/operator/pairwise');\nrequire('./add/operator/partition');\nrequire('./add/operator/pluck');\nrequire('./add/operator/publish');\nrequire('./add/operator/publishBehavior');\nrequire('./add/operator/publishReplay');\nrequire('./add/operator/publishLast');\nrequire('./add/operator/race');\nrequire('./add/operator/reduce');\nrequire('./add/operator/repeat');\nrequire('./add/operator/repeatWhen');\nrequire('./add/operator/retry');\nrequire('./add/operator/retryWhen');\nrequire('./add/operator/sample');\nrequire('./add/operator/sampleTime');\nrequire('./add/operator/scan');\nrequire('./add/operator/sequenceEqual');\nrequire('./add/operator/share');\nrequire('./add/operator/single');\nrequire('./add/operator/skip');\nrequire('./add/operator/skipUntil');\nrequire('./add/operator/skipWhile');\nrequire('./add/operator/startWith');\nrequire('./add/operator/subscribeOn');\nrequire('./add/operator/switch');\nrequire('./add/operator/switchMap');\nrequire('./add/operator/switchMapTo');\nrequire('./add/operator/take');\nrequire('./add/operator/takeLast');\nrequire('./add/operator/takeUntil');\nrequire('./add/operator/takeWhile');\nrequire('./add/operator/throttle');\nrequire('./add/operator/throttleTime');\nrequire('./add/operator/timeInterval');\nrequire('./add/operator/timeout');\nrequire('./add/operator/timeoutWith');\nrequire('./add/operator/timestamp');\nrequire('./add/operator/toArray');\nrequire('./add/operator/toPromise');\nrequire('./add/operator/window');\nrequire('./add/operator/windowCount');\nrequire('./add/operator/windowTime');\nrequire('./add/operator/windowToggle');\nrequire('./add/operator/windowWhen');\nrequire('./add/operator/withLatestFrom');\nrequire('./add/operator/zip');\nrequire('./add/operator/zipAll');\n/* tslint:disable:no-unused-variable */\nvar Subscription_1 = require('./Subscription');\nexports.Subscription = Subscription_1.Subscription;\nvar Subscriber_1 = require('./Subscriber');\nexports.Subscriber = Subscriber_1.Subscriber;\nvar AsyncSubject_1 = require('./AsyncSubject');\nexports.AsyncSubject = AsyncSubject_1.AsyncSubject;\nvar ReplaySubject_1 = require('./ReplaySubject');\nexports.ReplaySubject = ReplaySubject_1.ReplaySubject;\nvar BehaviorSubject_1 = require('./BehaviorSubject');\nexports.BehaviorSubject = BehaviorSubject_1.BehaviorSubject;\nvar ConnectableObservable_1 = require('./observable/ConnectableObservable');\nexports.ConnectableObservable = ConnectableObservable_1.ConnectableObservable;\nvar Notification_1 = require('./Notification');\nexports.Notification = Notification_1.Notification;\nvar EmptyError_1 = require('./util/EmptyError');\nexports.EmptyError = EmptyError_1.EmptyError;\nvar ArgumentOutOfRangeError_1 = require('./util/ArgumentOutOfRangeError');\nexports.ArgumentOutOfRangeError = ArgumentOutOfRangeError_1.ArgumentOutOfRangeError;\nvar ObjectUnsubscribedError_1 = require('./util/ObjectUnsubscribedError');\nexports.ObjectUnsubscribedError = ObjectUnsubscribedError_1.ObjectUnsubscribedError;\nvar TimeoutError_1 = require('./util/TimeoutError');\nexports.TimeoutError = TimeoutError_1.TimeoutError;\nvar UnsubscriptionError_1 = require('./util/UnsubscriptionError');\nexports.UnsubscriptionError = UnsubscriptionError_1.UnsubscriptionError;\nvar timeInterval_1 = require('./operator/timeInterval');\nexports.TimeInterval = timeInterval_1.TimeInterval;\nvar timestamp_1 = require('./operator/timestamp');\nexports.Timestamp = timestamp_1.Timestamp;\nvar TestScheduler_1 = require('./testing/TestScheduler');\nexports.TestScheduler = TestScheduler_1.TestScheduler;\nvar VirtualTimeScheduler_1 = require('./scheduler/VirtualTimeScheduler');\nexports.VirtualTimeScheduler = VirtualTimeScheduler_1.VirtualTimeScheduler;\nvar AjaxObservable_1 = require('./observable/dom/AjaxObservable');\nexports.AjaxResponse = AjaxObservable_1.AjaxResponse;\nexports.AjaxError = AjaxObservable_1.AjaxError;\nexports.AjaxTimeoutError = AjaxObservable_1.AjaxTimeoutError;\nvar asap_1 = require('./scheduler/asap');\nvar async_1 = require('./scheduler/async');\nvar queue_1 = require('./scheduler/queue');\nvar animationFrame_1 = require('./scheduler/animationFrame');\nvar rxSubscriber_1 = require('./symbol/rxSubscriber');\nvar iterator_1 = require('./symbol/iterator');\nvar observable_1 = require('./symbol/observable');\n/* tslint:enable:no-unused-variable */\n/**\n * @typedef {Object} Rx.Scheduler\n * @property {Scheduler} queue Schedules on a queue in the current event frame\n * (trampoline scheduler). Use this for iteration operations.\n * @property {Scheduler} asap Schedules on the micro task queue, which uses the\n * fastest transport mechanism available, either Node.js' `process.nextTick()`\n * or Web Worker MessageChannel or setTimeout or others. Use this for\n * asynchronous conversions.\n * @property {Scheduler} async Schedules work with `setInterval`. Use this for\n * time-based operations.\n * @property {Scheduler} animationFrame Schedules work with `requestAnimationFrame`.\n * Use this for synchronizing with the platform's painting\n */\nvar Scheduler = {\n    asap: asap_1.asap,\n    queue: queue_1.queue,\n    animationFrame: animationFrame_1.animationFrame,\n    async: async_1.async\n};\nexports.Scheduler = Scheduler;\n/**\n * @typedef {Object} Rx.Symbol\n * @property {Symbol|string} rxSubscriber A symbol to use as a property name to\n * retrieve an \"Rx safe\" Observer from an object. \"Rx safety\" can be defined as\n * an object that has all of the traits of an Rx Subscriber, including the\n * ability to add and remove subscriptions to the subscription chain and\n * guarantees involving event triggering (can't \"next\" after unsubscription,\n * etc).\n * @property {Symbol|string} observable A symbol to use as a property name to\n * retrieve an Observable as defined by the [ECMAScript \"Observable\" spec](https://github.com/zenparsing/es-observable).\n * @property {Symbol|string} iterator The ES6 symbol to use as a property name\n * to retrieve an iterator from an object.\n */\nvar Symbol = {\n    rxSubscriber: rxSubscriber_1.$$rxSubscriber,\n    observable: observable_1.$$observable,\n    iterator: iterator_1.$$iterator\n};\nexports.Symbol = Symbol;\n//# sourceMappingURL=Rx.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/Rx.js\n// module id = 311\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar fromEvent_1 = require('../../observable/fromEvent');\nObservable_1.Observable.fromEvent = fromEvent_1.fromEvent;\n//# sourceMappingURL=fromEvent.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/observable/fromEvent.js\n// module id = 312\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar of_1 = require('../../observable/of');\nObservable_1.Observable.of = of_1.of;\n//# sourceMappingURL=of.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/observable/of.js\n// module id = 313\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar ArrayObservable_1 = require('../observable/ArrayObservable');\nvar isArray_1 = require('../util/isArray');\nvar OuterSubscriber_1 = require('../OuterSubscriber');\nvar subscribeToResult_1 = require('../util/subscribeToResult');\nvar none = {};\n/* tslint:disable:max-line-length */\n/**\n * Combines multiple Observables to create an Observable whose values are\n * calculated from the latest values of each of its input Observables.\n *\n * <span class=\"informal\">Whenever any input Observable emits a value, it\n * computes a formula using the latest values from all the inputs, then emits\n * the output of that formula.</span>\n *\n * <img src=\"./img/combineLatest.png\" width=\"100%\">\n *\n * `combineLatest` combines the values from this Observable with values from\n * Observables passed as arguments. This is done by subscribing to each\n * Observable, in order, and collecting an array of each of the most recent\n * values any time any of the input Observables emits, then either taking that\n * array and passing it as arguments to an optional `project` function and\n * emitting the return value of that, or just emitting the array of recent\n * values directly if there is no `project` function.\n *\n * @example <caption>Dynamically calculate the Body-Mass Index from an Observable of weight and one for height</caption>\n * var weight = Rx.Observable.of(70, 72, 76, 79, 75);\n * var height = Rx.Observable.of(1.76, 1.77, 1.78);\n * var bmi = weight.combineLatest(height, (w, h) => w / (h * h));\n * bmi.subscribe(x => console.log('BMI is ' + x));\n *\n * // With output to console:\n * // BMI is 24.212293388429753\n * // BMI is 23.93948099205209\n * // BMI is 23.671253629592222\n *\n * @see {@link combineAll}\n * @see {@link merge}\n * @see {@link withLatestFrom}\n *\n * @param {Observable} other An input Observable to combine with the source\n * Observable. More than one input Observables may be given as argument.\n * @param {function} [project] An optional function to project the values from\n * the combined latest values into a new value on the output Observable.\n * @return {Observable} An Observable of projected values from the most recent\n * values from each input Observable, or an array of the most recent values from\n * each input Observable.\n * @method combineLatest\n * @owner Observable\n */\nfunction combineLatest() {\n    var observables = [];\n    for (var _i = 0; _i < arguments.length; _i++) {\n        observables[_i - 0] = arguments[_i];\n    }\n    var project = null;\n    if (typeof observables[observables.length - 1] === 'function') {\n        project = observables.pop();\n    }\n    // if the first and only other argument besides the resultSelector is an array\n    // assume it's been called with `combineLatest([obs1, obs2, obs3], project)`\n    if (observables.length === 1 && isArray_1.isArray(observables[0])) {\n        observables = observables[0];\n    }\n    observables.unshift(this);\n    return this.lift.call(new ArrayObservable_1.ArrayObservable(observables), new CombineLatestOperator(project));\n}\nexports.combineLatest = combineLatest;\nvar CombineLatestOperator = (function () {\n    function CombineLatestOperator(project) {\n        this.project = project;\n    }\n    CombineLatestOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new CombineLatestSubscriber(subscriber, this.project));\n    };\n    return CombineLatestOperator;\n}());\nexports.CombineLatestOperator = CombineLatestOperator;\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar CombineLatestSubscriber = (function (_super) {\n    __extends(CombineLatestSubscriber, _super);\n    function CombineLatestSubscriber(destination, project) {\n        _super.call(this, destination);\n        this.project = project;\n        this.active = 0;\n        this.values = [];\n        this.observables = [];\n    }\n    CombineLatestSubscriber.prototype._next = function (observable) {\n        this.values.push(none);\n        this.observables.push(observable);\n    };\n    CombineLatestSubscriber.prototype._complete = function () {\n        var observables = this.observables;\n        var len = observables.length;\n        if (len === 0) {\n            this.destination.complete();\n        }\n        else {\n            this.active = len;\n            this.toRespond = len;\n            for (var i = 0; i < len; i++) {\n                var observable = observables[i];\n                this.add(subscribeToResult_1.subscribeToResult(this, observable, observable, i));\n            }\n        }\n    };\n    CombineLatestSubscriber.prototype.notifyComplete = function (unused) {\n        if ((this.active -= 1) === 0) {\n            this.destination.complete();\n        }\n    };\n    CombineLatestSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n        var values = this.values;\n        var oldVal = values[outerIndex];\n        var toRespond = !this.toRespond\n            ? 0\n            : oldVal === none ? --this.toRespond : this.toRespond;\n        values[outerIndex] = innerValue;\n        if (toRespond === 0) {\n            if (this.project) {\n                this._tryProject(values);\n            }\n            else {\n                this.destination.next(values.slice());\n            }\n        }\n    };\n    CombineLatestSubscriber.prototype._tryProject = function (values) {\n        var result;\n        try {\n            result = this.project.apply(this, values);\n        }\n        catch (err) {\n            this.destination.error(err);\n            return;\n        }\n        this.destination.next(result);\n    };\n    return CombineLatestSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\nexports.CombineLatestSubscriber = CombineLatestSubscriber;\n//# sourceMappingURL=combineLatest.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/combineLatest.js\n// module id = 316\n// module chunks = 0","\"use strict\";\nvar isScheduler_1 = require('../util/isScheduler');\nvar ArrayObservable_1 = require('../observable/ArrayObservable');\nvar mergeAll_1 = require('./mergeAll');\n/* tslint:disable:max-line-length */\n/**\n * Creates an output Observable which sequentially emits all values from every\n * given input Observable after the current Observable.\n *\n * <span class=\"informal\">Concatenates multiple Observables together by\n * sequentially emitting their values, one Observable after the other.</span>\n *\n * <img src=\"./img/concat.png\" width=\"100%\">\n *\n * Joins this Observable with multiple other Observables by subscribing to them\n * one at a time, starting with the source, and merging their results into the\n * output Observable. Will wait for each Observable to complete before moving\n * on to the next.\n *\n * @example <caption>Concatenate a timer counting from 0 to 3 with a synchronous sequence from 1 to 10</caption>\n * var timer = Rx.Observable.interval(1000).take(4);\n * var sequence = Rx.Observable.range(1, 10);\n * var result = timer.concat(sequence);\n * result.subscribe(x => console.log(x));\n *\n * // results in:\n * // 1000ms-> 0 -1000ms-> 1 -1000ms-> 2 -1000ms-> 3 -immediate-> 1 ... 10\n *\n * @example <caption>Concatenate 3 Observables</caption>\n * var timer1 = Rx.Observable.interval(1000).take(10);\n * var timer2 = Rx.Observable.interval(2000).take(6);\n * var timer3 = Rx.Observable.interval(500).take(10);\n * var result = timer1.concat(timer2, timer3);\n * result.subscribe(x => console.log(x));\n *\n * // results in the following:\n * // (Prints to console sequentially)\n * // -1000ms-> 0 -1000ms-> 1 -1000ms-> ... 9\n * // -2000ms-> 0 -2000ms-> 1 -2000ms-> ... 5\n * // -500ms-> 0 -500ms-> 1 -500ms-> ... 9\n *\n * @see {@link concatAll}\n * @see {@link concatMap}\n * @see {@link concatMapTo}\n *\n * @param {Observable} other An input Observable to concatenate after the source\n * Observable. More than one input Observables may be given as argument.\n * @param {Scheduler} [scheduler=null] An optional Scheduler to schedule each\n * Observable subscription on.\n * @return {Observable} All values of each passed Observable merged into a\n * single Observable, in order, in serial fashion.\n * @method concat\n * @owner Observable\n */\nfunction concat() {\n    var observables = [];\n    for (var _i = 0; _i < arguments.length; _i++) {\n        observables[_i - 0] = arguments[_i];\n    }\n    return this.lift.call(concatStatic.apply(void 0, [this].concat(observables)));\n}\nexports.concat = concat;\n/* tslint:enable:max-line-length */\n/**\n * Creates an output Observable which sequentially emits all values from every\n * given input Observable after the current Observable.\n *\n * <span class=\"informal\">Concatenates multiple Observables together by\n * sequentially emitting their values, one Observable after the other.</span>\n *\n * <img src=\"./img/concat.png\" width=\"100%\">\n *\n * Joins multiple Observables together by subscribing to them one at a time and\n * merging their results into the output Observable. Will wait for each\n * Observable to complete before moving on to the next.\n *\n * @example <caption>Concatenate a timer counting from 0 to 3 with a synchronous sequence from 1 to 10</caption>\n * var timer = Rx.Observable.interval(1000).take(4);\n * var sequence = Rx.Observable.range(1, 10);\n * var result = Rx.Observable.concat(timer, sequence);\n * result.subscribe(x => console.log(x));\n *\n * // results in:\n * // 0 -1000ms-> 1 -1000ms-> 2 -1000ms-> 3 -immediate-> 1 ... 10\n *\n * @example <caption>Concatenate 3 Observables</caption>\n * var timer1 = Rx.Observable.interval(1000).take(10);\n * var timer2 = Rx.Observable.interval(2000).take(6);\n * var timer3 = Rx.Observable.interval(500).take(10);\n * var result = Rx.Observable.concat(timer1, timer2, timer3);\n * result.subscribe(x => console.log(x));\n *\n * // results in the following:\n * // (Prints to console sequentially)\n * // -1000ms-> 0 -1000ms-> 1 -1000ms-> ... 9\n * // -2000ms-> 0 -2000ms-> 1 -2000ms-> ... 5\n * // -500ms-> 0 -500ms-> 1 -500ms-> ... 9\n *\n * @see {@link concatAll}\n * @see {@link concatMap}\n * @see {@link concatMapTo}\n *\n * @param {Observable} input1 An input Observable to concatenate with others.\n * @param {Observable} input2 An input Observable to concatenate with others.\n * More than one input Observables may be given as argument.\n * @param {Scheduler} [scheduler=null] An optional Scheduler to schedule each\n * Observable subscription on.\n * @return {Observable} All values of each passed Observable merged into a\n * single Observable, in order, in serial fashion.\n * @static true\n * @name concat\n * @owner Observable\n */\nfunction concatStatic() {\n    var observables = [];\n    for (var _i = 0; _i < arguments.length; _i++) {\n        observables[_i - 0] = arguments[_i];\n    }\n    var scheduler = null;\n    var args = observables;\n    if (isScheduler_1.isScheduler(args[observables.length - 1])) {\n        scheduler = args.pop();\n    }\n    if (scheduler === null && observables.length === 1) {\n        return observables[0];\n    }\n    return new ArrayObservable_1.ArrayObservable(observables, scheduler).lift(new mergeAll_1.MergeAllOperator(1));\n}\nexports.concatStatic = concatStatic;\n//# sourceMappingURL=concat.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/concat.js\n// module id = 317\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar ArrayObservable_1 = require('../observable/ArrayObservable');\nvar isArray_1 = require('../util/isArray');\nvar Subscriber_1 = require('../Subscriber');\nvar OuterSubscriber_1 = require('../OuterSubscriber');\nvar subscribeToResult_1 = require('../util/subscribeToResult');\nvar iterator_1 = require('../symbol/iterator');\n/* tslint:disable:max-line-length */\n/**\n * @param observables\n * @return {Observable<R>}\n * @method zip\n * @owner Observable\n */\nfunction zipProto() {\n    var observables = [];\n    for (var _i = 0; _i < arguments.length; _i++) {\n        observables[_i - 0] = arguments[_i];\n    }\n    return this.lift.call(zipStatic.apply(void 0, [this].concat(observables)));\n}\nexports.zipProto = zipProto;\n/* tslint:enable:max-line-length */\n/**\n * @param observables\n * @return {Observable<R>}\n * @static true\n * @name zip\n * @owner Observable\n */\nfunction zipStatic() {\n    var observables = [];\n    for (var _i = 0; _i < arguments.length; _i++) {\n        observables[_i - 0] = arguments[_i];\n    }\n    var project = observables[observables.length - 1];\n    if (typeof project === 'function') {\n        observables.pop();\n    }\n    return new ArrayObservable_1.ArrayObservable(observables).lift(new ZipOperator(project));\n}\nexports.zipStatic = zipStatic;\nvar ZipOperator = (function () {\n    function ZipOperator(project) {\n        this.project = project;\n    }\n    ZipOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new ZipSubscriber(subscriber, this.project));\n    };\n    return ZipOperator;\n}());\nexports.ZipOperator = ZipOperator;\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar ZipSubscriber = (function (_super) {\n    __extends(ZipSubscriber, _super);\n    function ZipSubscriber(destination, project, values) {\n        if (values === void 0) { values = Object.create(null); }\n        _super.call(this, destination);\n        this.iterators = [];\n        this.active = 0;\n        this.project = (typeof project === 'function') ? project : null;\n        this.values = values;\n    }\n    ZipSubscriber.prototype._next = function (value) {\n        var iterators = this.iterators;\n        if (isArray_1.isArray(value)) {\n            iterators.push(new StaticArrayIterator(value));\n        }\n        else if (typeof value[iterator_1.$$iterator] === 'function') {\n            iterators.push(new StaticIterator(value[iterator_1.$$iterator]()));\n        }\n        else {\n            iterators.push(new ZipBufferIterator(this.destination, this, value));\n        }\n    };\n    ZipSubscriber.prototype._complete = function () {\n        var iterators = this.iterators;\n        var len = iterators.length;\n        this.active = len;\n        for (var i = 0; i < len; i++) {\n            var iterator = iterators[i];\n            if (iterator.stillUnsubscribed) {\n                this.add(iterator.subscribe(iterator, i));\n            }\n            else {\n                this.active--; // not an observable\n            }\n        }\n    };\n    ZipSubscriber.prototype.notifyInactive = function () {\n        this.active--;\n        if (this.active === 0) {\n            this.destination.complete();\n        }\n    };\n    ZipSubscriber.prototype.checkIterators = function () {\n        var iterators = this.iterators;\n        var len = iterators.length;\n        var destination = this.destination;\n        // abort if not all of them have values\n        for (var i = 0; i < len; i++) {\n            var iterator = iterators[i];\n            if (typeof iterator.hasValue === 'function' && !iterator.hasValue()) {\n                return;\n            }\n        }\n        var shouldComplete = false;\n        var args = [];\n        for (var i = 0; i < len; i++) {\n            var iterator = iterators[i];\n            var result = iterator.next();\n            // check to see if it's completed now that you've gotten\n            // the next value.\n            if (iterator.hasCompleted()) {\n                shouldComplete = true;\n            }\n            if (result.done) {\n                destination.complete();\n                return;\n            }\n            args.push(result.value);\n        }\n        if (this.project) {\n            this._tryProject(args);\n        }\n        else {\n            destination.next(args);\n        }\n        if (shouldComplete) {\n            destination.complete();\n        }\n    };\n    ZipSubscriber.prototype._tryProject = function (args) {\n        var result;\n        try {\n            result = this.project.apply(this, args);\n        }\n        catch (err) {\n            this.destination.error(err);\n            return;\n        }\n        this.destination.next(result);\n    };\n    return ZipSubscriber;\n}(Subscriber_1.Subscriber));\nexports.ZipSubscriber = ZipSubscriber;\nvar StaticIterator = (function () {\n    function StaticIterator(iterator) {\n        this.iterator = iterator;\n        this.nextResult = iterator.next();\n    }\n    StaticIterator.prototype.hasValue = function () {\n        return true;\n    };\n    StaticIterator.prototype.next = function () {\n        var result = this.nextResult;\n        this.nextResult = this.iterator.next();\n        return result;\n    };\n    StaticIterator.prototype.hasCompleted = function () {\n        var nextResult = this.nextResult;\n        return nextResult && nextResult.done;\n    };\n    return StaticIterator;\n}());\nvar StaticArrayIterator = (function () {\n    function StaticArrayIterator(array) {\n        this.array = array;\n        this.index = 0;\n        this.length = 0;\n        this.length = array.length;\n    }\n    StaticArrayIterator.prototype[iterator_1.$$iterator] = function () {\n        return this;\n    };\n    StaticArrayIterator.prototype.next = function (value) {\n        var i = this.index++;\n        var array = this.array;\n        return i < this.length ? { value: array[i], done: false } : { value: null, done: true };\n    };\n    StaticArrayIterator.prototype.hasValue = function () {\n        return this.array.length > this.index;\n    };\n    StaticArrayIterator.prototype.hasCompleted = function () {\n        return this.array.length === this.index;\n    };\n    return StaticArrayIterator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar ZipBufferIterator = (function (_super) {\n    __extends(ZipBufferIterator, _super);\n    function ZipBufferIterator(destination, parent, observable) {\n        _super.call(this, destination);\n        this.parent = parent;\n        this.observable = observable;\n        this.stillUnsubscribed = true;\n        this.buffer = [];\n        this.isComplete = false;\n    }\n    ZipBufferIterator.prototype[iterator_1.$$iterator] = function () {\n        return this;\n    };\n    // NOTE: there is actually a name collision here with Subscriber.next and Iterator.next\n    //    this is legit because `next()` will never be called by a subscription in this case.\n    ZipBufferIterator.prototype.next = function () {\n        var buffer = this.buffer;\n        if (buffer.length === 0 && this.isComplete) {\n            return { value: null, done: true };\n        }\n        else {\n            return { value: buffer.shift(), done: false };\n        }\n    };\n    ZipBufferIterator.prototype.hasValue = function () {\n        return this.buffer.length > 0;\n    };\n    ZipBufferIterator.prototype.hasCompleted = function () {\n        return this.buffer.length === 0 && this.isComplete;\n    };\n    ZipBufferIterator.prototype.notifyComplete = function () {\n        if (this.buffer.length > 0) {\n            this.isComplete = true;\n            this.parent.notifyInactive();\n        }\n        else {\n            this.destination.complete();\n        }\n    };\n    ZipBufferIterator.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n        this.buffer.push(innerValue);\n        this.parent.checkIterators();\n    };\n    ZipBufferIterator.prototype.subscribe = function (value, index) {\n        return subscribeToResult_1.subscribeToResult(this, this.observable, this, index);\n    };\n    return ZipBufferIterator;\n}(OuterSubscriber_1.OuterSubscriber));\n//# sourceMappingURL=zip.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/zip.js\n// module id = 324\n// module chunks = 0","\"use strict\";\nvar isArray_1 = require('../util/isArray');\nfunction isNumeric(val) {\n    // parseFloat NaNs numeric-cast false positives (null|true|false|\"\")\n    // ...but misinterprets leading-number strings, particularly hex literals (\"0x...\")\n    // subtraction forces infinities to NaN\n    // adding 1 corrects loss of precision from parseFloat (#15100)\n    return !isArray_1.isArray(val) && (val - parseFloat(val) + 1) >= 0;\n}\nexports.isNumeric = isNumeric;\n;\n//# sourceMappingURL=isNumeric.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/util/isNumeric.js\n// module id = 326\n// module chunks = 0","\n// Angular 2\n// rc2 workaround\nimport { enableDebugTools, disableDebugTools } from '@angular/platform-browser';\nimport { enableProdMode, ApplicationRef } from '@angular/core';\n// Environment Providers\nlet PROVIDERS: any[] = [\n  // common env directives\n];\n\n// Angular debug tools in the dev console\n// https://github.com/angular/angular/blob/86405345b781a9dc2438c0fbe3e9409245647019/TOOLS_JS.md\nlet _decorateModuleRef = function identity<T>(value: T): T { return value; };\n\nif ('production' === ENV) {\n  enableProdMode();\n\n  // Production\n  _decorateModuleRef = (modRef: any) => {\n    disableDebugTools();\n\n    return modRef;\n  };\n\n  PROVIDERS = [\n    ...PROVIDERS,\n    // custom providers in production\n  ];\n\n} else {\n\n  _decorateModuleRef = (modRef: any) => {\n    const appRef = modRef.injector.get(ApplicationRef);\n    const cmpRef = appRef.components[0];\n\n    let _ng = (<any>window).ng;\n    enableDebugTools(cmpRef);\n    (<any>window).ng.probe = _ng.probe;\n    (<any>window).ng.coreTokens = _ng.coreTokens;\n    return modRef;\n  };\n\n  // Development\n  PROVIDERS = [\n    ...PROVIDERS,\n    // custom providers in development\n  ];\n\n}\n\nexport const decorateModuleRef = _decorateModuleRef;\n\nexport const ENV_PROVIDERS = [\n  ...PROVIDERS\n];\n\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/environment.ts","import { Component, OnInit, OnDestroy, Input, Output, EventEmitter, ElementRef, ViewChild } from '@angular/core';\nimport {  ActivatedRoute, Params, Router, NavigationEnd }            from '@angular/router';\nimport { Observable }        from 'rxjs/Observable';\nimport { DomSanitizer, SafeHtml } from '@angular/platform-browser';\nimport { ModalModule, ModalComponent } from 'ng2-bs4-modal/ng2-bs4-modal';\n\nimport { ActivityService } from '../services/activity';\nimport { HttpService } from '../services/http';\nimport { SupportIssueService } from '../services/support';\nimport { CompanyService } from '../services/company';\nimport { ErrorsService } from '../services/errors';\nimport { EventsService } from '../services/event';\n\nimport { MailComposer } from './mailcomposer'\nimport { DatePicker }           from './datepicker';\nimport { CustomerInfo }           from './customerinfo';\nimport { CommunicationHistory } from './communicationhistory';\n\nimport { Activity }           from '../models/activity';\nimport { SupportIssue }           from '../models/supportissue';\n\n@Component({\n\tselector : 'activity-details',\n  template: require('./templates/activitydetails.html')\n})\n\nexport class ActivityDetails implements OnInit, OnDestroy {\n\t\n\t@ViewChild('newMailComposer')\n  newMailComposer: MailComposer;\n\n\t@ViewChild('history')\n  history: CommunicationHistory;\n\t\n\t@ViewChild('savingModal')\n  savingModal: ModalComponent;\n\n\t@ViewChild('errorModal')\n  errorModal: ModalComponent;\n\n\t@ViewChild('companyInfo')\n  companyInfo: CustomerInfo;\n\n\t@ViewChild('activityStartDate')\n  activityStartDate: DatePicker;\n\n\t@ViewChild('activityEndDate')\n  activityEndDate: DatePicker;\n\n\t_activity : Activity;\n\tloaded : boolean;\n\tshow : string;\n\tuser : {};\n\tavailableUsers : Array<any>;\t\n\tedit : boolean;\n\n\tsupportHistory : SupportIssue[];\n\taccounts : any[];\n\tactivityAccount : any;\n\treferencedSupportIssue : SupportIssue;\n\tshowSource : string;\n\tcompany : any;\n\n\tnavigationSubscriber : any;\n\tcustomerInfoRefPath : string;\n\n  constructor(\n    private activityService: ActivityService,\n    private companyService: CompanyService,\n    private supportIssueService: SupportIssueService,\n\t\tprivate route: ActivatedRoute,\n\t\tprivate router: Router,\n    private httpService: HttpService,\n\t\tprivate eventsService : EventsService,\n\t\tprivate errorsService : ErrorsService) \n\t{ \n\t\tthis.show = 'description';\n\t\tthis.user = this.httpService.getUser();\n\t\tthis.availableUsers = [];\n\t\tthis.httpService.getAllUsers().then((users) => {\n\t\t\tusers.forEach((u) => {\n\t\t\t\tif(u.userId == 26) return;\n\t\t\t\tthis.availableUsers.push(u);\n\t\t\t})\n\t\t});\n\t}\n\t\n\t@Input()\t\n\tset activity(activity: Activity) {\n\t\tthis._activity = activity;\n\t\tthis.loaded = false;\n\t\tthis.load(activity).then((loaded) => {\n\t\t\tthis.eventsService.broadcast('activityinfo-loaded', { loaded : loaded });\n\t\t})\n\t}\n\t\n\tget activity() {\n\t\treturn this._activity;\n\t}\n\n\tngOnInit() {\n\t\tthis.navigationSubscriber = this.router.events.subscribe((event) => { this.navigationEnd(event); });\n\t}  \n\n\tngOnDestroy() {\n\t\tthis.navigationSubscriber.unsubscribe();\n\t}\n\n\tnavigationEnd(event) : void {\n\t\tif(event instanceof NavigationEnd) {\t\n\t\t\tvar url = (event as NavigationEnd).url;\n\t\t\tvar id = this.route.snapshot.params['id'];\n\t\t\tthis.customerInfoRefPath = '';\t\t\n\t\t\tthis.route.snapshot.parent.url.forEach((u) => {\n\t\t\t\tthis.customerInfoRefPath = this.customerInfoRefPath + (this.customerInfoRefPath != '' ? ':' : '') + u;\t\n\t\t\t});\n\t\t\tif(id) {\n\t\t\t\tthis.eventsService.broadcast('activityinfo-loading', { });\n\t\t\t\tthis.activityService.getActivityById(id).then((activity) => {\n\t\t\t\t\tif(activity) {\n\t\t\t\t\t\tthis.activity = activity;\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\tthis.customerInfoRefPath = '';\n\t\t\t\tthis.route.snapshot.parent.url.forEach((u) => {\n\t\t\t\t\tthis.customerInfoRefPath = this.customerInfoRefPath + (this.customerInfoRefPath != '' ? ':' : '') + u;\t\n\t\t\t\t});\n\t\t\t\tthis.customerInfoRefPath += \":\" + id;\n\t\t\t}\n\t\t}\n\t}\n\n\tload(activity : Activity) : Promise<any> {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tthis.loaded = true;\n\t\t\tvar sd = new Date(activity.startDate * 1000);\n\t\t\tvar ed = new Date(activity.endDate * 1000);\n\t\t\tif(this._activity.companyId > 0) {\n\t\t\t\tthis.loadHistory();\n\t\t\t\tthis.companyService.getById(this._activity.companyId).then((company) => {\n\t\t\t\t\tthis.company = company;\n\t\t\t\t})\n\t\t\t}\n\t\t\tresolve(true);\n\t\t});\n\t}\n\n\topenHistoryTab() {\n\t\tthis.show = 'history';\n\t\tthis.history.companyId = Number(this.company.companyId);\n\t\tthis.history.accounts = this.company.accounts;\n\t\tthis.history.showActivities = true;\n\t\tthis.history.showEvents = true;\n\t\tthis.history.showSupport = false;\n\t\tthis.history.accountId = this._activity.accountId;\n\t\tthis.history.refresh();\t\n\t}\n\n\tcloseActivity() : void {\n\t\tthis.eventsService.broadcast('activity-close', { activity : this._activity });\n\t}\n\n\tcreateNewFromThis() : void {\n\t\tthis.eventsService.broadcast('activity-clone', { activity : this._activity });\n\t}\n\n\tassignTo(user) {\n\t\tthis.eventsService.broadcast('activity-set-user', { activity : this._activity, user : user });\n\t}\n\t\n\tsetStatus(statusId) {\n\t\tthis.eventsService.broadcast('activity-set-status', { activity : this._activity, statusId : statusId });\n\t}\n\n\tsendMail() : void {\n\t\tthis.newMailComposer.clearContacts();\n\t\tthis.newMailComposer.setSubject('Sv: ' + this.activity.name);\n\t\tif(this.referencedSupportIssue) {\n\t\t\tvar s = this.referencedSupportIssue._source;\n\t\t\tif(s.headers['reply-to']) {\n\t\t\t\tthis.newMailComposer.setEmail(s.headers['reply-to']);\n\t\t\t\tthis.newMailComposer.addContact({ email : s.headers['reply-to'], name : 'Avsändare av supportärendet <' + s.headers['reply-to'] + '>' });\t\n\t\t\t} else {\n\t\t\t\tthis.newMailComposer.setEmail(s.from[0].address);\n\t\t\t\tthis.newMailComposer.addContact({ email : s.from[0].address, name : 'Avsändare av supportärendet <' + s.from[0].address + '>' });\t\n\t\t\t}\n\t\t}\n\t\tthis.companyInfo.company.contacts.forEach((c) => {\n\t\t\tc.emails.forEach((e) => {\n\t\t\t\tthis.newMailComposer.addContact({ email : e.adress, name : c.lastName + ', ' + c.firstName + ' <' + e.adress + '>' });\t\n\t\t\t})\n\t\t})\n\t\tthis.newMailComposer.open(this._activity.companyId, this._activity.accountId).then((result) => {\n\t\t\tconsole.log('result', result)\n\t\t})\n\t}\n\n\teditActivity(val) : void {\n\t\tthis.edit = val;\n\t\tif(this.companyInfo && this.companyInfo.company) {\n\t\t\tthis.accounts = this.companyInfo.company.accounts;\n\t\t\tthis.accounts.forEach((a) => {\n\t\t\t\tif(a.accountId == this._activity.accountId) {\n\t\t\t\t\tthis.activityAccount = a;\n\t\t\t\t}\n\t\t\t})\n\t\t}\n\t}\n\n\tsave() {\n\t\tthis.savingModal.open().then(() => {\n\t\t\tthis._activity.startDate = this.activityStartDate.Date.getTime() / 1000;\n\t\t\tthis._activity.endDate = this.activityEndDate.Date.getTime() / 1000;\n\t\t\tif(this.activityAccount) {\n\t\t\t\tthis._activity.accountId = this.activityAccount.accountId;\n\t\t\t}\n\t\t\tthis.activityService.saveActivity(this._activity, 'description').then((res) => {\n\t\t\t\tthis.savingModal.close().then(() => {\n\t\t\t\t\tthis._activity.prefix = this.activityAccount.prefix;\n\t\t\t\t})\n\t\t\t}).catch((e) => {\n\t\t\t\tthis.savingModal.close().then(() => {\n\t\t\t\t\tthis.errorsService.broadcast('error', e.errorMessage);\n\t\t\t\t});\n\t\t\t});\n\t\t});\n\t}\n\t\n  loadHistory(): void {\n\t\tvar supportId = '';\n\t\tthis._activity.attributes.forEach((attr) => {\n\t\t\tif(attr.name == 'supportId') {\n\t\t\t\tsupportId = attr.value;\n\t\t\t}\n\t\t});\n\t\tthis.supportIssueService.getAllIssues({ companyId : this._activity.companyId }, 0, 100).then((supportIssueList) => {\n\t\t\tthis.supportHistory = supportIssueList.issues;\n\t\t\tthis.supportHistory.forEach((issue) => {\n\t\t\t\tif(issue._id == supportId) {\n\t\t\t\t\tthis.referencedSupportIssue = issue;\n\t\t\t\t\tthis.showSource = issue._source.html ? 'html' : 'text';\n\t\t\t\t}\n\t\t\t})\n\t\t});\n  }\n\n\thandleOnCompanyLoaded(company) {\n\t\tthis.editActivity(true);\n\t}\n\n\thandleOnCompanyAssigned(company) {\n\t\tif(company.accounts.length > 0) {\n\t\t\tthis.activityService.assignCompany(this._activity.taskId, company.accounts[0].accountId).then((res) => {\n\t\t\t\tthis.editActivity(false);\n\t\t\t\tthis._activity.prefix = (company.accounts.length > 0) ? company.accounts[0].prefix : '';\n\t\t\t\tthis._activity.accountId = (company.accounts.length > 0) ? company.accounts[0].accountId : 0;\n\t\t\t\tthis._activity.companyId = company.companyId;\n\t\t\t\tthis._activity.companyName = company.name;\n\t\t\t\tthis.loadHistory();\n\t\t\t}).catch((e) => {\n\t\t\t\tthis.errorsService.broadcast('error', e.errorMessage);\n\t\t\t\t})\n\t\t} else {\n\t\t\talert('Fel, finns inget konto för detta företag');\n\t\t}\n\t}\n\t\n\thandleOnCompanyUnAssigned() {\n\t\tthis.activityService.unSetCompany(this._activity.taskId).then((res) => {\n\t\t\tthis._activity.companyId = 0;\n\t\t\tthis._activity.accountId = 0;\n\t\t\tthis.editActivity(false);\n\t\t}).catch((e) => {\n\t\t\tthis.errorsService.broadcast('error', e.errorMessage);\n\t\t\tthis.companyInfo.companyId = this._activity.companyId;\n\t\t})\n\t}\n\t\t\n}\t\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/components/activitydetails.ts","import { Component, ViewChild } from \"@angular/core\";\nimport { ModalComponent } from \"ng2-bs4-modal/ng2-bs4-modal\";\n\nimport { DomainService } from \"../services/domain\";\nimport { AccountsService } from \"../services/accounts\";\n\nimport { Account } from \"../models/account\";\nimport { DatePicker } from \"./datepicker\";\nimport { CustomerInfo } from \"./customerinfo\";\n\n@Component({\n  selector: \"create-account-modal\",\n  template: require('./templates/createaccountmodal.html'),\n})\nexport class CreateAccountModal {\n  @ViewChild(\"createAccountModal\")\n  createAccountModal: ModalComponent;\n\n  @ViewChild(\"creatingModal\")\n  creatingModal: ModalComponent;\n\n  @ViewChild(\"errorModal\")\n  errorModal: ModalComponent;\n\n  @ViewChild(\"newActivityStartDate\")\n  newActivityStartDate: DatePicker;\n\n  @ViewChild(\"newActivityEndDate\")\n  newActivityEndDate: DatePicker;\n\n  @ViewChild(\"activityCompanyInfo\")\n  activityCompanyInfo: CustomerInfo;\n\n  private newAccountDetails: Account;\n  private instanceSnapshotName: string;\n  private instanceSnapshotZone: string;\n\n  private servers: any;\n  private wphost: any = {};\n  private wphostTemplates: Array<any>;\n  private wphostTemplate: string;\n\n  private lookupPrefixTimer: any;\n  private lookingUpPrefix: boolean;\n  private prefixExists: boolean;\n  private prefixValid: boolean;\n\n  private lookupDomainTimer: any;\n  private lookingUpDomain: boolean;\n  private domainExists: boolean;\n  private domainNotMine: boolean;\n  private domainRegistered: boolean;\n\n  private errorMessage: string;\n  private createStatus: string;\n  private resolver: Function;\n  private rejector: Function;\n\n  private wordPressSnapshots: any;\n\n  private domainLookupCompleted: boolean;\n\n  private accountData: any;\n\n  constructor(\n    private accountsService: AccountsService,\n    private domainService: DomainService\n  ) {\n    this.newAccountDetails = new Account();\n    this.setHostingType(\"wphost\");\n    this.wordPressSnapshots = [];\n  }\n\n  lookupPrefix(): void {\n    clearTimeout(this.lookupPrefixTimer);\n    if (!this.newAccountDetails.prefix.match(/^[0-9a-z]+$/i)) {\n      this.prefixValid = false;\n      return;\n    }\n\n    this.lookupPrefixTimer = setTimeout(() => {\n      this.lookingUpPrefix = true;\n      this.accountsService\n        .lookupPrefix(this.newAccountDetails.prefix)\n        .then((data: any) => {\n          this.lookingUpPrefix = false;\n          this.prefixExists =\n            data.exists && this.accountData.skipAccount !== true;\n          this.prefixValid = !this.prefixExists;\n        })\n        .catch((e) => {\n          this.lookingUpPrefix = false;\n          this.showError(e.errorMessage || e.message);\n        });\n    }, 750);\n  }\n\n  lookupDomain(): void {\n    clearTimeout(this.lookupDomainTimer);\n    this.domainLookupCompleted = false;\n    this.lookupDomainTimer = setTimeout(() => {\n      this.lookingUpDomain = true;\n      this.accountsService\n        .lookupDomain(this.newAccountDetails.domain)\n        .then((data: any) => {\n          console.log(\"data\", data);\n          this.lookingUpDomain = false;\n          this.domainExists = data.exists;\n          this.domainRegistered = data.registered;\n          this.newAccountDetails.domainType = data.registered ? 1 : 5;\n          this.domainLookupCompleted = true;\n          this.domainNotMine =\n            (this.accountData.domains || []).filter((d) => {\n              console.log(\"d\", d);\n              if (d.domain == this.newAccountDetails.domain) return d;\n            }).length === 0 && this.domainExists;\n          console.log(\"domainNotMine\", this.domainNotMine);\n          this.newAccountDetails.domainType =\n            this.domainExists && !this.domainNotMine\n              ? 4\n              : this.newAccountDetails.domainType;\n        })\n        .catch((e) => {\n          this.lookingUpDomain = false;\n          this.showError(e.errorMessage || e.message);\n        });\n    }, 750);\n  }\n\n  lookupServers(): void {\n    this.accountsService.getServers().then((servers) => {\n      console.log(servers);\n      this.servers = servers;\n      this.setWphost(servers[0]);\n    });\n  }\n\n  setHostingType(type: string): void {\n    this.newAccountDetails.type = type;\n    if (type == \"wordpress\") this.lookupSnapshots();\n    else if (type == \"wphost\") this.lookupServers();\n  }\n\n  setWphost(host): void {\n    this.wphost = host;\n    this.accountsService.getServer(host.name).then((data: any) => {\n      console.log(\"Setting wphost templates\");\n      this.wphostTemplates = data.accounts.filter((a) => a.isTemplate);\n      this.setWphostTemplate(this.wphostTemplates[0].prefix);\n    });\n  }\n\n  setWphostTemplate(prefix): void {\n    this.wphostTemplate = prefix;\n  }\n\n  lookupSnapshots(): void {\n    this.accountsService.getWordPressSnapshots().then((snaps) => {\n      console.log(\"snaps\", snaps);\n      this.wordPressSnapshots = snaps.instanceSnapshots;\n      this.instanceSnapshotName = snaps.instanceSnapshots[0].name;\n      this.instanceSnapshotZone =\n        snaps.instanceSnapshots[0].location.regionName + \"a\";\n    });\n  }\n\n  open(accountData: any): Promise<any> {\n    this.newAccountDetails = new Account();\n    this.accountData = accountData;\n    return new Promise((resolve, reject) => {\n      this.createAccountModal.open(\"lg\").then(() => {\n        this.newAccountDetails.companyId = accountData.companyId;\n        this.newAccountDetails.prefix = accountData.prefix;\n        this.newAccountDetails.skipAccount = accountData.skipAccount;\n        this.resolver = resolve;\n        this.rejector = reject;\n        if (accountData.prefix !== \"\" && accountData.skipAccount) {\n          this.lookupPrefix();\n        }\n        // this.lookupSnapshots();\n      });\n    });\n  }\n\n  doCreateAccount() {\n    console.log(this.newAccountDetails);\n    if (this.newAccountDetails.type === \"wphost\") {\n      this.createWphostAccount();\n    } else if (this.newAccountDetails.type === \"wordpress\") {\n      this.createWordpressAccount();\n    } else {\n      this.createProductionAccount();\n    }\n  }\n\n  waitForInstance(instanceId): Promise<any> {\n    return new Promise((started) => {\n      var waitTimer = setInterval(() => {\n        console.log(\"getting instance for instanceId\", instanceId);\n        this.accountsService\n          .GetWordpressInstance(instanceId)\n          .then((instanceInfo) => {\n            console.log(\"instanceInfo\", instanceInfo);\n            if (instanceInfo.instance.state.name == \"running\") {\n              clearInterval(waitTimer);\n              started(instanceInfo);\n            }\n          });\n      }, 2000);\n    });\n  }\n\n  createCertificate(): Promise<string> {\n    let certificateName = this.newAccountDetails.prefix + \"-cert\";\n    return new Promise((completedCert) => {\n      this.createStatus = \"Tart bort gamla certifikat\";\n      console.log(\"deleting cert\");\n      this.accountsService\n        .deleteCertificate(certificateName)\n        .catch((deleteError) => {\n          return { status: \"failed to delete\", deleteError };\n        })\n        .then((deleteCertificateResult) => {\n          console.log(\"deleteCertificateResult\", deleteCertificateResult);\n          console.log(\"creating cert\");\n          this.createStatus = \"Skapar nya certifikat\";\n          return this.accountsService.createCertificate(\n            certificateName,\n            this.newAccountDetails.domain,\n            [\"www.\" + this.newAccountDetails.domain]\n          );\n        })\n        .then((createCertificateResult) => {\n          console.log(\"createCertificateResult\", createCertificateResult);\n          this.createStatus = \"Väntar på att certifikatet ska skapas\";\n          return new Promise((waitDone) => {\n            let waitInterval = setInterval(() => {\n              this.accountsService\n                .getCertificates(certificateName)\n                .then((certificateInfo) => {\n                  for (var i in certificateInfo.certificates) {\n                    let certificate = certificateInfo.certificates[i];\n                    let status = certificate.certificateDetail.status;\n                    let records =\n                      certificate.certificateDetail.domainValidationRecords;\n                    let numValidRecords = records.filter(\n                      (r) => r.resourceRecord\n                    ).length;\n                    console.log(\n                      \"certificate status\",\n                      status,\n                      \"certificate\",\n                      certificate,\n                      \"records\",\n                      records,\n                      \"numValidRecords\",\n                      numValidRecords\n                    );\n                    if (numValidRecords > 0) {\n                      clearInterval(waitInterval);\n                      console.log(\"processing cert\");\n                      this.accountsService\n                        .processCertificates(certificateName)\n                        .then((info) => waitDone(info));\n                    }\n                  }\n                });\n            }, 5000);\n          });\n        })\n        .then((certificateInfo) => {\n          console.log(\"certificateInfo\", certificateInfo);\n          let waitTimeout = 0;\n          var waitTimer = setInterval(() => {\n            console.log(\"getting certificate\", certificateName);\n            this.createStatus = \"Väntar på validering\";\n            this.accountsService\n              .getCertificates(certificateName)\n              .then((certificateInfo) => {\n                for (var i in certificateInfo.certificates) {\n                  let certificate = certificateInfo.certificates[i];\n                  let status = certificate.certificateDetail.status;\n                  console.log(\"certificate status\", status);\n                  if (status == \"ISSUED\") {\n                    clearInterval(waitTimer);\n                    completedCert(certificateName);\n                  } else {\n                    waitTimeout++;\n                  }\n                  if (waitTimeout > 5) {\n                    clearInterval(waitTimer);\n                    completedCert(null);\n                  }\n                }\n              });\n          }, 5000);\n        });\n    });\n  }\n\n  createWphostAccount() {\n    this.createStatus = \"Vänta, skapar konto ...\";\n    this.creatingModal.open().then(() => {\n      this.accountsService\n        .createWphostInstance(\n          this.newAccountDetails,\n          this.wphost.host,\n          this.wphostTemplate\n        )\n        .then((accountResult) => {\n\t\t\t\t\tconsole.log(\"Done wphost account!\");\n          this.creatingModal.close().then(() => {\n            this.createAccountModal.close().then(() => {\n              this.resolver({\n                accountId: accountResult.accountId,\n                sendMailResponse: 1,\n                account: JSON.parse(JSON.stringify(this.newAccountDetails)),\n              });\n            });\n          });\n        })\n\t\t\t\t.catch((e) => {\n\t\t\t\t\tconsole.log(\"I got error!!\", e);\n\t\t\t\t\tthis.creatingModal.close().then(() => {\n\t\t\t\t\t\tthis.showError(e.errorMessage || e.message);\n\t\t\t\t\t});\n\t\t\t\t});\n    });\n  }\n\n  createWordpressAccount() {\n    this.createStatus = \"Vänta, skapar konto ...\";\n    this.creatingModal.open().then(() => {\n      this.createStatus = \"Skapar instans i Lightsail\";\n      this.accountsService\n        .createWordpressInstance(\n          this.newAccountDetails,\n          this.instanceSnapshotName,\n          this.instanceSnapshotZone\n        )\n        .then((accountResult) => {\n          console.log(\"accountResult\", accountResult);\n          this.newAccountDetails.accountId = accountResult.accountId;\n          // wait for instance to start\n          this.createStatus = \"Väntar på att instansen ska starta\";\n          this.waitForInstance(accountResult.instanceId).then(() => {\n            var preZoneTasks = [];\n            var destinationAlias = undefined;\n            var destinationIp = undefined;\n\n            preZoneTasks.push(\n              new Promise((preZoneDone, preZoneFailed) => {\n                this.createStatus = \"Allokerar IP adress\";\n                this.accountsService\n                  .CreateWordpressIP(\n                    accountResult.accountId,\n                    this.newAccountDetails.companyId,\n                    accountResult.instanceId\n                  )\n                  .then((createAddressResult) => {\n                    console.log(\"createAddressResult\", createAddressResult);\n                    destinationIp = createAddressResult.staticIp.ipAddress;\n                    this.domainService\n                      .saveResourceRecordSet(\"Z3F7JB4JR12O9V\", {\n                        Name:\n                          this.newAccountDetails.prefix + \".generatorhallen.se\",\n                        TTL: 300,\n                        Type: \"A\",\n                        ResourceRecords: [\n                          {\n                            Value: destinationIp,\n                          },\n                        ],\n                      })\n                      .then((saveResourceRecordSetResult) => {\n                        if (this.newAccountDetails.hasSSL) {\n                          // creat dist here\n                          this.createStatus = \"Skapar cloudfront distribution\";\n                          this.accountsService\n                            .createDistribution(\n                              this.newAccountDetails.prefix + \"-dist\",\n                              this.newAccountDetails.prefix,\n                              destinationIp\n                            )\n                            .then((createDistributionResult) => {\n                              console.log(\n                                \"createDistributionResult\",\n                                createDistributionResult\n                              );\n                              destinationAlias =\n                                createDistributionResult.distribution\n                                  .domainName;\n                              destinationIp = undefined;\n                              preZoneDone(null);\n                            });\n                        } else {\n                          preZoneDone(null);\n                        }\n                      })\n                      .catch((e) => {\n                        console.log(\n                          \"failed to map prefix.generatorhallen.se\",\n                          e\n                        );\n                        preZoneFailed(\n                          \"failed to map prefix.generatorhallen.se\"\n                        );\n                      });\n                  });\n              })\n            );\n\n            // create DNS zone\n            Promise.all(preZoneTasks)\n              .then(() => {\n                return new Promise((zoneDone) => {\n                  if (this.newAccountDetails.hasDomain && !this.domainExists) {\n                    this.createStatus = \"Lägger till domännamn\";\n                    var domain = {\n                      companyId: this.newAccountDetails.companyId,\n                      domain: this.newAccountDetails.domain,\n                      accountId: accountResult.accountId,\n                      mail:\n                        this.newAccountDetails.domainType == 5\n                          ? \"local\"\n                          : \"remote\",\n                      status: \"\",\n                      hosting: \"internal\",\n                      destinationIp,\n                      destinationAlias,\n                    };\n                    this.domainService\n                      .addDomain(domain)\n                      .then((addDomainResponse) => {\n                        console.log(\"addDomainResponse\", addDomainResponse);\n                        this.domainService\n                          .setStatus(domain, this.newAccountDetails.domainType)\n                          .then((response) => {\n                            zoneDone(null);\n                          });\n                      })\n                      .catch((error) => {\n                        console.log(\"create zone failed\", error);\n                        zoneDone(null);\n                      });\n                  } else {\n                    zoneDone(null);\n                  }\n                });\n              })\n              .then(() => {\n                return new Promise((certDone) => {\n                  if (this.newAccountDetails.hasSSL) {\n                    this.createStatus = \"Skapar certifikat\";\n                    this.createCertificate()\n                      .then((certificateName) => {\n                        this.createStatus =\n                          \"Kopplar certifikat till Cloudfront\";\n                        if (certificateName) {\n                          return this.accountsService\n                            .attachCertificate(\n                              this.newAccountDetails.prefix + \"-dist\",\n                              certificateName\n                            )\n                            .catch(() => {\n                              return { status: \"failed\" };\n                            });\n                        } else {\n                          return { status: \"not yet validated\" };\n                        }\n                      })\n                      .then((attachResult) => {\n                        console.log(\"attachResult\", attachResult);\n                        certDone(\"cert created\");\n                      });\n                  } else {\n                    certDone(\"cert not created\");\n                  }\n                });\n              })\n              .then((certStatus) => {\n                console.log(\"certStatus\", certStatus);\n                this.creatingModal.close().then(() => {\n                  this.createAccountModal.close().then(() => {\n                    this.resolver({\n                      accountId: accountResult.accountId,\n                      sendMailResponse: accountResult.sendMailResponse,\n                      account: JSON.parse(\n                        JSON.stringify(this.newAccountDetails)\n                      ),\n                    });\n                  });\n                });\n              })\n              .catch((e) => {\n                this.creatingModal.close().then(() => {\n                  this.lookingUpDomain = false;\n                  this.showError(e.errorMessage || e.message);\n                });\n              });\n          });\n        })\n        .catch((e) => {\n          this.creatingModal.close().then(() => {\n            this.lookingUpDomain = false;\n            this.showError(e.errorMessage || e.message);\n          });\n        });\n    });\n  }\n\n  createProductionAccount() {\n    this.creatingModal.open().then(() => {\n      this.accountsService\n        .createAccount(this.newAccountDetails)\n        .then((accountResult) => {\n          this.newAccountDetails.accountId = accountResult.accountId;\n          if (this.newAccountDetails.hasDomain) {\n            var domain = {\n              companyId: this.newAccountDetails.companyId,\n              domain: this.newAccountDetails.domain,\n              accountId: accountResult.accountId,\n              mail: this.newAccountDetails.domainType == 5 ? \"local\" : \"remote\",\n              status: \"\",\n              hosting: \"internal\",\n            };\n            this.domainService\n              .addDomain(domain)\n              .then((response) => {\n                console.log(response);\n                this.domainService\n                  .setStatus(domain, this.newAccountDetails.domainType)\n                  .then((response) => {\n                    this.creatingModal.close().then(() => {\n                      this.createAccountModal.close().then(() => {\n                        this.resolver({\n                          accountId: accountResult.accountId,\n                          sendMailResponse: accountResult.sendMailResponse,\n                          account: JSON.parse(\n                            JSON.stringify(this.newAccountDetails)\n                          ),\n                        });\n                      });\n                    });\n                  });\n              })\n              .catch((e) => {\n                this.creatingModal.close().then(() => {\n                  this.lookingUpDomain = false;\n                  this.showError(e.errorMessage || e.message);\n                });\n              });\n          } else {\n            this.creatingModal.close().then(() => {\n              this.createAccountModal.close().then(() => {\n                this.resolver({\n                  accountId: accountResult.accountId,\n                  sendMailResponse: accountResult.sendMailResponse,\n                  account: JSON.parse(JSON.stringify(this.newAccountDetails)),\n                });\n              });\n            });\n          }\n        })\n        .catch((e) => {\n          this.creatingModal.close().then(() => {\n            this.lookingUpDomain = false;\n            this.showError(e.errorMessage || e.message);\n          });\n        });\n    });\n  }\n\n  closeCreateAccountModal(reason) {\n    this.createAccountModal.close().then(() => {\n      this.rejector(\"cancelled\");\n    });\n  }\n\n  showError(error: any) {\n\t\tlet msg = error;\n\t\tif(typeof(error) === 'object') msg = JSON.stringify(error);\n    this.errorModal.open().then(() => {\n      this.errorMessage = msg;\n    });\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/components/createaccountmodal.ts","import { Component, OnInit, OnDestroy, Input, ViewChild } from '@angular/core';\nimport { ActivatedRoute, Router, NavigationEnd } from '@angular/router';\nimport { ModalComponent } from 'ng2-bs4-modal/ng2-bs4-modal';\n\nimport { CompanyService } from '../services/company';\nimport { AccountsService } from '../services/accounts';\nimport { ErrorsService } from '../services/errors';\nimport { EventsService } from '../services/event';\nimport { MailComposer } from './mailcomposer'\nimport { SmsComposer } from './smscomposer'\n\nimport { Company }           from '../models/company';\nimport { SupportIssue }           from '../models/supportissue';\nimport { DomainInfo }\t\t\t\tfrom './domaininfo';\nimport { InvoiceInfo }\t\t\tfrom './invoiceinfo';\nimport { SubscriptionInfo }\t\t\tfrom './subscriptioninfo';\nimport { OrderInfo }\t\t\tfrom './orderinfo';\nimport { PhoneInfo }\t\t\tfrom './phoneinfo';\nimport { AddressInfo }\t\t\tfrom './addressinfo';\nimport { AccountInfoModal }\t\t\tfrom './accountinfo';\nimport { CommunicationHistory } from './communicationhistory';\nimport { CreateActivityModal }           from './createactivitymodal';\nimport { CreateAccountModal }           from './createaccountmodal';\nimport { EmailUtils }           from './emailutils';\n\nimport { DatePicker }           from './datepicker';\n\nvar promiseWaterfall = require('promise.waterfall')\n\n@Component({\n  selector: 'customer-full-info',\n  template: require('./templates/customerfullinfo.html')\n})\n\nexport class CustomerFullInfo implements OnInit, OnDestroy {\n\t\n\t@ViewChild('confirmSendModal')\n  confirmSendModal: ModalComponent;\n\n\t@ViewChild('confirmRollbackModal')\n  confirmRollbackModal: ModalComponent;\n\t\n\t@ViewChild('confirmMarkAsSentModal')\n  confirmMarkAsSentModal: ModalComponent;\n\t\n\t@ViewChild('confirmCreateInvoiceModal')\n  confirmCreateInvoiceModal: ModalComponent;\n\n\t@ViewChild('newMailComposer')\n  newMailComposer: MailComposer;\n\n\t@ViewChild('newSmsComposer')\n  newSmsComposer: SmsComposer;\n\n\t@ViewChild('emailUtils')\n  emailUtils: EmailUtils;\n\n\t@ViewChild('orderModal')\n  orderModal: ModalComponent;\n\n\t@ViewChild('confirmCreditModal')\n  confirmCreditModal: ModalComponent;\n\t\n\t@ViewChild('createAccountModal')\n  createAccountModal: CreateAccountModal;\n\n\t@ViewChild('createActivityModal')\n  createActivityModal: CreateActivityModal;\n\n\t@ViewChild('phoneInfo')\n  phoneInfo: PhoneInfo;\n\n\t@ViewChild('addressInfo')\n  addressinfo: AddressInfo;\n\n\t@ViewChild('orderInfo')\n  orderInfo: OrderInfo;\n\n\t@ViewChild('subscriptionInfo')\n  subscriptionInfo: SubscriptionInfo;\n\n\t@ViewChild('accountInfoModal')\n  accountInfoModal: AccountInfoModal;\n\n\t@ViewChild('changeDateModal')\n  changeDateModal: ModalComponent;\n\t\n\t@ViewChild('loadingModal')\n  loadingModal: ModalComponent;\n\n\t@ViewChild('errorModal')\n  errorModal: ModalComponent;\n\t\n\t@ViewChild('history')\n  history: CommunicationHistory;\n\n\t@ViewChild('domainInfo')\n  domainInfo: DomainInfo;\n\n\t@ViewChild('invoiceInfo')\n  invoiceInfo: InvoiceInfo;\n\n\t@ViewChild('dateToChangePicker')\n  dateToChangePicker: DatePicker;\n\n\tloaded : boolean;\n\tpossibleCompanies : Company[];\n\tcompany : Company;\n\n\tmatchedEmail : string;\n\t_issue: SupportIssue;\n\tsearchTimer : any;\n\tsearching : boolean;\n\trefreshing : boolean;\n\tisSearchMatch : boolean;\n\temailInfo : {};\n\t_canAssign : boolean;\n  show : string;\n\temailAccounts : any;\n\t_companyId : Number;\n\n\tloadingError : string;\n\tcloseErrorDialog : Function;\n\tisEditable : boolean;\n\tcompanyDataBeforeChanges : any;\n\n\tcountries : [any];\n\tmarkets : [any];\n\tstatuses : [any];\n\t\n\tnavigationSubscriber : any;\n\tavailableProducts : any;\n\tnewOrderObject : any;\n\torderTypes : any;\n\tselectedProduct: any;\n\tselectedCount : any;\n\n\thasSelectedInvoices : any;\n\tnumSelectedInvoices : number;\n\n\tselectedInvoice : any;\n\tinvoiceSystem : string;\n\n\tdateToChange : any;\n\tsetChangedDateCallback : any;\n\n\tloadingInfo : any;\n\n\tconstructor(\n    private companyService: CompanyService,\n    private accountsService: AccountsService,\n\t\tprivate route: ActivatedRoute,\n\t\tprivate errorsService : ErrorsService,\n\t\tprivate router: Router,\n\t\tprivate eventsService : EventsService\n  ) {\n\t\tthis.invoiceSystem = 'fortnox';\n\t\tthis.orderTypes = [\n\t\t\t{ orderType : 0, name : 'Ny order' },\n\t\t\t{ orderType : 1, name : 'Uppförsäljning' },\n\t\t\t{ orderType : 2, name : 'Förnyelse' },\n\t\t\t{ orderType : 5, name : 'Offert' }\n\t\t]\n\t\tthis.selectedCount = 1;\n\t\tthis.newOrderObject = {\n\t\t\torderType : this.orderTypes[0],\n\t\t\tcontact : { name : ''},\n\t\t\taddress : { },\n\t\t\tproducts : []\n\t\t}\n\t  this.possibleCompanies = [];\n\t  this._canAssign = true;\n\t\tthis.isEditable = false;\n    this.show = 'overview';\n\t\tthis.companyService.getCountries().then((countries) => {\n\t\t\tthis.countries = countries;\n\t\t}).catch((e) => {\n\t\t\tthis.showError(e.errorMessage || e.message);\n\t\t});\n\t\tthis.companyService.getMarkets().then((markets) => {\n\t\t\tthis.markets = markets;\n\t\t}).catch((e) => {\n\t\t\tthis.showError(e.errorMessage || e.message);\n\t\t});\n\t\tthis.companyService.getStatuses().then((statuses) => {\n\t\t\tthis.statuses = statuses;\n\t\t}).catch((e) => {\n\t\t\tthis.showError(e.errorMessage || e.message);\n\t\t});\n  }\n\n\t@Input()\n\tset canAssign(value : boolean) {\n\t\tthis._canAssign = value;\n\t}\n\t\n\tget canAssign() : boolean {\n\t\treturn this._canAssign;\n\t}\n\t\n\t@Input()\n\tset companyId(companyId : Number) {\n\t\tif(companyId) {\n\t\t\tthis._companyId = companyId;\n\t\t\tthis.eventsService.broadcast('companyinfo-loading', { });\n\t\t\tthis.refresh().then((loaded) => {\n\t\t\t\tthis.eventsService.broadcast('companyinfo-loaded', { loaded : loaded });\n\t\t\t})\n\t\t}\n\t}\t\t\n\n\tngOnInit() {\n\t\tthis.loaded = false;\n\t\tthis.navigationSubscriber = this.router.events.subscribe((event) => { this.navigationEnd(event); });\n\t}  \n\n\tngOnDestroy() {\n\t\tthis.navigationSubscriber.unsubscribe();\n\t}\n\n\tnavigationEnd(event) : void {\n\t\tif(event instanceof NavigationEnd) {\t\n\t\t\tvar url = (event as NavigationEnd).url;\n\t\t\tthis.companyId = this.route.snapshot.params['id'];\n\t\t\tif(this.route.snapshot.params['view']) {\n\t\t\t\tthis.show = this.route.snapshot.params['view'];\n\t\t\t\tif(this.show.indexOf('-') != -1) {\n\t\t\t\t\tvar params = this.show.split('-');\n\t\t\t\t\tthis.show = params[0];\n\t\t\t\t\tif(this.show == 'accounts' && parseInt(params[1]) > 0) {\n\t\t\t\t\t\tthis.showAccountInfo(params[1]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\ttoggleInvoicesToolbar() : void {\n\t\tvar numSelected = this.company.invoices.filter(i => i.selected).length;\t  \n\t\tthis.numSelectedInvoices = numSelected;\n\t\tthis.hasSelectedInvoices = numSelected > 0;\n\t}\n\n\tsetInvoiceDate(invoice) : void {\n\t\tthis.changeDateModal.open().then(() => {\n\t\t\tthis.dateToChange = invoice.invoiceDate;\n\t\t\tthis.setChangedDateCallback = () => {\n\t\t\t\tinvoice.invoiceDate = this.dateToChangePicker.Date.getTime() / 1000;\n\t\t\t\tthis.loadingModal.open().then(() => {\n\t\t\t\t\tthis.companyService.updateInvoiceDate(this.company.companyId, invoice.invoiceId, invoice.invoiceNr, invoice.invoiceDate).then(() => {\n\t\t\t\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\t\t\t\tthis.changeDateModal.close();\n\t\t\t\t\t\t})\n\t\t\t\t\t})\n\t\t\t\t})\n\t\t\t}\t\n\t\t})\n\t}\n\n\tselectedAllInvoices() : void {\n\t\tthis.company.invoices.forEach(i => i.selected = !i.selected)\n\t\tthis.toggleInvoicesToolbar();\n\t}\n\n\tsendMail(contact) : void {\n\t\tthis.newMailComposer.clearContacts();\n\t\tthis.newMailComposer.setSubject('');\n\t\tthis.newMailComposer.setEmail(contact.emails[0].adress);\n\t\tcontact.emails.forEach((c) => {\n\t\t\tthis.newMailComposer.addContact({ email: c.adress, name: c.adress });\t\n\t\t})\n\t\tlet { accountId } = this.company.accounts[0] || { accountId : 0 };\n\t\tthis.newMailComposer.open(this.company.companyId, accountId).then((result) => {\n\t\t\tconsole.log(result)\n\t\t})\n\t}\n\n\tsendSms(contact, number) : void {\n\t\tthis.newSmsComposer.clearContacts();\n\t\tthis.newSmsComposer.setSubject('');\n\t\tif(contact) {\n\t\t\tlet first = true;\n\t\t\tfor(const k in contact.phones) {\n\t\t\t\tcontact.phones[k].forEach((m) => {\n\t\t\t\t\tlet number = '+46' + m.areaCode + m.telnr;\n\t\t\t\t\tthis.newSmsComposer.addContact({ number: number, name: contact.firstName + ' ' + contact.lastName });\t\n\t\t\t\t\tif(first) {\n\t\t\t\t\t\tthis.newSmsComposer.setNumber(number);\n\t\t\t\t\t\tfirst = false;\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t}\n\t\t} else if(number) {\n\t\t\tfor(const contact of this.company.contacts) {\n\t\t\t\tfor(const k in contact.phones) {\n\t\t\t\t\tcontact.phones[k].forEach((m) => {\n\t\t\t\t\t\tlet number = '+46' + m.areaCode + m.telnr;\n\t\t\t\t\t\tthis.newSmsComposer.addContact({ number: number, name: contact.firstName + ' ' + contact.lastName });\t\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.newSmsComposer.setNumber('+46' + number.areaCode + number.telnr);\n\t\t}\t\t\n\t\tlet { accountId } = this.company.accounts[0] || { accountId : 0 };\n\t\tthis.newSmsComposer.open(this.company.companyId, accountId).then((result) => {\n\t\t\tconsole.log(result)\n\t\t})\n\t}\n\n\teditCompanyDetails() {\n\t\tthis.isEditable = true;\n\t\tthis.companyDataBeforeChanges = { ...this.company }\n\t}\n\n\tcancelEditCompanyDetails() {\n\t\tthis.isEditable = false;\n\t\tthis.company = this.companyDataBeforeChanges;\n\t}\n\n\tsaveCompanyDetails() {\n\t\tthis.loadingModal.open().then(() => {\n\t\t\tthis.companyService.saveCompanyDetails(this.company).then((newCompanyInfo) => {\n\t\t\t\tthis.isEditable = false; \n\t\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\t\tthis.company.addresses.forEach((a) => {\n\t\t\t\t\t\tif(a.adressId == newCompanyInfo.adressId) {\n\t\t\t\t\t\t\ta.adress1 = newCompanyInfo.adress1;\n\t\t\t\t\t\t\ta.adress2 = newCompanyInfo.adress2;\n\t\t\t\t\t\t\ta.postalCode = newCompanyInfo.postalCode;\n\t\t\t\t\t\t\ta.city = newCompanyInfo.city;\n\t\t\t\t\t\t\ta.country = newCompanyInfo.country;\n\t\t\t\t\t\t\ta.countryId = newCompanyInfo.countryId;\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t})\n\t\t\t}).catch((e) => {\n\t\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\t\tthis.showError(e.errorMessage || e.message);\n\t\t\t\t});\n\t\t\t})\n\t\t});\n\t}\n\n\tcreateActivityForCompany(companyId) {\n\t\tthis.createActivityModal.open({ companyId : companyId}).then(() => {\n\t\t\t\n\t\t});\n\t}\n\n\tloadHistory() {\n\t\tthis.history.companyId = this._companyId;\n\t\tthis.history.accounts = this.company.accounts;\n\t\tthis.history.refresh();\n\t}\n\n\trefresh() : Promise<boolean> {\n\t\treturn new Promise((resolve) => {\n\t\t\tthis.isEditable = false;\n\t\t\tthis.refreshing = true;\n\t\t\tthis.loaded = false;\n\t\t\tthis.companyService.getById(this._companyId).then((company) => {\n\t\t\t\tthis.company = company;\n\t\t\t\tthis.loaded = true;\n\t\t\t\tthis.refreshing = false;\n\t\t\t\tthis.company.domain.forEach((d) => {\n\t\t\t\t\td.companyId = this.company.companyId;\n\t\t\t\t\td.subdomains = [];\n\t\t\t\t\tcompany.subdomain.forEach((sd) => {\n\t\t\t\t\t\tif(sd.domain.indexOf('.' + d.domain) != -1) {\n\t\t\t\t\t\t\td.subdomains.push(sd);\n\t\t\t\t\t\t}\n\t\t\t\t\t})\t\t\t\t\t\n\t\t\t\t\tcompany.accounts.forEach((a) => {\n\t\t\t\t\t\tif(d.accountId == a.accountId)\n\t\t\t\t\t\t\td.prefix = a.prefix;\t\t\t\t\t\t\n\t\t\t\t\t});\n\t\t\t\t})\n\t\t\t\tcompany.accounts.map((a) => {\n\t\t\t\t\tif(a.type == 'wordpress') {\n\t\t\t\t\t\treturn this.accountsService.GetWordpressInstance(a.instanceId).then((instanceInfo) => {\n\t\t\t\t\t\t\t// console.log('instanceInfo', instanceInfo.instance)\n\t\t\t\t\t\t\ta.wordpressInfo = instanceInfo.instance;\n\t\t\t\t\t\t})\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tthis.company.orders.sort(function(a, b) {\n\t\t\t\t\treturn b.createdDate - a.createdDate;\n\t\t\t\t});\n\t\t\t\tthis.companyService.getEmailAccounts(this._companyId).then((emailAccounts) => {\n\t\t\t\t\t// console.log('emailaccounts', emailAccounts)\n\t\t\t\t\tthis.emailAccounts = emailAccounts;\n\t\t\t\t}).catch((e) => {\n\t\t\t\t\tthis.errorsService.broadcast('error', e.errorMessage || e.message);\t\n\t\t\t\t});\n\t\t\t\tresolve(true);\n\t\t\t}).catch((e) => {\n\t\t\t\tthis.errorsService.broadcast('error', e.errorMessage || e.message);\n\t\t\t\tresolve(false);\n\t\t\t});\n\t\t});\n\t}\n\n\tnewOrder() {\n\t\tthis.orderModal.open('lg').then(() => {\n\t\t\tthis.companyService.getAvailableProducts().then((products) => {\n\t\t\t\tthis.availableProducts = products;\n\t\t\t\tthis.selectedProduct = products[0].productId;\n\t\t\t\tthis.newOrderObject.contact = this.company.contacts[0];\n\t\t\t\tthis.newOrderObject.address = this.company.addresses[0];\n\t\t\t}).catch((e) => {\n\t\t\t\tthis.eventsService.broadcast('error', e.errorMessage || e.message);\n\t\t\t})\n\t\t})\n\t}\n\n\tcreateOrder() {\n\t\tthis.loadingModal.open().then(() => {\n\t\t\tthis.companyService.createOrder(this.newOrderObject).then((order) => {\n\t\t\t\tconsole.log(order);\n\t\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\t\tthis.orderModal.close().then(() => {\n\t\t\t\t\t\tthis.refresh().then(() => {\n\t\t\t\t\t\t\tconsole.log('refreshed');\n\t\t\t\t\t\t})\n\t\t\t\t\t})\n\t\t\t\t})\n\t\t\t}).catch((e) => {\n\t\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\t\tthis.loadingError = e.errorMessage || e.message;\n\t\t\t\t\tthis.errorModal.open();\n\t\t\t\t})\n\t\t\t})\n\t\t})\n\t}\n\n\taddSelectedProduct(productId) {\n\t\tconsole.log(this.selectedProduct)\n\t\tthis.availableProducts.forEach((p) => {\n\t\t\tif(p.productId == this.selectedProduct) {\n\t\t\t\tconsole.log(p);\n\t\t\t\tif(this.newOrderObject.products.indexOf(p) == -1) {\n\t\t\t\t\tp.count = this.selectedCount;\n\t\t\t\t\tp.discount = 0;\n\t\t\t\t\tp.subTotal = p.count * p.sellPrice;\n\t\t\t\t\tthis.newOrderObject.products.push(p);\n\t\t\t\t} else {\n\t\t\t\t\tthis.loadingError = 'Produkten är redan tillagd';\n\t\t\t\t\tthis.errorModal.open();\n\t\t\t\t}\n\t\t\t}\n\t\t})\n\t}\n\n\tremoveProduct(p) {\n\t\tthis.newOrderObject.products.splice(this.newOrderObject.products.indexOf(p), 1);\n\t}\n\t\n\trecalc(p) {\n\t\tp.discount = Math.max(Math.min(p.discount, 100), 0);\n\t\tp.count = Math.max(Math.min(10000, p.count), 0);\n\t\tp.sellPrice = Math.max(Math.min(50000, p.sellPrice), 0);\n\t\tp.subTotal = (p.count * p.sellPrice) * ((100 - p.discount) / 100.0);\n\t}\n\n\tshowSubscriptionInfo(subscription) {\n\t\tthis.subscriptionInfo.open(subscription, this.company).then((response) => {\n\t\t\tif(response.success) {\n\t\t\t\tthis.company.subscriptions.forEach((s, i) => {\n\t\t\t\t\tif(s.subscriptionId == response.subscription.subscriptionId) {\n\t\t\t\t\t\tthis.company.subscriptions[i] = response.subscription;\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t}\n\t\t})\n\t}\t\n\n\tshowPhoneInfo(phone) {\n\t\tthis.phoneInfo.open(JSON.parse(JSON.stringify(phone))).then((data) => {\n\t\t\tif(data.Reason == 'added') {\n\t\t\t\tif(typeof(this.company.phones[data.phone.name]) == \"undefined\")\n\t\t\t\t\tthis.company.phones[data.phone.name] = [];\n\t\t\t\tthis.company.phones[data.phone.name].push(data.phone);\n\t\t\t} else if(data.Reason == 'updated') {\n\t\t\t\tvar updatedPhone = data.phone;\n\t\t\t\tconsole.log(updatedPhone);\t\t\t\n\t\t\t\tphone.areaCode = updatedPhone.areaCode;\n\t\t\t\tphone.telnr = updatedPhone.telnr;\n\t\t\t\tphone.note = updatedPhone.note;\n\t\t\t\tphone.name = updatedPhone.name;\n\t\t\t\tphone.assName = updatedPhone.assName;\n\t\t\t} else if(data.Reason == 'deleted') {\n\t\t\t\tif(typeof(this.company.phones[phone.name]) != \"undefined\") {\n\t\t\t\t\tvar index = this.company.phones[phone.name].indexOf(phone);\n\t\t\t\t\tif(index != -1) {\n\t\t\t\t\t\tthis.company.phones[phone.name].splice(index, 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}).catch((e) => {\n\t\t\tif(e != 'cancelled')\n\t\t\t\tthis.showError(e.errorMessage || e.message);\n\t\t});\n\t}\n\n\tshowAddressInfo(address) {\n\t\tthis.addressinfo.open(JSON.parse(JSON.stringify(address))).then((data) => {\n\t\t\tif(data.Reason == 'added') {\n\t\t\t\tthis.company.addresses.push(data.address);\n\t\t\t} else if(data.Reason == 'updated') {\n\t\t\t\tfor(var k in data.address) {\n\t\t\t\t\taddress[k] = data.address[k];\n\t\t\t\t}\n\t\t\t\tif(address.adressTypeId == 1) {\n\t\t\t\t\t// need to update svea too\n\t\t\t\t\tthis.loadingModal.open().then(() => {\n\t\t\t\t\t\tthis.loadingInfo = 'Uppdaterar informationen hos SVEA';\n\t\t\t\t\t\tthis.companyService.updateInvoiceAddressAtSvea(this.company.companyId, address)\n\t\t\t\t\t\t.catch((e) => {\n\t\t\t\t\t\t\tthis.showError('Kunde inte uppdatera adressen hos Svea: ' + (e.errorMessage || e.error || e));\n\t\t\t\t\t\t})\n\t\t\t\t\t\t.then(() => {\n\t\t\t\t\t\t\tthis.loadingModal.close();\n\t\t\t\t\t\t\tthis.loadingInfo = \"\";\n\t\t\t\t\t\t})\t\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t\taddress = { ...data.address }\n\t\t\t\tconsole.log('address', address, data.address)\n\t\t\t} else if(data.Reason == 'deleted') {\n\t\t\t\tvar index = this.company.addresses.indexOf(address);\n\t\t\t\tif(index != -1) {\n\t\t\t\t\tthis.company.addresses.splice(index, 1);\n\t\t\t\t}\n\t\t\t}\n\t\t}).catch((e) => {\n\t\t\tif(e != 'cancelled')\n\t\t\t\tthis.showError(e.errorMessage || e.message);\n\t\t});\n\t}\n\n\trefreshPaymentStatus(invoiceId) : void {\n\t\tlet invoice = this.company.invoices.filter(i => i.invoiceId == invoiceId)[0];\n\t\tinvoice.refreshing = true;\n\t\tthis.companyService.updateInvoicePaymentState(invoiceId)\n\t\t.then((refreshResult) => {\n\t\t\tconsole.log('refreshResult', refreshResult)\n\t\t\tthis.companyService.getInvoiceById(invoiceId).then((updatedInvoice) => {\n\t\t\t\tlet idx = this.company.invoices.indexOf(invoice);\n\t\t\t\tthis.company.invoices[idx] = { ...updatedInvoice };\n\t\t\t})\n\t\t}).catch((err) => {\n\t\t\tconsole.log('err', err);\n\t\t\tinvoice.refreshing = false;\n\t\t\tthis.showError(err);\n\t\t})\n\t}\n\n\tshowSendSystemInvoiceModal(invoice) : void {\n\t\tthis.selectedInvoice = invoice;\n\t\tthis.confirmSendModal.open();\n\t}\n\n\tconfirmSendSystemInvoice() : void {\n\t\tthis.loadingModal.open().then(() => {\n\t\t\tthis.companyService.sendInvoice(this.selectedInvoice.invoiceId).then((response) => {\n\t\t\t\tconsole.log('send invoice result', response);\t\t\n\t\t\t\tthis.selectedInvoice.isSent = true;\n\t\t\t\tif(response.sveaInvoice)\n\t\t\t\t\tthis.selectedInvoice.sveaFileDate = new Date().valueOf() / 1000;\n\t\t\t\telse \n\t\t\t\t\tthis.selectedInvoice.fortnoxFileDate = new Date().valueOf() / 1000;\n\t\t\t}).catch((err) => {\n\t\t\t\tconsole.log('error sending invoice', this.selectedInvoice, err)\n\t\t\t\tthis.showError(err);\n\t\t\t})\n\t\t\t.then(() => {\n\t\t\t\treturn this.loadingModal.close()\n\t\t\t})\n\t\t\t.then(() => {\n\t\t\t\treturn this.confirmSendModal.close();\n\t\t\t})\n\t\t\t.then(() => {\n\t\t\t\tthis.toggleInvoicesToolbar();\n\t\t\t})\n\t\t})\n\t}\n\t\n\tshowCreateSystemInvoiceModal(invoice) : void {\n\t\tthis.selectedInvoice = invoice;\n\t\tthis.confirmCreateInvoiceModal.open();\n\t}\n\n\tconfirmCreateSystemInvoice() : void {\n\t\tthis.loadingModal.open().then(() => {\n\t\t\tthis.companyService.createSystemInvoice(this.selectedInvoice.invoiceId, this.invoiceSystem)\n\t\t\t.then((response) => {\n\t\t\t\tconsole.log('create invoice result', response);\t\t\n\t\t\t\tif(this.invoiceSystem == 'fortnox')\n\t\t\t\t\tthis.selectedInvoice.fortnoxFileDate = new Date().valueOf() / 1000;\n\t\t\t\telse\n\t\t\t\t\tthis.selectedInvoice.sveaFileDate = new Date().valueOf() / 1000;\n\t\t\t})\t\t\n\t\t\t.catch((error) => {\n\t\t\t\tconsole.log('error when creating invoices', error);\n\t\t\t\tthis.showError('error when creating invoices: ' + error)\n\t\t\t})\n\t\t\t.then(() => {\n\t\t\t\treturn this.loadingModal.close()\n\t\t\t})\n\t\t\t.then(() => {\n\t\t\t\treturn this.confirmCreateInvoiceModal.close();\n\t\t\t})\n\t\t\t.then(() => {\n\t\t\t\tthis.toggleInvoicesToolbar();\n\t\t\t})\n\t\t})\n\t}\n\n\tshowCreditModal() : void {\n\t\tthis.confirmCreditModal.open();\n\t}\n\n\tcreditSelectedInvoices() : void {\n\t\tthis.confirmCreditModal.close().then(() => {\n\t\t\tthis.loadingModal.open().then(() => {\n\t\t\t\tlet tasks = this.company.invoices.filter(i => i.selected).map((invoice) => {\n\t\t\t\t\tlet creditInvoice = (invoice) => {\n\t\t\t\t\t\treturn this.companyService.getInvoiceById(invoice.invoiceId).then((invoice) => {\n\t\t\t\t\t\t\treturn(invoice.items.map((item) => {\n\t\t\t\t\t\t\t\treturn({ productId : item.productId })\n\t\t\t\t\t\t\t}))\n\t\t\t\t\t\t})\n\t\t\t\t\t\t.then((products) => {\n\t\t\t\t\t\t\treturn this.companyService.creditInvoice(invoice.invoiceId, products).then((response) => {\n\t\t\t\t\t\t\t\tconsole.log('credit invoice result', response);\t\t\n\t\t\t\t\t\t\t\treturn({ success : true })\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t})\n\t\t\t\t\t}\n\t\t\t\t\tlet showError = this.showError;\n\t\t\t\t\treturn function() {\n\t\t\t\t\t\treturn creditInvoice(invoice)\n\t\t\t\t\t\t.then((result) => {\n\t\t\t\t\t\t\tconsole.log('credit result', result)\n\t\t\t\t\t\t})\n\t\t\t\t\t\t.catch((err) => {\n\t\t\t\t\t\t\tconsole.log('error crediting invoice', invoice, err)\n\t\t\t\t\t\t\tshowError(err.errorMessage || err);\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tconsole.log('tasks', tasks)\n\t\t\t\tpromiseWaterfall(tasks).then(() => {\n\t\t\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\t\t\tthis.refresh();\n\t\t\t\t\t})\n\t\t\t\t})\n\t\t\t})\n\t\t})\n\t}\n\n\tshowOrderInfo(orderId) {\n\t\tlet order = this.company.orders.filter(o => o.orderId == orderId)[0];\n\t\tthis.orderInfo.open(order).then((closeResult) => {\n\t\t\tif(closeResult == 'cancelled') {\n\t\t\t\torder.statusId = 4;\n\t\t\t\torder.name = 'Makulerad';\n\t\t\t}\n\t\t\tif(closeResult == 'confirmed') {\n\t\t\t\torder.statusId = 2;\n\t\t\t\torder.name = 'Bekräftad';\n\t\t\t}\n\t\t\tif(closeResult == 'created-invoice') {\n\t\t\t\torder.statusId = 3;\n\t\t\t\torder.name = 'Avslutad';\n\t\t\t\tthis.refresh();\n\t\t\t}\n\t\t})\n\t}\n\t\n\tshowAccountInfo(accountId) {\n\t\tthis.accountInfoModal.open(accountId).then((closeResult) => {\n\t\t\tif(closeResult == 'deleted') {\n\t\t\t\tthis.company.accounts = this.company.accounts.filter(a => a.accountId != accountId)\n\t\t\t}\n\t\t})\n\t}\t\n\t\n\tshowDomainInfo(domain) {\n\t\tthis.domainInfo.open(domain).then((closedResult) => {\n\t\t\tif(closedResult && closedResult.addedDomain) {\n\t\t\t\tif(this.company.domain.indexOf(closedResult.addedDomain) == -1)\n\t\t\t\t\tthis.company.domain.push(closedResult.addedDomain);\n\t\t\t} else if(closedResult && closedResult.deletedDomain) {\n\t\t\t\tif(this.company.domain.indexOf(closedResult.deletedDomain) != -1)\n\t\t\t\t\tthis.company.domain.splice(this.company.domain.indexOf(closedResult.deletedDomain), 1);\n\t\t\t}\n\t\t})\n\t}\n\n\tshowInvoiceInfo(invoiceId) {\n\t\tthis.invoiceInfo.open(invoiceId);\n\t}\n\n\tshowError(message) : Promise<any> {\n\t\treturn new Promise((resolve) => {\n\t\t\tthis.loadingError = message;\n\t\t\tthis.errorModal.open().then(() => {\n\t\t\t\tthis.closeErrorDialog = () => {\n\t\t\t\t\tthis.errorModal.close().then(() => {\n\t\t\t\t\t\tresolve('error-closed');\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t})\n\t\t});\n\t}\n\n\tsetActive(account) {\n\t\tif(account.active == 1) return;\n\t\tthis.loadingModal.open();\n\t\tthis.accountsService.setActive(account).then((response) => {\n\t\t\tthis.loadingModal.close();\n\t\t\tif(response.success) {\n\t\t\t\taccount.active = 1;\n\t\t\t\tthis.refresh();\n\t\t\t}\n\t\t})\n\t}\n\n\tsetInactive(account) {\n\t\tif(account.active == 0) return;\n\t\tthis.loadingModal.open().then(() => {\n\t\t\tthis.accountsService.setInactive(account).then((response) => {\n\t\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\t\taccount.active = 0;\n\t\t\t\t\tthis.refresh();\n\t\t\t\t})\n\t\t\t})\n\t\t})\n\t}\n\n\taddAccount(skipAccount, prefix) {\n\t\tthis.createAccountModal.open({ companyId : this.company.companyId, domains : this.company.domain, skipAccount : skipAccount || false, prefix }).then((accountResult) => {\n\t\t\tsetTimeout(() => {\n\t\t\t\tconsole.log(accountResult);\n\t\t\t\tthis.refresh();\n\t\t\t\tthis.company.accounts.push(accountResult.account);\n\t\t\t\tif(accountResult.sendMailResponse != 1 && skipAccount !== true) {\n\t\t\t\t\talert('Fel, kunte inte skicka välkomst mail');\n\t\t\t\t}\t\n\t\t\t}, 2000);\n\t\t}).catch((e) => {\n\t\t\tconsole.log(e);\n\t\t})\n\t}\n\n\taddEmailAlias() {\n\t\tthis.emailUtils.addEmailAlias().then((response) => {\n\t\t\tconsole.log(response);\n\t\t\tif(response.action == 'added') {\n\t\t\t\tthis.emailAccounts.aliases.push(response.alias);\n\t\t\t}\n\t\t}).catch((e) => {\n\t\t\tthis.showError(e.errorMessage || e.message).then(() => {\n\t\t\t\t\n\t\t\t})\n\t\t})\n\t}\n\n\taddEmailForward() {\n\t\tthis.emailUtils.addEmailForward().then((response) => {\n\t\t\tconsole.log(response);\n\t\t\tif(response.action == 'added') {\n\t\t\t\tthis.emailAccounts.forwards.push(response.forward);\n\t\t\t}\n\t\t}).catch((e) => {\n\t\t\tthis.showError(e.errorMessage || e.message).then(() => {\n\t\t\t\t\n\t\t\t})\n\t\t})\n\t}\n\n\taddEmailAccount() {\n\t\tthis.emailUtils.addEmailAccount().then((response) => {\n\t\t\tconsole.log(response);\n\t\t\tif(response.action == 'added') {\n\t\t\t\tthis.emailAccounts.accounts.push(response.account);\n\t\t\t}\n\t\t}).catch((e) => {\n\t\t\tthis.showError(e.errorMessage || e.message).then(() => {\n\t\t\t\t\n\t\t\t})\n\t\t})\n\t}\n\n\teditAlias(alias) {\n\t\tvar aliasCopy = JSON.parse(JSON.stringify(alias));\n\t\tthis.emailUtils.editAlias(aliasCopy).then((response) => {\n\t\t\tif(response.action == 'cancel-delete') {\n\t\t\t\tthis.editAlias(alias);\n\t\t\t} else if(response.action == 'deleted') {\n\t\t\t\tthis.emailAccounts.aliases.splice(this.emailAccounts.aliases.indexOf(alias), 1);\n\t\t\t} else if(response.action == 'saved') {\n\t\t\t\tfor(var k in alias) {\n\t\t\t\t\talias[k] = aliasCopy[k];\n\t\t\t\t}\n\t\t\t}\n\t\t}).catch((e) => {\n\t\t\tthis.showError(e.errorMessage || e.message).then(() => {\n\t\t\t\tthis.editAlias(alias);\n\t\t\t})\n\t\t})\n\t}\n\n\teditForward(forward) {\n\t\tvar forwardCopy = JSON.parse(JSON.stringify(forward));\n\t\tthis.emailUtils.editForward(forwardCopy).then((response) => {\n\t\t\tif(response.action == 'cancel-delete') {\n\t\t\t\tthis.editForward(forward);\n\t\t\t} else if(response.action == 'deleted') {\n\t\t\t\tthis.emailAccounts.forwards.splice(this.emailAccounts.forwards.indexOf(forward), 1);\n\t\t\t} else if(response.action == 'saved') {\n\t\t\t\tfor(var k in forward) {\n\t\t\t\t\tforward[k] = forwardCopy[k];\n\t\t\t\t}\n\t\t\t}\n\t\t}).catch((e) => {\n\t\t\tthis.showError(e.errorMessage || e.message).then(() => {\n\t\t\t\tthis.editForward(forward);\n\t\t\t})\n\t\t})\n\t}\n\n\teditEmail(account) {\n\t\tvar accountCopy = JSON.parse(JSON.stringify(account));\n\t\tthis.emailUtils.editEmail(accountCopy).then((response) => {\n\t\t\tif(response.action == 'cancel-delete') {\n\t\t\t\tthis.editEmail(account);\n\t\t\t} else if(response.action == 'deleted') {\n\t\t\t\tthis.emailAccounts.accounts.splice(this.emailAccounts.accounts.indexOf(account), 1);\n\t\t\t} else if(response.action == 'saved') {\n\t\t\t\tfor(var k in account) {\n\t\t\t\t\taccount[k] = accountCopy[k];\n\t\t\t\t}\n\t\t\t}\n\t\t}).catch((e) => {\n\t\t\tthis.showError(e.errorMessage || e.message).then(() => {\n\t\t\t\tthis.editAlias(account);\n\t\t\t})\n\t\t})\n\t}\n\n\tviewEmailLogs(email) {\n\t\tthis.emailUtils.viewEmailLogs(email).then((response) => {\n\t\t\t\n\t\t}).catch((e) => {\n\t\t\tthis.showError(e.errorMessage || e.message).then(() => {\n\t\t\t\t\n\t\t\t})\n\t\t})\n\t}\n\n}\n\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/components/customerfullinfo.ts","import { Component, Input } from '@angular/core';\n\n \n\n@Component({\n\tselector : 'date-formatter',\n  template: '{{dateStr}}'\n})\n\nexport class DateFormatter {\n\t\n\t_date: Date;\n\tdateStr : string = '-';\n\tstatic months : any[] = ['Jan', 'Feb', 'Mar', 'Apr', 'Maj', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dec'];\n\t\n  constructor() {\n\t  this.time = true;\n  }\n\n\t@Input()\n\tuseDayName : boolean;\n\n\t@Input()\t\n\ttime : boolean;\n\t\t\n\t@Input()\t\n\tset date(date: string) {\n\t\tthis._date = DateFormatter.getDateObject(date);\n\t\tthis.dateStr = DateFormatter.getString(this._date, this.time, this.useDayName);\t  \n  }\n\n  get date() { return this._date.toString(); }\n\n\tstatic getDateObject(date) : Date {\n\t\tif(typeof(date) == \"number\" || parseInt(date) > 1000000)\n\t    return new Date(Number(date) * 1000);\n\t\telse\n  \t  return new Date(date);\n\t}\n\n\tstatic getString(date, useTime, useDayName) : string {\n    \n\t\tvar ret = '';\n\n    var year = date.getFullYear();\n    var day = date.getDate();\n    var month = date.getMonth();\n    var hour = date.getHours().toString();\n    var minute = date.getMinutes().toString();\n    \n    minute = Number(minute) < 10 ? ('0' + minute) : minute;\n    hour = Number(hour) < 10 ? ('0' + hour) : hour;\n    \n    var thisYear = new Date().getFullYear();\n    var thisDay = new Date().getDate();\n    var thisMonth = new Date().getUTCMonth();\n    \n    var ydayYear = new Date(new Date().getTime() - (60 * 60 * 24 * 1000)).getFullYear();\n    var ydayDay = new Date(new Date().getTime() - (60 * 60 * 24 * 1000)).getDate();\n    var ydayMonth = new Date(new Date().getTime() - (60 * 60 * 24 * 1000)).getUTCMonth();\n    \n    var yydayYear = new Date(new Date().getTime() - (60 * 60 * 48 * 1000)).getFullYear();\n    var yydayDay = new Date(new Date().getTime() - (60 * 60 * 48 * 1000)).getDate();\n    var yydayMonth = new Date(new Date().getTime() - (60 * 60 * 48 * 1000)).getUTCMonth();\n\n\t\tvar maxNumberOfDaysBackForDayname = new Date().getDay();\n\t\tvar minDateForForDayname = new Date(new Date(thisYear + '-' + (thisMonth + 1) + '-' + thisDay).getTime() - (60 * 60 * 24 * 1000 * maxNumberOfDaysBackForDayname));\n\t\t\n    if(thisYear == year && thisDay == day && thisMonth == month) {\n\t  \tret = \"Idag\" + (useTime ? (\", kl \" + hour + \":\" + minute) : '');  \n    } else if(ydayYear == year && ydayDay == day && ydayMonth == month) {\n    \tret = \"Igår\" + (useTime ? (\", kl \" + hour + \":\" + minute) : ''); \n    } else if(yydayYear == year && yydayDay == day && yydayMonth == month) {\n    \tret = \"I förrgår\" + (useTime ? (\", kl \" + hour + \":\" + minute) : '');\n\t\t} else if(date.getTime() > minDateForForDayname.getTime() && useDayName) {\n\t\t\tvar days = ['Måndag', 'Tisdag', 'Onsdag', 'Fredag', 'Lördag', 'Söndag'];\n\t\t\tret = days[date.getDay()];\n    } else {\n\t    ret = day + \" \" + \n\t    \tthis.months[month] +  \n\t    \t(useTime ? (\", kl \" + hour + \":\" + minute) : '') + \" \" +\n\t    \t(year != thisYear ? (\" - \" + year) : '');\n\t  }\n\n\t\treturn ret;\n\n\t}\n\n\tgetWeek = function (date) {  \n\t    // Create a copy of this date object  \n\t    var target  = new Date(date.valueOf());  \n\t  \n\t    // ISO week date weeks start on monday  \n\t    // so correct the day number  \n\t    var dayNr   = (date.getDay() + 6) % 7;  \n\t  \n\t    // ISO 8601 states that week 1 is the week  \n\t    // with the first thursday of that year.  \n\t    // Set the target date to the thursday in the target week  \n\t    target.setDate(target.getDate() - dayNr + 3);  \n\t  \n\t    // Store the millisecond value of the target date  \n\t    var firstThursday = target.valueOf();  \n\t  \n\t    // Set the target to the first thursday of the year  \n\t    // First set the target to january first  \n\t    target.setMonth(0, 1);  \n\t    // Not a thursday? Correct the date to the next thursday  \n\t    if (target.getDay() != 4) {  \n\t        target.setMonth(0, 1 + ((4 - target.getDay()) + 7) % 7);  \n\t    }  \n\t  \n\t    // The weeknumber is the number of weeks between the   \n\t    // first thursday of the year and the thursday in the target week  \n\t    return 1 + Math.ceil((firstThursday - target.valueOf()) / 604800000); // 604800000 = 7 * 24 * 3600 * 1000  \n\t} \n\n }\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/components/dateformatter.ts","import { Component, Input, OnInit, ViewChild, ElementRef } from '@angular/core';\nimport { Router, ActivatedRoute, Params}            from '@angular/router';\nimport { Observable }        from 'rxjs/Observable';\nimport {ModalModule, ModalComponent} from 'ng2-bs4-modal/ng2-bs4-modal';\n\n@Component({\n\tselector : 'html-source',\n  template: require('./templates/htmlsource.html')\n})\n\nexport class HtmlSource {\n\n  @ViewChild('source') element;\n\n\t_source : string;\n\t\n\t@Input()\t\n\tset source(source: string) {\n\t\tthis._source = source;\n\t\tif(this.element) {\n    \tvar dstDoc = this.element.nativeElement.contentDocument || this.element.nativeElement.contentWindow.document;\n\t\t\tdstDoc.write('<html>');\n\t\t\tdstDoc.write('<head>');\n\t\t\tdstDoc.write('<link rel=\"stylesheet\" href=\"/assets/css/style.css\">');\n\t\t\tdstDoc.write('</head>');\n\t\t\tdstDoc.write('<body class=\"html-source-body\">');\n\t\t\tdstDoc.write(this._source);\n\t\t\tdstDoc.write('</body>');\n\t\t\tdstDoc.write('<html>');\n\t\t\tdstDoc.close();\n\t\t\tvar links = dstDoc.getElementsByTagName(\"a\");\n\t\t\tfor(var i = 0; i < links.length; i++) {\n\t\t\t\tvar l = links[i];\n\t\t\t\tl.setAttribute('target', '_blank');\n\t\t\t}\n\t\t}\n\t\t\n\t}\n\n}\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/components/htmlsource.ts","import { Component, Input } from '@angular/core';\n \n@Component({\n  selector: 'line-chart',\n  template: require('./templates/line-chart.html')\n})\nexport class LineChartComponent {\n\n  // lineChart\n  @Input() lineChartData:Array<any>;\n\n  @Input() lineChartLabels:Array<any>;\n\n  public lineChartOptions:any = {\n    responsive: true\n  };\n\n\tsetChartData(value  : Array<any>) {\n\t\tconsole.log('before set chart values', this.lineChartData);\n\t\tthis.lineChartData = value;\n\t\tconsole.log('set chart values', this.lineChartData);\n\t}\n\n\tsetChartLabels(value  : Array<any>) {\n\t\tthis.lineChartLabels = value;\n\t}\n\n  public lineChartColors:Array<any> = [\n    { // grey\n      backgroundColor: 'rgba(148,159,177,0.2)',\n      borderColor: 'rgba(148,159,177,1)',\n      pointBackgroundColor: 'rgba(148,159,177,1)',\n      pointBorderColor: '#fff',\n      pointHoverBackgroundColor: '#fff',\n      pointHoverBorderColor: 'rgba(148,159,177,0.8)'\n    },\n    { // dark grey\n      backgroundColor: 'rgba(77,83,96,0.2)',\n      borderColor: 'rgba(77,83,96,1)',\n      pointBackgroundColor: 'rgba(77,83,96,1)',\n      pointBorderColor: '#fff',\n      pointHoverBackgroundColor: '#fff',\n      pointHoverBorderColor: 'rgba(77,83,96,1)'\n    },\n    { // grey\n      backgroundColor: 'rgba(148,159,177,0.2)',\n      borderColor: 'rgba(148,159,177,1)',\n      pointBackgroundColor: 'rgba(148,159,177,1)',\n      pointBorderColor: '#fff',\n      pointHoverBackgroundColor: '#fff',\n      pointHoverBorderColor: 'rgba(148,159,177,0.8)'\n    }\n  ];\n\t\n  public lineChartLegend:boolean = true;\n  public lineChartType:string = 'line';\n \n  public randomize():void {\n    let _lineChartData:Array<any> = new Array(this.lineChartData.length);\n    for (let i = 0; i < this.lineChartData.length; i++) {\n      _lineChartData[i] = {data: new Array(this.lineChartData[i].data.length), label: this.lineChartData[i].label};\n      for (let j = 0; j < this.lineChartData[i].data.length; j++) {\n        _lineChartData[i].data[j] = Math.floor((Math.random() * 100) + 1);\n      }\n    }\n    this.lineChartData = _lineChartData;\n  }\n \n  // events\n  public chartClicked(e:any):void {\n    console.log(e);\n  }\n \n  public chartHovered(e:any):void {\n    console.log(e);\n  }\n}\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/components/linechartcomponent.ts","\nimport { Component, ViewChild } from '@angular/core';\nimport { Router, ActivatedRoute, NavigationEnd }            from '@angular/router';\nimport { ModalComponent } from 'ng2-bs4-modal/ng2-bs4-modal';\n\nimport { EventsService } from '../services/event';\nimport { CompanyService } from 'app/services/company';\nimport { PhoneInfo }\t\t\tfrom './phoneinfo';\nimport { OrderInfo }\t\t\tfrom './orderinfo';\nimport { AddressInfo }\t\t\tfrom './addressinfo';\nimport { MailComposer }\t\t\tfrom './mailcomposer';\nimport { DatePicker }\t\t\tfrom './datepicker';\n\nfunction _window() : any {\n   // return the global native browser window object\n   return window;\n}\n\n@Component({\n\tselector : 'support-details',\n  template: require('./templates/prospectdetails.html')\n})\n\nexport class ProspectDetails {\n\t\n\t@ViewChild('scheduledDatePicker')\n  scheduledDatePicker: DatePicker;\n\n\t@ViewChild('newMailComposer')\n  newMailComposer: MailComposer;\n\n\t@ViewChild('loadingModal')\n  loadingModal: ModalComponent;\n\n\t@ViewChild('errorModal')\n  errorModal: ModalComponent;\n\n\t@ViewChild('phoneInfo')\n  phoneInfo: PhoneInfo;\n\n\t@ViewChild('addressInfo')\n  addressinfo: AddressInfo;\n\n\t@ViewChild('orderInfo')\n  orderInfo: OrderInfo;\n\n\t@ViewChild('orderModal')\n  orderModal: ModalComponent;\n\n\t@ViewChild('addContactModal')\n  addContactModal: ModalComponent;\n\n\tnavigationSubscriber : any;\n\trefPath : string;\n\tloaded : boolean;\n\tprospectId : number;\n\tcompany : any;\n\tprospect : any;\n\tprospectLog : any;\n\tisEditable : boolean;\n\tcompanyDataBeforeChanges : any;\n\n\tloadingInfo : any;\n\tloadingError : any;\n\tcloseErrorDialog : Function;\n\n\tshow : string;\n\n\tavailableProducts : any;\n\tnewOrderObject : any;\n\torderTypes : any;\n\tselectedProduct: any;\n\tselectedCount : any;\n\n\tnewContactObject : any;\n\tcontactRoles : any;\n\n\tscheduleReasons : any;\n\tscheduleReason : any;\n\tscheduledDate: any;\n\tscheduledHour : number;\n\tscheduledMinute : number;\n\tcancelNote : string;\n\n  constructor(\n    private companyService: CompanyService,\n    private router: Router,\n\t\tprivate route: ActivatedRoute,\n\t\tprivate eventsService: EventsService,\n  ) {\n\t\tthis.prospectLog = [];\n\t\tthis.cancelNote = '';\n\t\tthis.scheduledDate = new Date().valueOf() / 1000;\n\t\tthis.scheduledHour = new Date().getHours();\n\t\tthis.scheduledMinute = new Date().getMinutes();\n\t\tthis.scheduleReasons = [\n\t\t\t{ id : 2, name : 'Återkomma' },\n\t\t\t{ id : 6, name : 'Ej svar' },\n\t\t]\n\t\tthis.scheduleReason = this.scheduleReasons[0];\n\t\tthis.show = 'overview';\n\t\tthis.orderTypes = [\n\t\t\t{ orderType : 0, name : 'Ny order' },\n\t\t\t{ orderType : 1, name : 'Uppförsäljning' },\n\t\t\t{ orderType : 2, name : 'Förnyelse' },\n\t\t\t{ orderType : 5, name : 'Offert' }\n\t\t]\n\t\tthis.newOrderObject = {\n\t\t\torderType : this.orderTypes[0],\n\t\t\tcontact : { name : ''},\n\t\t\taddress : { },\n\t\t\tproducts : []\n\t\t}\n\t\tthis.newContactObject = {\n\t\t\tfirstName : '',\n\t\t\tlastName : '',\n\t\t\trole : '',\n\t\t\tphone : '',\n\t\t\temail : ''\n\t\t}\n\t\tthis.contactRoles = [\n\t\t\t{\n\t\t\t\tname : 'Kontaktperson',\n\t\t\t\tvalue : 'Kontaktperson'\n\t\t\t},\n\t\t\t{\n\t\t\t\tname : 'Säljare',\n\t\t\t\tvalue : 'Säljare'\n\t\t\t},\n\t\t\t{\n\t\t\t\tname : 'Utvecklare',\n\t\t\t\tvalue : 'Utvecklare'\n\t\t\t}\n\t\t]\n\t}\n\n\tngOnInit() {\n\t\tthis.navigationSubscriber = this.router.events.subscribe((event) => { this.navigationEnd(event); });\n\t}\n\n\tngOnDestroy() {\n\t\t_window().destroyEditors((r) => {\n\t\t\tconsole.log(r);\n\t\t});\n\t\tthis.navigationSubscriber.unsubscribe();\n\t}\n  \n\tnavigationEnd(event) {\n\t\tif(event instanceof NavigationEnd) {\n\t\t\tthis.prospectId = this.route.snapshot.params['id'];\n\t\t\tthis.refPath = '';\n\t\t\tthis.route.snapshot.parent.url.forEach((u) => {\n\t\t\t\tthis.refPath = this.refPath + (this.refPath != '' ? ':' : '') + u;\t\n\t\t\t});\n\t\t\tif(this.prospectId) {\n\t\t\t\tthis.eventsService.broadcast('prospectdetails-loading', { prospectId : this.prospectId });\n\t\t\t\tthis.loaded = false;\n\t\t\t\tthis.companyService.getProspectById(this.prospectId).then((prospect) => {\n\t\t\t\t\tconsole.info('prospect', prospect)\n\t\t\t\t\tthis.prospect = prospect;\n\t\t\t\t\tthis.cancelNote = this.prospect.note;\n\t\t\t\t\tthis.companyService.getById(prospect.companyId).then((company) => {\n\t\t\t\t\t\tconsole.info('company', company)\n\t\t\t\t\t\tthis.company = company;\n\t\t\t\t\t\tthis.companyService.getProspectLog(this.prospectId).then((log) => {\n\t\t\t\t\t\t\tconsole.log('log', log);\n\t\t\t\t\t\t\tthis.prospectLog = log;\n\t\t\t\t\t\t\tthis.eventsService.broadcast('prospectdetails-loaded', { prospectId : this.prospectId });\n\t\t\t\t\t\t\tthis.loaded = true;\n\t\t\t\t\t\t})\n\t\t\t\t\t})\n\t\t\t\t})\n\t\t\t\tthis.refPath += \":\" + this.prospectId;\n\t\t\t}\n\t\t}\n\t}\n\t\n\tclose() {\n\t\tthis.eventsService.broadcast('prospectdetails-closed', { prospectId : this.prospectId });\n  }\n\n\tscheduleProspect() : void {\n\t\tlet actionDate = new Date(this.scheduledDate * 1000);\n\t\tactionDate.setHours(this.scheduledHour);\n\t\tactionDate.setMinutes(this.scheduledMinute);\n\t\tlet data = {\n\t\t\tnote : '',\n\t\t\tstatusId : this.scheduleReason.id,\n\t\t\tprospectId : this.prospect.prospectId,\n\t\t\tactionDate : (actionDate.valueOf() / 1000).toFixed(0)\n\t\t}\n\t\tthis.loadingModal.open().then(() => {\n\t\t\tthis.companyService.updateProspect(this.prospect.prospectId, data).then(() => {\n\t\t\t\tthis.loadingModal.close();\n\t\t\t})\t\n\t\t})\n\t}\n\n\tcancelProspect() : void {\n\t\tlet actionDate = new Date();\n\t\tlet data = {\n\t\t\tnote : this.cancelNote,\n\t\t\tstatusId : 4,\n\t\t\tprospectId : this.prospect.prospectId,\n\t\t\tactionDate : (actionDate.valueOf() / 1000).toFixed(0)\n\t\t}\n\t\tthis.loadingModal.open().then(() => {\n\t\t\tthis.companyService.updateProspect(this.prospect.prospectId, data).then(() => {\n\t\t\t\tthis.loadingModal.close();\n\t\t\t})\t\n\t\t})\n\t}\n\n\tscheduledDateChanged(data, event) {\n\t\tconsole.log(data, event);\n\t}\n\n\teditCompanyDetails() {\n\t\tthis.isEditable = true;\n\t\tthis.companyDataBeforeChanges = { ...this.company }\n\t}\n\n\tcancelEditCompanyDetails() {\n\t\tthis.isEditable = false;\n\t\tthis.company = this.companyDataBeforeChanges;\n\t}\n\n\tsaveCompanyDetails() {\n\t\tthis.loadingModal.open().then(() => {\n\t\t\tthis.companyService.saveCompanyDetails(this.company).then((newCompanyInfo) => {\n\t\t\t\tthis.isEditable = false; \n\t\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\t\tthis.company.addresses.forEach((a) => {\n\t\t\t\t\t\tif(a.adressId == newCompanyInfo.adressId) {\n\t\t\t\t\t\t\ta.adress1 = newCompanyInfo.adress1;\n\t\t\t\t\t\t\ta.adress2 = newCompanyInfo.adress2;\n\t\t\t\t\t\t\ta.postalCode = newCompanyInfo.postalCode;\n\t\t\t\t\t\t\ta.city = newCompanyInfo.city;\n\t\t\t\t\t\t\ta.country = newCompanyInfo.country;\n\t\t\t\t\t\t\ta.countryId = newCompanyInfo.countryId;\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t})\n\t\t\t}).catch((e) => {\n\t\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\t\tthis.showError(e.errorMessage || e.message);\n\t\t\t\t});\n\t\t\t})\n\t\t});\n\t}\n\n\tshowError(message) : Promise<any> {\n\t\treturn new Promise((resolve) => {\n\t\t\tthis.loadingError = message;\n\t\t\tthis.errorModal.open().then(() => {\n\t\t\t\tthis.closeErrorDialog = () => {\n\t\t\t\t\tthis.errorModal.close().then(() => {\n\t\t\t\t\t\tresolve('error-closed');\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t})\n\t\t});\n\t}\n\n\tshowPhoneInfo(phone) {\n\t\tthis.phoneInfo.open(JSON.parse(JSON.stringify(phone))).then((data) => {\n\t\t\tif(data.Reason == 'added') {\n\t\t\t\tif(typeof(this.company.phones[data.phone.name]) == \"undefined\")\n\t\t\t\t\tthis.company.phones[data.phone.name] = [];\n\t\t\t\tthis.company.phones[data.phone.name].push(data.phone);\n\t\t\t} else if(data.Reason == 'updated') {\n\t\t\t\tvar updatedPhone = data.phone;\n\t\t\t\tconsole.log(updatedPhone);\t\t\t\n\t\t\t\tphone.areaCode = updatedPhone.areaCode;\n\t\t\t\tphone.telnr = updatedPhone.telnr;\n\t\t\t\tphone.note = updatedPhone.note;\n\t\t\t\tphone.name = updatedPhone.name;\n\t\t\t\tphone.assName = updatedPhone.assName;\n\t\t\t} else if(data.Reason == 'deleted') {\n\t\t\t\tif(typeof(this.company.phones[phone.name]) != \"undefined\") {\n\t\t\t\t\tvar index = this.company.phones[phone.name].indexOf(phone);\n\t\t\t\t\tif(index != -1) {\n\t\t\t\t\t\tthis.company.phones[phone.name].splice(index, 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}).catch((e) => {\n\t\t\tif(e != 'cancelled')\n\t\t\t\tthis.showError(e.errorMessage || e.message);\n\t\t});\n\t}\n\n\tshowAddressInfo(address) {\n\t\tthis.addressinfo.open(JSON.parse(JSON.stringify(address))).then((data) => {\n\t\t\tif(data.Reason == 'added') {\n\t\t\t\tthis.company.addresses.push(data.address);\n\t\t\t} else if(data.Reason == 'updated') {\n\t\t\t\tfor(var k in data.address) {\n\t\t\t\t\taddress[k] = data.address[k];\n\t\t\t\t}\n\t\t\t\tthis.loadingModal.close();\n\t\t\t\tthis.loadingInfo = \"\";\n\t\t\t\taddress = { ...data.address }\n\t\t\t\tconsole.log('address', address, data.address)\n\t\t\t} else if(data.Reason == 'deleted') {\n\t\t\t\tvar index = this.company.addresses.indexOf(address);\n\t\t\t\tif(index != -1) {\n\t\t\t\t\tthis.company.addresses.splice(index, 1);\n\t\t\t\t}\n\t\t\t}\n\t\t}).catch((e) => {\n\t\t\tif(e != 'cancelled')\n\t\t\t\tthis.showError(e.errorMessage || e.message);\n\t\t});\n\t}\n\n\tnewOrder() {\n\t\tthis.orderModal.open('lg').then(() => {\n\t\t\tthis.companyService.getAvailableProducts().then((products) => {\n\t\t\t\tthis.availableProducts = products;\n\t\t\t\tthis.selectedProduct = products[0].productId;\n\t\t\t\tthis.newOrderObject.contact = this.company.contacts[0];\n\t\t\t\tthis.newOrderObject.address = this.company.addresses[0];\n\t\t\t}).catch((e) => {\n\t\t\t\tthis.eventsService.broadcast('error', e.errorMessage || e.message);\n\t\t\t})\n\t\t})\n\t}\n\n\tcreateOrder() {\n\t\tthis.loadingModal.open().then(() => {\n\t\t\tthis.companyService.createOrder(this.newOrderObject).then((order) => {\n\t\t\t\tconsole.log(order);\n\t\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\t\tthis.orderModal.close().then(() => {\n\t\t\t\t\t\t\n\t\t\t\t\t})\n\t\t\t\t})\n\t\t\t}).catch((e) => {\n\t\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\t\tthis.loadingError = e.errorMessage || e.message;\n\t\t\t\t\tthis.errorModal.open();\n\t\t\t\t})\n\t\t\t})\n\t\t})\n\t}\n\n\taddSelectedProduct(productId) {\n\t\tconsole.log(this.selectedProduct)\n\t\tthis.availableProducts.forEach((p) => {\n\t\t\tif(p.productId == this.selectedProduct) {\n\t\t\t\tconsole.log(p);\n\t\t\t\tif(this.newOrderObject.products.indexOf(p) == -1) {\n\t\t\t\t\tp.count = this.selectedCount;\n\t\t\t\t\tp.discount = 0;\n\t\t\t\t\tp.subTotal = p.count * p.sellPrice;\n\t\t\t\t\tthis.newOrderObject.products.push(p);\n\t\t\t\t} else {\n\t\t\t\t\tthis.loadingError = 'Produkten är redan tillagd';\n\t\t\t\t\tthis.errorModal.open();\n\t\t\t\t}\n\t\t\t}\n\t\t})\n\t}\n\n\tremoveProduct(p) {\n\t\tthis.newOrderObject.products.splice(this.newOrderObject.products.indexOf(p), 1);\n\t}\n\n\n\tsendMail(contact) : void {\n\t\tthis.newMailComposer.clearContacts();\n\t\tthis.newMailComposer.setSubject('');\n\t\tthis.newMailComposer.setEmail(contact.emails[0].adress);\n\t\tcontact.emails.forEach((c) => {\n\t\t\tthis.newMailComposer.addContact({ email : c.adress, name : c.adress });\t\n\t\t})\n\t\tlet { accountId } = this.company.accounts[0] || { accountId : 0 };\n\t\tthis.newMailComposer.open(this.company.companyId, accountId).then((result) => {\n\t\t\tconsole.log(result)\n\t\t})\n\t}\n\n\taddContact(contact) : void {\n\t\tthis.newContactObject = { ...contact }\n\t\tthis.addContactModal.open();\n\t}\n\n\tcreateContact() : void {\n\t\tconsole.log('newContactObject', this.newContactObject)\n\t\tthis.addContactModal.close().then(() => {\n\t\t\tthis.loadingModal.open().then(() => {\n\t\t\t\tthis.companyService.addContact(this.newContactObject).then((response) => {\n\t\t\t\t\tconsole.log('response', response)\n\t\t\t\t\tthis.loadingModal.close();\n\t\t\t\t})\n\t\t\t\t.catch((e) => {\n\t\t\t\t\tthis.loadingError.close().then(() => {\n\t\t\t\t\t\tthis.addContactModal.open();\n\t\t\t\t\t})\n\t\t\t\t})\n\t\t\t})\n\t\t})\n\t}\n\n}\n\t\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/components/prospectdetails.ts","import { Component, OnInit, ViewChild, ElementRef, Input, Output } from '@angular/core';\n\nimport { Router } from '@angular/router';\n\nimport { ActivityService } from '../services/activity';\nimport { CompanyService } from '../services/company';\nimport { DomainService } from '../services/domain';\nimport { AccountsService } from '../services/accounts';\nimport { DateFormatter } from '../components/dateformatter';\n\n@Component({\n\tselector : 'search-sidebar',\n  template: require('./templates/searchsidebar.html')\n})\n\nexport class SearchSidebar implements OnInit {\n\n\t@ViewChild('searchField')\n  searchField: ElementRef;\n\t\n\tsearchTimer : any;\n\tsearchResult : { companies : any, accounts : any, domains : any, activities : any, orders : any, invoices : any, subscriptionRenewals : any };\n\tsearching : boolean;\n\tsearchResultType : string;\n\t\n\tphrase : String;\n\tshowMenu : boolean;\n\tisVisible : boolean;\n\n\tonVisibilityChangedCallback : any;\n\n\t@Input() set visible(value: boolean) {\n\t\tthis.isVisible = value;\n\t\tif(this.onVisibilityChangedCallback)\n\t\t\tthis.onVisibilityChangedCallback(this.isVisible);\n\t}\n\t\n\t@Input() set onVisibilityChanged(value: any) {\n\t\tthis.onVisibilityChangedCallback = value;\n\t}\n\n\t@Input() set initialPhrase(value : String) {\n\t\tthis.phrase = value;\n\t\tvar len = this.phrase.length;\n\t\tthis.searchField.nativeElement.focus();\n\t\tthis.searchField.nativeElement.setSelectionRange(len, len);\n\t\tthis.doSearch();\n\t}\n\n\tconstructor(\n\t\tprivate activityService: ActivityService,\n\t\tprivate accountsService : AccountsService,\n\t\tprivate domainService : DomainService,\n\t\tprivate companyService : CompanyService,\n    private router: Router\n\t) {\n\t\tthis.searchResult = { companies : [], accounts : [], domains : [], activities : [], orders : [], invoices : [], subscriptionRenewals : [] };\n\t\tthis.searchResultType = undefined;\n\t}\n\t\n\tngOnInit() : void {\n\t\t\n\t}\n\n\tngOnDestroy() : void {\n\t}\n\n\topenSearchResult(result) {\n\t\tthis.router.navigateByUrl(result.link).then((success) => {\n\t\t\tif(success) {\n\t\t\t\tthis.clearSearch();\n\t\t\t}\n\t\t})\n\t}\n\t\n\topenSearchResultSuffix(result) {\n\t\tthis.router.navigateByUrl(result.suffixLink).then((success) => {\n\t\t\tif(success) {\n\t\t\t\tthis.clearSearch();\n\t\t\t}\n\t\t})\n\t}\n\n\tclearSearch() {\n\t\tthis.phrase = '';\n\t\tthis.searchResultType = undefined;\n\t\tthis.isVisible = false;\n\t\tif(this.onVisibilityChangedCallback)\n\t\t\tthis.onVisibilityChangedCallback(this.isVisible);\n\t}\n\n\tdoSearch() {\n\n\t\tif(this.searching) {\n\t\t\tconsole.log('need to cancel')\n\t\t\t//return;\n\t\t}\n\n\t\tif(this.phrase == '' || this.phrase.length < 3) { return; }\n\n\t\tthis.searchResult = { companies : [], accounts : [], domains : [], activities : [], orders : [], invoices : [], subscriptionRenewals : [] };\n\t\tclearTimeout(this.searchTimer);\n\t\t\n\t\tthis.searchTimer = setTimeout(() => {\n\t\t\t\n\t\t\tthis.searchResultType = undefined;\n\t\t\tthis.searching = true;\n\t\t\tvar promises = [];\n\t\t\t\n\t\t\tpromises.push(new Promise((resolve) => {\n\t\t\t\tthis.companyService.getCompanies({ phrase : this.phrase, statusId : [0, 1, 2, 3] }, 0, 10).then((companies) => {\n\t\t\t\t\tthis.searchResult.companies = [];\n\t\t\t\t\tif(companies.list.length > 0) {\n\t\t\t\t\t\tcompanies.list.forEach((c, i) => {\n\t\t\t\t\t\t\tvar suffix = '<br />';\n\t\t\t\t\t\t\tvar r = new RegExp('(' + this.phrase + ')', 'gi');\n\t\t\t\t\t\t\tc.name = c.name.replace(r, '<strong>$1</strong>');\n\t\t\t\t\t\t\tsuffix += '<small>Id: ' + c.companyId.toString().replace(r, '<strong>$1</strong>') + '</small><br />';\n\t\t\t\t\t\t\tif(c.orgNr && c.orgNr.toString().toLowerCase() != '') {\n\t\t\t\t\t\t\t\tr = new RegExp('(' + this.phrase + ')', 'i');\n\t\t\t\t\t\t\t\tsuffix += '<small>OrgNr: ' + c.orgNr.toString().replace(r, '<strong>$1</strong>') + '</small><br />';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(c.kundnr && c.kundnr.toString().toLowerCase() != '') {\n\t\t\t\t\t\t\t\tr = new RegExp('(' + this.phrase + ')', 'i');\n\t\t\t\t\t\t\t\tsuffix += '<small>KundNr: ' + c.kundnr.toString().replace(r, '<strong>$1</strong>') + '</small><br />';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tthis.searchResult.companies.push({\n\t\t\t\t\t\t\t\ttext : \"<i class='fa fa-building'></i> \" + c.name,\n\t\t\t\t\t\t\t\ticon : 'building',\n\t\t\t\t\t\t\t\tcompany : c,\n\t\t\t\t\t\t\t\tlink : '/companies/' + c.companyId,\n\t\t\t\t\t\t\t\tsuffix : suffix\n\t\t\t\t\t\t\t});\t\n\t\t\t\t\t\t\tthis.companyService.getById(c.companyId, { include: 'accounts' }).then((company) => {\n\t\t\t\t\t\t\t\tconsole.log(company);\n\t\t\t\t\t\t\t\tcompany.accounts.forEach((a) => {\n\t\t\t\t\t\t\t\t\tvar exists = false;\n\t\t\t\t\t\t\t\t\tconsole.log(this.searchResult.accounts);\n\t\t\t\t\t\t\t\t\tthis.searchResult.accounts.forEach((a1) => { \n\t\t\t\t\t\t\t\t\t\tif(a1.account.accountId == a.accountId)\n\t\t\t\t\t\t\t\t\t\t\texists = true;\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\tif(exists) return;\n\t\t\t\t\t\t\t\t\tvar subject = '#' + a.prefix;\n\t\t\t\t\t\t\t\t\tvar suffix =  '<br /><small><i class=\"fa fa-building\"></i> ' + c.name + '</small>';\n\t\t\t\t\t\t\t\t\tif(subject.toLowerCase().indexOf(this.phrase.toLowerCase()) != -1) {\n\t\t\t\t\t\t\t\t\t\tvar r = new RegExp('(' + this.phrase + ')', 'i');\n\t\t\t\t\t\t\t\t\t\tsubject = subject.replace(r, '<strong>$1</strong>');\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif(suffix.toLowerCase().indexOf(this.phrase.toLowerCase()) != -1) {\n\t\t\t\t\t\t\t\t\t\tvar r = new RegExp('(' + this.phrase + ')', 'i');\n\t\t\t\t\t\t\t\t\t\tsuffix = suffix.replace(r, '<strong>$1</strong>');\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tthis.searchResult.accounts.push({\n\t\t\t\t\t\t\t\t\t\ttext : subject,\n\t\t\t\t\t\t\t\t\t\ticon : 'sign-in',\n\t\t\t\t\t\t\t\t\t\tlink : '/companies/' + a.companyId + '/accounts-' + (a.accountId),\n\t\t\t\t\t\t\t\t\t\tsuffix : suffix,\n\t\t\t\t\t\t\t\t\t\taccount : a,\n\t\t\t\t\t\t\t\t\t\tsuffixLink : a.companyId ? '/companies/' + a.companyId : ''\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\tresolve(null);\n\t\t\t\t}).catch((e) => {\n\t\t\t\t\tconsole.log(e);\n\t\t\t\t\tresolve(null);\n\t\t\t\t});\n\t\t\t}));\n\n\t\t\tpromises.push(new Promise((resolve) => {\n\t\t\t\tthis.accountsService.searchAccounts({ phrase : this.phrase }, 0, 20).then((accountList) => {\n\t\t\t\t\tthis.searchResult.accounts = [];\n\t\t\t\t\taccountList.list.forEach((a) => {\n\t\t\t\t\t\tvar exists = false;\n\t\t\t\t\t\tthis.searchResult.accounts.forEach((a1) => { \n\t\t\t\t\t\t\tif(a1.account.accountId == a.accountId)\n\t\t\t\t\t\t\t\texists = true;\n\t\t\t\t\t\t})\n\t\t\t\t\t\tif(exists) return;\n\t\t\t\t\t\tvar subject = '#' + a.prefix;\n\t\t\t\t\t\tvar suffix =  a.companyName ? '<br /><small><i class=\"fa fa-building\"></i> ' + a.companyName + '</small>' : '';\n\t\t\t\t\t\tif(subject.toLowerCase().indexOf(this.phrase.toLowerCase()) != -1) {\n\t\t\t\t\t\t\tvar r = new RegExp('(' + this.phrase + ')', 'i');\n\t\t\t\t\t\t\tsubject = subject.replace(r, '<strong>$1</strong>');\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(suffix.toLowerCase().indexOf(this.phrase.toLowerCase()) != -1) {\n\t\t\t\t\t\t\tvar r = new RegExp('(' + this.phrase + ')', 'i');\n\t\t\t\t\t\t\tsuffix = suffix.replace(r, '<strong>$1</strong>');\n\t\t\t\t\t\t}\n\t\t\t\t\t\tthis.searchResult.accounts.push({\n\t\t\t\t\t\t\ttext : subject,\n\t\t\t\t\t\t\ticon : 'sign-in',\n\t\t\t\t\t\t\tlink : '/companies/' + a.companyId + '/accounts-' + (a.accountId),\n\t\t\t\t\t\t\tsuffix : suffix,\n\t\t\t\t\t\t\taccount : a,\n\t\t\t\t\t\t\tsuffixLink : a.companyId ? '/companies/' + a.companyId : ''\n\t\t\t\t\t\t});\n\t\t\t\t\t})\n\t\t\t\t\tresolve(null);\n\t\t\t\t}).catch((e) => {\n\t\t\t\t\tconsole.log(e);\n\t\t\t\t\tresolve(null);\n\t\t\t\t});\n\t\t\t}));\n\n\t\t\tpromises.push(new Promise((resolve) => {\n\t\t\t\tthis.domainService.getDomains({ domain : this.phrase }, 0, 20).then((domains) => {\n\t\t\t\t\tthis.searchResult.domains = [];\n\t\t\t\t\tvar promises = [];\n\t\t\t\t\tdomains.list.forEach((d) => {\n\t\t\t\t\t\tconsole.log(d);\n\t\t\t\t\t\tvar subject = 'www.' + d.domain;\n\t\t\t\t\t\tvar suffix = d.company ? '<br /><a href=\"javascript:;\"><small><i class=\"fa fa-building\"></i> ' + d.company.name + '</small></a>' : '';\n\t\t\t\t\t\tif(subject.toLowerCase().indexOf(this.phrase.toLowerCase()) != -1) {\n\t\t\t\t\t\t\tvar r = new RegExp('(' + this.phrase + ')', 'i');\n\t\t\t\t\t\t\tsubject = subject.replace(r, '<strong>$1</strong>');\n\t\t\t\t\t\t}\n\t\t\t\t\t\tvar info = {\n\t\t\t\t\t\t\ttext : subject,\n\t\t\t\t\t\t\ticon : 'globe',\n\t\t\t\t\t\t\tlink : '/domains/all/' + encodeURIComponent(d.domain),\n\t\t\t\t\t\t\tdomain : d,\n\t\t\t\t\t\t\tsuffix : suffix,\n\t\t\t\t\t\t\tnameISPInfo : { },\n\t\t\t\t\t\t\tnameISPInfoLoading : true,\n\t\t\t\t\t\t\tsuffixLink : d.company ? '/companies/' + d.company.companyId + '/domains' : ''\n\t\t\t\t\t\t}\n\t\t\t\t\t\tthis.searchResult.domains.push(info);\n\t\t\t\t\t\tthis.domainService.getDomainInfo(d.domain).then((response) => {\n\t\t\t\t\t\t\tif(response.info.domainname) {\n\t\t\t\t\t\t\t\tinfo.nameISPInfo = response.info;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tconsole.log(info);\n\t\t\t\t\t\t\tinfo.nameISPInfoLoading  = false;\n\t\t\t\t\t\t}).catch((e) => {\n\t\t\t\t\t\t\tconsole.log(e);\n\t\t\t\t\t\t});\n\t\t\t\t\t});\n\t\t\t\t\tresolve(null);\n\t\t\t\t}).catch((e) => {\n\t\t\t\t\tconsole.log(e);\n\t\t\t\t\tresolve(null);\n\t\t\t\t});\n\t\t\t}));\n\n\t\t\tpromises.push(new Promise((resolve) => {\n\t\t\t\tthis.activityService.getActivities({ statusId : [2, 3, 7], userId : 0, phrase : this.phrase }, 0, 5).then((activityList) => {\n\t\t\t\t\tthis.searchResult.activities = [];\n\t\t\t\t\tif(activityList) {\n\t\t\t\t\t\tactivityList.list.forEach((a) => {\n\t\t\t\t\t\t\tvar dateStr = DateFormatter.getString(DateFormatter.getDateObject(a.endDate), true, true);\n\t\t\t\t\t\t\tvar suffix = '<br />#' + (a.prefix) + '<br /><small>Stop ' + dateStr + '</small>';\n\t\t\t\t\t\t\tsuffix += '<br /><small>' + a.firstName + ' ' + a.lastName + '</small>';\n\t\t\t\t\t\t\tif(a.name.toLowerCase().indexOf(this.phrase.toLowerCase()) != -1) {\n\t\t\t\t\t\t\t\tvar r = new RegExp('(' + this.phrase + ')', 'i');\n\t\t\t\t\t\t\t\ta.name = a.name.replace(r, '<strong>$1</strong>');\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(suffix.toLowerCase().indexOf(this.phrase.toLowerCase()) != -1) {\n\t\t\t\t\t\t\tvar r = new RegExp('(' + this.phrase + ')', 'i');\n\t\t\t\t\t\t\t\tsuffix = suffix.replace(r, '<strong>$1</strong>');\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tthis.searchResult.activities.push({\n\t\t\t\t\t\t\t\ttext : a.name,\n\t\t\t\t\t\t\t\ticon : 'wrench',\n\t\t\t\t\t\t\t\tlink : '/activities/all/' + a.taskId,\n\t\t\t\t\t\t\t\tsuffix : suffix\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\tresolve(null);\n\t\t\t\t}).catch((e) => {\n\t\t\t\t\tconsole.log(e);\n\t\t\t\t\tresolve(null);\n\t\t\t\t});\n\t\t\t}));\n\n\t\t\tpromises.push(new Promise((resolve) => {\n\t\t\t\tthis.companyService.getOrders({ phrase : this.phrase, searchOrderNrOnly : true }, 0, 5).then((orderList) => {\n\t\t\t\t\tthis.searchResult.orders = [];\n\t\t\t\t\tif(orderList) {\n\t\t\t\t\t\torderList.list.forEach((o) => {\n\t\t\t\t\t\t\tvar dateStr = DateFormatter.getString(DateFormatter.getDateObject(o.createdDate), true, true);\n\t\t\t\t\t\t\tvar suffix = '<br />#' + (o.orderNr) + '<br /><small>Skapad ' + dateStr + '</small>';\n\t\t\t\t\t\t\tif(suffix.toLowerCase().indexOf(this.phrase.toLowerCase()) != -1) {\n\t\t\t\t\t\t\t\tvar r = new RegExp('(' + this.phrase + ')', 'i');\n\t\t\t\t\t\t\t\tsuffix = suffix.replace(r, '<strong>$1</strong>');\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tthis.searchResult.orders.push({\n\t\t\t\t\t\t\t\ttext : o.name,\n\t\t\t\t\t\t\t\ticon : 'money',\n\t\t\t\t\t\t\t\tsuffixLink : '/orders/' + o.orderId,\n\t\t\t\t\t\t\t\tlink : '/companies/' + o.companyId + \"/orders\",\n\t\t\t\t\t\t\t\tsuffix : suffix,\n\t\t\t\t\t\t\t\torder : o\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\tresolve(null);\n\t\t\t\t}).catch((e) => {\n\t\t\t\t\tconsole.log(e);\n\t\t\t\t\tresolve(null);\n\t\t\t\t});\n\t\t\t}));\n\n\t\t\tpromises.push(new Promise((resolve) => {\n\t\t\t\tthis.companyService.getInvoices({ phrase : this.phrase, searchInvoiceNrOnly : true }, 0, 5).then((invoiceList) => {\n\t\t\t\t\tthis.searchResult.subscriptionRenewals = [];\n\t\t\t\t\t/*\n\t\t\t\t\tif(invoiceList) {\n\t\t\t\t\t\tinvoiceList.list.forEach((i) => {\n\t\t\t\t\t\t\tvar dateStr = DateFormatter.getString(DateFormatter.getDateObject(i.createdDate), true, true);\n\t\t\t\t\t\t\tvar suffix = '<br />#' + (i.invoiceNr) + '<br /><small>Skapad ' + dateStr + '</small>';\n\t\t\t\t\t\t\tif(suffix.toLowerCase().indexOf(this.phrase.toLowerCase()) != -1) {\n\t\t\t\t\t\t\t\tvar r = new RegExp('(' + this.phrase + ')', 'i');\n\t\t\t\t\t\t\t\tsuffix = suffix.replace(r, '<strong>$1</strong>');\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tthis.searchResult.invoices.push({\n\t\t\t\t\t\t\t\ttext : i.name,\n\t\t\t\t\t\t\t\ticon : 'money',\n\t\t\t\t\t\t\t\tsuffixLink : '/invoices/' + i.invoiceId,\n\t\t\t\t\t\t\t\tlink : '/companies/' + i.companyId + \"/invoices\",\n\t\t\t\t\t\t\t\tsuffix : suffix,\n\t\t\t\t\t\t\t\tinvoice : i\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\t*/\n\t\t\t\t\tresolve(null);\n\t\t\t\t}).catch((e) => {\n\t\t\t\t\tconsole.log(e);\n\t\t\t\t\tresolve(null);\n\t\t\t\t});\n\t\t\t}));\n\n\t\t\tpromises.push(new Promise((resolve) => {\n\t\t\t\tthis.companyService.getInvoices({ phrase : this.phrase, searchInvoiceNrOnly : true }, 0, 5).then((invoiceList) => {\n\t\t\t\t\tthis.searchResult.invoices = [];\n\t\t\t\t\tif(invoiceList) {\n\t\t\t\t\t\tinvoiceList.list.forEach((i) => {\n\t\t\t\t\t\t\tvar dateStr = DateFormatter.getString(DateFormatter.getDateObject(i.createdDate), true, true);\n\t\t\t\t\t\t\tvar suffix = '<br />#' + (i.invoiceNr) + '<br /><small>Skapad ' + dateStr + '</small>';\n\t\t\t\t\t\t\tif(suffix.toLowerCase().indexOf(this.phrase.toLowerCase()) != -1) {\n\t\t\t\t\t\t\t\tvar r = new RegExp('(' + this.phrase + ')', 'i');\n\t\t\t\t\t\t\t\tsuffix = suffix.replace(r, '<strong>$1</strong>');\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tthis.searchResult.invoices.push({\n\t\t\t\t\t\t\t\ttext : i.name,\n\t\t\t\t\t\t\t\ticon : 'money',\n\t\t\t\t\t\t\t\tsuffixLink : '/invoices/' + i.invoiceId,\n\t\t\t\t\t\t\t\tlink : '/companies/' + i.companyId + \"/invoices\",\n\t\t\t\t\t\t\t\tsuffix : suffix,\n\t\t\t\t\t\t\t\tinvoice : i\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\tresolve(null);\n\t\t\t\t}).catch((e) => {\n\t\t\t\t\tconsole.log(e);\n\t\t\t\t\tresolve(null);\n\t\t\t\t});\n\t\t\t}));\n\n\t\t\tPromise.all(promises).then(() => {\n\t\t\t\tthis.searching = false;\n\t\t\t\tif(this.searchResult.invoices.length > 0)\n\t\t\t\t\tthis.searchResultType = 'invoices';\n\t\t\t\telse if(this.searchResult.orders.length > 0)\n\t\t\t\t\tthis.searchResultType = 'orders';\n\t\t\t\telse if(this.searchResult.accounts.length > 0)\n\t\t\t\t\tthis.searchResultType = 'accounts';\n\t\t\t\telse if(this.searchResult.companies.length > 0)\n\t\t\t\t\tthis.searchResultType = 'companies';\n\t\t\t\telse if(this.searchResult.domains.length > 0)\n\t\t\t\t\tthis.searchResultType = 'domains';\n\t\t\t\telse if(this.searchResult.activities.length > 0)\n\t\t\t\t\tthis.searchResultType = 'activities';\n\t\t\t\telse \n\t\t\t\t\tthis.searchResultType = 'noresult';\n\t\t\t}).catch((err) => {\n\t\t\t\tconsole.log('search failed', err);\n\t\t\t\tthis.searching = false;\n\t\t\t})\n\n\t\t}, 750);\n\n\t}\n\n}\n\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/components/searchsidebar.ts","import { Component, ViewChild } from '@angular/core';\nimport {  ModalComponent } from 'ng2-bs4-modal/ng2-bs4-modal';\n\nimport { AccountsService } from '../services/accounts';\nimport { SupportIssueService } from '../services/support';\nimport { HttpService } from '../services/http';\nimport { ErrorsService } from '../services/errors';\n\nfunction _window() : any {\n   // return the global native browser window object\n   return window;\n}\n\n@Component({\n\tselector : 'smscomposer',\n  template: require('./templates/smscomposer.html')\n})\n\nexport class SmsComposer {\n\n\t@ViewChild('composerModal')\n  composerModal: ModalComponent;\n\n\t@ViewChild('errorModal')\n  errorModal: ModalComponent;\n\n\t@ViewChild('sendingModal')\n  sendingModal: ModalComponent;\n\n\t@ViewChild('addFileModal')\n  addFileModal: ModalComponent;\n\t\n\t@ViewChild('addFileErrorModal')\n  addFileErrorModal: ModalComponent;\n\t\n\t@ViewChild('myEditor')\n\tmyEditor;\n\n\t@ViewChild('createSmsModal')\n  createSmsModal: ModalComponent;\n\t\n\tonModalClosed : Function;\n\tactiveEditor : any;\n\tuser : any;\n\tsubject : string;\n\ttoNumber : string;\n\tavailableContacts : any[];\n\tcompanyId : number;\n\tcommunicationId : number;\n\terrorMessage : string;\n\tstandardSmses : any[];\n\tstandardSms : any;\n\teditReplies : boolean;\n\taddFileError : string;\n\n\tconstructor(\n\t\tprivate httpService: HttpService,\n\t\tprivate supportIssueService : SupportIssueService,\n\t\tprivate errorsService : ErrorsService,\n\t\tprivate accountsService : AccountsService\n  ) {\n\t\tthis.user = this.httpService.getUser();\n\t\tthis.availableContacts = [];\n\t\tthis.standardSmses = [];\n\t\tthis.standardSms = { Name : 'Nytt standardsms', Text : '' }\n\t\tthis.supportIssueService.getStandardSms().then((replies) => {\n\t\t\treplies.forEach((r) => {\n\t\t\t\tthis.standardSmses.push(r._source);\n\t\t\t})\n\t\t}).catch((e) => {\n\t\t\tthis.errorsService.broadcast('error', e.errorMessage || e.message);\n\t\t});\n\t}\n\n\tclearContacts() {\n\t\tthis.availableContacts = [];\n\t}\n\n\taddContact(contact) {\n\t\tthis.availableContacts.push(contact);\n\t\tif(this.availableContacts.length == 1) {\n\t\t\tthis.toNumber = contact.number;\n\t\t}\n\t}\n\n\tsetSubject(value : string) : void {\n\t\tthis.subject = value;\n\t}\n\n\tsetNumber(value : string) : void {\n\t\tthis.toNumber = value;\n\t}\n\n  arrayBufferToBase64( buffer ) : string {\n    var binary = '';\n    var bytes = new Uint8Array( buffer );\n    var len = bytes.byteLength;\n    for (var i = 0; i < len; i++) {\n        binary += String.fromCharCode( bytes[ i ] );\n    }\n    return window.btoa( binary );\n\t}\n\n\tcloseAddFileErrorModal() : void {\n\t\tthis.addFileErrorModal.close();\n\t}\n\t\t\n\tsetEditedSms(event) : void {\n\t\tthis.standardSms = this.standardSmses[parseInt(event.target.value)];\n\t}\n\n\tsaveStandardSms() : void {\n\t\tthis.supportIssueService.saveStandardSms(this.standardSms).then((response) => {\n\t\t\tthis.createSmsModal.close().then(() => {\n\t\t\t\tsetTimeout(() => {\n\t\t\t\t\tthis.supportIssueService.getStandardSms().then((replies) => {\n\t\t\t\t\t\tthis.standardSmses = [];\n\t\t\t\t\t\treplies.forEach((r) => {\n\t\t\t\t\t\t\tthis.standardSmses.push(r._source);\n\t\t\t\t\t\t});\n\t\t\t\t\t});\n\t\t\t\t}, 1000);\t\t\t\t\n\t\t\t\t})\n\t\t}).catch((e) => {\n\t\t\tthis.errorsService.broadcast('error', e.errorMessage || e.error);\n\t\t});\n\t}\n\n\tcreateStandardSms() : void {\n\t\tthis.createSmsModal.open('lg').then(() => {\n\t\t\tthis.editReplies = false;\n\t\t\tthis.standardSms = { Name : 'Nytt standardsvar', Text : '' };\n\t\t})\n\t}\n\n\teditStandardSms() : void {\n\t\tthis.createSmsModal.open('lg').then(() => {\n\t\t\tthis.editReplies = true;\n\t\t\tthis.standardSms = this.standardSmses[0];\n\t\t});\n\t}\n  \n\tsetStandardSms(sms) : void {\n\t\tthis.activeEditor.execCommand('mceInsertContent', false, sms.Text);;\t\n\t}\n\n\tcloseModal(reason) : void {\n\t\tthis.composerModal.close().then(() => {\n\t\t\tif(reason == 'send') {\n\t\t\t\tthis.sendingModal.open().then(() => {\n\t\t\t\t\tvar contents_text = this.activeEditor.getContent({ format: 'text' });\n\t\t\t\t\tthis.supportIssueService.sendSms(contents_text, this.toNumber).then(({ messageId, body }) => {\n\t\t\t\t\t\tthis.sendingModal.close().then(() => {\n\t\t\t\t\t\t\tif(this.companyId && this.communicationId) {\n\t\t\t\t\t\t\t\tthis.accountsService.addCommunication(this.companyId, this.communicationId, this.user.userId, 24, JSON.stringify({ messageId, body : JSON.parse(body) })).then((response) => {\n\t\t\t\t\t\t\t\t\tif(this.onModalClosed) {\n\t\t\t\t\t\t\t\t\t\tthis.onModalClosed({ status : 'sent' });\n\t\t\t\t\t\t\t\t\t}\t\t\n\t\t\t\t\t\t\t\t}).catch((e) => {\n\t\t\t\t\t\t\t\t\tthis.sendingModal.close().then(() => {\n\t\t\t\t\t\t\t\t\t\tthis.errorMessage = e.errorMessage;\n\t\t\t\t\t\t\t\t\t\tthis.errorModal.open().then(() => {\n\t\t\t\t\t\t\t\t\t\t\tif(this.onModalClosed) {\n\t\t\t\t\t\t\t\t\t\t\t\tthis.onModalClosed({ status : 'sent' , error : e });\n\t\t\t\t\t\t\t\t\t\t\t}\t\t\n\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif(this.onModalClosed) {\n\t\t\t\t\t\t\t\t\tthis.onModalClosed({ status : 'sent' });\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})\n\n\t\t\t\t\t}).catch((e) => {\n\t\t\t\t\t\tthis.sendingModal.close().then(() => {\n\t\t\t\t\t\t\tthis.errorMessage = e.errorMessage;\n\t\t\t\t\t\t\tthis.errorModal.open().then(() => {\n\t\t\t\t\t\t\t\tthis.composerModal.open().then(() => {\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t});\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\tif(this.onModalClosed) {\n\t\t\t\t\tthis.onModalClosed({ status : reason });\n\t\t\t\t}\n\t\t\t}\n\t\t})\n\t}\n\n\topen(companyId, communicationId) : Promise<string> {\n\t\tthis.companyId = companyId;\n\t\tthis.communicationId = communicationId;\n\t\treturn new Promise((resolver) => {\n\t\t\tthis.composerModal.open('lg').then(() => {\n\t\t\t\t_window().initTinyEditor(() => { // destroy func\n\t\t\t\t\tif(this.activeEditor)\n\t\t\t\t\t\tthis.activeEditor.destroy();\n\t\t\t\t\tthis.activeEditor = null;\n\t\t\t\t}, this.myEditor.nativeElement)\n\t\t\t\t.then((editors) => {\n\t\t\t\t\tconsole.log(editors)\n\t\t\t\t\tthis.activeEditor = editors[0];\n\t\t\t\t\tthis.activeEditor.focus();\n\t\t\t\t\tlet html = `\n\t\t\t\t\t<p></p>\n\t\t\t\t\t`;\n\t\t\t\t\tthis.activeEditor.setContent(html)\n\t\t\t\t});\n\t\t\t\tthis.onModalClosed = (reason) => {\n\t\t\t\t\tconsole.log('destroyEditors');\n\t\t\t\t\t_window().destroyEditors((r) => {\n\t\t\t\t\t\tconsole.log(r);\n\t\t\t\t\t});\n\t\t\t\t\tresolver(reason);\n\t\t\t\t}\n\t\t\t});\n\t\t})\n\t}\n\n\topenWithNumber(number) {\n\t\tthis.toNumber = number;\n\t\treturn this.open(0, 0);\n\t}\n\n}\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/components/smscomposer.ts","import { Component, Input, ViewChild } from '@angular/core';\nimport { ModalModule, ModalComponent } from 'ng2-bs4-modal/ng2-bs4-modal';\n\nimport { HttpService } from '../services/http';\nimport { AccountsService } from '../services/accounts';\n\nimport { DatePicker }           from './datepicker';\nimport { Company }           from '../models/company';\n\nimport { diff } from 'deep-object-diff';\n\n@Component({\n\tselector : 'subscriptioninfo',\n  template: require('./templates/subscriptioninfo.html')\n})\n\nexport class SubscriptionInfo {\n\n\t@ViewChild('confirmDeleteSubscriptionModal')\n  confirmDeleteSubscriptionModal: ModalComponent;\n\n\t@ViewChild('errorModal')\n  errorModal: ModalComponent;\n\n\t@ViewChild('infoModal')\n  infoModal: ModalComponent;\n\n\t@ViewChild('saveModal')\n  saveModal: ModalComponent;\n\n\t@ViewChild('deleteModal')\n  deleteModal: ModalComponent;\n\t\n\n\t@ViewChild('subscriptionRenewal')\n  subscriptionRenewalDate: DatePicker;\n\n\t@ViewChild('subscriptionExpire')\n  subscriptionExpireDate: DatePicker;\n\t\n\tloading : boolean;\n\tsubscription : any;\n\toriginalSubscription : any;\n\tcloseResolver : Function;\n\tcompany : Company;\n\terrorMessage : string;\n\n\tconstructor(\n\t\tprivate httpService: HttpService,\n\t\tprivate accountsService: AccountsService\n  ) {\n\t\tthis.loading = true;\n\t}\n\n\topen(subscription : any, company : Company) : Promise<any> {\n\t\treturn new Promise((resolve) => {\n\t\t\tthis.subscription = JSON.parse(JSON.stringify(subscription));\n\t\t\tif(this.subscription.status == 1) {\n\t\t\t\tthis.subscription.expireDate = new Date().getTime() / 1000;\n\t\t\t} else {\n\t\t\t\tthis.subscription.expireDate = parseInt(this.subscription.expireDate);\n\t\t\t}\n\t\t\tthis.originalSubscription = { ...this.subscription }\n\t\t\tthis.company = company;\n\t\t\tthis.infoModal.open('lg').then(() => {\n\t\t\t\tthis.closeResolver = resolve;\n\t\t\t\tthis.subscriptionExpireDate.onDateChanged.subscribe((newExpireDate) => {\n\t\t\t\t\tthis.subscription.expireDate = this.subscriptionExpireDate.Date.getTime() / 1000;\n\t\t\t\t})\n\t\t\t\tthis.subscriptionRenewalDate.onDateChanged.subscribe((newRenewalDate) => {\n\t\t\t\t\tthis.subscription.renewalDate = this.subscriptionRenewalDate.Date.getTime() / 1000;\n\t\t\t\t})\t\t\n\t\t\t})\n\t\t});\n\t}\n\n\tdeleteSubscription() {\n\t\tthis.confirmDeleteSubscriptionModal.close().then(() => {\n\t\t\tthis.deleteModal.open().then(() => {\n\t\t\t\tthis.accountsService.deleteSubscription(this.subscription).then(() => {\n\t\t\t\t\tthis.deleteModal.close().then(() => {\n\t\t\t\t\t\tthis.infoModal.close().then(() => {\n\n\t\t\t\t\t\t})\n\t\t\t\t\t})\n\t\t\t\t}).catch((e) => {\n\t\t\t\t\tthis.deleteModal.close().then(() => {\n\t\t\t\t\t\tthis.errorMessage = e.errorMessage || e.message;\n\t\t\t\t\t\tthis.errorModal.open();\n\t\t\t\t\t});\n\t\t\t\t})\n\t\t\t})\n\t\t})\n\t}\n\n\tsaveSubscription() {\n\t\tthis.saveModal.open().then(() => {\n\t\t\tlet changes = { changes : { ...diff(this.originalSubscription, this.subscription) }, subscriptionId : this.subscription.subscriptionId, companyId : this.subscription.companyId, accountId : this.subscription.accountId };\n\t\t\tconsole.log('changes', changes, this.originalSubscription, this.subscription)\n\t\t\tthis.accountsService.updateSubscription(changes).then((response) => {\n\t\t\t\tthis.saveModal.close().then(() => {\n\t\t\t\t\tthis.infoModal.close().then(() => {\n\t\t\t\t\t\tthis.closeResolver({ success : true, subscription : this.subscription });\n\t\t\t\t\t})\n\t\t\t\t})\n\t\t\t}).catch((e) => {\n\t\t\t\tthis.saveModal.close().then(() => {\n\t\t\t\t\tthis.errorMessage = e.errorMessage || e.message;\n\t\t\t\t\tthis.errorModal.open();\n\t\t\t\t});\n\t\t\t});\n\t\t})\n\t}\n\n\tcancelSaveSubscription() {\n\t\tthis.infoModal.close().then(() => {\n\t\t\tthis.closeResolver({ success : false })\n\t\t})\n\t}\n\n}\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/components/subscriptioninfo.ts","export * from './no-content.component';\n\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/no-content/index.ts","import { Injectable }     from '@angular/core';\nimport { Observable } from 'rxjs';\n\nimport { HttpService }           from './http';\n\n@Injectable()\n\nexport class ImapService {\n\t\n  constructor(private httpService: HttpService) {}\n  \n \tlistSyncFolders(userInfo) {\t\t\n\t\treturn this.httpService.post(\"/imap/sync/\", { Account : userInfo, Action : 'listFolders' }).then((response) => {\n\t\t\t return Promise.resolve(response.json());\n\t\t })\n\t}\n\n\tlistMessages(userInfo, folder) {\t\t\n\t\treturn this.httpService.post(\"/imap/sync/\", { Account : userInfo, Action : 'listMessages', Folder : folder }).then((response) => {\n\t\t\t return Promise.resolve(response.json());\n\t\t })\n\t}\n\n}\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/services/imap.ts","import { Component } from '@angular/core';\n\n@Component({\n  template: require('./templates/activities.html')\n})\n\nexport class ActivitiesView { }\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/views/activities.ts","import { Component } from '@angular/core';\n\n@Component({\n  template: require('./templates/activitylog.html')\n})\n\nexport class ActivityLogView { }\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/views/activitylog.ts","import { Component } from '@angular/core';\n\n@Component({\n  template: require('./templates/companies.html')\n})\n\nexport class CompaniesView { }\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/views/companies.ts","import { Component, OnInit, ViewChild } from '@angular/core';\nimport { ActivityService } from '../services/activity';\nimport { CompanyService } from '../services/company';\nimport { HttpService } from '../services/http';\nimport { Activity } from '../models/activity';\nimport { ErrorsService }           from '../services/errors';\nimport { DatePicker }           from '../components/datepicker';\nimport { ModalModule, ModalComponent } from 'ng2-bs4-modal/ng2-bs4-modal';\nimport { AccountsService } from '../services/accounts';\nimport { LineChartComponent } from '../components/linechartcomponent';\n\n@Component({\n  template: require('./templates/dashboard.html')\n})\n\nexport class DashboardView implements OnInit { \n\t\n  @ViewChild('msgQueueChart')\n\tmsgQueueChart : LineChartComponent;\n\n\t@ViewChild('creatingModal')\n\tcreatingModal : ModalComponent;\n\t\n\t@ViewChild('editActivityModal')\n\teditActivityModal : ModalComponent;\n\n\tactivities : any;\n\tnumActivities : Number;\n\tloadingActivities : boolean;\n\tloadingOrders : boolean;\n\n\texpiredCompanies : any;\n\torders : any;\n\tnumExpiredCompanies : Number;\n\tloadingCompanies : boolean;\n\tnumOrders : Number;\n\n\ttoday : number;\n\ttomorrow: number;\n\n\ttasks : any[];\n\tisUpdatingTasks : boolean;\n\tdays : any[];\n\tmonths : any[];\n\teditedTask : any;\n\ttaskTypes : any;\n\t\n\t@ViewChild('newTaskStartDate')\n  newTaskStartDate: DatePicker;\n\n\t@ViewChild('newTaskEndDate')\n  newTaskEndDate: DatePicker;\n\thours : any[];\n\tminutes : any[];\n\tuser : any;\n\n  msgQueueChartData : any;\n  msgQueueChartLabels : any;\n\tqueueChartDataLoaded : boolean;\n\t\n\tlocalDeliveriesChartData : any;\n\tlocalDeliveriesChartLabels : any;\n\tlocalDeliveriesChartDataLoaded : boolean;\n\n\tblockedEmailAccounts : any;\n\n  constructor(\n    private companyService: CompanyService,\n    private activityService: ActivityService,\n    private httpService: HttpService,\n\t\tprivate errorsService : ErrorsService,\n\t\tprivate accountsService : AccountsService\n   ) {\n\t\tthis.editedTask = { tasktypeId : 1, name : '', location : '', description : '', private : true, startDate : 0, endDate : 0, startHour : 8, startMinute : 0, endHour : 9, endMinute : 0 };\n\t\tthis.user = this.httpService.getUser();\n\t\tthis.taskTypes = [\n\t\t\t{ tasktypeId : 0, name : '-'},\n\t\t\t{ tasktypeId : 1, name : 'Möte'},\n\t\t\t{ tasktypeId : 2, name : 'Kundbesök'},\n\t\t\t{ tasktypeId : 3, name : 'Affärslunch'},\n\t\t\t{ tasktypeId : 4, name : 'Annan aktivitet'}\n\t\t];\n\t\tvar d = new Date();\n\t\td.setHours(0);\n\t\td.setMinutes(0);\n\t\td.setSeconds(0);\n\t\td.setMilliseconds(0);\n\t\tthis.blockedEmailAccounts = [];\n\t\tthis.today = Number(d.getTime() / 1000);\n\t\tthis.tomorrow = this.today + (60 * 60 * 24);\n\t\tthis.hours = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23];\n\t\tthis.minutes = [0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55];\n\t}\n   \n  ngOnInit(): void {\n\t\t\n\t  this.loadingActivities = true;\n\t  this.loadingCompanies = true;\n\t\tthis.loadingOrders = true;\n\n\t\tvar user = this.httpService.getUser();\n\n\t\tthis.activityService.getActivities({ userId : user.userId, projectId : 24, statusId : [2, 3, 7] }, 0, 50).then((activitites) => {\n\t\t\tthis.activities = activitites.list;\n\t\t\tthis.numActivities = activitites.total;\n\t\t\tthis.loadingActivities = false;\n\t\t});\n\n\t\tthis.companyService.getExpired().then((companies) => {\n\t\t\tthis.expiredCompanies = companies;\n\t\t\tthis.numExpiredCompanies = companies.length;\n\t\t\tthis.loadingCompanies = false;\n\t\t});\n\n\t\tthis.companyService.getOrders({ statusId : [1]}, 0, 10).then((orderList) => {\n\t\t\tthis.orders = orderList.list;\n\t\t\tthis.numOrders = orderList.total;\n\t\t\tthis.loadingOrders = false;\n\t\t});\n\n\t\tthis.accountsService.getBlockedAuthenticatedEmailAccounts('new').then((blockedEmailAccounts) => {\n\t\t\tthis.blockedEmailAccounts = blockedEmailAccounts;\n\t\t\tconsole.log('blockedEmailAccounts', blockedEmailAccounts)\n\t\t})\n\n    this.reloadStats();\n    setInterval(() => {\n      this.reloadStats();\n\t\t}, 30000);\n\n\t\tthis.days = ['Söndag', 'Måndag', 'Tisdag', 'Onsdag', 'Torsdag', 'Fredag', 'Lördag']\n\t\tthis.months = ['Jan', 'Feb', 'Mar', 'Apr', 'Maj', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dec'];\n\t\tthis.reloadTasks();\n\t\tthis.newTaskStartDate.date = new Date();\n\t\tthis.newTaskEndDate.date = new Date();\n\t}\n\n\tconfirmBlockedEmailAccount(email) {\n\t\tconsole.log('email', email);\t\t\n\t\tthis.accountsService.confirmBlockedAuthenticatedEmailAccount(email).then(() => {\n\t\t\tthis.accountsService.getBlockedAuthenticatedEmailAccounts('new').then((blockedEmailAccounts) => {\n\t\t\t\tthis.blockedEmailAccounts = blockedEmailAccounts;\n\t\t\t\tconsole.log('blockedEmailAccounts', blockedEmailAccounts)\n\t\t\t})\n\t\t})\t\t\n\t}\n\n\tdeleteBlockedEmailAccount(email) {\n\t\tconsole.log('email', email);\t\t\n\t\tthis.accountsService.deleteBlockedAuthenticatedEmailAccount(email).then(() => {\n\t\t\tthis.accountsService.getBlockedAuthenticatedEmailAccounts('new').then((blockedEmailAccounts) => {\n\t\t\t\tthis.blockedEmailAccounts = blockedEmailAccounts;\n\t\t\t\tconsole.log('blockedEmailAccounts', blockedEmailAccounts)\n\t\t\t})\n\t\t})\t\t\n\t}\n\n\tprivate reloadStats() {\n\n\t\tthis.msgQueueChartData = [\n\t\t\t{ data : [], label : 'Proxy Message queue'},\n\t\t\t{ data : [], label : 'Local Message queue'}\n\t\t]\n\t\tthis.localDeliveriesChartData = [\n\t\t\t{ data : [], label : 'Local deliveries'},\n\t\t\t{ data : [], label : 'Num Spam'}\n\t\t];\n\t\tthis.msgQueueChartLabels = [];\n\t\tthis.localDeliveriesChartLabels = [];\n\n\t\tthis.queueChartDataLoaded = false;\n\t\tthis.localDeliveriesChartDataLoaded = false;\n\t\t\n\t\t// queue metrics\n\t\tvar cwMetrics1_a = {\n\t\t\tNamespace : 'MailServer/proxy',\n\t\t\tMetricName : 'messagecount',\n\t\t\tStartTime : new Date((new Date().getTime()) - (2 * 60 * 60)*1000).toISOString(),\n\t\t\tEndTime : new Date().toISOString(),\n\t\t\tPeriod : 300,\n\t\t\tStatistics : ['Average'],\n\t\t\tUnit : \"Count\",\n\t\t}\n\n\t\tvar cwMetrics1_b = {\n\t\t\tNamespace : 'MailServer/eks',\n\t\t\tMetricName : 'messagecount',\n\t\t\tStartTime : new Date((new Date().getTime()) - (2 * 60 * 60) * 1000).toISOString(),\n\t\t\tEndTime : new Date().toISOString(),\n\t\t\tPeriod : 300,\n\t\t\tStatistics : ['Average'],\n\t\t\tUnit : \"Count\",\n\t\t}\n\n\t\tthis.accountsService.getBlockedAuthenticatedEmailAccounts('new').then((blockedEmailAccounts) => {\n\t\t\tthis.blockedEmailAccounts = blockedEmailAccounts;\n\t\t\tconsole.log('blockedEmailAccounts', blockedEmailAccounts)\n\t\t})\n\t\t\n\t\tthis.accountsService.getCloudWatchMetrics(cwMetrics1_a).then((result) => {\n\t\t\tresult.Datapoints = result.Datapoints.sort((a, b) => {\n\t\t\t\tlet at = new Date(a.Timestamp);\n\t\t\t\tlet bt = new Date(b.Timestamp);\n\t\t\t\treturn at.valueOf() - bt.valueOf();\n\t\t\t})\n\t\t\tresult.Datapoints.forEach((dp, idx) => {\n\t\t\t\tthis.msgQueueChartData[0].data.push(dp.Average);\n\t\t\t\tvar d = new Date(dp.Timestamp);\n\t\t\t\tvar hours = d.getUTCHours();\n\t\t\t\tvar minutes = d.getUTCMinutes();\n\t\t\t\tvar timeStr = (hours < 10 ? '0' : '') + hours + ':' + (minutes < 10 ? '0' : '') + minutes;\n\t\t\t\tthis.msgQueueChartLabels.push(timeStr);\n\t\t\t});\n\t\t\tthis.accountsService.getCloudWatchMetrics(cwMetrics1_b).then((result) => {\n\t\t\t\tresult.Datapoints = result.Datapoints.sort((a, b) => {\n\t\t\t\t\tlet at = new Date(a.Timestamp);\n\t\t\t\t\tlet bt = new Date(b.Timestamp);\n\t\t\t\t\treturn at.valueOf() - bt.valueOf();\n\t\t\t\t})\n\t\t\t\tresult.Datapoints.forEach((dp, idx) => {\n\t\t\t\t\tthis.msgQueueChartData[1].data.push(dp.Average);\n\t\t\t\t\tvar d = new Date(dp.Timestamp);\n\t\t\t\t\tvar hours = d.getUTCHours();\n\t\t\t\t\tvar minutes = d.getUTCMinutes();\n\t\t\t\t\tvar timeStr = (hours < 10 ? '0' : '') + hours + ':' + (minutes < 10 ? '0' : '') + minutes;\n\t\t\t\t\tthis.msgQueueChartLabels.push(timeStr);\n\t\t\t\t});\n\t\t\t\tthis.queueChartDataLoaded = true;\n\t\t\t});\n\t\t})\n\n\t\t// local deliveries\n\t\tvar cwMetrics2 = {\n\t\t\tNamespace : 'MailServer/eks',\n\t\t\tMetricName : 'nummail',\n\t\t\tStartTime : (new Date().getTime() / 1000) - (2 * 60 * 60),\n\t\t\tEndTime : (new Date().getTime() / 1000),\n\t\t\tPeriod : 300,\n\t\t\tStatistics : ['Average'],\n\t\t\tUnit : \"Count\",\n\t\t}\n\n\t\tvar cwMetrics3 = {\n\t\t\tNamespace : 'MailServer/eks',\n\t\t\tMetricName : 'numspam',\n\t\t\tStartTime : (new Date().getTime() / 1000) - (2 * 60 * 60),\n\t\t\tEndTime : (new Date().getTime() / 1000),\n\t\t\tPeriod : 300,\n\t\t\tStatistics : ['Average'],\n\t\t\tUnit : \"Count\",\n\t\t}\n\n\t\tthis.accountsService.getCloudWatchMetrics(cwMetrics2).then((result) => {\n\t\t\tresult.Datapoints = result.Datapoints.sort((a, b) => {\n\t\t\t\tlet at = new Date(a.Timestamp);\n\t\t\t\tlet bt = new Date(b.Timestamp);\n\t\t\t\treturn at.valueOf() - bt.valueOf();\n\t\t\t})\n\t\t\tresult.Datapoints.forEach((dp, idx) => {\n\t\t\t\tthis.localDeliveriesChartData[0].data.push(dp.Average);\n\t\t\t\tvar d = new Date(dp.Timestamp);\n\t\t\t\tvar hours = d.getUTCHours();\n\t\t\t\tvar minutes = d.getUTCMinutes();\n\t\t\t\tvar timeStr = (hours < 10 ? '0' : '') + hours + ':' + (minutes < 10 ? '0' : '') + minutes;\n\t\t\t\tthis.localDeliveriesChartLabels.push(timeStr);\n\t\t\t});\n\t\t  this.accountsService.getCloudWatchMetrics(cwMetrics3).then((result) => {\n\t\t\t\tresult.Datapoints = result.Datapoints.sort((a, b) => {\n\t\t\t\t\tlet at = new Date(a.Timestamp);\n\t\t\t\t\tlet bt = new Date(b.Timestamp);\n\t\t\t\t\treturn at.valueOf() - bt.valueOf();\n\t\t\t\t})\n\t\t\t\tresult.Datapoints.forEach((dp, idx) => {\n\t\t\t\t  this.localDeliveriesChartData[1].data.push(dp.Average);\n\t\t\t\t  var d = new Date(dp.Timestamp);\n\t\t\t\t\tvar hours = d.getUTCHours();\n\t\t\t\t\tvar minutes = d.getUTCMinutes();\n\t\t\t\t\tvar timeStr = (hours < 10 ? '0' : '') + hours + ':' + (minutes < 10 ? '0' : '') + minutes;\n\t\t\t\t});\n\t\t\t  this.localDeliveriesChartDataLoaded = true;\n\t\t\t});\n\t\t})\n\n\t}\n\n\tprivate reloadTasks() {\n\t\tvar day = new Date().getDay();\n\t\tvar startDate = new Date(new Date().getTime() - (60 * 60 * 24 * 1000 * (day -1)));\n\t\tstartDate.setHours(0); startDate.setMinutes(0); startDate.setSeconds(0);\n\t\tvar endDate = new Date(startDate.getTime() + (60 * 60 * 24 * 1000 * 7));\n\t\tthis.activityService.searchTasks(startDate, endDate).then((tasks) => {\n\t\t\tthis.isUpdatingTasks = true;\n\t\t\tthis.tasks = [];\n\t\t\ttasks.forEach((t) => {\n\t\t\t\tvar newId = new Date(t.startDate * 1000).getDate().toString();\n\t\t\t\tvar dateObj = null; \n\t\t\t\tthis.tasks.forEach((d) => {\n\t\t\t\t\tif(d.id == newId) {\n\t\t\t\t\t\tdateObj = d;\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\tt.startDate = new Date(t.startDate * 1000);\n\t\t\t\tt.endDate = new Date(t.endDate * 1000);\t\t\t\t\n\t\t\t\tif(!dateObj) {\n\t\t\t\t\tdateObj = { date : t.startDate, firstTask : t, tasks : [], id : newId, isToday : t.startDate.getDay() == new Date().getDay() };\n\t\t\t\t\tthis.tasks.push(dateObj);\n\t\t\t\t} else {\n\t\t\t\t\tdateObj.tasks.push(t);\n\t\t\t\t}\n\t\t\t\tif(t.createNotification) {\n\t\t\t\t\tthis.activityService.createReminder(t.taskId, t.startDate, t.endDate, t.name); \n\t\t\t\t} else {\n\t\t\t\t\tthis.activityService.deleteReminder(t.taskId);\n\t\t\t\t}\n\t\t\t});\n\t\t\tthis.isUpdatingTasks = false;\n\t\t}).catch((e) => {\n\t\t\tthis.errorsService.broadcast('error', e.errorMessage || e.message);\n\t\t})\n\t}\n\n\tnewTask() {\n\t\tthis.editedTask = { tasktypeId : 1, name : '', location : '', description : '', private : false, startDate : 0, endDate : 0, startHour : 8, startMinute : 0, endHour : 9, endMinute : 0, createNotification : false };\n\t\tthis.editActivityModal.open();\n\t}\n\n\teditTask(task) {\n\t\tthis.editedTask = JSON.parse(JSON.stringify(task));\n\t\tthis.newTaskStartDate.date = task.startDate;\n\t\tthis.newTaskEndDate.date = task.startDate;\n\t\tif(this.editedTask.description.type == 'Buffer')\n\t\t\tthis.editedTask.description = new Buffer(task.description.data).toString();\n\t\tthis.editedTask.startHour = new Date(task.startDate).getHours();\n\t\tthis.editedTask.endHour = new Date(task.endDate).getHours();\n\t\tthis.editedTask.startMinute = new Date(task.startDate).getMinutes();\n\t\tthis.editedTask.endMinute = new Date(task.endDate).getMinutes();\n\t\tthis.editActivityModal.open();\n\t}\n\n\tsaveTask() {\n\t\tthis.editedTask.startDate = this.newTaskStartDate.Date;\n\t\tthis.editedTask.endDate = this.newTaskEndDate.Date;\n\t\tthis.editedTask.startDate.setHours(this.editedTask.startHour);\n\t\tthis.editedTask.endDate.setHours(this.editedTask.endHour);\n\t\tthis.editedTask.startDate.setMinutes(this.editedTask.startMinute);\n\t\tthis.editedTask.endDate.setMinutes(this.editedTask.endMinute);\n\t\tthis.editedTask.startDate = this.editedTask.startDate.getTime() / 1000;\n\t\tthis.editedTask.endDate = this.editedTask.endDate.getTime() / 1000;\n\t\tthis.creatingModal.open().then(() => {\n\t\t\tif(this.editedTask.taskId) {\n\t\t\t\tthis.activityService.saveTask(this.editedTask).then((response) => {\n\t\t\t\t\tthis.activityService.deleteReminder(this.editedTask.taskId);\n\t\t\t\t\tthis.creatingModal.close().then(() => {\n\t\t\t\t\t\tthis.editActivityModal.close().then(() => {\n\t\t\t\t\t\t\tthis.reloadTasks();\n\t\t\t\t\t\t});\n\t\t\t\t\t})\n\t\t\t\t}).catch((e) => {\n\t\t\t\t\tthis.creatingModal.close().then(() => {\n\t\t\t\t\t\tthis.editActivityModal.close().then(() => {\n\t\t\t\t\t\t\tthis.errorsService.broadcast('error', e.errorMessage || e.message);\n\t\t\t\t\t\t})\n\t\t\t\t\t})\n\t\t\t\t})\n\t\t\t} else {\n\t\t\t\tthis.activityService.createTask(this.editedTask).then((response) => {\n\t\t\t\t\tthis.creatingModal.close().then(() => {\n\t\t\t\t\t\tthis.editActivityModal.close().then(() => {\n\t\t\t\t\t\t\tthis.reloadTasks();\n\t\t\t\t\t\t});\n\t\t\t\t\t})\n\t\t\t\t}).catch((e) => {\n\t\t\t\t\tthis.creatingModal.close().then(() => {\n\t\t\t\t\t\tthis.editActivityModal.close().then(() => {\n\t\t\t\t\t\t\tthis.errorsService.broadcast('error', e.errorMessage || e.message);\n\t\t\t\t\t\t})\n\t\t\t\t\t})\n\t\t\t\t})\n\t\t\t}\n\t\t})\n\t}\n\n\tdeleteTask() {\n\t\tthis.creatingModal.open().then(() => {\n\t\t\tthis.activityService.deleteTask(this.editedTask).then((response) => {\n\t\t\t\tthis.activityService.deleteReminder(this.editedTask.taskId);\n\t\t\t\tthis.creatingModal.close().then(() => {\n\t\t\t\t\tthis.editActivityModal.close().then(() => {\n\t\t\t\t\t\tthis.reloadTasks();\n\t\t\t\t\t});\n\t\t\t\t})\n\t\t\t}).catch((e) => {\n\t\t\t\tthis.creatingModal.close().then(() => {\n\t\t\t\t\tthis.editActivityModal.close().then(() => {\n\t\t\t\t\t\tthis.errorsService.broadcast('error', e.errorMessage || e.message);\n\t\t\t\t\t})\n\t\t\t\t})\n\t\t\t})\n\t\t})\n\t}\n\t\n}\n\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/views/dashboard.ts","import { Component } from '@angular/core';\n\n@Component({\n  template: require('./templates/domains.html')\n})\n\nexport class DomainsView { }\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/views/domains.ts","import { Component } from '@angular/core';\n\nimport { ImapService }           from '../services/imap';\n\n@Component({\n  template: require('./templates/imapsync.html')\n})\n\nexport class ImapSyncView {\n\t\n\tpublic userInfo : { user : string, password : string, host : string, port : string, tls : boolean }\n\n\tfolders : any[];\n\tmessages : any[];\n\tloading : boolean;\n\tcurrentFolder : any;\n\tnumMessagesInFolder : number;\n\n\tconstructor(\n    private imapService: ImapService\n  ) {\n\t\tthis.userInfo = { user : 'thomas@httab.com', password : 'ATlas2009', host : 'imap.one.com', port : '993', tls : true }\n\t\tthis.connect();\n\t}\n\n\tconnect() {\n\t\tthis.loading = true;\n\t\tthis.imapService.listSyncFolders(this.userInfo).then((folders) => {\n\t\t\tconsole.log(folders);\n\t\t\tthis.loading = false;\n\t\t\tthis.folders = folders;\n\t\t\tthis.currentFolder = null;\n\t\t});\n\t}\n\n\topenFolder(folder) {\n\t\tthis.messages = [];\n\t\tthis.loading = true;\n\t\tthis.currentFolder = folder;\n\t\tthis.folders = folder.children;\n\t\tthis.loadMoreMessages(0);\n\t}\n\n\tloadMoreMessages(startIndex) {\n\t\tthis.imapService.listMessages(this.userInfo, { name : this.currentFolder.folderName, StartIndex : startIndex }).then((box) => {\n\t\t\tthis.numMessagesInFolder = box.totalMessages;\n\t\t\tbox.messages.forEach((m) => {\n\t\t\t\tvar from = m.body.match(/From: (.*?)\\r\\n/);\n\t\t\t\tvar subject = m.body.match(/Subject: (.*?)\\r\\n/);\n\t\t\t\tvar date = m.body.match(/Date: (.*?)\\r\\n/);\t\t\t\t\n\t\t\t\tthis.messages.push({\n\t\t\t\t\tfrom : from ? from[1] : '-',\n\t\t\t\t\tsubject : subject ? subject[1] : '-',\n\t\t\t\t\tdate : date ? date[1] : '-',\n\t\t\t\t});\n\t\t\t});\n\t\t\tthis.loading = false;\n\t\t})\n\t}\n\n\tonScroll() {\n\t\tif(this.messages.length < this.numMessagesInFolder) {\n\t\t\tthis.loadMoreMessages(this.messages.length);\n\t\t}\n\t}\n\n}\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/views/imapsync.ts","import { Component } from '@angular/core';\n\n@Component({\n  template: require('./templates/invoices.html')\n})\n\nexport class InvoicesView { }\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/views/invoices.ts","import { Component, OnInit, ViewChild, ElementRef, ChangeDetectorRef, OnDestroy, EventEmitter } from '@angular/core';\nimport { Router, ActivatedRoute, Params, NavigationEnd}            from '@angular/router';\nimport { Observable }        from 'rxjs/Observable';\nimport { ModalModule, ModalComponent } from 'ng2-bs4-modal/ng2-bs4-modal';\n\nimport { StorageService } from '../services/storage';\nimport { AccountsService } from '../services/accounts';\nimport { HttpService } from '../services/http';\n\nimport { AccountInfoModal }\tfrom '../components/accountinfo';\n\n@Component({\n  template: require('./templates/layouts.html')\n})\n\nexport class LayoutsView implements OnInit, OnDestroy {\n\n\t@ViewChild('accountInfoModal')\n  accountInfoModal: AccountInfoModal;\n\n\tprivate navigationSubscriber : any;\n\tprivate marker : any;\n\tprivate loading : boolean;\n\tprivate files : any[];\n\tprivate visibleFiles : any[];\n\tprivate accountsOffset : number;\n\tprivate accounts : any[];\n\tprivate filterButtons : any[];\n\tprivate accountStatuses : any[];\n\tprivate statusId : number;\n\tprivate phrase : string;\n\n\tprivate _accountStatuses = {\n\t\t0 : 'Inväntar material',\n\t\t1 : 'Material väntar godkännande',\n\t\t5 : 'Material ej godkänt',\n\t\t4 : 'Material godkänt',\n\t\t6 : 'Förslag under produktion',\n\t\t2 : 'Förslag skapat',\n\t\t8 : 'Förslag ej godkänt',\n\t\t7 : 'Förslag godkänt',\n\t\t9 : 'Hemsida under produktion',\n\t\t10 : 'Hemsida klar för godkännande',\n\t\t11 : 'Hemsida ej godkänd',\n\t\t3 : 'Hemsida godkänd',\n\t\t12 : 'Uppsagd',\n\t\t13 : 'Hemsida publicerad'\n\t}\n\n  constructor(\n    private storageService: StorageService,\n    private accountsService: AccountsService,\n    private httpService: HttpService,\n    private router: Router\n  ){\n\t\tthis.accountsOffset = 0;\n\t\tthis.accountStatuses = [];\n\t\tthis.accountStatuses.push({ statusId : 0, name : this._accountStatuses[0] });\n\t\tthis.accountStatuses.push({ statusId : 1, name : this._accountStatuses[1] });\n\t\tthis.accountStatuses.push({ statusId : 5, name : this._accountStatuses[5] });\n\t\tthis.accountStatuses.push({ statusId : 4, name : this._accountStatuses[4] });\n\t\tthis.accountStatuses.push({ statusId : 6, name : this._accountStatuses[6] });\n\t\tthis.accountStatuses.push({ statusId : 2, name : this._accountStatuses[2] });\n\t\tthis.accountStatuses.push({ statusId : 8, name : this._accountStatuses[8] });\n\t\tthis.accountStatuses.push({ statusId : 7, name : this._accountStatuses[7] });\n\t\tthis.accountStatuses.push({ statusId : 9, name : this._accountStatuses[9] });\n\t\tthis.accountStatuses.push({ statusId : 10, name : this._accountStatuses[10] });\n\t\tthis.accountStatuses.push({ statusId : 11, name : this._accountStatuses[11] });\n\t\tthis.accountStatuses.push({ statusId : 3, name : this._accountStatuses[3] });\n\t\tthis.accountStatuses.push({ statusId : 13, name : this._accountStatuses[13] });\n\t\tthis.accountStatuses.push({ statusId : 12, name : this._accountStatuses[12] });\n\t\tthis.statusId = 3;\n\t\tthis.phrase = '';\n\t}\n\n\tngOnInit(): void {\n\t\tthis.navigationSubscriber = this.router.events.subscribe((event) => { \n\t\t\tif(event instanceof NavigationEnd) {\t\n\t\t\t\tthis.loading = true;\n\t\t\t\tthis.files = [];\n\t\t\t\tthis.accounts = [];\n\t\t\t\tthis.visibleFiles = [];\n\t\t\t\tthis.loadAccounts(() => {\n\t\t\t\t\tthis.loadFiles(() => {\n\t\t\t\t\t\tthis.files.sort((a : any, b : any) => {\n\t\t\t\t\t\t\treturn new Date(b.LastModified).getTime() - new Date(a.LastModified).getTime();\n\t\t\t\t\t\t})\n\t\t\t\t\t\tthis.init20Files();\n\t\t\t\t\t\tthis.loading = false;\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t}\n\n\tngOnDestroy() : void {\n\t\tthis.navigationSubscriber.unsubscribe();\n\t}\n\n\tsetStatus(statusId) {\n\t\tthis.statusId = statusId;\n\t\tthis.refresh();\n\t}\n\n\tshowAccountInfo(key : string) {\n\t\tvar key = key.replace(/clientimages\\//, '');\n\t\tkey = key.substring(0, key.indexOf('.'));\n\t\tvar accountId = parseInt(key)\n\t\tthis.accountInfoModal.open(accountId);\n\t}\n\n\trefresh() {\n\t\tconsole.log(this.phrase);\n\t\tthis.visibleFiles = [];\n\t\tthis.init20Files();\n\t}\n\t\n\tinit20Files() {\n\t\tvar i = 0;\t\t\n\t\tvar ii = 0;\n\t\twhile(i < 20 && ii < this.files.length) {\n\t\t\tvar f = this.files[ii++];\n\t\t\tif(this.visibleFiles.indexOf(f) != -1) continue; // already in list\n\t\t\tif(f.Account.statusId != this.statusId) continue; // does not match filter\n\t\t\tif(this.phrase.toLowerCase() != '' && f.Account.prefix.indexOf(this.phrase.toLowerCase()) == -1) continue; // does not match filter\n\t\t\tthis.visibleFiles.push(f); // add\n\t\t\ti++;\n\t\t}\n\t}\n\n\tonScroll() {\n\t\tif(this.visibleFiles.length - this.files.length) {\n\t\t\tthis.init20Files();\n\t\t}\n\t}\n\n\tloadAccounts(doneClb) {\n\t\tthis.accountsService.getAccounts({}, this.accountsOffset, 1000).then((accountList) => {\n\t\t\tthis.accountsOffset += 1000;\n\t\t\taccountList.list.forEach((a) => {\n\t\t\t\tthis.accounts.push(a);\n\t\t\t})\n\t\t\tif(accountList.list.length == 1000) {\n\t\t\t\tthis.loadAccounts(doneClb);\n\t\t\t} else {\n\t\t\t\tdoneClb();\n\t\t\t}\n\t\t});\n\t}\n\n\tloadFiles(doneClb) {\n\t\tthis.storageService.listFiles(\"hsd-public-content\", this.marker, 'clientimages/').then((data) => {\n\t\t\t\tthis.marker = data.NextMarker;\n\t\t\t\tdata.Contents.forEach((c) => {\n\t\t\t\t\tvar key = c.Key.replace(/clientimages\\//, '');\n\t\t\t\t\tvar accountId = parseInt(key.substring(0, key.indexOf('.')));\n\t\t\t\t\tc.Date = new Date(c.LastModified).getTime() / 1000;\n\t\t\t\t\tthis.accounts.forEach((a) => {\n\t\t\t\t\t\tif(a.accountId == accountId) {\n\t\t\t\t\t\t\tc.Account = a;\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t\tthis.files.push(c); \n\t\t\t\t})\n\t\t\t\tif(data.IsTruncated) {\n\t\t\t\t\tthis.loadFiles(doneClb);\n\t\t\t\t} else {\n\t\t\t\t\tdoneClb();\n\t\t\t\t}\n\t\t\t})\n\t}\n\n}\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/views/layouts.ts","import { Component } from '@angular/core';\n\n@Component({\n  template: require('./templates/orders.html')\n})\n\nexport class OrdersView { }\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/views/orders.ts","import { Component, ViewChild } from '@angular/core';\nimport { Router,ActivatedRoute } from '@angular/router';\nimport { DatePicker }           from '../components/datepicker';\n\nimport { HttpService } from '../services/http';\n\n@Component({\n  template: require('./templates/phones.html')\n})\n\nexport class PhonesView { \n\n\t@ViewChild('phoneStartDate')\n  phoneStartDate: DatePicker;\n\n\t@ViewChild('phoneEndDate')\n\tphoneEndDate: DatePicker;\n\t\n\tprivate data : any = {\n\t\tagents : []\n\t};\n\n\tprivate showAll : boolean;\n\n\tprivate logs : any = [];\n\n\tprivate section : string = '';\n\tprivate now : number;\n\n\tprivate event : any = {\n\t\tstartDate : new Date().valueOf() / 1000,\n\t\tendDate : (new Date().valueOf() + (24*1000*60*60)) / 1000,\n\t\tstartHour : 9,\n\t\tstartMinute : 0,\n\t\tendHour : 16,\n\t\tendMinute : 0,\n\t\treason : 'konf'\n\t}\n\n\tprivate filter : any = {\n\t\tstartDate : '',\n\t\tendDate : '',\n\t\tsource : ''\n\t}\n\n\tprivate logSections = [];\n\n\tconstructor(\n\t\tprivate http : HttpService,\n\t\tprivate router : Router,\n\t\tprivate route : ActivatedRoute\n\t) {\n    route.url.map(segments => segments.join('/')).subscribe((url) => {\n\t\t\tthis.section = url;\n\t\t});\n\t};\n\n\tngAfterViewInit() {\n\t\tthis.reload();\n\t\tthis.now = new Date().valueOf() / 1000;\n\t}\n\n\treload() {\n\t\tthis.http.post('/phones', { GetPhoneService : true })\n\t\t.then((data) => {\n\t\t\tdata = data.json();\n\t\t\tthis.data = data;\n\t\t})\n\t\t.catch((err) => {\n\t\t\talert(err);\n\t\t});\n\t\tlet todayMinus1Day = new Date(new Date().valueOf() - (1000 * 60 * 60 * 24));\n\t\tlet dayStr = todayMinus1Day.toLocaleDateString();\t\t\n\t\tthis.http.post('/phones', { GetPhoneLogs : true, from : dayStr })\n\t\t.then((data) => {\n\t\t\tdata = data.json();\n\t\t\tthis.logs = data;\n\t\t\tthis.logSections = [];\n\t\t\tlet lastDate = 0;\n\t\t\tlet lastSession = {\n\t\t\t\tdate : undefined,\n\t\t\t\tlogs : []\n\t\t\t}\n\t\t\tthis.logs.forEach(log => {\n\t\t\t\tlet d = new Date(log.calldate.substr(0, 10)).valueOf();\n\t\t\t\tif(lastDate != d) {\n\t\t\t\t\tlastSession = {\n\t\t\t\t\t\tlogs : [],\n\t\t\t\t\t\tdate : d,\n\t\t\t\t\t} \n\t\t\t\t\tthis.logSections.push(lastSession);\n\t\t\t\t\tlastDate = d;\n\t\t\t\t}\n\t\t\t\tlastSession.logs.push(log);\n\t\t\t});\n\t\t\tconsole.log(this.logSections);\n\t\t})\n\t\t.catch((err) => {\n\t\t\talert(err);\n\t\t})\n\t}\n\n\tfilterLogs() {\n\t\tlet startDate = new Date(new Date().valueOf() - (1000 * 60 * 60 * 24)).toLocaleDateString();\n\t\tlet endDate = undefined;\n\t\tlet source = undefined;\n\t\tif(this.filter.startDate) {\n\t\t\tstartDate = new Date(this.filter.startDate).toLocaleDateString();\n\t\t}\n\t\tif(this.filter.endDate) {\n\t\t\tendDate = new Date(this.filter.endDate).toLocaleDateString();\n\t\t}\n\t\tif(this.filter.source) {\n\t\t\tsource = this.filter.source;\n\t\t}\n\t\tthis.http.post('/phones', { GetPhoneLogs : true, from : startDate, to : endDate, source : source })\n\t\t.then((data) => {\n\t\t\tdata = data.json();\n\t\t\tthis.logs = data;\n\t\t\tthis.logSections = [];\n\t\t\tlet lastDate = 0;\n\t\t\tlet lastSession = {\n\t\t\t\tdate : undefined,\n\t\t\t\tlogs : []\n\t\t\t}\n\t\t\tthis.logs.forEach(log => {\n\t\t\t\tlet d = new Date(log.calldate.substr(0, 10)).valueOf();\n\t\t\t\tif(lastDate != d) {\n\t\t\t\t\tlastSession = {\n\t\t\t\t\t\tlogs : [],\n\t\t\t\t\t\tdate : d,\n\t\t\t\t\t} \n\t\t\t\t\tthis.logSections.push(lastSession);\n\t\t\t\t\tlastDate = d;\n\t\t\t\t}\n\t\t\t\tlastSession.logs.push(log);\n\t\t\t});\n\t\t\tconsole.log(this.logSections);\n\t\t})\n\t\t.catch((err) => {\n\t\t\talert(err);\n\t\t})\n\t}\n\n\tremoveEvent(event) {\n\t\tconsole.log(event);\n\t\tthis.http.post('/phones', { RemoveEvent : true, password : 'apansitterpaengren', action: 'deleteEvent', id : event.id})\n\t\t.then((result) => {\n\t\t\tconsole.log(result.json());\n\t\t\tthis.reload();\n\t\t})\n\t}\n\n\taddEvent(event) {\n\t\tvar starttime = new Date(this.phoneStartDate.Date.getTime());\n\t\tstarttime.setHours(event.startHour);\n\t\tstarttime.setMinutes(event.startMinute);\n\t\tstarttime.setMilliseconds(0);\n\t\tvar endtime = new Date(this.phoneEndDate.Date.getTime());\n\t\tendtime.setHours(event.endHour);\n\t\tendtime.setMinutes(event.endMinute);\n\t\tendtime.setMilliseconds(0);\n\t\tif(!starttime) {\n\t\t\talert('Felaktigt startdatum')\n\t\t\treturn;\n\t\t}\n\t\tif(!endtime) {\n\t\t\talert('Felaktigt slutdatum')\n\t\t\treturn;\n\t\t}\n\t\tthis.http.post('/phones', { AddEvent : true, password : 'apansitterpaengren', action: 'addEvent', starttime : starttime.valueOf() / 1000, endtime : endtime.valueOf() / 1000, reason : event.reason })\n\t\t.then((result) => {\n\t\t\tconsole.log('addEvent', result.json());\n\t\t\tthis.event.starttime = '';\n\t\t\tthis.event.endtime = '';\n\t\t\tthis.reload();\n\t\t})\n\t}\n\n\tformatDuration(l) {\n\t\tlet minutes = Math.floor(l / 60);\n\t\tlet seconds = l - (minutes * 60);\n\t\treturn (minutes > 0 ? minutes + 'm ': '') + seconds + 's';\n\t}\n}\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/views/phones.ts","import { Component, ViewChild, OnInit, OnDestroy } from '@angular/core';\nimport { HttpService } from '../services/http';\nimport { CompanyService } from '../services/company';\nimport { ModalComponent } from 'ng2-bs4-modal/ng2-bs4-modal';\nimport { EventsService } from '../services/event';\nimport { Router, NavigationEnd } from '@angular/router';\n\n@Component({\n  template: require('./templates/prospects.html')\n})\n\nexport class ProspectsView implements OnInit, OnDestroy {\n\n\t@ViewChild('loadingModal')\n  loadingModal: ModalComponent;\n\t\n\tshowProspectInfo : boolean;\n\n\tuser : any;\n\tfilter : any = {\n\t\tstatusId : [0, 6]\n\t};\n\t\n\tprospects : any;\n\tnavigationSubscriber : any;\n\tprospectDetailsLoadedSubscriber : any;\n\tprospectDetailsClosedSubscriber : any;\n\n  constructor(\n\t\tprivate httpService : HttpService,\n\t\tprivate companyService : CompanyService,\n\t\tprivate eventsService: EventsService,\n    private router: Router,\n  )\n\t{\n\t\tthis.user = this.httpService.getUser();\t\n\t\tthis.reload();\t\t\n\t}\n\n\n  ngOnInit(): void {\n\t\tthis.navigationSubscriber = this.router.events.subscribe((event) => { this.navigationEnd(event); });\n\t\tthis.prospectDetailsLoadedSubscriber = this.eventsService.on('prospectdetails-loading', (data) => {\n\t\t\tthis.showProspectInfo = true;\n\t\t});\n\t\tthis.prospectDetailsClosedSubscriber = this.eventsService.on('prospectdetails-closed', (data) => {\n\t\t\tthis.closeProspectInfo();\n\t\t});\n\t}\n\n\tngOnDestroy() {\n\t\tthis.navigationSubscriber.unsubscribe();\n\t\tthis.prospectDetailsLoadedSubscriber.unsubscribe();\n\t\tthis.prospectDetailsClosedSubscriber.unsubscribe();\n\t}\n\n\tnavigationEnd(event) {\n\t\tif(event instanceof NavigationEnd) {\t\n\t\t\tthis.showProspectInfo = false;\t\t\t\n\t\t}\n\t}\n\n\treload() : void {\n\t\tthis.companyService.getProspects(this.user.userId, this.filter)\n\t\t.then((prospects) => {\n\t\t\tconsole.log(prospects);\n\t\t\tthis.prospects = prospects;\n\t\t})\n\t}\n\n\ttoggleSelected(prospect, event) : void {\n\t\tprospect.selected = !prospect.selected;\n\t}\n\n\ttoggleIssueToolbar() : void {\n\n\t}\n\n\tsetAllSelected() : void {\n\t\tthis.prospects.forEach(p => { p.selected = !p.selected; });\n\t}\n\n\n\tcloseProspectInfo() : void {\n\t\tthis.showProspectInfo = false;\n\t\tthis.router.navigateByUrl(\"/prospects\");\t\n\t}\n\n }\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/views/prospects.ts","import { Component, ViewChild } from '@angular/core';\nimport { HttpService } from '../services/http';\nimport { ActivityService } from '../services/activity';\nimport { LocalStorageService } from 'ng2-webstorage';\nimport { DatePicker }           from '../components/datepicker';\nimport { OrderInfo }\t\t\tfrom '../components/orderinfo';\nimport { InvoiceInfo }\t\t\tfrom '../components/invoiceinfo';\nimport { CompanyService } from '../services/company';\nimport { ModalComponent } from 'ng2-bs4-modal/ng2-bs4-modal';\n\n@Component({\n  template: require('./templates/salesreport.html')\n})\n\nexport class SalesReportView {\n\n\t@ViewChild('loadingModal')\n  loadingModal: ModalComponent;\n\n\t@ViewChild('periodStartDate')\n  periodStartDate: DatePicker;\n\n\t@ViewChild('periodEndDate')\n\tperiodEndDate: DatePicker;\n\n\t@ViewChild('invoiceInfo')\n  invoiceInfo: InvoiceInfo;\n\n\t@ViewChild('orderInfo')\n  orderInfo: OrderInfo;\n\n\tavailableUsers : Array<any>;\n\tfilter : {\n\t\tuserId : number,\n\t\ttype : string,\n\t\torderTypes : any,\n\t\tperiodStart : number,\n\t\tperiodEnd : number\n\t}\n\tloading : boolean;\n\treportType : String;\n\treportData : any;\n\tsum : number;\n\n\torderTypeButtons : any;\n\n  constructor(\n    private httpService: HttpService,\n\t\tprivate activityService : ActivityService,\n\t\tprivate localStorage: LocalStorageService,\n\t\tprivate companyService : CompanyService\n  )\n\t{\n\n\t\tthis.reportType = 'sales';\n\n\t\tthis.availableUsers = [];\n\n\t\tlet startOfMonth = new Date();\n\t\tstartOfMonth.setDate(1);\n\t\tstartOfMonth.setHours(0); startOfMonth.setMinutes(0); startOfMonth.setSeconds(0);\n\n\t\tlet endOfMonth = new Date(startOfMonth);\n\t\tendOfMonth.setMonth(endOfMonth.getMonth() + 1);\n\t\tendOfMonth.setDate(0);\n\t\tendOfMonth.setHours(0); endOfMonth.setMinutes(0); endOfMonth.setSeconds(0);\n\n\t\tlet monthEnd = endOfMonth.valueOf()\n\t\tlet monthStart = startOfMonth.valueOf();\n\n\t\tconsole.log(startOfMonth, endOfMonth);\n\n\t\tthis.filter = this.localStorage.retrieve('filter-reports') || { orderTypes : [0, 1], userId : -1, type : 'sales', periodStart : monthStart / 1000, periodEnd : monthEnd / 1000}; \n\n\t  this.httpService.getAllUsers().then((users) => {\n  \t  users.forEach((u) => {\n\t  \t  if(u.userId == 26) return;\n\t  \t  this.availableUsers.push(u);\n  \t  })\n\t  });\n\n\t\tconst f = this.filter.orderTypes == undefined ? [] : this.filter.orderTypes;\n\t\tconsole.log('as', f);\n\n\t\tthis.orderTypeButtons = [\n\t\t\t{ name : 'Nyförsäljning', value : 0, checked : f.indexOf(0) !== -1 },\n\t\t\t{ name : 'Uppförsäljning', value : 1, checked : f.indexOf(1) !== -1 },\n\t\t\t{ name : 'Förnyelse', value : 2, checked : f.indexOf(2) !== -1 },\n\t\t\t{ name : 'Övriga', value : 3, checked : f.indexOf(3) !== -1 }\n\t\t];\t\n\n\t\tconsole.log('orderTypeButtons', this.orderTypeButtons);\n\n\t\tthis.reload();\n\t\t\n\t}\n\n\tshowInvoiceInfo(invoiceId) {\n\t\tthis.invoiceInfo.open(invoiceId);\n\t}\n\t\n\tshowOrderInfo(companyId, orderId) : void {\n\t\tconsole.log(companyId, orderId)\n\t\tthis.loadingModal.open().then(() => {\n\t\t\tthis.companyService.getById(companyId).then((company) => {\n\t\t\t\tcompany.orders.forEach((o) => {\n\t\t\t\t\tif(o.orderId == orderId) {\n\t\t\t\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\t\t\t\tthis.orderInfo.open(o);\n\t\t\t\t\t\t})\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t})\n\t\t});\n\t}\n\n\tstartDateChanged(date: any) : void {\n\t\tthis.filter.periodStart = new Date(date).valueOf() / 1000;\n\t\tthis.reload();\n\t}\n\n\tendDateChanged(date: any) : void {\n\t\tthis.filter.periodEnd = new Date(date).valueOf() / 1000;\n\t\tthis.reload();\n\t}\n\t\t\n\ttoggleOrderTypeButton(orderType) : void {\n\t\tlet btn = this.orderTypeButtons.filter(btn => btn.value == orderType)[0];\n\t\tbtn.checked = !btn.checked;\n\t\tthis.filter.orderTypes = this.orderTypeButtons.filter(btn => btn.checked).map(btn => btn.value);\n\t\tthis.reload();\n\t}\n\n\treload() : void {\n\t\tthis.loading = true;\n\t\tthis.activityService.getSalesReport(this.filter.userId, this.filter.orderTypes.length == 0 ? [-1] : this.filter.orderTypes, parseInt(this.filter.periodStart + ''), parseInt(this.filter.periodEnd + '')).then((reportData) => {\n\t\t\tthis.reportData = reportData;\n\t\t\tvar sum = 0;\n\t\t\treportData.forEach((r) => {\n\t\t\t\tsum += r.amount;\n\t\t\t})\n\t\t\tthis.sum = sum;\n\t\t\tconsole.log('reportData', reportData)\n\t\t});\n\t\tthis.loading = false;\n\t}\n\n\tsetReportType(type : string) : void {\n\t\tthis.filter.type = type;\n\t}\n\n\tsetFilterUserId(userId : number) : void {\n\t\tthis.filter.userId = userId;\n\t\tthis.reload();\n\t}\n\n }\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/views/salesreport.ts","import { Component } from '@angular/core';\n\n@Component({\n  template: require('./templates/storage.html')\n})\n\nexport class StorageView { }\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/views/storage.ts","import { Component } from '@angular/core';\n\n@Component({\n  template: require('./templates/subscriptions.html')\n})\n\nexport class SubscriptionsView { }\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/views/subscriptions.ts","import { Component } from '@angular/core';\n\n@Component({\n  template: require('./templates/support.html')\n})\n\nexport class SupportView { }\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/views/support.ts","/*!\n * The buffer module from node.js, for the browser.\n *\n * @author   Feross Aboukhadijeh <http://feross.org>\n * @license  MIT\n */\n/* eslint-disable no-proto */\n\n'use strict'\n\nvar base64 = require('base64-js')\nvar ieee754 = require('ieee754')\nvar isArray = require('isarray')\n\nexports.Buffer = Buffer\nexports.SlowBuffer = SlowBuffer\nexports.INSPECT_MAX_BYTES = 50\n\n/**\n * If `Buffer.TYPED_ARRAY_SUPPORT`:\n *   === true    Use Uint8Array implementation (fastest)\n *   === false   Use Object implementation (most compatible, even IE6)\n *\n * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,\n * Opera 11.6+, iOS 4.2+.\n *\n * Due to various browser bugs, sometimes the Object implementation will be used even\n * when the browser supports typed arrays.\n *\n * Note:\n *\n *   - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,\n *     See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.\n *\n *   - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.\n *\n *   - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of\n *     incorrect length in some situations.\n\n * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they\n * get the Object implementation, which is slower but behaves correctly.\n */\nBuffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined\n  ? global.TYPED_ARRAY_SUPPORT\n  : typedArraySupport()\n\n/*\n * Export kMaxLength after typed array support is determined.\n */\nexports.kMaxLength = kMaxLength()\n\nfunction typedArraySupport () {\n  try {\n    var arr = new Uint8Array(1)\n    arr.__proto__ = {__proto__: Uint8Array.prototype, foo: function () { return 42 }}\n    return arr.foo() === 42 && // typed array instances can be augmented\n        typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`\n        arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`\n  } catch (e) {\n    return false\n  }\n}\n\nfunction kMaxLength () {\n  return Buffer.TYPED_ARRAY_SUPPORT\n    ? 0x7fffffff\n    : 0x3fffffff\n}\n\nfunction createBuffer (that, length) {\n  if (kMaxLength() < length) {\n    throw new RangeError('Invalid typed array length')\n  }\n  if (Buffer.TYPED_ARRAY_SUPPORT) {\n    // Return an augmented `Uint8Array` instance, for best performance\n    that = new Uint8Array(length)\n    that.__proto__ = Buffer.prototype\n  } else {\n    // Fallback: Return an object instance of the Buffer class\n    if (that === null) {\n      that = new Buffer(length)\n    }\n    that.length = length\n  }\n\n  return that\n}\n\n/**\n * The Buffer constructor returns instances of `Uint8Array` that have their\n * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of\n * `Uint8Array`, so the returned instances will have all the node `Buffer` methods\n * and the `Uint8Array` methods. Square bracket notation works as expected -- it\n * returns a single octet.\n *\n * The `Uint8Array` prototype remains unmodified.\n */\n\nfunction Buffer (arg, encodingOrOffset, length) {\n  if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) {\n    return new Buffer(arg, encodingOrOffset, length)\n  }\n\n  // Common case.\n  if (typeof arg === 'number') {\n    if (typeof encodingOrOffset === 'string') {\n      throw new Error(\n        'If encoding is specified then the first argument must be a string'\n      )\n    }\n    return allocUnsafe(this, arg)\n  }\n  return from(this, arg, encodingOrOffset, length)\n}\n\nBuffer.poolSize = 8192 // not used by this implementation\n\n// TODO: Legacy, not needed anymore. Remove in next major version.\nBuffer._augment = function (arr) {\n  arr.__proto__ = Buffer.prototype\n  return arr\n}\n\nfunction from (that, value, encodingOrOffset, length) {\n  if (typeof value === 'number') {\n    throw new TypeError('\"value\" argument must not be a number')\n  }\n\n  if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) {\n    return fromArrayBuffer(that, value, encodingOrOffset, length)\n  }\n\n  if (typeof value === 'string') {\n    return fromString(that, value, encodingOrOffset)\n  }\n\n  return fromObject(that, value)\n}\n\n/**\n * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError\n * if value is a number.\n * Buffer.from(str[, encoding])\n * Buffer.from(array)\n * Buffer.from(buffer)\n * Buffer.from(arrayBuffer[, byteOffset[, length]])\n **/\nBuffer.from = function (value, encodingOrOffset, length) {\n  return from(null, value, encodingOrOffset, length)\n}\n\nif (Buffer.TYPED_ARRAY_SUPPORT) {\n  Buffer.prototype.__proto__ = Uint8Array.prototype\n  Buffer.__proto__ = Uint8Array\n  if (typeof Symbol !== 'undefined' && Symbol.species &&\n      Buffer[Symbol.species] === Buffer) {\n    // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97\n    Object.defineProperty(Buffer, Symbol.species, {\n      value: null,\n      configurable: true\n    })\n  }\n}\n\nfunction assertSize (size) {\n  if (typeof size !== 'number') {\n    throw new TypeError('\"size\" argument must be a number')\n  } else if (size < 0) {\n    throw new RangeError('\"size\" argument must not be negative')\n  }\n}\n\nfunction alloc (that, size, fill, encoding) {\n  assertSize(size)\n  if (size <= 0) {\n    return createBuffer(that, size)\n  }\n  if (fill !== undefined) {\n    // Only pay attention to encoding if it's a string. This\n    // prevents accidentally sending in a number that would\n    // be interpretted as a start offset.\n    return typeof encoding === 'string'\n      ? createBuffer(that, size).fill(fill, encoding)\n      : createBuffer(that, size).fill(fill)\n  }\n  return createBuffer(that, size)\n}\n\n/**\n * Creates a new filled Buffer instance.\n * alloc(size[, fill[, encoding]])\n **/\nBuffer.alloc = function (size, fill, encoding) {\n  return alloc(null, size, fill, encoding)\n}\n\nfunction allocUnsafe (that, size) {\n  assertSize(size)\n  that = createBuffer(that, size < 0 ? 0 : checked(size) | 0)\n  if (!Buffer.TYPED_ARRAY_SUPPORT) {\n    for (var i = 0; i < size; ++i) {\n      that[i] = 0\n    }\n  }\n  return that\n}\n\n/**\n * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.\n * */\nBuffer.allocUnsafe = function (size) {\n  return allocUnsafe(null, size)\n}\n/**\n * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.\n */\nBuffer.allocUnsafeSlow = function (size) {\n  return allocUnsafe(null, size)\n}\n\nfunction fromString (that, string, encoding) {\n  if (typeof encoding !== 'string' || encoding === '') {\n    encoding = 'utf8'\n  }\n\n  if (!Buffer.isEncoding(encoding)) {\n    throw new TypeError('\"encoding\" must be a valid string encoding')\n  }\n\n  var length = byteLength(string, encoding) | 0\n  that = createBuffer(that, length)\n\n  var actual = that.write(string, encoding)\n\n  if (actual !== length) {\n    // Writing a hex string, for example, that contains invalid characters will\n    // cause everything after the first invalid character to be ignored. (e.g.\n    // 'abxxcd' will be treated as 'ab')\n    that = that.slice(0, actual)\n  }\n\n  return that\n}\n\nfunction fromArrayLike (that, array) {\n  var length = array.length < 0 ? 0 : checked(array.length) | 0\n  that = createBuffer(that, length)\n  for (var i = 0; i < length; i += 1) {\n    that[i] = array[i] & 255\n  }\n  return that\n}\n\nfunction fromArrayBuffer (that, array, byteOffset, length) {\n  array.byteLength // this throws if `array` is not a valid ArrayBuffer\n\n  if (byteOffset < 0 || array.byteLength < byteOffset) {\n    throw new RangeError('\\'offset\\' is out of bounds')\n  }\n\n  if (array.byteLength < byteOffset + (length || 0)) {\n    throw new RangeError('\\'length\\' is out of bounds')\n  }\n\n  if (byteOffset === undefined && length === undefined) {\n    array = new Uint8Array(array)\n  } else if (length === undefined) {\n    array = new Uint8Array(array, byteOffset)\n  } else {\n    array = new Uint8Array(array, byteOffset, length)\n  }\n\n  if (Buffer.TYPED_ARRAY_SUPPORT) {\n    // Return an augmented `Uint8Array` instance, for best performance\n    that = array\n    that.__proto__ = Buffer.prototype\n  } else {\n    // Fallback: Return an object instance of the Buffer class\n    that = fromArrayLike(that, array)\n  }\n  return that\n}\n\nfunction fromObject (that, obj) {\n  if (Buffer.isBuffer(obj)) {\n    var len = checked(obj.length) | 0\n    that = createBuffer(that, len)\n\n    if (that.length === 0) {\n      return that\n    }\n\n    obj.copy(that, 0, 0, len)\n    return that\n  }\n\n  if (obj) {\n    if ((typeof ArrayBuffer !== 'undefined' &&\n        obj.buffer instanceof ArrayBuffer) || 'length' in obj) {\n      if (typeof obj.length !== 'number' || isnan(obj.length)) {\n        return createBuffer(that, 0)\n      }\n      return fromArrayLike(that, obj)\n    }\n\n    if (obj.type === 'Buffer' && isArray(obj.data)) {\n      return fromArrayLike(that, obj.data)\n    }\n  }\n\n  throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.')\n}\n\nfunction checked (length) {\n  // Note: cannot use `length < kMaxLength()` here because that fails when\n  // length is NaN (which is otherwise coerced to zero.)\n  if (length >= kMaxLength()) {\n    throw new RangeError('Attempt to allocate Buffer larger than maximum ' +\n                         'size: 0x' + kMaxLength().toString(16) + ' bytes')\n  }\n  return length | 0\n}\n\nfunction SlowBuffer (length) {\n  if (+length != length) { // eslint-disable-line eqeqeq\n    length = 0\n  }\n  return Buffer.alloc(+length)\n}\n\nBuffer.isBuffer = function isBuffer (b) {\n  return !!(b != null && b._isBuffer)\n}\n\nBuffer.compare = function compare (a, b) {\n  if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {\n    throw new TypeError('Arguments must be Buffers')\n  }\n\n  if (a === b) return 0\n\n  var x = a.length\n  var y = b.length\n\n  for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n    if (a[i] !== b[i]) {\n      x = a[i]\n      y = b[i]\n      break\n    }\n  }\n\n  if (x < y) return -1\n  if (y < x) return 1\n  return 0\n}\n\nBuffer.isEncoding = function isEncoding (encoding) {\n  switch (String(encoding).toLowerCase()) {\n    case 'hex':\n    case 'utf8':\n    case 'utf-8':\n    case 'ascii':\n    case 'latin1':\n    case 'binary':\n    case 'base64':\n    case 'ucs2':\n    case 'ucs-2':\n    case 'utf16le':\n    case 'utf-16le':\n      return true\n    default:\n      return false\n  }\n}\n\nBuffer.concat = function concat (list, length) {\n  if (!isArray(list)) {\n    throw new TypeError('\"list\" argument must be an Array of Buffers')\n  }\n\n  if (list.length === 0) {\n    return Buffer.alloc(0)\n  }\n\n  var i\n  if (length === undefined) {\n    length = 0\n    for (i = 0; i < list.length; ++i) {\n      length += list[i].length\n    }\n  }\n\n  var buffer = Buffer.allocUnsafe(length)\n  var pos = 0\n  for (i = 0; i < list.length; ++i) {\n    var buf = list[i]\n    if (!Buffer.isBuffer(buf)) {\n      throw new TypeError('\"list\" argument must be an Array of Buffers')\n    }\n    buf.copy(buffer, pos)\n    pos += buf.length\n  }\n  return buffer\n}\n\nfunction byteLength (string, encoding) {\n  if (Buffer.isBuffer(string)) {\n    return string.length\n  }\n  if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' &&\n      (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) {\n    return string.byteLength\n  }\n  if (typeof string !== 'string') {\n    string = '' + string\n  }\n\n  var len = string.length\n  if (len === 0) return 0\n\n  // Use a for loop to avoid recursion\n  var loweredCase = false\n  for (;;) {\n    switch (encoding) {\n      case 'ascii':\n      case 'latin1':\n      case 'binary':\n        return len\n      case 'utf8':\n      case 'utf-8':\n      case undefined:\n        return utf8ToBytes(string).length\n      case 'ucs2':\n      case 'ucs-2':\n      case 'utf16le':\n      case 'utf-16le':\n        return len * 2\n      case 'hex':\n        return len >>> 1\n      case 'base64':\n        return base64ToBytes(string).length\n      default:\n        if (loweredCase) return utf8ToBytes(string).length // assume utf8\n        encoding = ('' + encoding).toLowerCase()\n        loweredCase = true\n    }\n  }\n}\nBuffer.byteLength = byteLength\n\nfunction slowToString (encoding, start, end) {\n  var loweredCase = false\n\n  // No need to verify that \"this.length <= MAX_UINT32\" since it's a read-only\n  // property of a typed array.\n\n  // This behaves neither like String nor Uint8Array in that we set start/end\n  // to their upper/lower bounds if the value passed is out of range.\n  // undefined is handled specially as per ECMA-262 6th Edition,\n  // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.\n  if (start === undefined || start < 0) {\n    start = 0\n  }\n  // Return early if start > this.length. Done here to prevent potential uint32\n  // coercion fail below.\n  if (start > this.length) {\n    return ''\n  }\n\n  if (end === undefined || end > this.length) {\n    end = this.length\n  }\n\n  if (end <= 0) {\n    return ''\n  }\n\n  // Force coersion to uint32. This will also coerce falsey/NaN values to 0.\n  end >>>= 0\n  start >>>= 0\n\n  if (end <= start) {\n    return ''\n  }\n\n  if (!encoding) encoding = 'utf8'\n\n  while (true) {\n    switch (encoding) {\n      case 'hex':\n        return hexSlice(this, start, end)\n\n      case 'utf8':\n      case 'utf-8':\n        return utf8Slice(this, start, end)\n\n      case 'ascii':\n        return asciiSlice(this, start, end)\n\n      case 'latin1':\n      case 'binary':\n        return latin1Slice(this, start, end)\n\n      case 'base64':\n        return base64Slice(this, start, end)\n\n      case 'ucs2':\n      case 'ucs-2':\n      case 'utf16le':\n      case 'utf-16le':\n        return utf16leSlice(this, start, end)\n\n      default:\n        if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n        encoding = (encoding + '').toLowerCase()\n        loweredCase = true\n    }\n  }\n}\n\n// The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect\n// Buffer instances.\nBuffer.prototype._isBuffer = true\n\nfunction swap (b, n, m) {\n  var i = b[n]\n  b[n] = b[m]\n  b[m] = i\n}\n\nBuffer.prototype.swap16 = function swap16 () {\n  var len = this.length\n  if (len % 2 !== 0) {\n    throw new RangeError('Buffer size must be a multiple of 16-bits')\n  }\n  for (var i = 0; i < len; i += 2) {\n    swap(this, i, i + 1)\n  }\n  return this\n}\n\nBuffer.prototype.swap32 = function swap32 () {\n  var len = this.length\n  if (len % 4 !== 0) {\n    throw new RangeError('Buffer size must be a multiple of 32-bits')\n  }\n  for (var i = 0; i < len; i += 4) {\n    swap(this, i, i + 3)\n    swap(this, i + 1, i + 2)\n  }\n  return this\n}\n\nBuffer.prototype.swap64 = function swap64 () {\n  var len = this.length\n  if (len % 8 !== 0) {\n    throw new RangeError('Buffer size must be a multiple of 64-bits')\n  }\n  for (var i = 0; i < len; i += 8) {\n    swap(this, i, i + 7)\n    swap(this, i + 1, i + 6)\n    swap(this, i + 2, i + 5)\n    swap(this, i + 3, i + 4)\n  }\n  return this\n}\n\nBuffer.prototype.toString = function toString () {\n  var length = this.length | 0\n  if (length === 0) return ''\n  if (arguments.length === 0) return utf8Slice(this, 0, length)\n  return slowToString.apply(this, arguments)\n}\n\nBuffer.prototype.equals = function equals (b) {\n  if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')\n  if (this === b) return true\n  return Buffer.compare(this, b) === 0\n}\n\nBuffer.prototype.inspect = function inspect () {\n  var str = ''\n  var max = exports.INSPECT_MAX_BYTES\n  if (this.length > 0) {\n    str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')\n    if (this.length > max) str += ' ... '\n  }\n  return '<Buffer ' + str + '>'\n}\n\nBuffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {\n  if (!Buffer.isBuffer(target)) {\n    throw new TypeError('Argument must be a Buffer')\n  }\n\n  if (start === undefined) {\n    start = 0\n  }\n  if (end === undefined) {\n    end = target ? target.length : 0\n  }\n  if (thisStart === undefined) {\n    thisStart = 0\n  }\n  if (thisEnd === undefined) {\n    thisEnd = this.length\n  }\n\n  if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {\n    throw new RangeError('out of range index')\n  }\n\n  if (thisStart >= thisEnd && start >= end) {\n    return 0\n  }\n  if (thisStart >= thisEnd) {\n    return -1\n  }\n  if (start >= end) {\n    return 1\n  }\n\n  start >>>= 0\n  end >>>= 0\n  thisStart >>>= 0\n  thisEnd >>>= 0\n\n  if (this === target) return 0\n\n  var x = thisEnd - thisStart\n  var y = end - start\n  var len = Math.min(x, y)\n\n  var thisCopy = this.slice(thisStart, thisEnd)\n  var targetCopy = target.slice(start, end)\n\n  for (var i = 0; i < len; ++i) {\n    if (thisCopy[i] !== targetCopy[i]) {\n      x = thisCopy[i]\n      y = targetCopy[i]\n      break\n    }\n  }\n\n  if (x < y) return -1\n  if (y < x) return 1\n  return 0\n}\n\n// Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,\n// OR the last index of `val` in `buffer` at offset <= `byteOffset`.\n//\n// Arguments:\n// - buffer - a Buffer to search\n// - val - a string, Buffer, or number\n// - byteOffset - an index into `buffer`; will be clamped to an int32\n// - encoding - an optional encoding, relevant is val is a string\n// - dir - true for indexOf, false for lastIndexOf\nfunction bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {\n  // Empty buffer means no match\n  if (buffer.length === 0) return -1\n\n  // Normalize byteOffset\n  if (typeof byteOffset === 'string') {\n    encoding = byteOffset\n    byteOffset = 0\n  } else if (byteOffset > 0x7fffffff) {\n    byteOffset = 0x7fffffff\n  } else if (byteOffset < -0x80000000) {\n    byteOffset = -0x80000000\n  }\n  byteOffset = +byteOffset  // Coerce to Number.\n  if (isNaN(byteOffset)) {\n    // byteOffset: it it's undefined, null, NaN, \"foo\", etc, search whole buffer\n    byteOffset = dir ? 0 : (buffer.length - 1)\n  }\n\n  // Normalize byteOffset: negative offsets start from the end of the buffer\n  if (byteOffset < 0) byteOffset = buffer.length + byteOffset\n  if (byteOffset >= buffer.length) {\n    if (dir) return -1\n    else byteOffset = buffer.length - 1\n  } else if (byteOffset < 0) {\n    if (dir) byteOffset = 0\n    else return -1\n  }\n\n  // Normalize val\n  if (typeof val === 'string') {\n    val = Buffer.from(val, encoding)\n  }\n\n  // Finally, search either indexOf (if dir is true) or lastIndexOf\n  if (Buffer.isBuffer(val)) {\n    // Special case: looking for empty string/buffer always fails\n    if (val.length === 0) {\n      return -1\n    }\n    return arrayIndexOf(buffer, val, byteOffset, encoding, dir)\n  } else if (typeof val === 'number') {\n    val = val & 0xFF // Search for a byte value [0-255]\n    if (Buffer.TYPED_ARRAY_SUPPORT &&\n        typeof Uint8Array.prototype.indexOf === 'function') {\n      if (dir) {\n        return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)\n      } else {\n        return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)\n      }\n    }\n    return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)\n  }\n\n  throw new TypeError('val must be string, number or Buffer')\n}\n\nfunction arrayIndexOf (arr, val, byteOffset, encoding, dir) {\n  var indexSize = 1\n  var arrLength = arr.length\n  var valLength = val.length\n\n  if (encoding !== undefined) {\n    encoding = String(encoding).toLowerCase()\n    if (encoding === 'ucs2' || encoding === 'ucs-2' ||\n        encoding === 'utf16le' || encoding === 'utf-16le') {\n      if (arr.length < 2 || val.length < 2) {\n        return -1\n      }\n      indexSize = 2\n      arrLength /= 2\n      valLength /= 2\n      byteOffset /= 2\n    }\n  }\n\n  function read (buf, i) {\n    if (indexSize === 1) {\n      return buf[i]\n    } else {\n      return buf.readUInt16BE(i * indexSize)\n    }\n  }\n\n  var i\n  if (dir) {\n    var foundIndex = -1\n    for (i = byteOffset; i < arrLength; i++) {\n      if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {\n        if (foundIndex === -1) foundIndex = i\n        if (i - foundIndex + 1 === valLength) return foundIndex * indexSize\n      } else {\n        if (foundIndex !== -1) i -= i - foundIndex\n        foundIndex = -1\n      }\n    }\n  } else {\n    if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength\n    for (i = byteOffset; i >= 0; i--) {\n      var found = true\n      for (var j = 0; j < valLength; j++) {\n        if (read(arr, i + j) !== read(val, j)) {\n          found = false\n          break\n        }\n      }\n      if (found) return i\n    }\n  }\n\n  return -1\n}\n\nBuffer.prototype.includes = function includes (val, byteOffset, encoding) {\n  return this.indexOf(val, byteOffset, encoding) !== -1\n}\n\nBuffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {\n  return bidirectionalIndexOf(this, val, byteOffset, encoding, true)\n}\n\nBuffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {\n  return bidirectionalIndexOf(this, val, byteOffset, encoding, false)\n}\n\nfunction hexWrite (buf, string, offset, length) {\n  offset = Number(offset) || 0\n  var remaining = buf.length - offset\n  if (!length) {\n    length = remaining\n  } else {\n    length = Number(length)\n    if (length > remaining) {\n      length = remaining\n    }\n  }\n\n  // must be an even number of digits\n  var strLen = string.length\n  if (strLen % 2 !== 0) throw new TypeError('Invalid hex string')\n\n  if (length > strLen / 2) {\n    length = strLen / 2\n  }\n  for (var i = 0; i < length; ++i) {\n    var parsed = parseInt(string.substr(i * 2, 2), 16)\n    if (isNaN(parsed)) return i\n    buf[offset + i] = parsed\n  }\n  return i\n}\n\nfunction utf8Write (buf, string, offset, length) {\n  return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nfunction asciiWrite (buf, string, offset, length) {\n  return blitBuffer(asciiToBytes(string), buf, offset, length)\n}\n\nfunction latin1Write (buf, string, offset, length) {\n  return asciiWrite(buf, string, offset, length)\n}\n\nfunction base64Write (buf, string, offset, length) {\n  return blitBuffer(base64ToBytes(string), buf, offset, length)\n}\n\nfunction ucs2Write (buf, string, offset, length) {\n  return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nBuffer.prototype.write = function write (string, offset, length, encoding) {\n  // Buffer#write(string)\n  if (offset === undefined) {\n    encoding = 'utf8'\n    length = this.length\n    offset = 0\n  // Buffer#write(string, encoding)\n  } else if (length === undefined && typeof offset === 'string') {\n    encoding = offset\n    length = this.length\n    offset = 0\n  // Buffer#write(string, offset[, length][, encoding])\n  } else if (isFinite(offset)) {\n    offset = offset | 0\n    if (isFinite(length)) {\n      length = length | 0\n      if (encoding === undefined) encoding = 'utf8'\n    } else {\n      encoding = length\n      length = undefined\n    }\n  // legacy write(string, encoding, offset, length) - remove in v0.13\n  } else {\n    throw new Error(\n      'Buffer.write(string, encoding, offset[, length]) is no longer supported'\n    )\n  }\n\n  var remaining = this.length - offset\n  if (length === undefined || length > remaining) length = remaining\n\n  if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {\n    throw new RangeError('Attempt to write outside buffer bounds')\n  }\n\n  if (!encoding) encoding = 'utf8'\n\n  var loweredCase = false\n  for (;;) {\n    switch (encoding) {\n      case 'hex':\n        return hexWrite(this, string, offset, length)\n\n      case 'utf8':\n      case 'utf-8':\n        return utf8Write(this, string, offset, length)\n\n      case 'ascii':\n        return asciiWrite(this, string, offset, length)\n\n      case 'latin1':\n      case 'binary':\n        return latin1Write(this, string, offset, length)\n\n      case 'base64':\n        // Warning: maxLength not taken into account in base64Write\n        return base64Write(this, string, offset, length)\n\n      case 'ucs2':\n      case 'ucs-2':\n      case 'utf16le':\n      case 'utf-16le':\n        return ucs2Write(this, string, offset, length)\n\n      default:\n        if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n        encoding = ('' + encoding).toLowerCase()\n        loweredCase = true\n    }\n  }\n}\n\nBuffer.prototype.toJSON = function toJSON () {\n  return {\n    type: 'Buffer',\n    data: Array.prototype.slice.call(this._arr || this, 0)\n  }\n}\n\nfunction base64Slice (buf, start, end) {\n  if (start === 0 && end === buf.length) {\n    return base64.fromByteArray(buf)\n  } else {\n    return base64.fromByteArray(buf.slice(start, end))\n  }\n}\n\nfunction utf8Slice (buf, start, end) {\n  end = Math.min(buf.length, end)\n  var res = []\n\n  var i = start\n  while (i < end) {\n    var firstByte = buf[i]\n    var codePoint = null\n    var bytesPerSequence = (firstByte > 0xEF) ? 4\n      : (firstByte > 0xDF) ? 3\n      : (firstByte > 0xBF) ? 2\n      : 1\n\n    if (i + bytesPerSequence <= end) {\n      var secondByte, thirdByte, fourthByte, tempCodePoint\n\n      switch (bytesPerSequence) {\n        case 1:\n          if (firstByte < 0x80) {\n            codePoint = firstByte\n          }\n          break\n        case 2:\n          secondByte = buf[i + 1]\n          if ((secondByte & 0xC0) === 0x80) {\n            tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)\n            if (tempCodePoint > 0x7F) {\n              codePoint = tempCodePoint\n            }\n          }\n          break\n        case 3:\n          secondByte = buf[i + 1]\n          thirdByte = buf[i + 2]\n          if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {\n            tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)\n            if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {\n              codePoint = tempCodePoint\n            }\n          }\n          break\n        case 4:\n          secondByte = buf[i + 1]\n          thirdByte = buf[i + 2]\n          fourthByte = buf[i + 3]\n          if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {\n            tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)\n            if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {\n              codePoint = tempCodePoint\n            }\n          }\n      }\n    }\n\n    if (codePoint === null) {\n      // we did not generate a valid codePoint so insert a\n      // replacement char (U+FFFD) and advance only 1 byte\n      codePoint = 0xFFFD\n      bytesPerSequence = 1\n    } else if (codePoint > 0xFFFF) {\n      // encode to utf16 (surrogate pair dance)\n      codePoint -= 0x10000\n      res.push(codePoint >>> 10 & 0x3FF | 0xD800)\n      codePoint = 0xDC00 | codePoint & 0x3FF\n    }\n\n    res.push(codePoint)\n    i += bytesPerSequence\n  }\n\n  return decodeCodePointsArray(res)\n}\n\n// Based on http://stackoverflow.com/a/22747272/680742, the browser with\n// the lowest limit is Chrome, with 0x10000 args.\n// We go 1 magnitude less, for safety\nvar MAX_ARGUMENTS_LENGTH = 0x1000\n\nfunction decodeCodePointsArray (codePoints) {\n  var len = codePoints.length\n  if (len <= MAX_ARGUMENTS_LENGTH) {\n    return String.fromCharCode.apply(String, codePoints) // avoid extra slice()\n  }\n\n  // Decode in chunks to avoid \"call stack size exceeded\".\n  var res = ''\n  var i = 0\n  while (i < len) {\n    res += String.fromCharCode.apply(\n      String,\n      codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)\n    )\n  }\n  return res\n}\n\nfunction asciiSlice (buf, start, end) {\n  var ret = ''\n  end = Math.min(buf.length, end)\n\n  for (var i = start; i < end; ++i) {\n    ret += String.fromCharCode(buf[i] & 0x7F)\n  }\n  return ret\n}\n\nfunction latin1Slice (buf, start, end) {\n  var ret = ''\n  end = Math.min(buf.length, end)\n\n  for (var i = start; i < end; ++i) {\n    ret += String.fromCharCode(buf[i])\n  }\n  return ret\n}\n\nfunction hexSlice (buf, start, end) {\n  var len = buf.length\n\n  if (!start || start < 0) start = 0\n  if (!end || end < 0 || end > len) end = len\n\n  var out = ''\n  for (var i = start; i < end; ++i) {\n    out += toHex(buf[i])\n  }\n  return out\n}\n\nfunction utf16leSlice (buf, start, end) {\n  var bytes = buf.slice(start, end)\n  var res = ''\n  for (var i = 0; i < bytes.length; i += 2) {\n    res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)\n  }\n  return res\n}\n\nBuffer.prototype.slice = function slice (start, end) {\n  var len = this.length\n  start = ~~start\n  end = end === undefined ? len : ~~end\n\n  if (start < 0) {\n    start += len\n    if (start < 0) start = 0\n  } else if (start > len) {\n    start = len\n  }\n\n  if (end < 0) {\n    end += len\n    if (end < 0) end = 0\n  } else if (end > len) {\n    end = len\n  }\n\n  if (end < start) end = start\n\n  var newBuf\n  if (Buffer.TYPED_ARRAY_SUPPORT) {\n    newBuf = this.subarray(start, end)\n    newBuf.__proto__ = Buffer.prototype\n  } else {\n    var sliceLen = end - start\n    newBuf = new Buffer(sliceLen, undefined)\n    for (var i = 0; i < sliceLen; ++i) {\n      newBuf[i] = this[i + start]\n    }\n  }\n\n  return newBuf\n}\n\n/*\n * Need to make sure that buffer isn't trying to write out of bounds.\n */\nfunction checkOffset (offset, ext, length) {\n  if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')\n  if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')\n}\n\nBuffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {\n  offset = offset | 0\n  byteLength = byteLength | 0\n  if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n  var val = this[offset]\n  var mul = 1\n  var i = 0\n  while (++i < byteLength && (mul *= 0x100)) {\n    val += this[offset + i] * mul\n  }\n\n  return val\n}\n\nBuffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {\n  offset = offset | 0\n  byteLength = byteLength | 0\n  if (!noAssert) {\n    checkOffset(offset, byteLength, this.length)\n  }\n\n  var val = this[offset + --byteLength]\n  var mul = 1\n  while (byteLength > 0 && (mul *= 0x100)) {\n    val += this[offset + --byteLength] * mul\n  }\n\n  return val\n}\n\nBuffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {\n  if (!noAssert) checkOffset(offset, 1, this.length)\n  return this[offset]\n}\n\nBuffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {\n  if (!noAssert) checkOffset(offset, 2, this.length)\n  return this[offset] | (this[offset + 1] << 8)\n}\n\nBuffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {\n  if (!noAssert) checkOffset(offset, 2, this.length)\n  return (this[offset] << 8) | this[offset + 1]\n}\n\nBuffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {\n  if (!noAssert) checkOffset(offset, 4, this.length)\n\n  return ((this[offset]) |\n      (this[offset + 1] << 8) |\n      (this[offset + 2] << 16)) +\n      (this[offset + 3] * 0x1000000)\n}\n\nBuffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {\n  if (!noAssert) checkOffset(offset, 4, this.length)\n\n  return (this[offset] * 0x1000000) +\n    ((this[offset + 1] << 16) |\n    (this[offset + 2] << 8) |\n    this[offset + 3])\n}\n\nBuffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {\n  offset = offset | 0\n  byteLength = byteLength | 0\n  if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n  var val = this[offset]\n  var mul = 1\n  var i = 0\n  while (++i < byteLength && (mul *= 0x100)) {\n    val += this[offset + i] * mul\n  }\n  mul *= 0x80\n\n  if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n  return val\n}\n\nBuffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {\n  offset = offset | 0\n  byteLength = byteLength | 0\n  if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n  var i = byteLength\n  var mul = 1\n  var val = this[offset + --i]\n  while (i > 0 && (mul *= 0x100)) {\n    val += this[offset + --i] * mul\n  }\n  mul *= 0x80\n\n  if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n  return val\n}\n\nBuffer.prototype.readInt8 = function readInt8 (offset, noAssert) {\n  if (!noAssert) checkOffset(offset, 1, this.length)\n  if (!(this[offset] & 0x80)) return (this[offset])\n  return ((0xff - this[offset] + 1) * -1)\n}\n\nBuffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {\n  if (!noAssert) checkOffset(offset, 2, this.length)\n  var val = this[offset] | (this[offset + 1] << 8)\n  return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {\n  if (!noAssert) checkOffset(offset, 2, this.length)\n  var val = this[offset + 1] | (this[offset] << 8)\n  return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {\n  if (!noAssert) checkOffset(offset, 4, this.length)\n\n  return (this[offset]) |\n    (this[offset + 1] << 8) |\n    (this[offset + 2] << 16) |\n    (this[offset + 3] << 24)\n}\n\nBuffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {\n  if (!noAssert) checkOffset(offset, 4, this.length)\n\n  return (this[offset] << 24) |\n    (this[offset + 1] << 16) |\n    (this[offset + 2] << 8) |\n    (this[offset + 3])\n}\n\nBuffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {\n  if (!noAssert) checkOffset(offset, 4, this.length)\n  return ieee754.read(this, offset, true, 23, 4)\n}\n\nBuffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {\n  if (!noAssert) checkOffset(offset, 4, this.length)\n  return ieee754.read(this, offset, false, 23, 4)\n}\n\nBuffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {\n  if (!noAssert) checkOffset(offset, 8, this.length)\n  return ieee754.read(this, offset, true, 52, 8)\n}\n\nBuffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {\n  if (!noAssert) checkOffset(offset, 8, this.length)\n  return ieee754.read(this, offset, false, 52, 8)\n}\n\nfunction checkInt (buf, value, offset, ext, max, min) {\n  if (!Buffer.isBuffer(buf)) throw new TypeError('\"buffer\" argument must be a Buffer instance')\n  if (value > max || value < min) throw new RangeError('\"value\" argument is out of bounds')\n  if (offset + ext > buf.length) throw new RangeError('Index out of range')\n}\n\nBuffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {\n  value = +value\n  offset = offset | 0\n  byteLength = byteLength | 0\n  if (!noAssert) {\n    var maxBytes = Math.pow(2, 8 * byteLength) - 1\n    checkInt(this, value, offset, byteLength, maxBytes, 0)\n  }\n\n  var mul = 1\n  var i = 0\n  this[offset] = value & 0xFF\n  while (++i < byteLength && (mul *= 0x100)) {\n    this[offset + i] = (value / mul) & 0xFF\n  }\n\n  return offset + byteLength\n}\n\nBuffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {\n  value = +value\n  offset = offset | 0\n  byteLength = byteLength | 0\n  if (!noAssert) {\n    var maxBytes = Math.pow(2, 8 * byteLength) - 1\n    checkInt(this, value, offset, byteLength, maxBytes, 0)\n  }\n\n  var i = byteLength - 1\n  var mul = 1\n  this[offset + i] = value & 0xFF\n  while (--i >= 0 && (mul *= 0x100)) {\n    this[offset + i] = (value / mul) & 0xFF\n  }\n\n  return offset + byteLength\n}\n\nBuffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {\n  value = +value\n  offset = offset | 0\n  if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)\n  if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)\n  this[offset] = (value & 0xff)\n  return offset + 1\n}\n\nfunction objectWriteUInt16 (buf, value, offset, littleEndian) {\n  if (value < 0) value = 0xffff + value + 1\n  for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) {\n    buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>\n      (littleEndian ? i : 1 - i) * 8\n  }\n}\n\nBuffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {\n  value = +value\n  offset = offset | 0\n  if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n  if (Buffer.TYPED_ARRAY_SUPPORT) {\n    this[offset] = (value & 0xff)\n    this[offset + 1] = (value >>> 8)\n  } else {\n    objectWriteUInt16(this, value, offset, true)\n  }\n  return offset + 2\n}\n\nBuffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {\n  value = +value\n  offset = offset | 0\n  if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n  if (Buffer.TYPED_ARRAY_SUPPORT) {\n    this[offset] = (value >>> 8)\n    this[offset + 1] = (value & 0xff)\n  } else {\n    objectWriteUInt16(this, value, offset, false)\n  }\n  return offset + 2\n}\n\nfunction objectWriteUInt32 (buf, value, offset, littleEndian) {\n  if (value < 0) value = 0xffffffff + value + 1\n  for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) {\n    buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff\n  }\n}\n\nBuffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {\n  value = +value\n  offset = offset | 0\n  if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n  if (Buffer.TYPED_ARRAY_SUPPORT) {\n    this[offset + 3] = (value >>> 24)\n    this[offset + 2] = (value >>> 16)\n    this[offset + 1] = (value >>> 8)\n    this[offset] = (value & 0xff)\n  } else {\n    objectWriteUInt32(this, value, offset, true)\n  }\n  return offset + 4\n}\n\nBuffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {\n  value = +value\n  offset = offset | 0\n  if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n  if (Buffer.TYPED_ARRAY_SUPPORT) {\n    this[offset] = (value >>> 24)\n    this[offset + 1] = (value >>> 16)\n    this[offset + 2] = (value >>> 8)\n    this[offset + 3] = (value & 0xff)\n  } else {\n    objectWriteUInt32(this, value, offset, false)\n  }\n  return offset + 4\n}\n\nBuffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {\n  value = +value\n  offset = offset | 0\n  if (!noAssert) {\n    var limit = Math.pow(2, 8 * byteLength - 1)\n\n    checkInt(this, value, offset, byteLength, limit - 1, -limit)\n  }\n\n  var i = 0\n  var mul = 1\n  var sub = 0\n  this[offset] = value & 0xFF\n  while (++i < byteLength && (mul *= 0x100)) {\n    if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {\n      sub = 1\n    }\n    this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n  }\n\n  return offset + byteLength\n}\n\nBuffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {\n  value = +value\n  offset = offset | 0\n  if (!noAssert) {\n    var limit = Math.pow(2, 8 * byteLength - 1)\n\n    checkInt(this, value, offset, byteLength, limit - 1, -limit)\n  }\n\n  var i = byteLength - 1\n  var mul = 1\n  var sub = 0\n  this[offset + i] = value & 0xFF\n  while (--i >= 0 && (mul *= 0x100)) {\n    if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {\n      sub = 1\n    }\n    this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n  }\n\n  return offset + byteLength\n}\n\nBuffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {\n  value = +value\n  offset = offset | 0\n  if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)\n  if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)\n  if (value < 0) value = 0xff + value + 1\n  this[offset] = (value & 0xff)\n  return offset + 1\n}\n\nBuffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {\n  value = +value\n  offset = offset | 0\n  if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n  if (Buffer.TYPED_ARRAY_SUPPORT) {\n    this[offset] = (value & 0xff)\n    this[offset + 1] = (value >>> 8)\n  } else {\n    objectWriteUInt16(this, value, offset, true)\n  }\n  return offset + 2\n}\n\nBuffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {\n  value = +value\n  offset = offset | 0\n  if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n  if (Buffer.TYPED_ARRAY_SUPPORT) {\n    this[offset] = (value >>> 8)\n    this[offset + 1] = (value & 0xff)\n  } else {\n    objectWriteUInt16(this, value, offset, false)\n  }\n  return offset + 2\n}\n\nBuffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {\n  value = +value\n  offset = offset | 0\n  if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n  if (Buffer.TYPED_ARRAY_SUPPORT) {\n    this[offset] = (value & 0xff)\n    this[offset + 1] = (value >>> 8)\n    this[offset + 2] = (value >>> 16)\n    this[offset + 3] = (value >>> 24)\n  } else {\n    objectWriteUInt32(this, value, offset, true)\n  }\n  return offset + 4\n}\n\nBuffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {\n  value = +value\n  offset = offset | 0\n  if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n  if (value < 0) value = 0xffffffff + value + 1\n  if (Buffer.TYPED_ARRAY_SUPPORT) {\n    this[offset] = (value >>> 24)\n    this[offset + 1] = (value >>> 16)\n    this[offset + 2] = (value >>> 8)\n    this[offset + 3] = (value & 0xff)\n  } else {\n    objectWriteUInt32(this, value, offset, false)\n  }\n  return offset + 4\n}\n\nfunction checkIEEE754 (buf, value, offset, ext, max, min) {\n  if (offset + ext > buf.length) throw new RangeError('Index out of range')\n  if (offset < 0) throw new RangeError('Index out of range')\n}\n\nfunction writeFloat (buf, value, offset, littleEndian, noAssert) {\n  if (!noAssert) {\n    checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)\n  }\n  ieee754.write(buf, value, offset, littleEndian, 23, 4)\n  return offset + 4\n}\n\nBuffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {\n  return writeFloat(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {\n  return writeFloat(this, value, offset, false, noAssert)\n}\n\nfunction writeDouble (buf, value, offset, littleEndian, noAssert) {\n  if (!noAssert) {\n    checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)\n  }\n  ieee754.write(buf, value, offset, littleEndian, 52, 8)\n  return offset + 8\n}\n\nBuffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {\n  return writeDouble(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {\n  return writeDouble(this, value, offset, false, noAssert)\n}\n\n// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)\nBuffer.prototype.copy = function copy (target, targetStart, start, end) {\n  if (!start) start = 0\n  if (!end && end !== 0) end = this.length\n  if (targetStart >= target.length) targetStart = target.length\n  if (!targetStart) targetStart = 0\n  if (end > 0 && end < start) end = start\n\n  // Copy 0 bytes; we're done\n  if (end === start) return 0\n  if (target.length === 0 || this.length === 0) return 0\n\n  // Fatal error conditions\n  if (targetStart < 0) {\n    throw new RangeError('targetStart out of bounds')\n  }\n  if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')\n  if (end < 0) throw new RangeError('sourceEnd out of bounds')\n\n  // Are we oob?\n  if (end > this.length) end = this.length\n  if (target.length - targetStart < end - start) {\n    end = target.length - targetStart + start\n  }\n\n  var len = end - start\n  var i\n\n  if (this === target && start < targetStart && targetStart < end) {\n    // descending copy from end\n    for (i = len - 1; i >= 0; --i) {\n      target[i + targetStart] = this[i + start]\n    }\n  } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {\n    // ascending copy from start\n    for (i = 0; i < len; ++i) {\n      target[i + targetStart] = this[i + start]\n    }\n  } else {\n    Uint8Array.prototype.set.call(\n      target,\n      this.subarray(start, start + len),\n      targetStart\n    )\n  }\n\n  return len\n}\n\n// Usage:\n//    buffer.fill(number[, offset[, end]])\n//    buffer.fill(buffer[, offset[, end]])\n//    buffer.fill(string[, offset[, end]][, encoding])\nBuffer.prototype.fill = function fill (val, start, end, encoding) {\n  // Handle string cases:\n  if (typeof val === 'string') {\n    if (typeof start === 'string') {\n      encoding = start\n      start = 0\n      end = this.length\n    } else if (typeof end === 'string') {\n      encoding = end\n      end = this.length\n    }\n    if (val.length === 1) {\n      var code = val.charCodeAt(0)\n      if (code < 256) {\n        val = code\n      }\n    }\n    if (encoding !== undefined && typeof encoding !== 'string') {\n      throw new TypeError('encoding must be a string')\n    }\n    if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {\n      throw new TypeError('Unknown encoding: ' + encoding)\n    }\n  } else if (typeof val === 'number') {\n    val = val & 255\n  }\n\n  // Invalid ranges are not set to a default, so can range check early.\n  if (start < 0 || this.length < start || this.length < end) {\n    throw new RangeError('Out of range index')\n  }\n\n  if (end <= start) {\n    return this\n  }\n\n  start = start >>> 0\n  end = end === undefined ? this.length : end >>> 0\n\n  if (!val) val = 0\n\n  var i\n  if (typeof val === 'number') {\n    for (i = start; i < end; ++i) {\n      this[i] = val\n    }\n  } else {\n    var bytes = Buffer.isBuffer(val)\n      ? val\n      : utf8ToBytes(new Buffer(val, encoding).toString())\n    var len = bytes.length\n    for (i = 0; i < end - start; ++i) {\n      this[i + start] = bytes[i % len]\n    }\n  }\n\n  return this\n}\n\n// HELPER FUNCTIONS\n// ================\n\nvar INVALID_BASE64_RE = /[^+\\/0-9A-Za-z-_]/g\n\nfunction base64clean (str) {\n  // Node strips out invalid characters like \\n and \\t from the string, base64-js does not\n  str = stringtrim(str).replace(INVALID_BASE64_RE, '')\n  // Node converts strings with length < 2 to ''\n  if (str.length < 2) return ''\n  // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not\n  while (str.length % 4 !== 0) {\n    str = str + '='\n  }\n  return str\n}\n\nfunction stringtrim (str) {\n  if (str.trim) return str.trim()\n  return str.replace(/^\\s+|\\s+$/g, '')\n}\n\nfunction toHex (n) {\n  if (n < 16) return '0' + n.toString(16)\n  return n.toString(16)\n}\n\nfunction utf8ToBytes (string, units) {\n  units = units || Infinity\n  var codePoint\n  var length = string.length\n  var leadSurrogate = null\n  var bytes = []\n\n  for (var i = 0; i < length; ++i) {\n    codePoint = string.charCodeAt(i)\n\n    // is surrogate component\n    if (codePoint > 0xD7FF && codePoint < 0xE000) {\n      // last char was a lead\n      if (!leadSurrogate) {\n        // no lead yet\n        if (codePoint > 0xDBFF) {\n          // unexpected trail\n          if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n          continue\n        } else if (i + 1 === length) {\n          // unpaired lead\n          if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n          continue\n        }\n\n        // valid lead\n        leadSurrogate = codePoint\n\n        continue\n      }\n\n      // 2 leads in a row\n      if (codePoint < 0xDC00) {\n        if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n        leadSurrogate = codePoint\n        continue\n      }\n\n      // valid surrogate pair\n      codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000\n    } else if (leadSurrogate) {\n      // valid bmp char, but last char was a lead\n      if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n    }\n\n    leadSurrogate = null\n\n    // encode utf8\n    if (codePoint < 0x80) {\n      if ((units -= 1) < 0) break\n      bytes.push(codePoint)\n    } else if (codePoint < 0x800) {\n      if ((units -= 2) < 0) break\n      bytes.push(\n        codePoint >> 0x6 | 0xC0,\n        codePoint & 0x3F | 0x80\n      )\n    } else if (codePoint < 0x10000) {\n      if ((units -= 3) < 0) break\n      bytes.push(\n        codePoint >> 0xC | 0xE0,\n        codePoint >> 0x6 & 0x3F | 0x80,\n        codePoint & 0x3F | 0x80\n      )\n    } else if (codePoint < 0x110000) {\n      if ((units -= 4) < 0) break\n      bytes.push(\n        codePoint >> 0x12 | 0xF0,\n        codePoint >> 0xC & 0x3F | 0x80,\n        codePoint >> 0x6 & 0x3F | 0x80,\n        codePoint & 0x3F | 0x80\n      )\n    } else {\n      throw new Error('Invalid code point')\n    }\n  }\n\n  return bytes\n}\n\nfunction asciiToBytes (str) {\n  var byteArray = []\n  for (var i = 0; i < str.length; ++i) {\n    // Node's code seems to be doing this and not & 0x7F..\n    byteArray.push(str.charCodeAt(i) & 0xFF)\n  }\n  return byteArray\n}\n\nfunction utf16leToBytes (str, units) {\n  var c, hi, lo\n  var byteArray = []\n  for (var i = 0; i < str.length; ++i) {\n    if ((units -= 2) < 0) break\n\n    c = str.charCodeAt(i)\n    hi = c >> 8\n    lo = c % 256\n    byteArray.push(lo)\n    byteArray.push(hi)\n  }\n\n  return byteArray\n}\n\nfunction base64ToBytes (str) {\n  return base64.toByteArray(base64clean(str))\n}\n\nfunction blitBuffer (src, dst, offset, length) {\n  for (var i = 0; i < length; ++i) {\n    if ((i + offset >= dst.length) || (i >= src.length)) break\n    dst[i + offset] = src[i]\n  }\n  return i\n}\n\nfunction isnan (val) {\n  return val !== val // eslint-disable-line no-self-compare\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/buffer/index.js\n// module id = 439\n// module chunks = 0","import { isEmpty, isObject, hasOwnProperty, makeObjectWithoutPrototype } from './utils.js';\n\nconst addedDiff = (lhs, rhs) => {\n\n  if (lhs === rhs || !isObject(lhs) || !isObject(rhs)) return {};\n\n\n  return Object.keys(rhs).reduce((acc, key) => {\n    if (hasOwnProperty(lhs, key)) {\n      const difference = addedDiff(lhs[key], rhs[key]);\n\n      if (isObject(difference) && isEmpty(difference)) return acc;\n\n      acc[key] = difference;\n      return acc;\n    }\n\n    acc[key] = rhs[key];\n    return acc;\n  }, makeObjectWithoutPrototype());\n};\n\nexport default addedDiff;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/deep-object-diff/mjs/added.js\n// module id = 475\n// module chunks = 0","import { isEmpty, isObject, hasOwnProperty, makeObjectWithoutPrototype } from './utils.js';\n\nconst deletedDiff = (lhs, rhs) => {\n  if (lhs === rhs || !isObject(lhs) || !isObject(rhs)) return {};\n\n  return Object.keys(lhs).reduce((acc, key) => {\n    if (hasOwnProperty(rhs, key)) {\n      const difference = deletedDiff(lhs[key], rhs[key]);\n\n      if (isObject(difference) && isEmpty(difference)) return acc;\n\n      acc[key] = difference;\n      return acc;\n    }\n\n    acc[key] = undefined;\n    return acc;\n  }, makeObjectWithoutPrototype());\n};\n\nexport default deletedDiff;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/deep-object-diff/mjs/deleted.js\n// module id = 476\n// module chunks = 0","import { isDate, isEmptyObject, isObject, hasOwnProperty, makeObjectWithoutPrototype } from './utils.js';\n\nconst updatedDiff = (lhs, rhs) => {\n  if (lhs === rhs) return {};\n\n  if (!isObject(lhs) || !isObject(rhs)) return rhs;\n\n  if (isDate(lhs) || isDate(rhs)) {\n    if (lhs.valueOf() == rhs.valueOf()) return {};\n    return rhs;\n  }\n\n  return Object.keys(rhs).reduce((acc, key) => {\n    if (hasOwnProperty(lhs, key)) {\n      const difference = updatedDiff(lhs[key], rhs[key]);\n\n      // If the difference is empty, and the lhs is an empty object or the rhs is not an empty object\n      if (isEmptyObject(difference) && !isDate(difference) && (isEmptyObject(lhs[key]) || !isEmptyObject(rhs[key])))\n        return acc; // return no diff\n\n      acc[key] = difference;\n      return acc;\n    }\n\n    return acc;\n  }, makeObjectWithoutPrototype());\n};\n\nexport default updatedDiff;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/deep-object-diff/mjs/updated.js\n// module id = 477\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Afrikaans [af]\n//! author : Werner Mollentze : https://github.com/wernerm\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var af = moment.defineLocale('af', {\n        months: 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split(\n            '_'\n        ),\n        monthsShort: 'Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'),\n        weekdays: 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split(\n            '_'\n        ),\n        weekdaysShort: 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'),\n        weekdaysMin: 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'),\n        meridiemParse: /vm|nm/i,\n        isPM: function (input) {\n            return /^nm$/i.test(input);\n        },\n        meridiem: function (hours, minutes, isLower) {\n            if (hours < 12) {\n                return isLower ? 'vm' : 'VM';\n            } else {\n                return isLower ? 'nm' : 'NM';\n            }\n        },\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd, D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[Vandag om] LT',\n            nextDay: '[Môre om] LT',\n            nextWeek: 'dddd [om] LT',\n            lastDay: '[Gister om] LT',\n            lastWeek: '[Laas] dddd [om] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'oor %s',\n            past: '%s gelede',\n            s: \"'n paar sekondes\",\n            ss: '%d sekondes',\n            m: \"'n minuut\",\n            mm: '%d minute',\n            h: \"'n uur\",\n            hh: '%d ure',\n            d: \"'n dag\",\n            dd: '%d dae',\n            M: \"'n maand\",\n            MM: '%d maande',\n            y: \"'n jaar\",\n            yy: '%d jaar',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(ste|de)/,\n        ordinal: function (number) {\n            return (\n                number +\n                (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')\n            ); // Thanks to Joris Röling : https://github.com/jjupiter\n        },\n        week: {\n            dow: 1, // Maandag is die eerste dag van die week.\n            doy: 4, // Die week wat die 4de Januarie bevat is die eerste week van die jaar.\n        },\n    });\n\n    return af;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/af.js\n// module id = 478\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Arabic (Algeria) [ar-dz]\n//! author : Amine Roukh: https://github.com/Amine27\n//! author : Abdel Said: https://github.com/abdelsaid\n//! author : Ahmed Elkhatib\n//! author : forabi https://github.com/forabi\n//! author : Noureddine LOUAHEDJ : https://github.com/noureddinem\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var pluralForm = function (n) {\n            return n === 0\n                ? 0\n                : n === 1\n                ? 1\n                : n === 2\n                ? 2\n                : n % 100 >= 3 && n % 100 <= 10\n                ? 3\n                : n % 100 >= 11\n                ? 4\n                : 5;\n        },\n        plurals = {\n            s: [\n                'أقل من ثانية',\n                'ثانية واحدة',\n                ['ثانيتان', 'ثانيتين'],\n                '%d ثوان',\n                '%d ثانية',\n                '%d ثانية',\n            ],\n            m: [\n                'أقل من دقيقة',\n                'دقيقة واحدة',\n                ['دقيقتان', 'دقيقتين'],\n                '%d دقائق',\n                '%d دقيقة',\n                '%d دقيقة',\n            ],\n            h: [\n                'أقل من ساعة',\n                'ساعة واحدة',\n                ['ساعتان', 'ساعتين'],\n                '%d ساعات',\n                '%d ساعة',\n                '%d ساعة',\n            ],\n            d: [\n                'أقل من يوم',\n                'يوم واحد',\n                ['يومان', 'يومين'],\n                '%d أيام',\n                '%d يومًا',\n                '%d يوم',\n            ],\n            M: [\n                'أقل من شهر',\n                'شهر واحد',\n                ['شهران', 'شهرين'],\n                '%d أشهر',\n                '%d شهرا',\n                '%d شهر',\n            ],\n            y: [\n                'أقل من عام',\n                'عام واحد',\n                ['عامان', 'عامين'],\n                '%d أعوام',\n                '%d عامًا',\n                '%d عام',\n            ],\n        },\n        pluralize = function (u) {\n            return function (number, withoutSuffix, string, isFuture) {\n                var f = pluralForm(number),\n                    str = plurals[u][pluralForm(number)];\n                if (f === 2) {\n                    str = str[withoutSuffix ? 0 : 1];\n                }\n                return str.replace(/%d/i, number);\n            };\n        },\n        months = [\n            'جانفي',\n            'فيفري',\n            'مارس',\n            'أفريل',\n            'ماي',\n            'جوان',\n            'جويلية',\n            'أوت',\n            'سبتمبر',\n            'أكتوبر',\n            'نوفمبر',\n            'ديسمبر',\n        ];\n\n    var arDz = moment.defineLocale('ar-dz', {\n        months: months,\n        monthsShort: months,\n        weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),\n        weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),\n        weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'D/\\u200FM/\\u200FYYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd D MMMM YYYY HH:mm',\n        },\n        meridiemParse: /ص|م/,\n        isPM: function (input) {\n            return 'م' === input;\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 12) {\n                return 'ص';\n            } else {\n                return 'م';\n            }\n        },\n        calendar: {\n            sameDay: '[اليوم عند الساعة] LT',\n            nextDay: '[غدًا عند الساعة] LT',\n            nextWeek: 'dddd [عند الساعة] LT',\n            lastDay: '[أمس عند الساعة] LT',\n            lastWeek: 'dddd [عند الساعة] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'بعد %s',\n            past: 'منذ %s',\n            s: pluralize('s'),\n            ss: pluralize('s'),\n            m: pluralize('m'),\n            mm: pluralize('m'),\n            h: pluralize('h'),\n            hh: pluralize('h'),\n            d: pluralize('d'),\n            dd: pluralize('d'),\n            M: pluralize('M'),\n            MM: pluralize('M'),\n            y: pluralize('y'),\n            yy: pluralize('y'),\n        },\n        postformat: function (string) {\n            return string.replace(/,/g, '،');\n        },\n        week: {\n            dow: 0, // Sunday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return arDz;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ar-dz.js\n// module id = 479\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Arabic (Kuwait) [ar-kw]\n//! author : Nusret Parlak: https://github.com/nusretparlak\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var arKw = moment.defineLocale('ar-kw', {\n        months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(\n            '_'\n        ),\n        monthsShort:\n            'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(\n                '_'\n            ),\n        weekdays: 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),\n        weekdaysShort: 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),\n        weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[اليوم على الساعة] LT',\n            nextDay: '[غدا على الساعة] LT',\n            nextWeek: 'dddd [على الساعة] LT',\n            lastDay: '[أمس على الساعة] LT',\n            lastWeek: 'dddd [على الساعة] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'في %s',\n            past: 'منذ %s',\n            s: 'ثوان',\n            ss: '%d ثانية',\n            m: 'دقيقة',\n            mm: '%d دقائق',\n            h: 'ساعة',\n            hh: '%d ساعات',\n            d: 'يوم',\n            dd: '%d أيام',\n            M: 'شهر',\n            MM: '%d أشهر',\n            y: 'سنة',\n            yy: '%d سنوات',\n        },\n        week: {\n            dow: 0, // Sunday is the first day of the week.\n            doy: 12, // The week that contains Jan 12th is the first week of the year.\n        },\n    });\n\n    return arKw;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ar-kw.js\n// module id = 480\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Arabic (Libya) [ar-ly]\n//! author : Ali Hmer: https://github.com/kikoanis\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var symbolMap = {\n            1: '1',\n            2: '2',\n            3: '3',\n            4: '4',\n            5: '5',\n            6: '6',\n            7: '7',\n            8: '8',\n            9: '9',\n            0: '0',\n        },\n        pluralForm = function (n) {\n            return n === 0\n                ? 0\n                : n === 1\n                ? 1\n                : n === 2\n                ? 2\n                : n % 100 >= 3 && n % 100 <= 10\n                ? 3\n                : n % 100 >= 11\n                ? 4\n                : 5;\n        },\n        plurals = {\n            s: [\n                'أقل من ثانية',\n                'ثانية واحدة',\n                ['ثانيتان', 'ثانيتين'],\n                '%d ثوان',\n                '%d ثانية',\n                '%d ثانية',\n            ],\n            m: [\n                'أقل من دقيقة',\n                'دقيقة واحدة',\n                ['دقيقتان', 'دقيقتين'],\n                '%d دقائق',\n                '%d دقيقة',\n                '%d دقيقة',\n            ],\n            h: [\n                'أقل من ساعة',\n                'ساعة واحدة',\n                ['ساعتان', 'ساعتين'],\n                '%d ساعات',\n                '%d ساعة',\n                '%d ساعة',\n            ],\n            d: [\n                'أقل من يوم',\n                'يوم واحد',\n                ['يومان', 'يومين'],\n                '%d أيام',\n                '%d يومًا',\n                '%d يوم',\n            ],\n            M: [\n                'أقل من شهر',\n                'شهر واحد',\n                ['شهران', 'شهرين'],\n                '%d أشهر',\n                '%d شهرا',\n                '%d شهر',\n            ],\n            y: [\n                'أقل من عام',\n                'عام واحد',\n                ['عامان', 'عامين'],\n                '%d أعوام',\n                '%d عامًا',\n                '%d عام',\n            ],\n        },\n        pluralize = function (u) {\n            return function (number, withoutSuffix, string, isFuture) {\n                var f = pluralForm(number),\n                    str = plurals[u][pluralForm(number)];\n                if (f === 2) {\n                    str = str[withoutSuffix ? 0 : 1];\n                }\n                return str.replace(/%d/i, number);\n            };\n        },\n        months = [\n            'يناير',\n            'فبراير',\n            'مارس',\n            'أبريل',\n            'مايو',\n            'يونيو',\n            'يوليو',\n            'أغسطس',\n            'سبتمبر',\n            'أكتوبر',\n            'نوفمبر',\n            'ديسمبر',\n        ];\n\n    var arLy = moment.defineLocale('ar-ly', {\n        months: months,\n        monthsShort: months,\n        weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),\n        weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),\n        weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'D/\\u200FM/\\u200FYYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd D MMMM YYYY HH:mm',\n        },\n        meridiemParse: /ص|م/,\n        isPM: function (input) {\n            return 'م' === input;\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 12) {\n                return 'ص';\n            } else {\n                return 'م';\n            }\n        },\n        calendar: {\n            sameDay: '[اليوم عند الساعة] LT',\n            nextDay: '[غدًا عند الساعة] LT',\n            nextWeek: 'dddd [عند الساعة] LT',\n            lastDay: '[أمس عند الساعة] LT',\n            lastWeek: 'dddd [عند الساعة] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'بعد %s',\n            past: 'منذ %s',\n            s: pluralize('s'),\n            ss: pluralize('s'),\n            m: pluralize('m'),\n            mm: pluralize('m'),\n            h: pluralize('h'),\n            hh: pluralize('h'),\n            d: pluralize('d'),\n            dd: pluralize('d'),\n            M: pluralize('M'),\n            MM: pluralize('M'),\n            y: pluralize('y'),\n            yy: pluralize('y'),\n        },\n        preparse: function (string) {\n            return string.replace(/،/g, ',');\n        },\n        postformat: function (string) {\n            return string\n                .replace(/\\d/g, function (match) {\n                    return symbolMap[match];\n                })\n                .replace(/,/g, '،');\n        },\n        week: {\n            dow: 6, // Saturday is the first day of the week.\n            doy: 12, // The week that contains Jan 12th is the first week of the year.\n        },\n    });\n\n    return arLy;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ar-ly.js\n// module id = 481\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Arabic (Morocco) [ar-ma]\n//! author : ElFadili Yassine : https://github.com/ElFadiliY\n//! author : Abdel Said : https://github.com/abdelsaid\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var arMa = moment.defineLocale('ar-ma', {\n        months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(\n            '_'\n        ),\n        monthsShort:\n            'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(\n                '_'\n            ),\n        weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),\n        weekdaysShort: 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),\n        weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[اليوم على الساعة] LT',\n            nextDay: '[غدا على الساعة] LT',\n            nextWeek: 'dddd [على الساعة] LT',\n            lastDay: '[أمس على الساعة] LT',\n            lastWeek: 'dddd [على الساعة] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'في %s',\n            past: 'منذ %s',\n            s: 'ثوان',\n            ss: '%d ثانية',\n            m: 'دقيقة',\n            mm: '%d دقائق',\n            h: 'ساعة',\n            hh: '%d ساعات',\n            d: 'يوم',\n            dd: '%d أيام',\n            M: 'شهر',\n            MM: '%d أشهر',\n            y: 'سنة',\n            yy: '%d سنوات',\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return arMa;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ar-ma.js\n// module id = 482\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Arabic (Saudi Arabia) [ar-sa]\n//! author : Suhail Alkowaileet : https://github.com/xsoh\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var symbolMap = {\n            1: '١',\n            2: '٢',\n            3: '٣',\n            4: '٤',\n            5: '٥',\n            6: '٦',\n            7: '٧',\n            8: '٨',\n            9: '٩',\n            0: '٠',\n        },\n        numberMap = {\n            '١': '1',\n            '٢': '2',\n            '٣': '3',\n            '٤': '4',\n            '٥': '5',\n            '٦': '6',\n            '٧': '7',\n            '٨': '8',\n            '٩': '9',\n            '٠': '0',\n        };\n\n    var arSa = moment.defineLocale('ar-sa', {\n        months: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(\n            '_'\n        ),\n        monthsShort:\n            'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(\n                '_'\n            ),\n        weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),\n        weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),\n        weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd D MMMM YYYY HH:mm',\n        },\n        meridiemParse: /ص|م/,\n        isPM: function (input) {\n            return 'م' === input;\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 12) {\n                return 'ص';\n            } else {\n                return 'م';\n            }\n        },\n        calendar: {\n            sameDay: '[اليوم على الساعة] LT',\n            nextDay: '[غدا على الساعة] LT',\n            nextWeek: 'dddd [على الساعة] LT',\n            lastDay: '[أمس على الساعة] LT',\n            lastWeek: 'dddd [على الساعة] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'في %s',\n            past: 'منذ %s',\n            s: 'ثوان',\n            ss: '%d ثانية',\n            m: 'دقيقة',\n            mm: '%d دقائق',\n            h: 'ساعة',\n            hh: '%d ساعات',\n            d: 'يوم',\n            dd: '%d أيام',\n            M: 'شهر',\n            MM: '%d أشهر',\n            y: 'سنة',\n            yy: '%d سنوات',\n        },\n        preparse: function (string) {\n            return string\n                .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {\n                    return numberMap[match];\n                })\n                .replace(/،/g, ',');\n        },\n        postformat: function (string) {\n            return string\n                .replace(/\\d/g, function (match) {\n                    return symbolMap[match];\n                })\n                .replace(/,/g, '،');\n        },\n        week: {\n            dow: 0, // Sunday is the first day of the week.\n            doy: 6, // The week that contains Jan 6th is the first week of the year.\n        },\n    });\n\n    return arSa;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ar-sa.js\n// module id = 483\n// module chunks = 0","//! moment.js locale configuration\n//! locale  :  Arabic (Tunisia) [ar-tn]\n//! author : Nader Toukabri : https://github.com/naderio\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var arTn = moment.defineLocale('ar-tn', {\n        months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(\n            '_'\n        ),\n        monthsShort:\n            'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(\n                '_'\n            ),\n        weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),\n        weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),\n        weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[اليوم على الساعة] LT',\n            nextDay: '[غدا على الساعة] LT',\n            nextWeek: 'dddd [على الساعة] LT',\n            lastDay: '[أمس على الساعة] LT',\n            lastWeek: 'dddd [على الساعة] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'في %s',\n            past: 'منذ %s',\n            s: 'ثوان',\n            ss: '%d ثانية',\n            m: 'دقيقة',\n            mm: '%d دقائق',\n            h: 'ساعة',\n            hh: '%d ساعات',\n            d: 'يوم',\n            dd: '%d أيام',\n            M: 'شهر',\n            MM: '%d أشهر',\n            y: 'سنة',\n            yy: '%d سنوات',\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return arTn;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ar-tn.js\n// module id = 484\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Arabic [ar]\n//! author : Abdel Said: https://github.com/abdelsaid\n//! author : Ahmed Elkhatib\n//! author : forabi https://github.com/forabi\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var symbolMap = {\n            1: '١',\n            2: '٢',\n            3: '٣',\n            4: '٤',\n            5: '٥',\n            6: '٦',\n            7: '٧',\n            8: '٨',\n            9: '٩',\n            0: '٠',\n        },\n        numberMap = {\n            '١': '1',\n            '٢': '2',\n            '٣': '3',\n            '٤': '4',\n            '٥': '5',\n            '٦': '6',\n            '٧': '7',\n            '٨': '8',\n            '٩': '9',\n            '٠': '0',\n        },\n        pluralForm = function (n) {\n            return n === 0\n                ? 0\n                : n === 1\n                ? 1\n                : n === 2\n                ? 2\n                : n % 100 >= 3 && n % 100 <= 10\n                ? 3\n                : n % 100 >= 11\n                ? 4\n                : 5;\n        },\n        plurals = {\n            s: [\n                'أقل من ثانية',\n                'ثانية واحدة',\n                ['ثانيتان', 'ثانيتين'],\n                '%d ثوان',\n                '%d ثانية',\n                '%d ثانية',\n            ],\n            m: [\n                'أقل من دقيقة',\n                'دقيقة واحدة',\n                ['دقيقتان', 'دقيقتين'],\n                '%d دقائق',\n                '%d دقيقة',\n                '%d دقيقة',\n            ],\n            h: [\n                'أقل من ساعة',\n                'ساعة واحدة',\n                ['ساعتان', 'ساعتين'],\n                '%d ساعات',\n                '%d ساعة',\n                '%d ساعة',\n            ],\n            d: [\n                'أقل من يوم',\n                'يوم واحد',\n                ['يومان', 'يومين'],\n                '%d أيام',\n                '%d يومًا',\n                '%d يوم',\n            ],\n            M: [\n                'أقل من شهر',\n                'شهر واحد',\n                ['شهران', 'شهرين'],\n                '%d أشهر',\n                '%d شهرا',\n                '%d شهر',\n            ],\n            y: [\n                'أقل من عام',\n                'عام واحد',\n                ['عامان', 'عامين'],\n                '%d أعوام',\n                '%d عامًا',\n                '%d عام',\n            ],\n        },\n        pluralize = function (u) {\n            return function (number, withoutSuffix, string, isFuture) {\n                var f = pluralForm(number),\n                    str = plurals[u][pluralForm(number)];\n                if (f === 2) {\n                    str = str[withoutSuffix ? 0 : 1];\n                }\n                return str.replace(/%d/i, number);\n            };\n        },\n        months = [\n            'يناير',\n            'فبراير',\n            'مارس',\n            'أبريل',\n            'مايو',\n            'يونيو',\n            'يوليو',\n            'أغسطس',\n            'سبتمبر',\n            'أكتوبر',\n            'نوفمبر',\n            'ديسمبر',\n        ];\n\n    var ar = moment.defineLocale('ar', {\n        months: months,\n        monthsShort: months,\n        weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),\n        weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),\n        weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'D/\\u200FM/\\u200FYYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd D MMMM YYYY HH:mm',\n        },\n        meridiemParse: /ص|م/,\n        isPM: function (input) {\n            return 'م' === input;\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 12) {\n                return 'ص';\n            } else {\n                return 'م';\n            }\n        },\n        calendar: {\n            sameDay: '[اليوم عند الساعة] LT',\n            nextDay: '[غدًا عند الساعة] LT',\n            nextWeek: 'dddd [عند الساعة] LT',\n            lastDay: '[أمس عند الساعة] LT',\n            lastWeek: 'dddd [عند الساعة] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'بعد %s',\n            past: 'منذ %s',\n            s: pluralize('s'),\n            ss: pluralize('s'),\n            m: pluralize('m'),\n            mm: pluralize('m'),\n            h: pluralize('h'),\n            hh: pluralize('h'),\n            d: pluralize('d'),\n            dd: pluralize('d'),\n            M: pluralize('M'),\n            MM: pluralize('M'),\n            y: pluralize('y'),\n            yy: pluralize('y'),\n        },\n        preparse: function (string) {\n            return string\n                .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {\n                    return numberMap[match];\n                })\n                .replace(/،/g, ',');\n        },\n        postformat: function (string) {\n            return string\n                .replace(/\\d/g, function (match) {\n                    return symbolMap[match];\n                })\n                .replace(/,/g, '،');\n        },\n        week: {\n            dow: 6, // Saturday is the first day of the week.\n            doy: 12, // The week that contains Jan 12th is the first week of the year.\n        },\n    });\n\n    return ar;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ar.js\n// module id = 485\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Azerbaijani [az]\n//! author : topchiyev : https://github.com/topchiyev\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var suffixes = {\n        1: '-inci',\n        5: '-inci',\n        8: '-inci',\n        70: '-inci',\n        80: '-inci',\n        2: '-nci',\n        7: '-nci',\n        20: '-nci',\n        50: '-nci',\n        3: '-üncü',\n        4: '-üncü',\n        100: '-üncü',\n        6: '-ncı',\n        9: '-uncu',\n        10: '-uncu',\n        30: '-uncu',\n        60: '-ıncı',\n        90: '-ıncı',\n    };\n\n    var az = moment.defineLocale('az', {\n        months: 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split(\n            '_'\n        ),\n        monthsShort: 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'),\n        weekdays:\n            'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split(\n                '_'\n            ),\n        weekdaysShort: 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'),\n        weekdaysMin: 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD.MM.YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd, D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[bugün saat] LT',\n            nextDay: '[sabah saat] LT',\n            nextWeek: '[gələn həftə] dddd [saat] LT',\n            lastDay: '[dünən] LT',\n            lastWeek: '[keçən həftə] dddd [saat] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s sonra',\n            past: '%s əvvəl',\n            s: 'bir neçə saniyə',\n            ss: '%d saniyə',\n            m: 'bir dəqiqə',\n            mm: '%d dəqiqə',\n            h: 'bir saat',\n            hh: '%d saat',\n            d: 'bir gün',\n            dd: '%d gün',\n            M: 'bir ay',\n            MM: '%d ay',\n            y: 'bir il',\n            yy: '%d il',\n        },\n        meridiemParse: /gecə|səhər|gündüz|axşam/,\n        isPM: function (input) {\n            return /^(gündüz|axşam)$/.test(input);\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 4) {\n                return 'gecə';\n            } else if (hour < 12) {\n                return 'səhər';\n            } else if (hour < 17) {\n                return 'gündüz';\n            } else {\n                return 'axşam';\n            }\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,\n        ordinal: function (number) {\n            if (number === 0) {\n                // special case for zero\n                return number + '-ıncı';\n            }\n            var a = number % 10,\n                b = (number % 100) - a,\n                c = number >= 100 ? 100 : null;\n            return number + (suffixes[a] || suffixes[b] || suffixes[c]);\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 7, // The week that contains Jan 7th is the first week of the year.\n        },\n    });\n\n    return az;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/az.js\n// module id = 486\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Belarusian [be]\n//! author : Dmitry Demidov : https://github.com/demidov91\n//! author: Praleska: http://praleska.pro/\n//! Author : Menelion Elensúle : https://github.com/Oire\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    function plural(word, num) {\n        var forms = word.split('_');\n        return num % 10 === 1 && num % 100 !== 11\n            ? forms[0]\n            : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)\n            ? forms[1]\n            : forms[2];\n    }\n    function relativeTimeWithPlural(number, withoutSuffix, key) {\n        var format = {\n            ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',\n            mm: withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін',\n            hh: withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін',\n            dd: 'дзень_дні_дзён',\n            MM: 'месяц_месяцы_месяцаў',\n            yy: 'год_гады_гадоў',\n        };\n        if (key === 'm') {\n            return withoutSuffix ? 'хвіліна' : 'хвіліну';\n        } else if (key === 'h') {\n            return withoutSuffix ? 'гадзіна' : 'гадзіну';\n        } else {\n            return number + ' ' + plural(format[key], +number);\n        }\n    }\n\n    var be = moment.defineLocale('be', {\n        months: {\n            format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split(\n                '_'\n            ),\n            standalone:\n                'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split(\n                    '_'\n                ),\n        },\n        monthsShort:\n            'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split('_'),\n        weekdays: {\n            format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split(\n                '_'\n            ),\n            standalone:\n                'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split(\n                    '_'\n                ),\n            isFormat: /\\[ ?[Ууў] ?(?:мінулую|наступную)? ?\\] ?dddd/,\n        },\n        weekdaysShort: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),\n        weekdaysMin: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD.MM.YYYY',\n            LL: 'D MMMM YYYY г.',\n            LLL: 'D MMMM YYYY г., HH:mm',\n            LLLL: 'dddd, D MMMM YYYY г., HH:mm',\n        },\n        calendar: {\n            sameDay: '[Сёння ў] LT',\n            nextDay: '[Заўтра ў] LT',\n            lastDay: '[Учора ў] LT',\n            nextWeek: function () {\n                return '[У] dddd [ў] LT';\n            },\n            lastWeek: function () {\n                switch (this.day()) {\n                    case 0:\n                    case 3:\n                    case 5:\n                    case 6:\n                        return '[У мінулую] dddd [ў] LT';\n                    case 1:\n                    case 2:\n                    case 4:\n                        return '[У мінулы] dddd [ў] LT';\n                }\n            },\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'праз %s',\n            past: '%s таму',\n            s: 'некалькі секунд',\n            m: relativeTimeWithPlural,\n            mm: relativeTimeWithPlural,\n            h: relativeTimeWithPlural,\n            hh: relativeTimeWithPlural,\n            d: 'дзень',\n            dd: relativeTimeWithPlural,\n            M: 'месяц',\n            MM: relativeTimeWithPlural,\n            y: 'год',\n            yy: relativeTimeWithPlural,\n        },\n        meridiemParse: /ночы|раніцы|дня|вечара/,\n        isPM: function (input) {\n            return /^(дня|вечара)$/.test(input);\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 4) {\n                return 'ночы';\n            } else if (hour < 12) {\n                return 'раніцы';\n            } else if (hour < 17) {\n                return 'дня';\n            } else {\n                return 'вечара';\n            }\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}-(і|ы|га)/,\n        ordinal: function (number, period) {\n            switch (period) {\n                case 'M':\n                case 'd':\n                case 'DDD':\n                case 'w':\n                case 'W':\n                    return (number % 10 === 2 || number % 10 === 3) &&\n                        number % 100 !== 12 &&\n                        number % 100 !== 13\n                        ? number + '-і'\n                        : number + '-ы';\n                case 'D':\n                    return number + '-га';\n                default:\n                    return number;\n            }\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 7, // The week that contains Jan 7th is the first week of the year.\n        },\n    });\n\n    return be;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/be.js\n// module id = 487\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Bulgarian [bg]\n//! author : Krasen Borisov : https://github.com/kraz\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var bg = moment.defineLocale('bg', {\n        months: 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split(\n            '_'\n        ),\n        monthsShort: 'яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'),\n        weekdays: 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split(\n            '_'\n        ),\n        weekdaysShort: 'нед_пон_вто_сря_чет_пет_съб'.split('_'),\n        weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),\n        longDateFormat: {\n            LT: 'H:mm',\n            LTS: 'H:mm:ss',\n            L: 'D.MM.YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY H:mm',\n            LLLL: 'dddd, D MMMM YYYY H:mm',\n        },\n        calendar: {\n            sameDay: '[Днес в] LT',\n            nextDay: '[Утре в] LT',\n            nextWeek: 'dddd [в] LT',\n            lastDay: '[Вчера в] LT',\n            lastWeek: function () {\n                switch (this.day()) {\n                    case 0:\n                    case 3:\n                    case 6:\n                        return '[Миналата] dddd [в] LT';\n                    case 1:\n                    case 2:\n                    case 4:\n                    case 5:\n                        return '[Миналия] dddd [в] LT';\n                }\n            },\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'след %s',\n            past: 'преди %s',\n            s: 'няколко секунди',\n            ss: '%d секунди',\n            m: 'минута',\n            mm: '%d минути',\n            h: 'час',\n            hh: '%d часа',\n            d: 'ден',\n            dd: '%d дена',\n            w: 'седмица',\n            ww: '%d седмици',\n            M: 'месец',\n            MM: '%d месеца',\n            y: 'година',\n            yy: '%d години',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}-(ев|ен|ти|ви|ри|ми)/,\n        ordinal: function (number) {\n            var lastDigit = number % 10,\n                last2Digits = number % 100;\n            if (number === 0) {\n                return number + '-ев';\n            } else if (last2Digits === 0) {\n                return number + '-ен';\n            } else if (last2Digits > 10 && last2Digits < 20) {\n                return number + '-ти';\n            } else if (lastDigit === 1) {\n                return number + '-ви';\n            } else if (lastDigit === 2) {\n                return number + '-ри';\n            } else if (lastDigit === 7 || lastDigit === 8) {\n                return number + '-ми';\n            } else {\n                return number + '-ти';\n            }\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 7, // The week that contains Jan 7th is the first week of the year.\n        },\n    });\n\n    return bg;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/bg.js\n// module id = 488\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Bambara [bm]\n//! author : Estelle Comment : https://github.com/estellecomment\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var bm = moment.defineLocale('bm', {\n        months: 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split(\n            '_'\n        ),\n        monthsShort: 'Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des'.split('_'),\n        weekdays: 'Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri'.split('_'),\n        weekdaysShort: 'Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib'.split('_'),\n        weekdaysMin: 'Ka_Nt_Ta_Ar_Al_Ju_Si'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'MMMM [tile] D [san] YYYY',\n            LLL: 'MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',\n            LLLL: 'dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',\n        },\n        calendar: {\n            sameDay: '[Bi lɛrɛ] LT',\n            nextDay: '[Sini lɛrɛ] LT',\n            nextWeek: 'dddd [don lɛrɛ] LT',\n            lastDay: '[Kunu lɛrɛ] LT',\n            lastWeek: 'dddd [tɛmɛnen lɛrɛ] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s kɔnɔ',\n            past: 'a bɛ %s bɔ',\n            s: 'sanga dama dama',\n            ss: 'sekondi %d',\n            m: 'miniti kelen',\n            mm: 'miniti %d',\n            h: 'lɛrɛ kelen',\n            hh: 'lɛrɛ %d',\n            d: 'tile kelen',\n            dd: 'tile %d',\n            M: 'kalo kelen',\n            MM: 'kalo %d',\n            y: 'san kelen',\n            yy: 'san %d',\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return bm;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/bm.js\n// module id = 489\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Bengali (Bangladesh) [bn-bd]\n//! author : Asraf Hossain Patoary : https://github.com/ashwoolford\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var symbolMap = {\n            1: '১',\n            2: '২',\n            3: '৩',\n            4: '৪',\n            5: '৫',\n            6: '৬',\n            7: '৭',\n            8: '৮',\n            9: '৯',\n            0: '০',\n        },\n        numberMap = {\n            '১': '1',\n            '২': '2',\n            '৩': '3',\n            '৪': '4',\n            '৫': '5',\n            '৬': '6',\n            '৭': '7',\n            '৮': '8',\n            '৯': '9',\n            '০': '0',\n        };\n\n    var bnBd = moment.defineLocale('bn-bd', {\n        months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split(\n            '_'\n        ),\n        monthsShort:\n            'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split(\n                '_'\n            ),\n        weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split(\n            '_'\n        ),\n        weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),\n        weekdaysMin: 'রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি'.split('_'),\n        longDateFormat: {\n            LT: 'A h:mm সময়',\n            LTS: 'A h:mm:ss সময়',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY, A h:mm সময়',\n            LLLL: 'dddd, D MMMM YYYY, A h:mm সময়',\n        },\n        calendar: {\n            sameDay: '[আজ] LT',\n            nextDay: '[আগামীকাল] LT',\n            nextWeek: 'dddd, LT',\n            lastDay: '[গতকাল] LT',\n            lastWeek: '[গত] dddd, LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s পরে',\n            past: '%s আগে',\n            s: 'কয়েক সেকেন্ড',\n            ss: '%d সেকেন্ড',\n            m: 'এক মিনিট',\n            mm: '%d মিনিট',\n            h: 'এক ঘন্টা',\n            hh: '%d ঘন্টা',\n            d: 'এক দিন',\n            dd: '%d দিন',\n            M: 'এক মাস',\n            MM: '%d মাস',\n            y: 'এক বছর',\n            yy: '%d বছর',\n        },\n        preparse: function (string) {\n            return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {\n                return numberMap[match];\n            });\n        },\n        postformat: function (string) {\n            return string.replace(/\\d/g, function (match) {\n                return symbolMap[match];\n            });\n        },\n\n        meridiemParse: /রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/,\n        meridiemHour: function (hour, meridiem) {\n            if (hour === 12) {\n                hour = 0;\n            }\n            if (meridiem === 'রাত') {\n                return hour < 4 ? hour : hour + 12;\n            } else if (meridiem === 'ভোর') {\n                return hour;\n            } else if (meridiem === 'সকাল') {\n                return hour;\n            } else if (meridiem === 'দুপুর') {\n                return hour >= 3 ? hour : hour + 12;\n            } else if (meridiem === 'বিকাল') {\n                return hour + 12;\n            } else if (meridiem === 'সন্ধ্যা') {\n                return hour + 12;\n            }\n        },\n\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 4) {\n                return 'রাত';\n            } else if (hour < 6) {\n                return 'ভোর';\n            } else if (hour < 12) {\n                return 'সকাল';\n            } else if (hour < 15) {\n                return 'দুপুর';\n            } else if (hour < 18) {\n                return 'বিকাল';\n            } else if (hour < 20) {\n                return 'সন্ধ্যা';\n            } else {\n                return 'রাত';\n            }\n        },\n        week: {\n            dow: 0, // Sunday is the first day of the week.\n            doy: 6, // The week that contains Jan 6th is the first week of the year.\n        },\n    });\n\n    return bnBd;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/bn-bd.js\n// module id = 490\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Bengali [bn]\n//! author : Kaushik Gandhi : https://github.com/kaushikgandhi\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var symbolMap = {\n            1: '১',\n            2: '২',\n            3: '৩',\n            4: '৪',\n            5: '৫',\n            6: '৬',\n            7: '৭',\n            8: '৮',\n            9: '৯',\n            0: '০',\n        },\n        numberMap = {\n            '১': '1',\n            '২': '2',\n            '৩': '3',\n            '৪': '4',\n            '৫': '5',\n            '৬': '6',\n            '৭': '7',\n            '৮': '8',\n            '৯': '9',\n            '০': '0',\n        };\n\n    var bn = moment.defineLocale('bn', {\n        months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split(\n            '_'\n        ),\n        monthsShort:\n            'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split(\n                '_'\n            ),\n        weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split(\n            '_'\n        ),\n        weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),\n        weekdaysMin: 'রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি'.split('_'),\n        longDateFormat: {\n            LT: 'A h:mm সময়',\n            LTS: 'A h:mm:ss সময়',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY, A h:mm সময়',\n            LLLL: 'dddd, D MMMM YYYY, A h:mm সময়',\n        },\n        calendar: {\n            sameDay: '[আজ] LT',\n            nextDay: '[আগামীকাল] LT',\n            nextWeek: 'dddd, LT',\n            lastDay: '[গতকাল] LT',\n            lastWeek: '[গত] dddd, LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s পরে',\n            past: '%s আগে',\n            s: 'কয়েক সেকেন্ড',\n            ss: '%d সেকেন্ড',\n            m: 'এক মিনিট',\n            mm: '%d মিনিট',\n            h: 'এক ঘন্টা',\n            hh: '%d ঘন্টা',\n            d: 'এক দিন',\n            dd: '%d দিন',\n            M: 'এক মাস',\n            MM: '%d মাস',\n            y: 'এক বছর',\n            yy: '%d বছর',\n        },\n        preparse: function (string) {\n            return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {\n                return numberMap[match];\n            });\n        },\n        postformat: function (string) {\n            return string.replace(/\\d/g, function (match) {\n                return symbolMap[match];\n            });\n        },\n        meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/,\n        meridiemHour: function (hour, meridiem) {\n            if (hour === 12) {\n                hour = 0;\n            }\n            if (\n                (meridiem === 'রাত' && hour >= 4) ||\n                (meridiem === 'দুপুর' && hour < 5) ||\n                meridiem === 'বিকাল'\n            ) {\n                return hour + 12;\n            } else {\n                return hour;\n            }\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 4) {\n                return 'রাত';\n            } else if (hour < 10) {\n                return 'সকাল';\n            } else if (hour < 17) {\n                return 'দুপুর';\n            } else if (hour < 20) {\n                return 'বিকাল';\n            } else {\n                return 'রাত';\n            }\n        },\n        week: {\n            dow: 0, // Sunday is the first day of the week.\n            doy: 6, // The week that contains Jan 6th is the first week of the year.\n        },\n    });\n\n    return bn;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/bn.js\n// module id = 491\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Tibetan [bo]\n//! author : Thupten N. Chakrishar : https://github.com/vajradog\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var symbolMap = {\n            1: '༡',\n            2: '༢',\n            3: '༣',\n            4: '༤',\n            5: '༥',\n            6: '༦',\n            7: '༧',\n            8: '༨',\n            9: '༩',\n            0: '༠',\n        },\n        numberMap = {\n            '༡': '1',\n            '༢': '2',\n            '༣': '3',\n            '༤': '4',\n            '༥': '5',\n            '༦': '6',\n            '༧': '7',\n            '༨': '8',\n            '༩': '9',\n            '༠': '0',\n        };\n\n    var bo = moment.defineLocale('bo', {\n        months: 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split(\n            '_'\n        ),\n        monthsShort:\n            'ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12'.split(\n                '_'\n            ),\n        monthsShortRegex: /^(ཟླ་\\d{1,2})/,\n        monthsParseExact: true,\n        weekdays:\n            'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split(\n                '_'\n            ),\n        weekdaysShort: 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split(\n            '_'\n        ),\n        weekdaysMin: 'ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན'.split('_'),\n        longDateFormat: {\n            LT: 'A h:mm',\n            LTS: 'A h:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY, A h:mm',\n            LLLL: 'dddd, D MMMM YYYY, A h:mm',\n        },\n        calendar: {\n            sameDay: '[དི་རིང] LT',\n            nextDay: '[སང་ཉིན] LT',\n            nextWeek: '[བདུན་ཕྲག་རྗེས་མ], LT',\n            lastDay: '[ཁ་སང] LT',\n            lastWeek: '[བདུན་ཕྲག་མཐའ་མ] dddd, LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s ལ་',\n            past: '%s སྔན་ལ',\n            s: 'ལམ་སང',\n            ss: '%d སྐར་ཆ།',\n            m: 'སྐར་མ་གཅིག',\n            mm: '%d སྐར་མ',\n            h: 'ཆུ་ཚོད་གཅིག',\n            hh: '%d ཆུ་ཚོད',\n            d: 'ཉིན་གཅིག',\n            dd: '%d ཉིན་',\n            M: 'ཟླ་བ་གཅིག',\n            MM: '%d ཟླ་བ',\n            y: 'ལོ་གཅིག',\n            yy: '%d ལོ',\n        },\n        preparse: function (string) {\n            return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) {\n                return numberMap[match];\n            });\n        },\n        postformat: function (string) {\n            return string.replace(/\\d/g, function (match) {\n                return symbolMap[match];\n            });\n        },\n        meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,\n        meridiemHour: function (hour, meridiem) {\n            if (hour === 12) {\n                hour = 0;\n            }\n            if (\n                (meridiem === 'མཚན་མོ' && hour >= 4) ||\n                (meridiem === 'ཉིན་གུང' && hour < 5) ||\n                meridiem === 'དགོང་དག'\n            ) {\n                return hour + 12;\n            } else {\n                return hour;\n            }\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 4) {\n                return 'མཚན་མོ';\n            } else if (hour < 10) {\n                return 'ཞོགས་ཀས';\n            } else if (hour < 17) {\n                return 'ཉིན་གུང';\n            } else if (hour < 20) {\n                return 'དགོང་དག';\n            } else {\n                return 'མཚན་མོ';\n            }\n        },\n        week: {\n            dow: 0, // Sunday is the first day of the week.\n            doy: 6, // The week that contains Jan 6th is the first week of the year.\n        },\n    });\n\n    return bo;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/bo.js\n// module id = 492\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Breton [br]\n//! author : Jean-Baptiste Le Duigou : https://github.com/jbleduigou\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    function relativeTimeWithMutation(number, withoutSuffix, key) {\n        var format = {\n            mm: 'munutenn',\n            MM: 'miz',\n            dd: 'devezh',\n        };\n        return number + ' ' + mutation(format[key], number);\n    }\n    function specialMutationForYears(number) {\n        switch (lastNumber(number)) {\n            case 1:\n            case 3:\n            case 4:\n            case 5:\n            case 9:\n                return number + ' bloaz';\n            default:\n                return number + ' vloaz';\n        }\n    }\n    function lastNumber(number) {\n        if (number > 9) {\n            return lastNumber(number % 10);\n        }\n        return number;\n    }\n    function mutation(text, number) {\n        if (number === 2) {\n            return softMutation(text);\n        }\n        return text;\n    }\n    function softMutation(text) {\n        var mutationTable = {\n            m: 'v',\n            b: 'v',\n            d: 'z',\n        };\n        if (mutationTable[text.charAt(0)] === undefined) {\n            return text;\n        }\n        return mutationTable[text.charAt(0)] + text.substring(1);\n    }\n\n    var monthsParse = [\n            /^gen/i,\n            /^c[ʼ\\']hwe/i,\n            /^meu/i,\n            /^ebr/i,\n            /^mae/i,\n            /^(mez|eve)/i,\n            /^gou/i,\n            /^eos/i,\n            /^gwe/i,\n            /^her/i,\n            /^du/i,\n            /^ker/i,\n        ],\n        monthsRegex =\n            /^(genver|c[ʼ\\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,\n        monthsStrictRegex =\n            /^(genver|c[ʼ\\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,\n        monthsShortStrictRegex =\n            /^(gen|c[ʼ\\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,\n        fullWeekdaysParse = [\n            /^sul/i,\n            /^lun/i,\n            /^meurzh/i,\n            /^merc[ʼ\\']her/i,\n            /^yaou/i,\n            /^gwener/i,\n            /^sadorn/i,\n        ],\n        shortWeekdaysParse = [\n            /^Sul/i,\n            /^Lun/i,\n            /^Meu/i,\n            /^Mer/i,\n            /^Yao/i,\n            /^Gwe/i,\n            /^Sad/i,\n        ],\n        minWeekdaysParse = [\n            /^Su/i,\n            /^Lu/i,\n            /^Me([^r]|$)/i,\n            /^Mer/i,\n            /^Ya/i,\n            /^Gw/i,\n            /^Sa/i,\n        ];\n\n    var br = moment.defineLocale('br', {\n        months: 'Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split(\n            '_'\n        ),\n        monthsShort: 'Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'),\n        weekdays: 'Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn'.split('_'),\n        weekdaysShort: 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'),\n        weekdaysMin: 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'),\n        weekdaysParse: minWeekdaysParse,\n        fullWeekdaysParse: fullWeekdaysParse,\n        shortWeekdaysParse: shortWeekdaysParse,\n        minWeekdaysParse: minWeekdaysParse,\n\n        monthsRegex: monthsRegex,\n        monthsShortRegex: monthsRegex,\n        monthsStrictRegex: monthsStrictRegex,\n        monthsShortStrictRegex: monthsShortStrictRegex,\n        monthsParse: monthsParse,\n        longMonthsParse: monthsParse,\n        shortMonthsParse: monthsParse,\n\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D [a viz] MMMM YYYY',\n            LLL: 'D [a viz] MMMM YYYY HH:mm',\n            LLLL: 'dddd, D [a viz] MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[Hiziv da] LT',\n            nextDay: '[Warcʼhoazh da] LT',\n            nextWeek: 'dddd [da] LT',\n            lastDay: '[Decʼh da] LT',\n            lastWeek: 'dddd [paset da] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'a-benn %s',\n            past: '%s ʼzo',\n            s: 'un nebeud segondennoù',\n            ss: '%d eilenn',\n            m: 'ur vunutenn',\n            mm: relativeTimeWithMutation,\n            h: 'un eur',\n            hh: '%d eur',\n            d: 'un devezh',\n            dd: relativeTimeWithMutation,\n            M: 'ur miz',\n            MM: relativeTimeWithMutation,\n            y: 'ur bloaz',\n            yy: specialMutationForYears,\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(añ|vet)/,\n        ordinal: function (number) {\n            var output = number === 1 ? 'añ' : 'vet';\n            return number + output;\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n        meridiemParse: /a.m.|g.m./, // goude merenn | a-raok merenn\n        isPM: function (token) {\n            return token === 'g.m.';\n        },\n        meridiem: function (hour, minute, isLower) {\n            return hour < 12 ? 'a.m.' : 'g.m.';\n        },\n    });\n\n    return br;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/br.js\n// module id = 493\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Bosnian [bs]\n//! author : Nedim Cholich : https://github.com/frontyard\n//! based on (hr) translation by Bojan Marković\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    function translate(number, withoutSuffix, key) {\n        var result = number + ' ';\n        switch (key) {\n            case 'ss':\n                if (number === 1) {\n                    result += 'sekunda';\n                } else if (number === 2 || number === 3 || number === 4) {\n                    result += 'sekunde';\n                } else {\n                    result += 'sekundi';\n                }\n                return result;\n            case 'm':\n                return withoutSuffix ? 'jedna minuta' : 'jedne minute';\n            case 'mm':\n                if (number === 1) {\n                    result += 'minuta';\n                } else if (number === 2 || number === 3 || number === 4) {\n                    result += 'minute';\n                } else {\n                    result += 'minuta';\n                }\n                return result;\n            case 'h':\n                return withoutSuffix ? 'jedan sat' : 'jednog sata';\n            case 'hh':\n                if (number === 1) {\n                    result += 'sat';\n                } else if (number === 2 || number === 3 || number === 4) {\n                    result += 'sata';\n                } else {\n                    result += 'sati';\n                }\n                return result;\n            case 'dd':\n                if (number === 1) {\n                    result += 'dan';\n                } else {\n                    result += 'dana';\n                }\n                return result;\n            case 'MM':\n                if (number === 1) {\n                    result += 'mjesec';\n                } else if (number === 2 || number === 3 || number === 4) {\n                    result += 'mjeseca';\n                } else {\n                    result += 'mjeseci';\n                }\n                return result;\n            case 'yy':\n                if (number === 1) {\n                    result += 'godina';\n                } else if (number === 2 || number === 3 || number === 4) {\n                    result += 'godine';\n                } else {\n                    result += 'godina';\n                }\n                return result;\n        }\n    }\n\n    var bs = moment.defineLocale('bs', {\n        months: 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split(\n            '_'\n        ),\n        monthsShort:\n            'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split(\n                '_'\n            ),\n        monthsParseExact: true,\n        weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(\n            '_'\n        ),\n        weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),\n        weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'H:mm',\n            LTS: 'H:mm:ss',\n            L: 'DD.MM.YYYY',\n            LL: 'D. MMMM YYYY',\n            LLL: 'D. MMMM YYYY H:mm',\n            LLLL: 'dddd, D. MMMM YYYY H:mm',\n        },\n        calendar: {\n            sameDay: '[danas u] LT',\n            nextDay: '[sutra u] LT',\n            nextWeek: function () {\n                switch (this.day()) {\n                    case 0:\n                        return '[u] [nedjelju] [u] LT';\n                    case 3:\n                        return '[u] [srijedu] [u] LT';\n                    case 6:\n                        return '[u] [subotu] [u] LT';\n                    case 1:\n                    case 2:\n                    case 4:\n                    case 5:\n                        return '[u] dddd [u] LT';\n                }\n            },\n            lastDay: '[jučer u] LT',\n            lastWeek: function () {\n                switch (this.day()) {\n                    case 0:\n                    case 3:\n                        return '[prošlu] dddd [u] LT';\n                    case 6:\n                        return '[prošle] [subote] [u] LT';\n                    case 1:\n                    case 2:\n                    case 4:\n                    case 5:\n                        return '[prošli] dddd [u] LT';\n                }\n            },\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'za %s',\n            past: 'prije %s',\n            s: 'par sekundi',\n            ss: translate,\n            m: translate,\n            mm: translate,\n            h: translate,\n            hh: translate,\n            d: 'dan',\n            dd: translate,\n            M: 'mjesec',\n            MM: translate,\n            y: 'godinu',\n            yy: translate,\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n        ordinal: '%d.',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 7, // The week that contains Jan 7th is the first week of the year.\n        },\n    });\n\n    return bs;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/bs.js\n// module id = 494\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Catalan [ca]\n//! author : Juan G. Hurtado : https://github.com/juanghurtado\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var ca = moment.defineLocale('ca', {\n        months: {\n            standalone:\n                'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split(\n                    '_'\n                ),\n            format: \"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre\".split(\n                '_'\n            ),\n            isFormat: /D[oD]?(\\s)+MMMM/,\n        },\n        monthsShort:\n            'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split(\n                '_'\n            ),\n        monthsParseExact: true,\n        weekdays:\n            'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split(\n                '_'\n            ),\n        weekdaysShort: 'dg._dl._dt._dc._dj._dv._ds.'.split('_'),\n        weekdaysMin: 'dg_dl_dt_dc_dj_dv_ds'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'H:mm',\n            LTS: 'H:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM [de] YYYY',\n            ll: 'D MMM YYYY',\n            LLL: 'D MMMM [de] YYYY [a les] H:mm',\n            lll: 'D MMM YYYY, H:mm',\n            LLLL: 'dddd D MMMM [de] YYYY [a les] H:mm',\n            llll: 'ddd D MMM YYYY, H:mm',\n        },\n        calendar: {\n            sameDay: function () {\n                return '[avui a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';\n            },\n            nextDay: function () {\n                return '[demà a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';\n            },\n            nextWeek: function () {\n                return 'dddd [a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';\n            },\n            lastDay: function () {\n                return '[ahir a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';\n            },\n            lastWeek: function () {\n                return (\n                    '[el] dddd [passat a ' +\n                    (this.hours() !== 1 ? 'les' : 'la') +\n                    '] LT'\n                );\n            },\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: \"d'aquí %s\",\n            past: 'fa %s',\n            s: 'uns segons',\n            ss: '%d segons',\n            m: 'un minut',\n            mm: '%d minuts',\n            h: 'una hora',\n            hh: '%d hores',\n            d: 'un dia',\n            dd: '%d dies',\n            M: 'un mes',\n            MM: '%d mesos',\n            y: 'un any',\n            yy: '%d anys',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(r|n|t|è|a)/,\n        ordinal: function (number, period) {\n            var output =\n                number === 1\n                    ? 'r'\n                    : number === 2\n                    ? 'n'\n                    : number === 3\n                    ? 'r'\n                    : number === 4\n                    ? 't'\n                    : 'è';\n            if (period === 'w' || period === 'W') {\n                output = 'a';\n            }\n            return number + output;\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return ca;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ca.js\n// module id = 495\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Czech [cs]\n//! author : petrbela : https://github.com/petrbela\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var months = {\n            format: 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split(\n                '_'\n            ),\n            standalone:\n                'ledna_února_března_dubna_května_června_července_srpna_září_října_listopadu_prosince'.split(\n                    '_'\n                ),\n        },\n        monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_'),\n        monthsParse = [\n            /^led/i,\n            /^úno/i,\n            /^bře/i,\n            /^dub/i,\n            /^kvě/i,\n            /^(čvn|červen$|června)/i,\n            /^(čvc|červenec|července)/i,\n            /^srp/i,\n            /^zář/i,\n            /^říj/i,\n            /^lis/i,\n            /^pro/i,\n        ],\n        // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.\n        // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.\n        monthsRegex =\n            /^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;\n\n    function plural(n) {\n        return n > 1 && n < 5 && ~~(n / 10) !== 1;\n    }\n    function translate(number, withoutSuffix, key, isFuture) {\n        var result = number + ' ';\n        switch (key) {\n            case 's': // a few seconds / in a few seconds / a few seconds ago\n                return withoutSuffix || isFuture ? 'pár sekund' : 'pár sekundami';\n            case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago\n                if (withoutSuffix || isFuture) {\n                    return result + (plural(number) ? 'sekundy' : 'sekund');\n                } else {\n                    return result + 'sekundami';\n                }\n            case 'm': // a minute / in a minute / a minute ago\n                return withoutSuffix ? 'minuta' : isFuture ? 'minutu' : 'minutou';\n            case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago\n                if (withoutSuffix || isFuture) {\n                    return result + (plural(number) ? 'minuty' : 'minut');\n                } else {\n                    return result + 'minutami';\n                }\n            case 'h': // an hour / in an hour / an hour ago\n                return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou';\n            case 'hh': // 9 hours / in 9 hours / 9 hours ago\n                if (withoutSuffix || isFuture) {\n                    return result + (plural(number) ? 'hodiny' : 'hodin');\n                } else {\n                    return result + 'hodinami';\n                }\n            case 'd': // a day / in a day / a day ago\n                return withoutSuffix || isFuture ? 'den' : 'dnem';\n            case 'dd': // 9 days / in 9 days / 9 days ago\n                if (withoutSuffix || isFuture) {\n                    return result + (plural(number) ? 'dny' : 'dní');\n                } else {\n                    return result + 'dny';\n                }\n            case 'M': // a month / in a month / a month ago\n                return withoutSuffix || isFuture ? 'měsíc' : 'měsícem';\n            case 'MM': // 9 months / in 9 months / 9 months ago\n                if (withoutSuffix || isFuture) {\n                    return result + (plural(number) ? 'měsíce' : 'měsíců');\n                } else {\n                    return result + 'měsíci';\n                }\n            case 'y': // a year / in a year / a year ago\n                return withoutSuffix || isFuture ? 'rok' : 'rokem';\n            case 'yy': // 9 years / in 9 years / 9 years ago\n                if (withoutSuffix || isFuture) {\n                    return result + (plural(number) ? 'roky' : 'let');\n                } else {\n                    return result + 'lety';\n                }\n        }\n    }\n\n    var cs = moment.defineLocale('cs', {\n        months: months,\n        monthsShort: monthsShort,\n        monthsRegex: monthsRegex,\n        monthsShortRegex: monthsRegex,\n        // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.\n        // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.\n        monthsStrictRegex:\n            /^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,\n        monthsShortStrictRegex:\n            /^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,\n        monthsParse: monthsParse,\n        longMonthsParse: monthsParse,\n        shortMonthsParse: monthsParse,\n        weekdays: 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'),\n        weekdaysShort: 'ne_po_út_st_čt_pá_so'.split('_'),\n        weekdaysMin: 'ne_po_út_st_čt_pá_so'.split('_'),\n        longDateFormat: {\n            LT: 'H:mm',\n            LTS: 'H:mm:ss',\n            L: 'DD.MM.YYYY',\n            LL: 'D. MMMM YYYY',\n            LLL: 'D. MMMM YYYY H:mm',\n            LLLL: 'dddd D. MMMM YYYY H:mm',\n            l: 'D. M. YYYY',\n        },\n        calendar: {\n            sameDay: '[dnes v] LT',\n            nextDay: '[zítra v] LT',\n            nextWeek: function () {\n                switch (this.day()) {\n                    case 0:\n                        return '[v neděli v] LT';\n                    case 1:\n                    case 2:\n                        return '[v] dddd [v] LT';\n                    case 3:\n                        return '[ve středu v] LT';\n                    case 4:\n                        return '[ve čtvrtek v] LT';\n                    case 5:\n                        return '[v pátek v] LT';\n                    case 6:\n                        return '[v sobotu v] LT';\n                }\n            },\n            lastDay: '[včera v] LT',\n            lastWeek: function () {\n                switch (this.day()) {\n                    case 0:\n                        return '[minulou neděli v] LT';\n                    case 1:\n                    case 2:\n                        return '[minulé] dddd [v] LT';\n                    case 3:\n                        return '[minulou středu v] LT';\n                    case 4:\n                    case 5:\n                        return '[minulý] dddd [v] LT';\n                    case 6:\n                        return '[minulou sobotu v] LT';\n                }\n            },\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'za %s',\n            past: 'před %s',\n            s: translate,\n            ss: translate,\n            m: translate,\n            mm: translate,\n            h: translate,\n            hh: translate,\n            d: translate,\n            dd: translate,\n            M: translate,\n            MM: translate,\n            y: translate,\n            yy: translate,\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n        ordinal: '%d.',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return cs;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/cs.js\n// module id = 496\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Chuvash [cv]\n//! author : Anatoly Mironov : https://github.com/mirontoli\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var cv = moment.defineLocale('cv', {\n        months: 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split(\n            '_'\n        ),\n        monthsShort: 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'),\n        weekdays:\n            'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split(\n                '_'\n            ),\n        weekdaysShort: 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'),\n        weekdaysMin: 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD-MM-YYYY',\n            LL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]',\n            LLL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',\n            LLLL: 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',\n        },\n        calendar: {\n            sameDay: '[Паян] LT [сехетре]',\n            nextDay: '[Ыран] LT [сехетре]',\n            lastDay: '[Ӗнер] LT [сехетре]',\n            nextWeek: '[Ҫитес] dddd LT [сехетре]',\n            lastWeek: '[Иртнӗ] dddd LT [сехетре]',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: function (output) {\n                var affix = /сехет$/i.exec(output)\n                    ? 'рен'\n                    : /ҫул$/i.exec(output)\n                    ? 'тан'\n                    : 'ран';\n                return output + affix;\n            },\n            past: '%s каялла',\n            s: 'пӗр-ик ҫеккунт',\n            ss: '%d ҫеккунт',\n            m: 'пӗр минут',\n            mm: '%d минут',\n            h: 'пӗр сехет',\n            hh: '%d сехет',\n            d: 'пӗр кун',\n            dd: '%d кун',\n            M: 'пӗр уйӑх',\n            MM: '%d уйӑх',\n            y: 'пӗр ҫул',\n            yy: '%d ҫул',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}-мӗш/,\n        ordinal: '%d-мӗш',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 7, // The week that contains Jan 7th is the first week of the year.\n        },\n    });\n\n    return cv;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/cv.js\n// module id = 497\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Welsh [cy]\n//! author : Robert Allen : https://github.com/robgallen\n//! author : https://github.com/ryangreaves\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var cy = moment.defineLocale('cy', {\n        months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split(\n            '_'\n        ),\n        monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split(\n            '_'\n        ),\n        weekdays:\n            'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split(\n                '_'\n            ),\n        weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'),\n        weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'),\n        weekdaysParseExact: true,\n        // time formats are the same as en-gb\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd, D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[Heddiw am] LT',\n            nextDay: '[Yfory am] LT',\n            nextWeek: 'dddd [am] LT',\n            lastDay: '[Ddoe am] LT',\n            lastWeek: 'dddd [diwethaf am] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'mewn %s',\n            past: '%s yn ôl',\n            s: 'ychydig eiliadau',\n            ss: '%d eiliad',\n            m: 'munud',\n            mm: '%d munud',\n            h: 'awr',\n            hh: '%d awr',\n            d: 'diwrnod',\n            dd: '%d diwrnod',\n            M: 'mis',\n            MM: '%d mis',\n            y: 'blwyddyn',\n            yy: '%d flynedd',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,\n        // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh\n        ordinal: function (number) {\n            var b = number,\n                output = '',\n                lookup = [\n                    '',\n                    'af',\n                    'il',\n                    'ydd',\n                    'ydd',\n                    'ed',\n                    'ed',\n                    'ed',\n                    'fed',\n                    'fed',\n                    'fed', // 1af to 10fed\n                    'eg',\n                    'fed',\n                    'eg',\n                    'eg',\n                    'fed',\n                    'eg',\n                    'eg',\n                    'fed',\n                    'eg',\n                    'fed', // 11eg to 20fed\n                ];\n            if (b > 20) {\n                if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) {\n                    output = 'fed'; // not 30ain, 70ain or 90ain\n                } else {\n                    output = 'ain';\n                }\n            } else if (b > 0) {\n                output = lookup[b];\n            }\n            return number + output;\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return cy;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/cy.js\n// module id = 498\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Danish [da]\n//! author : Ulrik Nielsen : https://github.com/mrbase\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var da = moment.defineLocale('da', {\n        months: 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split(\n            '_'\n        ),\n        monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),\n        weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),\n        weekdaysShort: 'søn_man_tir_ons_tor_fre_lør'.split('_'),\n        weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD.MM.YYYY',\n            LL: 'D. MMMM YYYY',\n            LLL: 'D. MMMM YYYY HH:mm',\n            LLLL: 'dddd [d.] D. MMMM YYYY [kl.] HH:mm',\n        },\n        calendar: {\n            sameDay: '[i dag kl.] LT',\n            nextDay: '[i morgen kl.] LT',\n            nextWeek: 'på dddd [kl.] LT',\n            lastDay: '[i går kl.] LT',\n            lastWeek: '[i] dddd[s kl.] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'om %s',\n            past: '%s siden',\n            s: 'få sekunder',\n            ss: '%d sekunder',\n            m: 'et minut',\n            mm: '%d minutter',\n            h: 'en time',\n            hh: '%d timer',\n            d: 'en dag',\n            dd: '%d dage',\n            M: 'en måned',\n            MM: '%d måneder',\n            y: 'et år',\n            yy: '%d år',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n        ordinal: '%d.',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return da;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/da.js\n// module id = 499\n// module chunks = 0","//! moment.js locale configuration\n//! locale : German (Austria) [de-at]\n//! author : lluchs : https://github.com/lluchs\n//! author: Menelion Elensúle: https://github.com/Oire\n//! author : Martin Groller : https://github.com/MadMG\n//! author : Mikolaj Dadela : https://github.com/mik01aj\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    function processRelativeTime(number, withoutSuffix, key, isFuture) {\n        var format = {\n            m: ['eine Minute', 'einer Minute'],\n            h: ['eine Stunde', 'einer Stunde'],\n            d: ['ein Tag', 'einem Tag'],\n            dd: [number + ' Tage', number + ' Tagen'],\n            w: ['eine Woche', 'einer Woche'],\n            M: ['ein Monat', 'einem Monat'],\n            MM: [number + ' Monate', number + ' Monaten'],\n            y: ['ein Jahr', 'einem Jahr'],\n            yy: [number + ' Jahre', number + ' Jahren'],\n        };\n        return withoutSuffix ? format[key][0] : format[key][1];\n    }\n\n    var deAt = moment.defineLocale('de-at', {\n        months: 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(\n            '_'\n        ),\n        monthsShort:\n            'Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),\n        monthsParseExact: true,\n        weekdays:\n            'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(\n                '_'\n            ),\n        weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),\n        weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD.MM.YYYY',\n            LL: 'D. MMMM YYYY',\n            LLL: 'D. MMMM YYYY HH:mm',\n            LLLL: 'dddd, D. MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[heute um] LT [Uhr]',\n            sameElse: 'L',\n            nextDay: '[morgen um] LT [Uhr]',\n            nextWeek: 'dddd [um] LT [Uhr]',\n            lastDay: '[gestern um] LT [Uhr]',\n            lastWeek: '[letzten] dddd [um] LT [Uhr]',\n        },\n        relativeTime: {\n            future: 'in %s',\n            past: 'vor %s',\n            s: 'ein paar Sekunden',\n            ss: '%d Sekunden',\n            m: processRelativeTime,\n            mm: '%d Minuten',\n            h: processRelativeTime,\n            hh: '%d Stunden',\n            d: processRelativeTime,\n            dd: processRelativeTime,\n            w: processRelativeTime,\n            ww: '%d Wochen',\n            M: processRelativeTime,\n            MM: processRelativeTime,\n            y: processRelativeTime,\n            yy: processRelativeTime,\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n        ordinal: '%d.',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return deAt;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/de-at.js\n// module id = 500\n// module chunks = 0","//! moment.js locale configuration\n//! locale : German (Switzerland) [de-ch]\n//! author : sschueller : https://github.com/sschueller\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    function processRelativeTime(number, withoutSuffix, key, isFuture) {\n        var format = {\n            m: ['eine Minute', 'einer Minute'],\n            h: ['eine Stunde', 'einer Stunde'],\n            d: ['ein Tag', 'einem Tag'],\n            dd: [number + ' Tage', number + ' Tagen'],\n            w: ['eine Woche', 'einer Woche'],\n            M: ['ein Monat', 'einem Monat'],\n            MM: [number + ' Monate', number + ' Monaten'],\n            y: ['ein Jahr', 'einem Jahr'],\n            yy: [number + ' Jahre', number + ' Jahren'],\n        };\n        return withoutSuffix ? format[key][0] : format[key][1];\n    }\n\n    var deCh = moment.defineLocale('de-ch', {\n        months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(\n            '_'\n        ),\n        monthsShort:\n            'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),\n        monthsParseExact: true,\n        weekdays:\n            'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(\n                '_'\n            ),\n        weekdaysShort: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),\n        weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD.MM.YYYY',\n            LL: 'D. MMMM YYYY',\n            LLL: 'D. MMMM YYYY HH:mm',\n            LLLL: 'dddd, D. MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[heute um] LT [Uhr]',\n            sameElse: 'L',\n            nextDay: '[morgen um] LT [Uhr]',\n            nextWeek: 'dddd [um] LT [Uhr]',\n            lastDay: '[gestern um] LT [Uhr]',\n            lastWeek: '[letzten] dddd [um] LT [Uhr]',\n        },\n        relativeTime: {\n            future: 'in %s',\n            past: 'vor %s',\n            s: 'ein paar Sekunden',\n            ss: '%d Sekunden',\n            m: processRelativeTime,\n            mm: '%d Minuten',\n            h: processRelativeTime,\n            hh: '%d Stunden',\n            d: processRelativeTime,\n            dd: processRelativeTime,\n            w: processRelativeTime,\n            ww: '%d Wochen',\n            M: processRelativeTime,\n            MM: processRelativeTime,\n            y: processRelativeTime,\n            yy: processRelativeTime,\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n        ordinal: '%d.',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return deCh;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/de-ch.js\n// module id = 501\n// module chunks = 0","//! moment.js locale configuration\n//! locale : German [de]\n//! author : lluchs : https://github.com/lluchs\n//! author: Menelion Elensúle: https://github.com/Oire\n//! author : Mikolaj Dadela : https://github.com/mik01aj\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    function processRelativeTime(number, withoutSuffix, key, isFuture) {\n        var format = {\n            m: ['eine Minute', 'einer Minute'],\n            h: ['eine Stunde', 'einer Stunde'],\n            d: ['ein Tag', 'einem Tag'],\n            dd: [number + ' Tage', number + ' Tagen'],\n            w: ['eine Woche', 'einer Woche'],\n            M: ['ein Monat', 'einem Monat'],\n            MM: [number + ' Monate', number + ' Monaten'],\n            y: ['ein Jahr', 'einem Jahr'],\n            yy: [number + ' Jahre', number + ' Jahren'],\n        };\n        return withoutSuffix ? format[key][0] : format[key][1];\n    }\n\n    var de = moment.defineLocale('de', {\n        months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(\n            '_'\n        ),\n        monthsShort:\n            'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),\n        monthsParseExact: true,\n        weekdays:\n            'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(\n                '_'\n            ),\n        weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),\n        weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD.MM.YYYY',\n            LL: 'D. MMMM YYYY',\n            LLL: 'D. MMMM YYYY HH:mm',\n            LLLL: 'dddd, D. MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[heute um] LT [Uhr]',\n            sameElse: 'L',\n            nextDay: '[morgen um] LT [Uhr]',\n            nextWeek: 'dddd [um] LT [Uhr]',\n            lastDay: '[gestern um] LT [Uhr]',\n            lastWeek: '[letzten] dddd [um] LT [Uhr]',\n        },\n        relativeTime: {\n            future: 'in %s',\n            past: 'vor %s',\n            s: 'ein paar Sekunden',\n            ss: '%d Sekunden',\n            m: processRelativeTime,\n            mm: '%d Minuten',\n            h: processRelativeTime,\n            hh: '%d Stunden',\n            d: processRelativeTime,\n            dd: processRelativeTime,\n            w: processRelativeTime,\n            ww: '%d Wochen',\n            M: processRelativeTime,\n            MM: processRelativeTime,\n            y: processRelativeTime,\n            yy: processRelativeTime,\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n        ordinal: '%d.',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return de;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/de.js\n// module id = 502\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Maldivian [dv]\n//! author : Jawish Hameed : https://github.com/jawish\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var months = [\n            'ޖެނުއަރީ',\n            'ފެބްރުއަރީ',\n            'މާރިޗު',\n            'އޭޕްރީލު',\n            'މޭ',\n            'ޖޫން',\n            'ޖުލައި',\n            'އޯގަސްޓު',\n            'ސެޕްޓެމްބަރު',\n            'އޮކްޓޯބަރު',\n            'ނޮވެމްބަރު',\n            'ޑިސެމްބަރު',\n        ],\n        weekdays = [\n            'އާދިއްތަ',\n            'ހޯމަ',\n            'އަންގާރަ',\n            'ބުދަ',\n            'ބުރާސްފަތި',\n            'ހުކުރު',\n            'ހޮނިހިރު',\n        ];\n\n    var dv = moment.defineLocale('dv', {\n        months: months,\n        monthsShort: months,\n        weekdays: weekdays,\n        weekdaysShort: weekdays,\n        weekdaysMin: 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'D/M/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd D MMMM YYYY HH:mm',\n        },\n        meridiemParse: /މކ|މފ/,\n        isPM: function (input) {\n            return 'މފ' === input;\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 12) {\n                return 'މކ';\n            } else {\n                return 'މފ';\n            }\n        },\n        calendar: {\n            sameDay: '[މިއަދު] LT',\n            nextDay: '[މާދަމާ] LT',\n            nextWeek: 'dddd LT',\n            lastDay: '[އިއްޔެ] LT',\n            lastWeek: '[ފާއިތުވި] dddd LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'ތެރޭގައި %s',\n            past: 'ކުރިން %s',\n            s: 'ސިކުންތުކޮޅެއް',\n            ss: 'd% ސިކުންތު',\n            m: 'މިނިޓެއް',\n            mm: 'މިނިޓު %d',\n            h: 'ގަޑިއިރެއް',\n            hh: 'ގަޑިއިރު %d',\n            d: 'ދުވަހެއް',\n            dd: 'ދުވަސް %d',\n            M: 'މަހެއް',\n            MM: 'މަސް %d',\n            y: 'އަހަރެއް',\n            yy: 'އަހަރު %d',\n        },\n        preparse: function (string) {\n            return string.replace(/،/g, ',');\n        },\n        postformat: function (string) {\n            return string.replace(/,/g, '،');\n        },\n        week: {\n            dow: 7, // Sunday is the first day of the week.\n            doy: 12, // The week that contains Jan 12th is the first week of the year.\n        },\n    });\n\n    return dv;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/dv.js\n// module id = 503\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Greek [el]\n//! author : Aggelos Karalias : https://github.com/mehiel\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    function isFunction(input) {\n        return (\n            (typeof Function !== 'undefined' && input instanceof Function) ||\n            Object.prototype.toString.call(input) === '[object Function]'\n        );\n    }\n\n    var el = moment.defineLocale('el', {\n        monthsNominativeEl:\n            'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split(\n                '_'\n            ),\n        monthsGenitiveEl:\n            'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split(\n                '_'\n            ),\n        months: function (momentToFormat, format) {\n            if (!momentToFormat) {\n                return this._monthsNominativeEl;\n            } else if (\n                typeof format === 'string' &&\n                /D/.test(format.substring(0, format.indexOf('MMMM')))\n            ) {\n                // if there is a day number before 'MMMM'\n                return this._monthsGenitiveEl[momentToFormat.month()];\n            } else {\n                return this._monthsNominativeEl[momentToFormat.month()];\n            }\n        },\n        monthsShort: 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'),\n        weekdays: 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split(\n            '_'\n        ),\n        weekdaysShort: 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'),\n        weekdaysMin: 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'),\n        meridiem: function (hours, minutes, isLower) {\n            if (hours > 11) {\n                return isLower ? 'μμ' : 'ΜΜ';\n            } else {\n                return isLower ? 'πμ' : 'ΠΜ';\n            }\n        },\n        isPM: function (input) {\n            return (input + '').toLowerCase()[0] === 'μ';\n        },\n        meridiemParse: /[ΠΜ]\\.?Μ?\\.?/i,\n        longDateFormat: {\n            LT: 'h:mm A',\n            LTS: 'h:mm:ss A',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY h:mm A',\n            LLLL: 'dddd, D MMMM YYYY h:mm A',\n        },\n        calendarEl: {\n            sameDay: '[Σήμερα {}] LT',\n            nextDay: '[Αύριο {}] LT',\n            nextWeek: 'dddd [{}] LT',\n            lastDay: '[Χθες {}] LT',\n            lastWeek: function () {\n                switch (this.day()) {\n                    case 6:\n                        return '[το προηγούμενο] dddd [{}] LT';\n                    default:\n                        return '[την προηγούμενη] dddd [{}] LT';\n                }\n            },\n            sameElse: 'L',\n        },\n        calendar: function (key, mom) {\n            var output = this._calendarEl[key],\n                hours = mom && mom.hours();\n            if (isFunction(output)) {\n                output = output.apply(mom);\n            }\n            return output.replace('{}', hours % 12 === 1 ? 'στη' : 'στις');\n        },\n        relativeTime: {\n            future: 'σε %s',\n            past: '%s πριν',\n            s: 'λίγα δευτερόλεπτα',\n            ss: '%d δευτερόλεπτα',\n            m: 'ένα λεπτό',\n            mm: '%d λεπτά',\n            h: 'μία ώρα',\n            hh: '%d ώρες',\n            d: 'μία μέρα',\n            dd: '%d μέρες',\n            M: 'ένας μήνας',\n            MM: '%d μήνες',\n            y: 'ένας χρόνος',\n            yy: '%d χρόνια',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}η/,\n        ordinal: '%dη',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4st is the first week of the year.\n        },\n    });\n\n    return el;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/el.js\n// module id = 504\n// module chunks = 0","//! moment.js locale configuration\n//! locale : English (Australia) [en-au]\n//! author : Jared Morse : https://github.com/jarcoal\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var enAu = moment.defineLocale('en-au', {\n        months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(\n            '_'\n        ),\n        monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n        weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(\n            '_'\n        ),\n        weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n        weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n        longDateFormat: {\n            LT: 'h:mm A',\n            LTS: 'h:mm:ss A',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY h:mm A',\n            LLLL: 'dddd, D MMMM YYYY h:mm A',\n        },\n        calendar: {\n            sameDay: '[Today at] LT',\n            nextDay: '[Tomorrow at] LT',\n            nextWeek: 'dddd [at] LT',\n            lastDay: '[Yesterday at] LT',\n            lastWeek: '[Last] dddd [at] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'in %s',\n            past: '%s ago',\n            s: 'a few seconds',\n            ss: '%d seconds',\n            m: 'a minute',\n            mm: '%d minutes',\n            h: 'an hour',\n            hh: '%d hours',\n            d: 'a day',\n            dd: '%d days',\n            M: 'a month',\n            MM: '%d months',\n            y: 'a year',\n            yy: '%d years',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n        ordinal: function (number) {\n            var b = number % 10,\n                output =\n                    ~~((number % 100) / 10) === 1\n                        ? 'th'\n                        : b === 1\n                        ? 'st'\n                        : b === 2\n                        ? 'nd'\n                        : b === 3\n                        ? 'rd'\n                        : 'th';\n            return number + output;\n        },\n        week: {\n            dow: 0, // Sunday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return enAu;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/en-au.js\n// module id = 505\n// module chunks = 0","//! moment.js locale configuration\n//! locale : English (Canada) [en-ca]\n//! author : Jonathan Abourbih : https://github.com/jonbca\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var enCa = moment.defineLocale('en-ca', {\n        months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(\n            '_'\n        ),\n        monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n        weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(\n            '_'\n        ),\n        weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n        weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n        longDateFormat: {\n            LT: 'h:mm A',\n            LTS: 'h:mm:ss A',\n            L: 'YYYY-MM-DD',\n            LL: 'MMMM D, YYYY',\n            LLL: 'MMMM D, YYYY h:mm A',\n            LLLL: 'dddd, MMMM D, YYYY h:mm A',\n        },\n        calendar: {\n            sameDay: '[Today at] LT',\n            nextDay: '[Tomorrow at] LT',\n            nextWeek: 'dddd [at] LT',\n            lastDay: '[Yesterday at] LT',\n            lastWeek: '[Last] dddd [at] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'in %s',\n            past: '%s ago',\n            s: 'a few seconds',\n            ss: '%d seconds',\n            m: 'a minute',\n            mm: '%d minutes',\n            h: 'an hour',\n            hh: '%d hours',\n            d: 'a day',\n            dd: '%d days',\n            M: 'a month',\n            MM: '%d months',\n            y: 'a year',\n            yy: '%d years',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n        ordinal: function (number) {\n            var b = number % 10,\n                output =\n                    ~~((number % 100) / 10) === 1\n                        ? 'th'\n                        : b === 1\n                        ? 'st'\n                        : b === 2\n                        ? 'nd'\n                        : b === 3\n                        ? 'rd'\n                        : 'th';\n            return number + output;\n        },\n    });\n\n    return enCa;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/en-ca.js\n// module id = 506\n// module chunks = 0","//! moment.js locale configuration\n//! locale : English (United Kingdom) [en-gb]\n//! author : Chris Gedrim : https://github.com/chrisgedrim\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var enGb = moment.defineLocale('en-gb', {\n        months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(\n            '_'\n        ),\n        monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n        weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(\n            '_'\n        ),\n        weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n        weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd, D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[Today at] LT',\n            nextDay: '[Tomorrow at] LT',\n            nextWeek: 'dddd [at] LT',\n            lastDay: '[Yesterday at] LT',\n            lastWeek: '[Last] dddd [at] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'in %s',\n            past: '%s ago',\n            s: 'a few seconds',\n            ss: '%d seconds',\n            m: 'a minute',\n            mm: '%d minutes',\n            h: 'an hour',\n            hh: '%d hours',\n            d: 'a day',\n            dd: '%d days',\n            M: 'a month',\n            MM: '%d months',\n            y: 'a year',\n            yy: '%d years',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n        ordinal: function (number) {\n            var b = number % 10,\n                output =\n                    ~~((number % 100) / 10) === 1\n                        ? 'th'\n                        : b === 1\n                        ? 'st'\n                        : b === 2\n                        ? 'nd'\n                        : b === 3\n                        ? 'rd'\n                        : 'th';\n            return number + output;\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return enGb;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/en-gb.js\n// module id = 507\n// module chunks = 0","//! moment.js locale configuration\n//! locale : English (Ireland) [en-ie]\n//! author : Chris Cartlidge : https://github.com/chriscartlidge\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var enIe = moment.defineLocale('en-ie', {\n        months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(\n            '_'\n        ),\n        monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n        weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(\n            '_'\n        ),\n        weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n        weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[Today at] LT',\n            nextDay: '[Tomorrow at] LT',\n            nextWeek: 'dddd [at] LT',\n            lastDay: '[Yesterday at] LT',\n            lastWeek: '[Last] dddd [at] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'in %s',\n            past: '%s ago',\n            s: 'a few seconds',\n            ss: '%d seconds',\n            m: 'a minute',\n            mm: '%d minutes',\n            h: 'an hour',\n            hh: '%d hours',\n            d: 'a day',\n            dd: '%d days',\n            M: 'a month',\n            MM: '%d months',\n            y: 'a year',\n            yy: '%d years',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n        ordinal: function (number) {\n            var b = number % 10,\n                output =\n                    ~~((number % 100) / 10) === 1\n                        ? 'th'\n                        : b === 1\n                        ? 'st'\n                        : b === 2\n                        ? 'nd'\n                        : b === 3\n                        ? 'rd'\n                        : 'th';\n            return number + output;\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return enIe;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/en-ie.js\n// module id = 508\n// module chunks = 0","//! moment.js locale configuration\n//! locale : English (Israel) [en-il]\n//! author : Chris Gedrim : https://github.com/chrisgedrim\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var enIl = moment.defineLocale('en-il', {\n        months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(\n            '_'\n        ),\n        monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n        weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(\n            '_'\n        ),\n        weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n        weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd, D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[Today at] LT',\n            nextDay: '[Tomorrow at] LT',\n            nextWeek: 'dddd [at] LT',\n            lastDay: '[Yesterday at] LT',\n            lastWeek: '[Last] dddd [at] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'in %s',\n            past: '%s ago',\n            s: 'a few seconds',\n            ss: '%d seconds',\n            m: 'a minute',\n            mm: '%d minutes',\n            h: 'an hour',\n            hh: '%d hours',\n            d: 'a day',\n            dd: '%d days',\n            M: 'a month',\n            MM: '%d months',\n            y: 'a year',\n            yy: '%d years',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n        ordinal: function (number) {\n            var b = number % 10,\n                output =\n                    ~~((number % 100) / 10) === 1\n                        ? 'th'\n                        : b === 1\n                        ? 'st'\n                        : b === 2\n                        ? 'nd'\n                        : b === 3\n                        ? 'rd'\n                        : 'th';\n            return number + output;\n        },\n    });\n\n    return enIl;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/en-il.js\n// module id = 509\n// module chunks = 0","//! moment.js locale configuration\n//! locale : English (India) [en-in]\n//! author : Jatin Agrawal : https://github.com/jatinag22\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var enIn = moment.defineLocale('en-in', {\n        months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(\n            '_'\n        ),\n        monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n        weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(\n            '_'\n        ),\n        weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n        weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n        longDateFormat: {\n            LT: 'h:mm A',\n            LTS: 'h:mm:ss A',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY h:mm A',\n            LLLL: 'dddd, D MMMM YYYY h:mm A',\n        },\n        calendar: {\n            sameDay: '[Today at] LT',\n            nextDay: '[Tomorrow at] LT',\n            nextWeek: 'dddd [at] LT',\n            lastDay: '[Yesterday at] LT',\n            lastWeek: '[Last] dddd [at] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'in %s',\n            past: '%s ago',\n            s: 'a few seconds',\n            ss: '%d seconds',\n            m: 'a minute',\n            mm: '%d minutes',\n            h: 'an hour',\n            hh: '%d hours',\n            d: 'a day',\n            dd: '%d days',\n            M: 'a month',\n            MM: '%d months',\n            y: 'a year',\n            yy: '%d years',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n        ordinal: function (number) {\n            var b = number % 10,\n                output =\n                    ~~((number % 100) / 10) === 1\n                        ? 'th'\n                        : b === 1\n                        ? 'st'\n                        : b === 2\n                        ? 'nd'\n                        : b === 3\n                        ? 'rd'\n                        : 'th';\n            return number + output;\n        },\n        week: {\n            dow: 0, // Sunday is the first day of the week.\n            doy: 6, // The week that contains Jan 1st is the first week of the year.\n        },\n    });\n\n    return enIn;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/en-in.js\n// module id = 510\n// module chunks = 0","//! moment.js locale configuration\n//! locale : English (New Zealand) [en-nz]\n//! author : Luke McGregor : https://github.com/lukemcgregor\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var enNz = moment.defineLocale('en-nz', {\n        months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(\n            '_'\n        ),\n        monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n        weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(\n            '_'\n        ),\n        weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n        weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n        longDateFormat: {\n            LT: 'h:mm A',\n            LTS: 'h:mm:ss A',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY h:mm A',\n            LLLL: 'dddd, D MMMM YYYY h:mm A',\n        },\n        calendar: {\n            sameDay: '[Today at] LT',\n            nextDay: '[Tomorrow at] LT',\n            nextWeek: 'dddd [at] LT',\n            lastDay: '[Yesterday at] LT',\n            lastWeek: '[Last] dddd [at] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'in %s',\n            past: '%s ago',\n            s: 'a few seconds',\n            ss: '%d seconds',\n            m: 'a minute',\n            mm: '%d minutes',\n            h: 'an hour',\n            hh: '%d hours',\n            d: 'a day',\n            dd: '%d days',\n            M: 'a month',\n            MM: '%d months',\n            y: 'a year',\n            yy: '%d years',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n        ordinal: function (number) {\n            var b = number % 10,\n                output =\n                    ~~((number % 100) / 10) === 1\n                        ? 'th'\n                        : b === 1\n                        ? 'st'\n                        : b === 2\n                        ? 'nd'\n                        : b === 3\n                        ? 'rd'\n                        : 'th';\n            return number + output;\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return enNz;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/en-nz.js\n// module id = 511\n// module chunks = 0","//! moment.js locale configuration\n//! locale : English (Singapore) [en-sg]\n//! author : Matthew Castrillon-Madrigal : https://github.com/techdimension\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var enSg = moment.defineLocale('en-sg', {\n        months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(\n            '_'\n        ),\n        monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n        weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(\n            '_'\n        ),\n        weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n        weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd, D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[Today at] LT',\n            nextDay: '[Tomorrow at] LT',\n            nextWeek: 'dddd [at] LT',\n            lastDay: '[Yesterday at] LT',\n            lastWeek: '[Last] dddd [at] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'in %s',\n            past: '%s ago',\n            s: 'a few seconds',\n            ss: '%d seconds',\n            m: 'a minute',\n            mm: '%d minutes',\n            h: 'an hour',\n            hh: '%d hours',\n            d: 'a day',\n            dd: '%d days',\n            M: 'a month',\n            MM: '%d months',\n            y: 'a year',\n            yy: '%d years',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n        ordinal: function (number) {\n            var b = number % 10,\n                output =\n                    ~~((number % 100) / 10) === 1\n                        ? 'th'\n                        : b === 1\n                        ? 'st'\n                        : b === 2\n                        ? 'nd'\n                        : b === 3\n                        ? 'rd'\n                        : 'th';\n            return number + output;\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return enSg;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/en-sg.js\n// module id = 512\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Esperanto [eo]\n//! author : Colin Dean : https://github.com/colindean\n//! author : Mia Nordentoft Imperatori : https://github.com/miestasmia\n//! comment : miestasmia corrected the translation by colindean\n//! comment : Vivakvo corrected the translation by colindean and miestasmia\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var eo = moment.defineLocale('eo', {\n        months: 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split(\n            '_'\n        ),\n        monthsShort: 'jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec'.split('_'),\n        weekdays: 'dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato'.split('_'),\n        weekdaysShort: 'dim_lun_mard_merk_ĵaŭ_ven_sab'.split('_'),\n        weekdaysMin: 'di_lu_ma_me_ĵa_ve_sa'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'YYYY-MM-DD',\n            LL: '[la] D[-an de] MMMM, YYYY',\n            LLL: '[la] D[-an de] MMMM, YYYY HH:mm',\n            LLLL: 'dddd[n], [la] D[-an de] MMMM, YYYY HH:mm',\n            llll: 'ddd, [la] D[-an de] MMM, YYYY HH:mm',\n        },\n        meridiemParse: /[ap]\\.t\\.m/i,\n        isPM: function (input) {\n            return input.charAt(0).toLowerCase() === 'p';\n        },\n        meridiem: function (hours, minutes, isLower) {\n            if (hours > 11) {\n                return isLower ? 'p.t.m.' : 'P.T.M.';\n            } else {\n                return isLower ? 'a.t.m.' : 'A.T.M.';\n            }\n        },\n        calendar: {\n            sameDay: '[Hodiaŭ je] LT',\n            nextDay: '[Morgaŭ je] LT',\n            nextWeek: 'dddd[n je] LT',\n            lastDay: '[Hieraŭ je] LT',\n            lastWeek: '[pasintan] dddd[n je] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'post %s',\n            past: 'antaŭ %s',\n            s: 'kelkaj sekundoj',\n            ss: '%d sekundoj',\n            m: 'unu minuto',\n            mm: '%d minutoj',\n            h: 'unu horo',\n            hh: '%d horoj',\n            d: 'unu tago', //ne 'diurno', ĉar estas uzita por proksimumo\n            dd: '%d tagoj',\n            M: 'unu monato',\n            MM: '%d monatoj',\n            y: 'unu jaro',\n            yy: '%d jaroj',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}a/,\n        ordinal: '%da',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 7, // The week that contains Jan 7th is the first week of the year.\n        },\n    });\n\n    return eo;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/eo.js\n// module id = 513\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Spanish (Dominican Republic) [es-do]\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var monthsShortDot =\n            'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(\n                '_'\n            ),\n        monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),\n        monthsParse = [\n            /^ene/i,\n            /^feb/i,\n            /^mar/i,\n            /^abr/i,\n            /^may/i,\n            /^jun/i,\n            /^jul/i,\n            /^ago/i,\n            /^sep/i,\n            /^oct/i,\n            /^nov/i,\n            /^dic/i,\n        ],\n        monthsRegex =\n            /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\\.?|feb\\.?|mar\\.?|abr\\.?|may\\.?|jun\\.?|jul\\.?|ago\\.?|sep\\.?|oct\\.?|nov\\.?|dic\\.?)/i;\n\n    var esDo = moment.defineLocale('es-do', {\n        months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(\n            '_'\n        ),\n        monthsShort: function (m, format) {\n            if (!m) {\n                return monthsShortDot;\n            } else if (/-MMM-/.test(format)) {\n                return monthsShort[m.month()];\n            } else {\n                return monthsShortDot[m.month()];\n            }\n        },\n        monthsRegex: monthsRegex,\n        monthsShortRegex: monthsRegex,\n        monthsStrictRegex:\n            /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,\n        monthsShortStrictRegex:\n            /^(ene\\.?|feb\\.?|mar\\.?|abr\\.?|may\\.?|jun\\.?|jul\\.?|ago\\.?|sep\\.?|oct\\.?|nov\\.?|dic\\.?)/i,\n        monthsParse: monthsParse,\n        longMonthsParse: monthsParse,\n        shortMonthsParse: monthsParse,\n        weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),\n        weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),\n        weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'h:mm A',\n            LTS: 'h:mm:ss A',\n            L: 'DD/MM/YYYY',\n            LL: 'D [de] MMMM [de] YYYY',\n            LLL: 'D [de] MMMM [de] YYYY h:mm A',\n            LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A',\n        },\n        calendar: {\n            sameDay: function () {\n                return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n            },\n            nextDay: function () {\n                return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n            },\n            nextWeek: function () {\n                return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n            },\n            lastDay: function () {\n                return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n            },\n            lastWeek: function () {\n                return (\n                    '[el] dddd [pasado a la' +\n                    (this.hours() !== 1 ? 's' : '') +\n                    '] LT'\n                );\n            },\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'en %s',\n            past: 'hace %s',\n            s: 'unos segundos',\n            ss: '%d segundos',\n            m: 'un minuto',\n            mm: '%d minutos',\n            h: 'una hora',\n            hh: '%d horas',\n            d: 'un día',\n            dd: '%d días',\n            w: 'una semana',\n            ww: '%d semanas',\n            M: 'un mes',\n            MM: '%d meses',\n            y: 'un año',\n            yy: '%d años',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}º/,\n        ordinal: '%dº',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return esDo;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/es-do.js\n// module id = 514\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Spanish (Mexico) [es-mx]\n//! author : JC Franco : https://github.com/jcfranco\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var monthsShortDot =\n            'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(\n                '_'\n            ),\n        monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),\n        monthsParse = [\n            /^ene/i,\n            /^feb/i,\n            /^mar/i,\n            /^abr/i,\n            /^may/i,\n            /^jun/i,\n            /^jul/i,\n            /^ago/i,\n            /^sep/i,\n            /^oct/i,\n            /^nov/i,\n            /^dic/i,\n        ],\n        monthsRegex =\n            /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\\.?|feb\\.?|mar\\.?|abr\\.?|may\\.?|jun\\.?|jul\\.?|ago\\.?|sep\\.?|oct\\.?|nov\\.?|dic\\.?)/i;\n\n    var esMx = moment.defineLocale('es-mx', {\n        months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(\n            '_'\n        ),\n        monthsShort: function (m, format) {\n            if (!m) {\n                return monthsShortDot;\n            } else if (/-MMM-/.test(format)) {\n                return monthsShort[m.month()];\n            } else {\n                return monthsShortDot[m.month()];\n            }\n        },\n        monthsRegex: monthsRegex,\n        monthsShortRegex: monthsRegex,\n        monthsStrictRegex:\n            /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,\n        monthsShortStrictRegex:\n            /^(ene\\.?|feb\\.?|mar\\.?|abr\\.?|may\\.?|jun\\.?|jul\\.?|ago\\.?|sep\\.?|oct\\.?|nov\\.?|dic\\.?)/i,\n        monthsParse: monthsParse,\n        longMonthsParse: monthsParse,\n        shortMonthsParse: monthsParse,\n        weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),\n        weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),\n        weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'H:mm',\n            LTS: 'H:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D [de] MMMM [de] YYYY',\n            LLL: 'D [de] MMMM [de] YYYY H:mm',\n            LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm',\n        },\n        calendar: {\n            sameDay: function () {\n                return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n            },\n            nextDay: function () {\n                return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n            },\n            nextWeek: function () {\n                return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n            },\n            lastDay: function () {\n                return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n            },\n            lastWeek: function () {\n                return (\n                    '[el] dddd [pasado a la' +\n                    (this.hours() !== 1 ? 's' : '') +\n                    '] LT'\n                );\n            },\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'en %s',\n            past: 'hace %s',\n            s: 'unos segundos',\n            ss: '%d segundos',\n            m: 'un minuto',\n            mm: '%d minutos',\n            h: 'una hora',\n            hh: '%d horas',\n            d: 'un día',\n            dd: '%d días',\n            w: 'una semana',\n            ww: '%d semanas',\n            M: 'un mes',\n            MM: '%d meses',\n            y: 'un año',\n            yy: '%d años',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}º/,\n        ordinal: '%dº',\n        week: {\n            dow: 0, // Sunday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n        invalidDate: 'Fecha inválida',\n    });\n\n    return esMx;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/es-mx.js\n// module id = 515\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Spanish (United States) [es-us]\n//! author : bustta : https://github.com/bustta\n//! author : chrisrodz : https://github.com/chrisrodz\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var monthsShortDot =\n            'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(\n                '_'\n            ),\n        monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),\n        monthsParse = [\n            /^ene/i,\n            /^feb/i,\n            /^mar/i,\n            /^abr/i,\n            /^may/i,\n            /^jun/i,\n            /^jul/i,\n            /^ago/i,\n            /^sep/i,\n            /^oct/i,\n            /^nov/i,\n            /^dic/i,\n        ],\n        monthsRegex =\n            /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\\.?|feb\\.?|mar\\.?|abr\\.?|may\\.?|jun\\.?|jul\\.?|ago\\.?|sep\\.?|oct\\.?|nov\\.?|dic\\.?)/i;\n\n    var esUs = moment.defineLocale('es-us', {\n        months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(\n            '_'\n        ),\n        monthsShort: function (m, format) {\n            if (!m) {\n                return monthsShortDot;\n            } else if (/-MMM-/.test(format)) {\n                return monthsShort[m.month()];\n            } else {\n                return monthsShortDot[m.month()];\n            }\n        },\n        monthsRegex: monthsRegex,\n        monthsShortRegex: monthsRegex,\n        monthsStrictRegex:\n            /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,\n        monthsShortStrictRegex:\n            /^(ene\\.?|feb\\.?|mar\\.?|abr\\.?|may\\.?|jun\\.?|jul\\.?|ago\\.?|sep\\.?|oct\\.?|nov\\.?|dic\\.?)/i,\n        monthsParse: monthsParse,\n        longMonthsParse: monthsParse,\n        shortMonthsParse: monthsParse,\n        weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),\n        weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),\n        weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'h:mm A',\n            LTS: 'h:mm:ss A',\n            L: 'MM/DD/YYYY',\n            LL: 'D [de] MMMM [de] YYYY',\n            LLL: 'D [de] MMMM [de] YYYY h:mm A',\n            LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A',\n        },\n        calendar: {\n            sameDay: function () {\n                return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n            },\n            nextDay: function () {\n                return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n            },\n            nextWeek: function () {\n                return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n            },\n            lastDay: function () {\n                return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n            },\n            lastWeek: function () {\n                return (\n                    '[el] dddd [pasado a la' +\n                    (this.hours() !== 1 ? 's' : '') +\n                    '] LT'\n                );\n            },\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'en %s',\n            past: 'hace %s',\n            s: 'unos segundos',\n            ss: '%d segundos',\n            m: 'un minuto',\n            mm: '%d minutos',\n            h: 'una hora',\n            hh: '%d horas',\n            d: 'un día',\n            dd: '%d días',\n            w: 'una semana',\n            ww: '%d semanas',\n            M: 'un mes',\n            MM: '%d meses',\n            y: 'un año',\n            yy: '%d años',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}º/,\n        ordinal: '%dº',\n        week: {\n            dow: 0, // Sunday is the first day of the week.\n            doy: 6, // The week that contains Jan 6th is the first week of the year.\n        },\n    });\n\n    return esUs;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/es-us.js\n// module id = 516\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Spanish [es]\n//! author : Julio Napurí : https://github.com/julionc\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var monthsShortDot =\n            'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(\n                '_'\n            ),\n        monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),\n        monthsParse = [\n            /^ene/i,\n            /^feb/i,\n            /^mar/i,\n            /^abr/i,\n            /^may/i,\n            /^jun/i,\n            /^jul/i,\n            /^ago/i,\n            /^sep/i,\n            /^oct/i,\n            /^nov/i,\n            /^dic/i,\n        ],\n        monthsRegex =\n            /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\\.?|feb\\.?|mar\\.?|abr\\.?|may\\.?|jun\\.?|jul\\.?|ago\\.?|sep\\.?|oct\\.?|nov\\.?|dic\\.?)/i;\n\n    var es = moment.defineLocale('es', {\n        months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(\n            '_'\n        ),\n        monthsShort: function (m, format) {\n            if (!m) {\n                return monthsShortDot;\n            } else if (/-MMM-/.test(format)) {\n                return monthsShort[m.month()];\n            } else {\n                return monthsShortDot[m.month()];\n            }\n        },\n        monthsRegex: monthsRegex,\n        monthsShortRegex: monthsRegex,\n        monthsStrictRegex:\n            /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,\n        monthsShortStrictRegex:\n            /^(ene\\.?|feb\\.?|mar\\.?|abr\\.?|may\\.?|jun\\.?|jul\\.?|ago\\.?|sep\\.?|oct\\.?|nov\\.?|dic\\.?)/i,\n        monthsParse: monthsParse,\n        longMonthsParse: monthsParse,\n        shortMonthsParse: monthsParse,\n        weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),\n        weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),\n        weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'H:mm',\n            LTS: 'H:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D [de] MMMM [de] YYYY',\n            LLL: 'D [de] MMMM [de] YYYY H:mm',\n            LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm',\n        },\n        calendar: {\n            sameDay: function () {\n                return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n            },\n            nextDay: function () {\n                return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n            },\n            nextWeek: function () {\n                return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n            },\n            lastDay: function () {\n                return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n            },\n            lastWeek: function () {\n                return (\n                    '[el] dddd [pasado a la' +\n                    (this.hours() !== 1 ? 's' : '') +\n                    '] LT'\n                );\n            },\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'en %s',\n            past: 'hace %s',\n            s: 'unos segundos',\n            ss: '%d segundos',\n            m: 'un minuto',\n            mm: '%d minutos',\n            h: 'una hora',\n            hh: '%d horas',\n            d: 'un día',\n            dd: '%d días',\n            w: 'una semana',\n            ww: '%d semanas',\n            M: 'un mes',\n            MM: '%d meses',\n            y: 'un año',\n            yy: '%d años',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}º/,\n        ordinal: '%dº',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n        invalidDate: 'Fecha inválida',\n    });\n\n    return es;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/es.js\n// module id = 517\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Estonian [et]\n//! author : Henry Kehlmann : https://github.com/madhenry\n//! improvements : Illimar Tambek : https://github.com/ragulka\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    function processRelativeTime(number, withoutSuffix, key, isFuture) {\n        var format = {\n            s: ['mõne sekundi', 'mõni sekund', 'paar sekundit'],\n            ss: [number + 'sekundi', number + 'sekundit'],\n            m: ['ühe minuti', 'üks minut'],\n            mm: [number + ' minuti', number + ' minutit'],\n            h: ['ühe tunni', 'tund aega', 'üks tund'],\n            hh: [number + ' tunni', number + ' tundi'],\n            d: ['ühe päeva', 'üks päev'],\n            M: ['kuu aja', 'kuu aega', 'üks kuu'],\n            MM: [number + ' kuu', number + ' kuud'],\n            y: ['ühe aasta', 'aasta', 'üks aasta'],\n            yy: [number + ' aasta', number + ' aastat'],\n        };\n        if (withoutSuffix) {\n            return format[key][2] ? format[key][2] : format[key][1];\n        }\n        return isFuture ? format[key][0] : format[key][1];\n    }\n\n    var et = moment.defineLocale('et', {\n        months: 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split(\n            '_'\n        ),\n        monthsShort:\n            'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split('_'),\n        weekdays:\n            'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split(\n                '_'\n            ),\n        weekdaysShort: 'P_E_T_K_N_R_L'.split('_'),\n        weekdaysMin: 'P_E_T_K_N_R_L'.split('_'),\n        longDateFormat: {\n            LT: 'H:mm',\n            LTS: 'H:mm:ss',\n            L: 'DD.MM.YYYY',\n            LL: 'D. MMMM YYYY',\n            LLL: 'D. MMMM YYYY H:mm',\n            LLLL: 'dddd, D. MMMM YYYY H:mm',\n        },\n        calendar: {\n            sameDay: '[Täna,] LT',\n            nextDay: '[Homme,] LT',\n            nextWeek: '[Järgmine] dddd LT',\n            lastDay: '[Eile,] LT',\n            lastWeek: '[Eelmine] dddd LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s pärast',\n            past: '%s tagasi',\n            s: processRelativeTime,\n            ss: processRelativeTime,\n            m: processRelativeTime,\n            mm: processRelativeTime,\n            h: processRelativeTime,\n            hh: processRelativeTime,\n            d: processRelativeTime,\n            dd: '%d päeva',\n            M: processRelativeTime,\n            MM: processRelativeTime,\n            y: processRelativeTime,\n            yy: processRelativeTime,\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n        ordinal: '%d.',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return et;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/et.js\n// module id = 518\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Basque [eu]\n//! author : Eneko Illarramendi : https://github.com/eillarra\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var eu = moment.defineLocale('eu', {\n        months: 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split(\n            '_'\n        ),\n        monthsShort:\n            'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split(\n                '_'\n            ),\n        monthsParseExact: true,\n        weekdays:\n            'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split(\n                '_'\n            ),\n        weekdaysShort: 'ig._al._ar._az._og._ol._lr.'.split('_'),\n        weekdaysMin: 'ig_al_ar_az_og_ol_lr'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'YYYY-MM-DD',\n            LL: 'YYYY[ko] MMMM[ren] D[a]',\n            LLL: 'YYYY[ko] MMMM[ren] D[a] HH:mm',\n            LLLL: 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm',\n            l: 'YYYY-M-D',\n            ll: 'YYYY[ko] MMM D[a]',\n            lll: 'YYYY[ko] MMM D[a] HH:mm',\n            llll: 'ddd, YYYY[ko] MMM D[a] HH:mm',\n        },\n        calendar: {\n            sameDay: '[gaur] LT[etan]',\n            nextDay: '[bihar] LT[etan]',\n            nextWeek: 'dddd LT[etan]',\n            lastDay: '[atzo] LT[etan]',\n            lastWeek: '[aurreko] dddd LT[etan]',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s barru',\n            past: 'duela %s',\n            s: 'segundo batzuk',\n            ss: '%d segundo',\n            m: 'minutu bat',\n            mm: '%d minutu',\n            h: 'ordu bat',\n            hh: '%d ordu',\n            d: 'egun bat',\n            dd: '%d egun',\n            M: 'hilabete bat',\n            MM: '%d hilabete',\n            y: 'urte bat',\n            yy: '%d urte',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n        ordinal: '%d.',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 7, // The week that contains Jan 7th is the first week of the year.\n        },\n    });\n\n    return eu;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/eu.js\n// module id = 519\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Persian [fa]\n//! author : Ebrahim Byagowi : https://github.com/ebraminio\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var symbolMap = {\n            1: '۱',\n            2: '۲',\n            3: '۳',\n            4: '۴',\n            5: '۵',\n            6: '۶',\n            7: '۷',\n            8: '۸',\n            9: '۹',\n            0: '۰',\n        },\n        numberMap = {\n            '۱': '1',\n            '۲': '2',\n            '۳': '3',\n            '۴': '4',\n            '۵': '5',\n            '۶': '6',\n            '۷': '7',\n            '۸': '8',\n            '۹': '9',\n            '۰': '0',\n        };\n\n    var fa = moment.defineLocale('fa', {\n        months: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split(\n            '_'\n        ),\n        monthsShort:\n            'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split(\n                '_'\n            ),\n        weekdays:\n            'یک\\u200cشنبه_دوشنبه_سه\\u200cشنبه_چهارشنبه_پنج\\u200cشنبه_جمعه_شنبه'.split(\n                '_'\n            ),\n        weekdaysShort:\n            'یک\\u200cشنبه_دوشنبه_سه\\u200cشنبه_چهارشنبه_پنج\\u200cشنبه_جمعه_شنبه'.split(\n                '_'\n            ),\n        weekdaysMin: 'ی_د_س_چ_پ_ج_ش'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd, D MMMM YYYY HH:mm',\n        },\n        meridiemParse: /قبل از ظهر|بعد از ظهر/,\n        isPM: function (input) {\n            return /بعد از ظهر/.test(input);\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 12) {\n                return 'قبل از ظهر';\n            } else {\n                return 'بعد از ظهر';\n            }\n        },\n        calendar: {\n            sameDay: '[امروز ساعت] LT',\n            nextDay: '[فردا ساعت] LT',\n            nextWeek: 'dddd [ساعت] LT',\n            lastDay: '[دیروز ساعت] LT',\n            lastWeek: 'dddd [پیش] [ساعت] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'در %s',\n            past: '%s پیش',\n            s: 'چند ثانیه',\n            ss: '%d ثانیه',\n            m: 'یک دقیقه',\n            mm: '%d دقیقه',\n            h: 'یک ساعت',\n            hh: '%d ساعت',\n            d: 'یک روز',\n            dd: '%d روز',\n            M: 'یک ماه',\n            MM: '%d ماه',\n            y: 'یک سال',\n            yy: '%d سال',\n        },\n        preparse: function (string) {\n            return string\n                .replace(/[۰-۹]/g, function (match) {\n                    return numberMap[match];\n                })\n                .replace(/،/g, ',');\n        },\n        postformat: function (string) {\n            return string\n                .replace(/\\d/g, function (match) {\n                    return symbolMap[match];\n                })\n                .replace(/,/g, '،');\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}م/,\n        ordinal: '%dم',\n        week: {\n            dow: 6, // Saturday is the first day of the week.\n            doy: 12, // The week that contains Jan 12th is the first week of the year.\n        },\n    });\n\n    return fa;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/fa.js\n// module id = 520\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Finnish [fi]\n//! author : Tarmo Aidantausta : https://github.com/bleadof\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var numbersPast =\n            'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(\n                ' '\n            ),\n        numbersFuture = [\n            'nolla',\n            'yhden',\n            'kahden',\n            'kolmen',\n            'neljän',\n            'viiden',\n            'kuuden',\n            numbersPast[7],\n            numbersPast[8],\n            numbersPast[9],\n        ];\n    function translate(number, withoutSuffix, key, isFuture) {\n        var result = '';\n        switch (key) {\n            case 's':\n                return isFuture ? 'muutaman sekunnin' : 'muutama sekunti';\n            case 'ss':\n                result = isFuture ? 'sekunnin' : 'sekuntia';\n                break;\n            case 'm':\n                return isFuture ? 'minuutin' : 'minuutti';\n            case 'mm':\n                result = isFuture ? 'minuutin' : 'minuuttia';\n                break;\n            case 'h':\n                return isFuture ? 'tunnin' : 'tunti';\n            case 'hh':\n                result = isFuture ? 'tunnin' : 'tuntia';\n                break;\n            case 'd':\n                return isFuture ? 'päivän' : 'päivä';\n            case 'dd':\n                result = isFuture ? 'päivän' : 'päivää';\n                break;\n            case 'M':\n                return isFuture ? 'kuukauden' : 'kuukausi';\n            case 'MM':\n                result = isFuture ? 'kuukauden' : 'kuukautta';\n                break;\n            case 'y':\n                return isFuture ? 'vuoden' : 'vuosi';\n            case 'yy':\n                result = isFuture ? 'vuoden' : 'vuotta';\n                break;\n        }\n        result = verbalNumber(number, isFuture) + ' ' + result;\n        return result;\n    }\n    function verbalNumber(number, isFuture) {\n        return number < 10\n            ? isFuture\n                ? numbersFuture[number]\n                : numbersPast[number]\n            : number;\n    }\n\n    var fi = moment.defineLocale('fi', {\n        months: 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split(\n            '_'\n        ),\n        monthsShort:\n            'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split(\n                '_'\n            ),\n        weekdays:\n            'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split(\n                '_'\n            ),\n        weekdaysShort: 'su_ma_ti_ke_to_pe_la'.split('_'),\n        weekdaysMin: 'su_ma_ti_ke_to_pe_la'.split('_'),\n        longDateFormat: {\n            LT: 'HH.mm',\n            LTS: 'HH.mm.ss',\n            L: 'DD.MM.YYYY',\n            LL: 'Do MMMM[ta] YYYY',\n            LLL: 'Do MMMM[ta] YYYY, [klo] HH.mm',\n            LLLL: 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm',\n            l: 'D.M.YYYY',\n            ll: 'Do MMM YYYY',\n            lll: 'Do MMM YYYY, [klo] HH.mm',\n            llll: 'ddd, Do MMM YYYY, [klo] HH.mm',\n        },\n        calendar: {\n            sameDay: '[tänään] [klo] LT',\n            nextDay: '[huomenna] [klo] LT',\n            nextWeek: 'dddd [klo] LT',\n            lastDay: '[eilen] [klo] LT',\n            lastWeek: '[viime] dddd[na] [klo] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s päästä',\n            past: '%s sitten',\n            s: translate,\n            ss: translate,\n            m: translate,\n            mm: translate,\n            h: translate,\n            hh: translate,\n            d: translate,\n            dd: translate,\n            M: translate,\n            MM: translate,\n            y: translate,\n            yy: translate,\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n        ordinal: '%d.',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return fi;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/fi.js\n// module id = 521\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Filipino [fil]\n//! author : Dan Hagman : https://github.com/hagmandan\n//! author : Matthew Co : https://github.com/matthewdeeco\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var fil = moment.defineLocale('fil', {\n        months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split(\n            '_'\n        ),\n        monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),\n        weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split(\n            '_'\n        ),\n        weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),\n        weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'MM/D/YYYY',\n            LL: 'MMMM D, YYYY',\n            LLL: 'MMMM D, YYYY HH:mm',\n            LLLL: 'dddd, MMMM DD, YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: 'LT [ngayong araw]',\n            nextDay: '[Bukas ng] LT',\n            nextWeek: 'LT [sa susunod na] dddd',\n            lastDay: 'LT [kahapon]',\n            lastWeek: 'LT [noong nakaraang] dddd',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'sa loob ng %s',\n            past: '%s ang nakalipas',\n            s: 'ilang segundo',\n            ss: '%d segundo',\n            m: 'isang minuto',\n            mm: '%d minuto',\n            h: 'isang oras',\n            hh: '%d oras',\n            d: 'isang araw',\n            dd: '%d araw',\n            M: 'isang buwan',\n            MM: '%d buwan',\n            y: 'isang taon',\n            yy: '%d taon',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}/,\n        ordinal: function (number) {\n            return number;\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return fil;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/fil.js\n// module id = 522\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Faroese [fo]\n//! author : Ragnar Johannesen : https://github.com/ragnar123\n//! author : Kristian Sakarisson : https://github.com/sakarisson\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var fo = moment.defineLocale('fo', {\n        months: 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split(\n            '_'\n        ),\n        monthsShort: 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),\n        weekdays:\n            'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split(\n                '_'\n            ),\n        weekdaysShort: 'sun_mán_týs_mik_hós_frí_ley'.split('_'),\n        weekdaysMin: 'su_má_tý_mi_hó_fr_le'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd D. MMMM, YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[Í dag kl.] LT',\n            nextDay: '[Í morgin kl.] LT',\n            nextWeek: 'dddd [kl.] LT',\n            lastDay: '[Í gjár kl.] LT',\n            lastWeek: '[síðstu] dddd [kl] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'um %s',\n            past: '%s síðani',\n            s: 'fá sekund',\n            ss: '%d sekundir',\n            m: 'ein minuttur',\n            mm: '%d minuttir',\n            h: 'ein tími',\n            hh: '%d tímar',\n            d: 'ein dagur',\n            dd: '%d dagar',\n            M: 'ein mánaður',\n            MM: '%d mánaðir',\n            y: 'eitt ár',\n            yy: '%d ár',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n        ordinal: '%d.',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return fo;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/fo.js\n// module id = 523\n// module chunks = 0","//! moment.js locale configuration\n//! locale : French (Canada) [fr-ca]\n//! author : Jonathan Abourbih : https://github.com/jonbca\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var frCa = moment.defineLocale('fr-ca', {\n        months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(\n            '_'\n        ),\n        monthsShort:\n            'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(\n                '_'\n            ),\n        monthsParseExact: true,\n        weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),\n        weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),\n        weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'YYYY-MM-DD',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[Aujourd’hui à] LT',\n            nextDay: '[Demain à] LT',\n            nextWeek: 'dddd [à] LT',\n            lastDay: '[Hier à] LT',\n            lastWeek: 'dddd [dernier à] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'dans %s',\n            past: 'il y a %s',\n            s: 'quelques secondes',\n            ss: '%d secondes',\n            m: 'une minute',\n            mm: '%d minutes',\n            h: 'une heure',\n            hh: '%d heures',\n            d: 'un jour',\n            dd: '%d jours',\n            M: 'un mois',\n            MM: '%d mois',\n            y: 'un an',\n            yy: '%d ans',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(er|e)/,\n        ordinal: function (number, period) {\n            switch (period) {\n                // Words with masculine grammatical gender: mois, trimestre, jour\n                default:\n                case 'M':\n                case 'Q':\n                case 'D':\n                case 'DDD':\n                case 'd':\n                    return number + (number === 1 ? 'er' : 'e');\n\n                // Words with feminine grammatical gender: semaine\n                case 'w':\n                case 'W':\n                    return number + (number === 1 ? 're' : 'e');\n            }\n        },\n    });\n\n    return frCa;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/fr-ca.js\n// module id = 524\n// module chunks = 0","//! moment.js locale configuration\n//! locale : French (Switzerland) [fr-ch]\n//! author : Gaspard Bucher : https://github.com/gaspard\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var frCh = moment.defineLocale('fr-ch', {\n        months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(\n            '_'\n        ),\n        monthsShort:\n            'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(\n                '_'\n            ),\n        monthsParseExact: true,\n        weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),\n        weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),\n        weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD.MM.YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[Aujourd’hui à] LT',\n            nextDay: '[Demain à] LT',\n            nextWeek: 'dddd [à] LT',\n            lastDay: '[Hier à] LT',\n            lastWeek: 'dddd [dernier à] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'dans %s',\n            past: 'il y a %s',\n            s: 'quelques secondes',\n            ss: '%d secondes',\n            m: 'une minute',\n            mm: '%d minutes',\n            h: 'une heure',\n            hh: '%d heures',\n            d: 'un jour',\n            dd: '%d jours',\n            M: 'un mois',\n            MM: '%d mois',\n            y: 'un an',\n            yy: '%d ans',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(er|e)/,\n        ordinal: function (number, period) {\n            switch (period) {\n                // Words with masculine grammatical gender: mois, trimestre, jour\n                default:\n                case 'M':\n                case 'Q':\n                case 'D':\n                case 'DDD':\n                case 'd':\n                    return number + (number === 1 ? 'er' : 'e');\n\n                // Words with feminine grammatical gender: semaine\n                case 'w':\n                case 'W':\n                    return number + (number === 1 ? 're' : 'e');\n            }\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return frCh;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/fr-ch.js\n// module id = 525\n// module chunks = 0","//! moment.js locale configuration\n//! locale : French [fr]\n//! author : John Fischer : https://github.com/jfroffice\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var monthsStrictRegex =\n            /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,\n        monthsShortStrictRegex =\n            /(janv\\.?|févr\\.?|mars|avr\\.?|mai|juin|juil\\.?|août|sept\\.?|oct\\.?|nov\\.?|déc\\.?)/i,\n        monthsRegex =\n            /(janv\\.?|févr\\.?|mars|avr\\.?|mai|juin|juil\\.?|août|sept\\.?|oct\\.?|nov\\.?|déc\\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,\n        monthsParse = [\n            /^janv/i,\n            /^févr/i,\n            /^mars/i,\n            /^avr/i,\n            /^mai/i,\n            /^juin/i,\n            /^juil/i,\n            /^août/i,\n            /^sept/i,\n            /^oct/i,\n            /^nov/i,\n            /^déc/i,\n        ];\n\n    var fr = moment.defineLocale('fr', {\n        months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(\n            '_'\n        ),\n        monthsShort:\n            'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(\n                '_'\n            ),\n        monthsRegex: monthsRegex,\n        monthsShortRegex: monthsRegex,\n        monthsStrictRegex: monthsStrictRegex,\n        monthsShortStrictRegex: monthsShortStrictRegex,\n        monthsParse: monthsParse,\n        longMonthsParse: monthsParse,\n        shortMonthsParse: monthsParse,\n        weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),\n        weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),\n        weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[Aujourd’hui à] LT',\n            nextDay: '[Demain à] LT',\n            nextWeek: 'dddd [à] LT',\n            lastDay: '[Hier à] LT',\n            lastWeek: 'dddd [dernier à] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'dans %s',\n            past: 'il y a %s',\n            s: 'quelques secondes',\n            ss: '%d secondes',\n            m: 'une minute',\n            mm: '%d minutes',\n            h: 'une heure',\n            hh: '%d heures',\n            d: 'un jour',\n            dd: '%d jours',\n            w: 'une semaine',\n            ww: '%d semaines',\n            M: 'un mois',\n            MM: '%d mois',\n            y: 'un an',\n            yy: '%d ans',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(er|)/,\n        ordinal: function (number, period) {\n            switch (period) {\n                // TODO: Return 'e' when day of month > 1. Move this case inside\n                // block for masculine words below.\n                // See https://github.com/moment/moment/issues/3375\n                case 'D':\n                    return number + (number === 1 ? 'er' : '');\n\n                // Words with masculine grammatical gender: mois, trimestre, jour\n                default:\n                case 'M':\n                case 'Q':\n                case 'DDD':\n                case 'd':\n                    return number + (number === 1 ? 'er' : 'e');\n\n                // Words with feminine grammatical gender: semaine\n                case 'w':\n                case 'W':\n                    return number + (number === 1 ? 're' : 'e');\n            }\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return fr;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/fr.js\n// module id = 526\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Frisian [fy]\n//! author : Robin van der Vliet : https://github.com/robin0van0der0v\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var monthsShortWithDots =\n            'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split('_'),\n        monthsShortWithoutDots =\n            'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_');\n\n    var fy = moment.defineLocale('fy', {\n        months: 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split(\n            '_'\n        ),\n        monthsShort: function (m, format) {\n            if (!m) {\n                return monthsShortWithDots;\n            } else if (/-MMM-/.test(format)) {\n                return monthsShortWithoutDots[m.month()];\n            } else {\n                return monthsShortWithDots[m.month()];\n            }\n        },\n        monthsParseExact: true,\n        weekdays: 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split(\n            '_'\n        ),\n        weekdaysShort: 'si._mo._ti._wo._to._fr._so.'.split('_'),\n        weekdaysMin: 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD-MM-YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[hjoed om] LT',\n            nextDay: '[moarn om] LT',\n            nextWeek: 'dddd [om] LT',\n            lastDay: '[juster om] LT',\n            lastWeek: '[ôfrûne] dddd [om] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'oer %s',\n            past: '%s lyn',\n            s: 'in pear sekonden',\n            ss: '%d sekonden',\n            m: 'ien minút',\n            mm: '%d minuten',\n            h: 'ien oere',\n            hh: '%d oeren',\n            d: 'ien dei',\n            dd: '%d dagen',\n            M: 'ien moanne',\n            MM: '%d moannen',\n            y: 'ien jier',\n            yy: '%d jierren',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(ste|de)/,\n        ordinal: function (number) {\n            return (\n                number +\n                (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')\n            );\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return fy;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/fy.js\n// module id = 527\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Irish or Irish Gaelic [ga]\n//! author : André Silva : https://github.com/askpt\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var months = [\n            'Eanáir',\n            'Feabhra',\n            'Márta',\n            'Aibreán',\n            'Bealtaine',\n            'Meitheamh',\n            'Iúil',\n            'Lúnasa',\n            'Meán Fómhair',\n            'Deireadh Fómhair',\n            'Samhain',\n            'Nollaig',\n        ],\n        monthsShort = [\n            'Ean',\n            'Feabh',\n            'Márt',\n            'Aib',\n            'Beal',\n            'Meith',\n            'Iúil',\n            'Lún',\n            'M.F.',\n            'D.F.',\n            'Samh',\n            'Noll',\n        ],\n        weekdays = [\n            'Dé Domhnaigh',\n            'Dé Luain',\n            'Dé Máirt',\n            'Dé Céadaoin',\n            'Déardaoin',\n            'Dé hAoine',\n            'Dé Sathairn',\n        ],\n        weekdaysShort = ['Domh', 'Luan', 'Máirt', 'Céad', 'Déar', 'Aoine', 'Sath'],\n        weekdaysMin = ['Do', 'Lu', 'Má', 'Cé', 'Dé', 'A', 'Sa'];\n\n    var ga = moment.defineLocale('ga', {\n        months: months,\n        monthsShort: monthsShort,\n        monthsParseExact: true,\n        weekdays: weekdays,\n        weekdaysShort: weekdaysShort,\n        weekdaysMin: weekdaysMin,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd, D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[Inniu ag] LT',\n            nextDay: '[Amárach ag] LT',\n            nextWeek: 'dddd [ag] LT',\n            lastDay: '[Inné ag] LT',\n            lastWeek: 'dddd [seo caite] [ag] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'i %s',\n            past: '%s ó shin',\n            s: 'cúpla soicind',\n            ss: '%d soicind',\n            m: 'nóiméad',\n            mm: '%d nóiméad',\n            h: 'uair an chloig',\n            hh: '%d uair an chloig',\n            d: 'lá',\n            dd: '%d lá',\n            M: 'mí',\n            MM: '%d míonna',\n            y: 'bliain',\n            yy: '%d bliain',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(d|na|mh)/,\n        ordinal: function (number) {\n            var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';\n            return number + output;\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return ga;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ga.js\n// module id = 528\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Scottish Gaelic [gd]\n//! author : Jon Ashdown : https://github.com/jonashdown\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var months = [\n            'Am Faoilleach',\n            'An Gearran',\n            'Am Màrt',\n            'An Giblean',\n            'An Cèitean',\n            'An t-Ògmhios',\n            'An t-Iuchar',\n            'An Lùnastal',\n            'An t-Sultain',\n            'An Dàmhair',\n            'An t-Samhain',\n            'An Dùbhlachd',\n        ],\n        monthsShort = [\n            'Faoi',\n            'Gear',\n            'Màrt',\n            'Gibl',\n            'Cèit',\n            'Ògmh',\n            'Iuch',\n            'Lùn',\n            'Sult',\n            'Dàmh',\n            'Samh',\n            'Dùbh',\n        ],\n        weekdays = [\n            'Didòmhnaich',\n            'Diluain',\n            'Dimàirt',\n            'Diciadain',\n            'Diardaoin',\n            'Dihaoine',\n            'Disathairne',\n        ],\n        weekdaysShort = ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'],\n        weekdaysMin = ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa'];\n\n    var gd = moment.defineLocale('gd', {\n        months: months,\n        monthsShort: monthsShort,\n        monthsParseExact: true,\n        weekdays: weekdays,\n        weekdaysShort: weekdaysShort,\n        weekdaysMin: weekdaysMin,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd, D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[An-diugh aig] LT',\n            nextDay: '[A-màireach aig] LT',\n            nextWeek: 'dddd [aig] LT',\n            lastDay: '[An-dè aig] LT',\n            lastWeek: 'dddd [seo chaidh] [aig] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'ann an %s',\n            past: 'bho chionn %s',\n            s: 'beagan diogan',\n            ss: '%d diogan',\n            m: 'mionaid',\n            mm: '%d mionaidean',\n            h: 'uair',\n            hh: '%d uairean',\n            d: 'latha',\n            dd: '%d latha',\n            M: 'mìos',\n            MM: '%d mìosan',\n            y: 'bliadhna',\n            yy: '%d bliadhna',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(d|na|mh)/,\n        ordinal: function (number) {\n            var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';\n            return number + output;\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return gd;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/gd.js\n// module id = 529\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Galician [gl]\n//! author : Juan G. Hurtado : https://github.com/juanghurtado\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var gl = moment.defineLocale('gl', {\n        months: 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split(\n            '_'\n        ),\n        monthsShort:\n            'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split(\n                '_'\n            ),\n        monthsParseExact: true,\n        weekdays: 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'),\n        weekdaysShort: 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'),\n        weekdaysMin: 'do_lu_ma_mé_xo_ve_sá'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'H:mm',\n            LTS: 'H:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D [de] MMMM [de] YYYY',\n            LLL: 'D [de] MMMM [de] YYYY H:mm',\n            LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm',\n        },\n        calendar: {\n            sameDay: function () {\n                return '[hoxe ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT';\n            },\n            nextDay: function () {\n                return '[mañá ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT';\n            },\n            nextWeek: function () {\n                return 'dddd [' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT';\n            },\n            lastDay: function () {\n                return '[onte ' + (this.hours() !== 1 ? 'á' : 'a') + '] LT';\n            },\n            lastWeek: function () {\n                return (\n                    '[o] dddd [pasado ' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT'\n                );\n            },\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: function (str) {\n                if (str.indexOf('un') === 0) {\n                    return 'n' + str;\n                }\n                return 'en ' + str;\n            },\n            past: 'hai %s',\n            s: 'uns segundos',\n            ss: '%d segundos',\n            m: 'un minuto',\n            mm: '%d minutos',\n            h: 'unha hora',\n            hh: '%d horas',\n            d: 'un día',\n            dd: '%d días',\n            M: 'un mes',\n            MM: '%d meses',\n            y: 'un ano',\n            yy: '%d anos',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}º/,\n        ordinal: '%dº',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return gl;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/gl.js\n// module id = 530\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Konkani Devanagari script [gom-deva]\n//! author : The Discoverer : https://github.com/WikiDiscoverer\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    function processRelativeTime(number, withoutSuffix, key, isFuture) {\n        var format = {\n            s: ['थोडया सॅकंडांनी', 'थोडे सॅकंड'],\n            ss: [number + ' सॅकंडांनी', number + ' सॅकंड'],\n            m: ['एका मिणटान', 'एक मिनूट'],\n            mm: [number + ' मिणटांनी', number + ' मिणटां'],\n            h: ['एका वरान', 'एक वर'],\n            hh: [number + ' वरांनी', number + ' वरां'],\n            d: ['एका दिसान', 'एक दीस'],\n            dd: [number + ' दिसांनी', number + ' दीस'],\n            M: ['एका म्हयन्यान', 'एक म्हयनो'],\n            MM: [number + ' म्हयन्यानी', number + ' म्हयने'],\n            y: ['एका वर्सान', 'एक वर्स'],\n            yy: [number + ' वर्सांनी', number + ' वर्सां'],\n        };\n        return isFuture ? format[key][0] : format[key][1];\n    }\n\n    var gomDeva = moment.defineLocale('gom-deva', {\n        months: {\n            standalone:\n                'जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split(\n                    '_'\n                ),\n            format: 'जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या'.split(\n                '_'\n            ),\n            isFormat: /MMMM(\\s)+D[oD]?/,\n        },\n        monthsShort:\n            'जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split(\n                '_'\n            ),\n        monthsParseExact: true,\n        weekdays: 'आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार'.split('_'),\n        weekdaysShort: 'आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.'.split('_'),\n        weekdaysMin: 'आ_सो_मं_बु_ब्रे_सु_शे'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'A h:mm [वाजतां]',\n            LTS: 'A h:mm:ss [वाजतां]',\n            L: 'DD-MM-YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY A h:mm [वाजतां]',\n            LLLL: 'dddd, MMMM Do, YYYY, A h:mm [वाजतां]',\n            llll: 'ddd, D MMM YYYY, A h:mm [वाजतां]',\n        },\n        calendar: {\n            sameDay: '[आयज] LT',\n            nextDay: '[फाल्यां] LT',\n            nextWeek: '[फुडलो] dddd[,] LT',\n            lastDay: '[काल] LT',\n            lastWeek: '[फाटलो] dddd[,] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s',\n            past: '%s आदीं',\n            s: processRelativeTime,\n            ss: processRelativeTime,\n            m: processRelativeTime,\n            mm: processRelativeTime,\n            h: processRelativeTime,\n            hh: processRelativeTime,\n            d: processRelativeTime,\n            dd: processRelativeTime,\n            M: processRelativeTime,\n            MM: processRelativeTime,\n            y: processRelativeTime,\n            yy: processRelativeTime,\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(वेर)/,\n        ordinal: function (number, period) {\n            switch (period) {\n                // the ordinal 'वेर' only applies to day of the month\n                case 'D':\n                    return number + 'वेर';\n                default:\n                case 'M':\n                case 'Q':\n                case 'DDD':\n                case 'd':\n                case 'w':\n                case 'W':\n                    return number;\n            }\n        },\n        week: {\n            dow: 0, // Sunday is the first day of the week\n            doy: 3, // The week that contains Jan 4th is the first week of the year (7 + 0 - 4)\n        },\n        meridiemParse: /राती|सकाळीं|दनपारां|सांजे/,\n        meridiemHour: function (hour, meridiem) {\n            if (hour === 12) {\n                hour = 0;\n            }\n            if (meridiem === 'राती') {\n                return hour < 4 ? hour : hour + 12;\n            } else if (meridiem === 'सकाळीं') {\n                return hour;\n            } else if (meridiem === 'दनपारां') {\n                return hour > 12 ? hour : hour + 12;\n            } else if (meridiem === 'सांजे') {\n                return hour + 12;\n            }\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 4) {\n                return 'राती';\n            } else if (hour < 12) {\n                return 'सकाळीं';\n            } else if (hour < 16) {\n                return 'दनपारां';\n            } else if (hour < 20) {\n                return 'सांजे';\n            } else {\n                return 'राती';\n            }\n        },\n    });\n\n    return gomDeva;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/gom-deva.js\n// module id = 531\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Konkani Latin script [gom-latn]\n//! author : The Discoverer : https://github.com/WikiDiscoverer\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    function processRelativeTime(number, withoutSuffix, key, isFuture) {\n        var format = {\n            s: ['thoddea sekondamni', 'thodde sekond'],\n            ss: [number + ' sekondamni', number + ' sekond'],\n            m: ['eka mintan', 'ek minut'],\n            mm: [number + ' mintamni', number + ' mintam'],\n            h: ['eka voran', 'ek vor'],\n            hh: [number + ' voramni', number + ' voram'],\n            d: ['eka disan', 'ek dis'],\n            dd: [number + ' disamni', number + ' dis'],\n            M: ['eka mhoinean', 'ek mhoino'],\n            MM: [number + ' mhoineamni', number + ' mhoine'],\n            y: ['eka vorsan', 'ek voros'],\n            yy: [number + ' vorsamni', number + ' vorsam'],\n        };\n        return isFuture ? format[key][0] : format[key][1];\n    }\n\n    var gomLatn = moment.defineLocale('gom-latn', {\n        months: {\n            standalone:\n                'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split(\n                    '_'\n                ),\n            format: 'Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea'.split(\n                '_'\n            ),\n            isFormat: /MMMM(\\s)+D[oD]?/,\n        },\n        monthsShort:\n            'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split('_'),\n        monthsParseExact: true,\n        weekdays: \"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var\".split('_'),\n        weekdaysShort: 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'),\n        weekdaysMin: 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'A h:mm [vazta]',\n            LTS: 'A h:mm:ss [vazta]',\n            L: 'DD-MM-YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY A h:mm [vazta]',\n            LLLL: 'dddd, MMMM Do, YYYY, A h:mm [vazta]',\n            llll: 'ddd, D MMM YYYY, A h:mm [vazta]',\n        },\n        calendar: {\n            sameDay: '[Aiz] LT',\n            nextDay: '[Faleam] LT',\n            nextWeek: '[Fuddlo] dddd[,] LT',\n            lastDay: '[Kal] LT',\n            lastWeek: '[Fattlo] dddd[,] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s',\n            past: '%s adim',\n            s: processRelativeTime,\n            ss: processRelativeTime,\n            m: processRelativeTime,\n            mm: processRelativeTime,\n            h: processRelativeTime,\n            hh: processRelativeTime,\n            d: processRelativeTime,\n            dd: processRelativeTime,\n            M: processRelativeTime,\n            MM: processRelativeTime,\n            y: processRelativeTime,\n            yy: processRelativeTime,\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(er)/,\n        ordinal: function (number, period) {\n            switch (period) {\n                // the ordinal 'er' only applies to day of the month\n                case 'D':\n                    return number + 'er';\n                default:\n                case 'M':\n                case 'Q':\n                case 'DDD':\n                case 'd':\n                case 'w':\n                case 'W':\n                    return number;\n            }\n        },\n        week: {\n            dow: 0, // Sunday is the first day of the week\n            doy: 3, // The week that contains Jan 4th is the first week of the year (7 + 0 - 4)\n        },\n        meridiemParse: /rati|sokallim|donparam|sanje/,\n        meridiemHour: function (hour, meridiem) {\n            if (hour === 12) {\n                hour = 0;\n            }\n            if (meridiem === 'rati') {\n                return hour < 4 ? hour : hour + 12;\n            } else if (meridiem === 'sokallim') {\n                return hour;\n            } else if (meridiem === 'donparam') {\n                return hour > 12 ? hour : hour + 12;\n            } else if (meridiem === 'sanje') {\n                return hour + 12;\n            }\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 4) {\n                return 'rati';\n            } else if (hour < 12) {\n                return 'sokallim';\n            } else if (hour < 16) {\n                return 'donparam';\n            } else if (hour < 20) {\n                return 'sanje';\n            } else {\n                return 'rati';\n            }\n        },\n    });\n\n    return gomLatn;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/gom-latn.js\n// module id = 532\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Gujarati [gu]\n//! author : Kaushik Thanki : https://github.com/Kaushik1987\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var symbolMap = {\n            1: '૧',\n            2: '૨',\n            3: '૩',\n            4: '૪',\n            5: '૫',\n            6: '૬',\n            7: '૭',\n            8: '૮',\n            9: '૯',\n            0: '૦',\n        },\n        numberMap = {\n            '૧': '1',\n            '૨': '2',\n            '૩': '3',\n            '૪': '4',\n            '૫': '5',\n            '૬': '6',\n            '૭': '7',\n            '૮': '8',\n            '૯': '9',\n            '૦': '0',\n        };\n\n    var gu = moment.defineLocale('gu', {\n        months: 'જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર'.split(\n            '_'\n        ),\n        monthsShort:\n            'જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.'.split(\n                '_'\n            ),\n        monthsParseExact: true,\n        weekdays: 'રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર'.split(\n            '_'\n        ),\n        weekdaysShort: 'રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ'.split('_'),\n        weekdaysMin: 'ર_સો_મં_બુ_ગુ_શુ_શ'.split('_'),\n        longDateFormat: {\n            LT: 'A h:mm વાગ્યે',\n            LTS: 'A h:mm:ss વાગ્યે',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY, A h:mm વાગ્યે',\n            LLLL: 'dddd, D MMMM YYYY, A h:mm વાગ્યે',\n        },\n        calendar: {\n            sameDay: '[આજ] LT',\n            nextDay: '[કાલે] LT',\n            nextWeek: 'dddd, LT',\n            lastDay: '[ગઇકાલે] LT',\n            lastWeek: '[પાછલા] dddd, LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s મા',\n            past: '%s પહેલા',\n            s: 'અમુક પળો',\n            ss: '%d સેકંડ',\n            m: 'એક મિનિટ',\n            mm: '%d મિનિટ',\n            h: 'એક કલાક',\n            hh: '%d કલાક',\n            d: 'એક દિવસ',\n            dd: '%d દિવસ',\n            M: 'એક મહિનો',\n            MM: '%d મહિનો',\n            y: 'એક વર્ષ',\n            yy: '%d વર્ષ',\n        },\n        preparse: function (string) {\n            return string.replace(/[૧૨૩૪૫૬૭૮૯૦]/g, function (match) {\n                return numberMap[match];\n            });\n        },\n        postformat: function (string) {\n            return string.replace(/\\d/g, function (match) {\n                return symbolMap[match];\n            });\n        },\n        // Gujarati notation for meridiems are quite fuzzy in practice. While there exists\n        // a rigid notion of a 'Pahar' it is not used as rigidly in modern Gujarati.\n        meridiemParse: /રાત|બપોર|સવાર|સાંજ/,\n        meridiemHour: function (hour, meridiem) {\n            if (hour === 12) {\n                hour = 0;\n            }\n            if (meridiem === 'રાત') {\n                return hour < 4 ? hour : hour + 12;\n            } else if (meridiem === 'સવાર') {\n                return hour;\n            } else if (meridiem === 'બપોર') {\n                return hour >= 10 ? hour : hour + 12;\n            } else if (meridiem === 'સાંજ') {\n                return hour + 12;\n            }\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 4) {\n                return 'રાત';\n            } else if (hour < 10) {\n                return 'સવાર';\n            } else if (hour < 17) {\n                return 'બપોર';\n            } else if (hour < 20) {\n                return 'સાંજ';\n            } else {\n                return 'રાત';\n            }\n        },\n        week: {\n            dow: 0, // Sunday is the first day of the week.\n            doy: 6, // The week that contains Jan 6th is the first week of the year.\n        },\n    });\n\n    return gu;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/gu.js\n// module id = 533\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Hebrew [he]\n//! author : Tomer Cohen : https://github.com/tomer\n//! author : Moshe Simantov : https://github.com/DevelopmentIL\n//! author : Tal Ater : https://github.com/TalAter\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var he = moment.defineLocale('he', {\n        months: 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split(\n            '_'\n        ),\n        monthsShort:\n            'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split('_'),\n        weekdays: 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'),\n        weekdaysShort: 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'),\n        weekdaysMin: 'א_ב_ג_ד_ה_ו_ש'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D [ב]MMMM YYYY',\n            LLL: 'D [ב]MMMM YYYY HH:mm',\n            LLLL: 'dddd, D [ב]MMMM YYYY HH:mm',\n            l: 'D/M/YYYY',\n            ll: 'D MMM YYYY',\n            lll: 'D MMM YYYY HH:mm',\n            llll: 'ddd, D MMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[היום ב־]LT',\n            nextDay: '[מחר ב־]LT',\n            nextWeek: 'dddd [בשעה] LT',\n            lastDay: '[אתמול ב־]LT',\n            lastWeek: '[ביום] dddd [האחרון בשעה] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'בעוד %s',\n            past: 'לפני %s',\n            s: 'מספר שניות',\n            ss: '%d שניות',\n            m: 'דקה',\n            mm: '%d דקות',\n            h: 'שעה',\n            hh: function (number) {\n                if (number === 2) {\n                    return 'שעתיים';\n                }\n                return number + ' שעות';\n            },\n            d: 'יום',\n            dd: function (number) {\n                if (number === 2) {\n                    return 'יומיים';\n                }\n                return number + ' ימים';\n            },\n            M: 'חודש',\n            MM: function (number) {\n                if (number === 2) {\n                    return 'חודשיים';\n                }\n                return number + ' חודשים';\n            },\n            y: 'שנה',\n            yy: function (number) {\n                if (number === 2) {\n                    return 'שנתיים';\n                } else if (number % 10 === 0 && number !== 10) {\n                    return number + ' שנה';\n                }\n                return number + ' שנים';\n            },\n        },\n        meridiemParse:\n            /אחה\"צ|לפנה\"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,\n        isPM: function (input) {\n            return /^(אחה\"צ|אחרי הצהריים|בערב)$/.test(input);\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 5) {\n                return 'לפנות בוקר';\n            } else if (hour < 10) {\n                return 'בבוקר';\n            } else if (hour < 12) {\n                return isLower ? 'לפנה\"צ' : 'לפני הצהריים';\n            } else if (hour < 18) {\n                return isLower ? 'אחה\"צ' : 'אחרי הצהריים';\n            } else {\n                return 'בערב';\n            }\n        },\n    });\n\n    return he;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/he.js\n// module id = 534\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Hindi [hi]\n//! author : Mayank Singhal : https://github.com/mayanksinghal\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var symbolMap = {\n            1: '१',\n            2: '२',\n            3: '३',\n            4: '४',\n            5: '५',\n            6: '६',\n            7: '७',\n            8: '८',\n            9: '९',\n            0: '०',\n        },\n        numberMap = {\n            '१': '1',\n            '२': '2',\n            '३': '3',\n            '४': '4',\n            '५': '5',\n            '६': '6',\n            '७': '7',\n            '८': '8',\n            '९': '9',\n            '०': '0',\n        },\n        monthsParse = [\n            /^जन/i,\n            /^फ़र|फर/i,\n            /^मार्च/i,\n            /^अप्रै/i,\n            /^मई/i,\n            /^जून/i,\n            /^जुल/i,\n            /^अग/i,\n            /^सितं|सित/i,\n            /^अक्टू/i,\n            /^नव|नवं/i,\n            /^दिसं|दिस/i,\n        ],\n        shortMonthsParse = [\n            /^जन/i,\n            /^फ़र/i,\n            /^मार्च/i,\n            /^अप्रै/i,\n            /^मई/i,\n            /^जून/i,\n            /^जुल/i,\n            /^अग/i,\n            /^सित/i,\n            /^अक्टू/i,\n            /^नव/i,\n            /^दिस/i,\n        ];\n\n    var hi = moment.defineLocale('hi', {\n        months: {\n            format: 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split(\n                '_'\n            ),\n            standalone:\n                'जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर'.split(\n                    '_'\n                ),\n        },\n        monthsShort:\n            'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split('_'),\n        weekdays: 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),\n        weekdaysShort: 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'),\n        weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),\n        longDateFormat: {\n            LT: 'A h:mm बजे',\n            LTS: 'A h:mm:ss बजे',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY, A h:mm बजे',\n            LLLL: 'dddd, D MMMM YYYY, A h:mm बजे',\n        },\n\n        monthsParse: monthsParse,\n        longMonthsParse: monthsParse,\n        shortMonthsParse: shortMonthsParse,\n\n        monthsRegex:\n            /^(जनवरी|जन\\.?|फ़रवरी|फरवरी|फ़र\\.?|मार्च?|अप्रैल|अप्रै\\.?|मई?|जून?|जुलाई|जुल\\.?|अगस्त|अग\\.?|सितम्बर|सितंबर|सित\\.?|अक्टूबर|अक्टू\\.?|नवम्बर|नवंबर|नव\\.?|दिसम्बर|दिसंबर|दिस\\.?)/i,\n\n        monthsShortRegex:\n            /^(जनवरी|जन\\.?|फ़रवरी|फरवरी|फ़र\\.?|मार्च?|अप्रैल|अप्रै\\.?|मई?|जून?|जुलाई|जुल\\.?|अगस्त|अग\\.?|सितम्बर|सितंबर|सित\\.?|अक्टूबर|अक्टू\\.?|नवम्बर|नवंबर|नव\\.?|दिसम्बर|दिसंबर|दिस\\.?)/i,\n\n        monthsStrictRegex:\n            /^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\\.?|अक्टूबर|अक्टू\\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,\n\n        monthsShortStrictRegex:\n            /^(जन\\.?|फ़र\\.?|मार्च?|अप्रै\\.?|मई?|जून?|जुल\\.?|अग\\.?|सित\\.?|अक्टू\\.?|नव\\.?|दिस\\.?)/i,\n\n        calendar: {\n            sameDay: '[आज] LT',\n            nextDay: '[कल] LT',\n            nextWeek: 'dddd, LT',\n            lastDay: '[कल] LT',\n            lastWeek: '[पिछले] dddd, LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s में',\n            past: '%s पहले',\n            s: 'कुछ ही क्षण',\n            ss: '%d सेकंड',\n            m: 'एक मिनट',\n            mm: '%d मिनट',\n            h: 'एक घंटा',\n            hh: '%d घंटे',\n            d: 'एक दिन',\n            dd: '%d दिन',\n            M: 'एक महीने',\n            MM: '%d महीने',\n            y: 'एक वर्ष',\n            yy: '%d वर्ष',\n        },\n        preparse: function (string) {\n            return string.replace(/[१२३४५६७८९०]/g, function (match) {\n                return numberMap[match];\n            });\n        },\n        postformat: function (string) {\n            return string.replace(/\\d/g, function (match) {\n                return symbolMap[match];\n            });\n        },\n        // Hindi notation for meridiems are quite fuzzy in practice. While there exists\n        // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi.\n        meridiemParse: /रात|सुबह|दोपहर|शाम/,\n        meridiemHour: function (hour, meridiem) {\n            if (hour === 12) {\n                hour = 0;\n            }\n            if (meridiem === 'रात') {\n                return hour < 4 ? hour : hour + 12;\n            } else if (meridiem === 'सुबह') {\n                return hour;\n            } else if (meridiem === 'दोपहर') {\n                return hour >= 10 ? hour : hour + 12;\n            } else if (meridiem === 'शाम') {\n                return hour + 12;\n            }\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 4) {\n                return 'रात';\n            } else if (hour < 10) {\n                return 'सुबह';\n            } else if (hour < 17) {\n                return 'दोपहर';\n            } else if (hour < 20) {\n                return 'शाम';\n            } else {\n                return 'रात';\n            }\n        },\n        week: {\n            dow: 0, // Sunday is the first day of the week.\n            doy: 6, // The week that contains Jan 6th is the first week of the year.\n        },\n    });\n\n    return hi;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/hi.js\n// module id = 535\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Croatian [hr]\n//! author : Bojan Marković : https://github.com/bmarkovic\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    function translate(number, withoutSuffix, key) {\n        var result = number + ' ';\n        switch (key) {\n            case 'ss':\n                if (number === 1) {\n                    result += 'sekunda';\n                } else if (number === 2 || number === 3 || number === 4) {\n                    result += 'sekunde';\n                } else {\n                    result += 'sekundi';\n                }\n                return result;\n            case 'm':\n                return withoutSuffix ? 'jedna minuta' : 'jedne minute';\n            case 'mm':\n                if (number === 1) {\n                    result += 'minuta';\n                } else if (number === 2 || number === 3 || number === 4) {\n                    result += 'minute';\n                } else {\n                    result += 'minuta';\n                }\n                return result;\n            case 'h':\n                return withoutSuffix ? 'jedan sat' : 'jednog sata';\n            case 'hh':\n                if (number === 1) {\n                    result += 'sat';\n                } else if (number === 2 || number === 3 || number === 4) {\n                    result += 'sata';\n                } else {\n                    result += 'sati';\n                }\n                return result;\n            case 'dd':\n                if (number === 1) {\n                    result += 'dan';\n                } else {\n                    result += 'dana';\n                }\n                return result;\n            case 'MM':\n                if (number === 1) {\n                    result += 'mjesec';\n                } else if (number === 2 || number === 3 || number === 4) {\n                    result += 'mjeseca';\n                } else {\n                    result += 'mjeseci';\n                }\n                return result;\n            case 'yy':\n                if (number === 1) {\n                    result += 'godina';\n                } else if (number === 2 || number === 3 || number === 4) {\n                    result += 'godine';\n                } else {\n                    result += 'godina';\n                }\n                return result;\n        }\n    }\n\n    var hr = moment.defineLocale('hr', {\n        months: {\n            format: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split(\n                '_'\n            ),\n            standalone:\n                'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split(\n                    '_'\n                ),\n        },\n        monthsShort:\n            'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split(\n                '_'\n            ),\n        monthsParseExact: true,\n        weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(\n            '_'\n        ),\n        weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),\n        weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'H:mm',\n            LTS: 'H:mm:ss',\n            L: 'DD.MM.YYYY',\n            LL: 'Do MMMM YYYY',\n            LLL: 'Do MMMM YYYY H:mm',\n            LLLL: 'dddd, Do MMMM YYYY H:mm',\n        },\n        calendar: {\n            sameDay: '[danas u] LT',\n            nextDay: '[sutra u] LT',\n            nextWeek: function () {\n                switch (this.day()) {\n                    case 0:\n                        return '[u] [nedjelju] [u] LT';\n                    case 3:\n                        return '[u] [srijedu] [u] LT';\n                    case 6:\n                        return '[u] [subotu] [u] LT';\n                    case 1:\n                    case 2:\n                    case 4:\n                    case 5:\n                        return '[u] dddd [u] LT';\n                }\n            },\n            lastDay: '[jučer u] LT',\n            lastWeek: function () {\n                switch (this.day()) {\n                    case 0:\n                        return '[prošlu] [nedjelju] [u] LT';\n                    case 3:\n                        return '[prošlu] [srijedu] [u] LT';\n                    case 6:\n                        return '[prošle] [subote] [u] LT';\n                    case 1:\n                    case 2:\n                    case 4:\n                    case 5:\n                        return '[prošli] dddd [u] LT';\n                }\n            },\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'za %s',\n            past: 'prije %s',\n            s: 'par sekundi',\n            ss: translate,\n            m: translate,\n            mm: translate,\n            h: translate,\n            hh: translate,\n            d: 'dan',\n            dd: translate,\n            M: 'mjesec',\n            MM: translate,\n            y: 'godinu',\n            yy: translate,\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n        ordinal: '%d.',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 7, // The week that contains Jan 7th is the first week of the year.\n        },\n    });\n\n    return hr;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/hr.js\n// module id = 536\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Hungarian [hu]\n//! author : Adam Brunner : https://github.com/adambrunner\n//! author : Peter Viszt  : https://github.com/passatgt\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var weekEndings =\n        'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(' ');\n    function translate(number, withoutSuffix, key, isFuture) {\n        var num = number;\n        switch (key) {\n            case 's':\n                return isFuture || withoutSuffix\n                    ? 'néhány másodperc'\n                    : 'néhány másodperce';\n            case 'ss':\n                return num + (isFuture || withoutSuffix)\n                    ? ' másodperc'\n                    : ' másodperce';\n            case 'm':\n                return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce');\n            case 'mm':\n                return num + (isFuture || withoutSuffix ? ' perc' : ' perce');\n            case 'h':\n                return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája');\n            case 'hh':\n                return num + (isFuture || withoutSuffix ? ' óra' : ' órája');\n            case 'd':\n                return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja');\n            case 'dd':\n                return num + (isFuture || withoutSuffix ? ' nap' : ' napja');\n            case 'M':\n                return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');\n            case 'MM':\n                return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');\n            case 'y':\n                return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve');\n            case 'yy':\n                return num + (isFuture || withoutSuffix ? ' év' : ' éve');\n        }\n        return '';\n    }\n    function week(isFuture) {\n        return (\n            (isFuture ? '' : '[múlt] ') +\n            '[' +\n            weekEndings[this.day()] +\n            '] LT[-kor]'\n        );\n    }\n\n    var hu = moment.defineLocale('hu', {\n        months: 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split(\n            '_'\n        ),\n        monthsShort:\n            'jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.'.split(\n                '_'\n            ),\n        monthsParseExact: true,\n        weekdays: 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'),\n        weekdaysShort: 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'),\n        weekdaysMin: 'v_h_k_sze_cs_p_szo'.split('_'),\n        longDateFormat: {\n            LT: 'H:mm',\n            LTS: 'H:mm:ss',\n            L: 'YYYY.MM.DD.',\n            LL: 'YYYY. MMMM D.',\n            LLL: 'YYYY. MMMM D. H:mm',\n            LLLL: 'YYYY. MMMM D., dddd H:mm',\n        },\n        meridiemParse: /de|du/i,\n        isPM: function (input) {\n            return input.charAt(1).toLowerCase() === 'u';\n        },\n        meridiem: function (hours, minutes, isLower) {\n            if (hours < 12) {\n                return isLower === true ? 'de' : 'DE';\n            } else {\n                return isLower === true ? 'du' : 'DU';\n            }\n        },\n        calendar: {\n            sameDay: '[ma] LT[-kor]',\n            nextDay: '[holnap] LT[-kor]',\n            nextWeek: function () {\n                return week.call(this, true);\n            },\n            lastDay: '[tegnap] LT[-kor]',\n            lastWeek: function () {\n                return week.call(this, false);\n            },\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s múlva',\n            past: '%s',\n            s: translate,\n            ss: translate,\n            m: translate,\n            mm: translate,\n            h: translate,\n            hh: translate,\n            d: translate,\n            dd: translate,\n            M: translate,\n            MM: translate,\n            y: translate,\n            yy: translate,\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n        ordinal: '%d.',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return hu;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/hu.js\n// module id = 537\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Armenian [hy-am]\n//! author : Armendarabyan : https://github.com/armendarabyan\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var hyAm = moment.defineLocale('hy-am', {\n        months: {\n            format: 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split(\n                '_'\n            ),\n            standalone:\n                'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split(\n                    '_'\n                ),\n        },\n        monthsShort: 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_'),\n        weekdays:\n            'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split(\n                '_'\n            ),\n        weekdaysShort: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),\n        weekdaysMin: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD.MM.YYYY',\n            LL: 'D MMMM YYYY թ.',\n            LLL: 'D MMMM YYYY թ., HH:mm',\n            LLLL: 'dddd, D MMMM YYYY թ., HH:mm',\n        },\n        calendar: {\n            sameDay: '[այսօր] LT',\n            nextDay: '[վաղը] LT',\n            lastDay: '[երեկ] LT',\n            nextWeek: function () {\n                return 'dddd [օրը ժամը] LT';\n            },\n            lastWeek: function () {\n                return '[անցած] dddd [օրը ժամը] LT';\n            },\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s հետո',\n            past: '%s առաջ',\n            s: 'մի քանի վայրկյան',\n            ss: '%d վայրկյան',\n            m: 'րոպե',\n            mm: '%d րոպե',\n            h: 'ժամ',\n            hh: '%d ժամ',\n            d: 'օր',\n            dd: '%d օր',\n            M: 'ամիս',\n            MM: '%d ամիս',\n            y: 'տարի',\n            yy: '%d տարի',\n        },\n        meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,\n        isPM: function (input) {\n            return /^(ցերեկվա|երեկոյան)$/.test(input);\n        },\n        meridiem: function (hour) {\n            if (hour < 4) {\n                return 'գիշերվա';\n            } else if (hour < 12) {\n                return 'առավոտվա';\n            } else if (hour < 17) {\n                return 'ցերեկվա';\n            } else {\n                return 'երեկոյան';\n            }\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}|\\d{1,2}-(ին|րդ)/,\n        ordinal: function (number, period) {\n            switch (period) {\n                case 'DDD':\n                case 'w':\n                case 'W':\n                case 'DDDo':\n                    if (number === 1) {\n                        return number + '-ին';\n                    }\n                    return number + '-րդ';\n                default:\n                    return number;\n            }\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 7, // The week that contains Jan 7th is the first week of the year.\n        },\n    });\n\n    return hyAm;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/hy-am.js\n// module id = 538\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Indonesian [id]\n//! author : Mohammad Satrio Utomo : https://github.com/tyok\n//! reference: http://id.wikisource.org/wiki/Pedoman_Umum_Ejaan_Bahasa_Indonesia_yang_Disempurnakan\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var id = moment.defineLocale('id', {\n        months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split(\n            '_'\n        ),\n        monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des'.split('_'),\n        weekdays: 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'),\n        weekdaysShort: 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'),\n        weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'),\n        longDateFormat: {\n            LT: 'HH.mm',\n            LTS: 'HH.mm.ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY [pukul] HH.mm',\n            LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',\n        },\n        meridiemParse: /pagi|siang|sore|malam/,\n        meridiemHour: function (hour, meridiem) {\n            if (hour === 12) {\n                hour = 0;\n            }\n            if (meridiem === 'pagi') {\n                return hour;\n            } else if (meridiem === 'siang') {\n                return hour >= 11 ? hour : hour + 12;\n            } else if (meridiem === 'sore' || meridiem === 'malam') {\n                return hour + 12;\n            }\n        },\n        meridiem: function (hours, minutes, isLower) {\n            if (hours < 11) {\n                return 'pagi';\n            } else if (hours < 15) {\n                return 'siang';\n            } else if (hours < 19) {\n                return 'sore';\n            } else {\n                return 'malam';\n            }\n        },\n        calendar: {\n            sameDay: '[Hari ini pukul] LT',\n            nextDay: '[Besok pukul] LT',\n            nextWeek: 'dddd [pukul] LT',\n            lastDay: '[Kemarin pukul] LT',\n            lastWeek: 'dddd [lalu pukul] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'dalam %s',\n            past: '%s yang lalu',\n            s: 'beberapa detik',\n            ss: '%d detik',\n            m: 'semenit',\n            mm: '%d menit',\n            h: 'sejam',\n            hh: '%d jam',\n            d: 'sehari',\n            dd: '%d hari',\n            M: 'sebulan',\n            MM: '%d bulan',\n            y: 'setahun',\n            yy: '%d tahun',\n        },\n        week: {\n            dow: 0, // Sunday is the first day of the week.\n            doy: 6, // The week that contains Jan 6th is the first week of the year.\n        },\n    });\n\n    return id;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/id.js\n// module id = 539\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Icelandic [is]\n//! author : Hinrik Örn Sigurðsson : https://github.com/hinrik\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    function plural(n) {\n        if (n % 100 === 11) {\n            return true;\n        } else if (n % 10 === 1) {\n            return false;\n        }\n        return true;\n    }\n    function translate(number, withoutSuffix, key, isFuture) {\n        var result = number + ' ';\n        switch (key) {\n            case 's':\n                return withoutSuffix || isFuture\n                    ? 'nokkrar sekúndur'\n                    : 'nokkrum sekúndum';\n            case 'ss':\n                if (plural(number)) {\n                    return (\n                        result +\n                        (withoutSuffix || isFuture ? 'sekúndur' : 'sekúndum')\n                    );\n                }\n                return result + 'sekúnda';\n            case 'm':\n                return withoutSuffix ? 'mínúta' : 'mínútu';\n            case 'mm':\n                if (plural(number)) {\n                    return (\n                        result + (withoutSuffix || isFuture ? 'mínútur' : 'mínútum')\n                    );\n                } else if (withoutSuffix) {\n                    return result + 'mínúta';\n                }\n                return result + 'mínútu';\n            case 'hh':\n                if (plural(number)) {\n                    return (\n                        result +\n                        (withoutSuffix || isFuture\n                            ? 'klukkustundir'\n                            : 'klukkustundum')\n                    );\n                }\n                return result + 'klukkustund';\n            case 'd':\n                if (withoutSuffix) {\n                    return 'dagur';\n                }\n                return isFuture ? 'dag' : 'degi';\n            case 'dd':\n                if (plural(number)) {\n                    if (withoutSuffix) {\n                        return result + 'dagar';\n                    }\n                    return result + (isFuture ? 'daga' : 'dögum');\n                } else if (withoutSuffix) {\n                    return result + 'dagur';\n                }\n                return result + (isFuture ? 'dag' : 'degi');\n            case 'M':\n                if (withoutSuffix) {\n                    return 'mánuður';\n                }\n                return isFuture ? 'mánuð' : 'mánuði';\n            case 'MM':\n                if (plural(number)) {\n                    if (withoutSuffix) {\n                        return result + 'mánuðir';\n                    }\n                    return result + (isFuture ? 'mánuði' : 'mánuðum');\n                } else if (withoutSuffix) {\n                    return result + 'mánuður';\n                }\n                return result + (isFuture ? 'mánuð' : 'mánuði');\n            case 'y':\n                return withoutSuffix || isFuture ? 'ár' : 'ári';\n            case 'yy':\n                if (plural(number)) {\n                    return result + (withoutSuffix || isFuture ? 'ár' : 'árum');\n                }\n                return result + (withoutSuffix || isFuture ? 'ár' : 'ári');\n        }\n    }\n\n    var is = moment.defineLocale('is', {\n        months: 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split(\n            '_'\n        ),\n        monthsShort: 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'),\n        weekdays:\n            'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split(\n                '_'\n            ),\n        weekdaysShort: 'sun_mán_þri_mið_fim_fös_lau'.split('_'),\n        weekdaysMin: 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'),\n        longDateFormat: {\n            LT: 'H:mm',\n            LTS: 'H:mm:ss',\n            L: 'DD.MM.YYYY',\n            LL: 'D. MMMM YYYY',\n            LLL: 'D. MMMM YYYY [kl.] H:mm',\n            LLLL: 'dddd, D. MMMM YYYY [kl.] H:mm',\n        },\n        calendar: {\n            sameDay: '[í dag kl.] LT',\n            nextDay: '[á morgun kl.] LT',\n            nextWeek: 'dddd [kl.] LT',\n            lastDay: '[í gær kl.] LT',\n            lastWeek: '[síðasta] dddd [kl.] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'eftir %s',\n            past: 'fyrir %s síðan',\n            s: translate,\n            ss: translate,\n            m: translate,\n            mm: translate,\n            h: 'klukkustund',\n            hh: translate,\n            d: translate,\n            dd: translate,\n            M: translate,\n            MM: translate,\n            y: translate,\n            yy: translate,\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n        ordinal: '%d.',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return is;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/is.js\n// module id = 540\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Italian (Switzerland) [it-ch]\n//! author : xfh : https://github.com/xfh\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var itCh = moment.defineLocale('it-ch', {\n        months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split(\n            '_'\n        ),\n        monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),\n        weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split(\n            '_'\n        ),\n        weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'),\n        weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD.MM.YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[Oggi alle] LT',\n            nextDay: '[Domani alle] LT',\n            nextWeek: 'dddd [alle] LT',\n            lastDay: '[Ieri alle] LT',\n            lastWeek: function () {\n                switch (this.day()) {\n                    case 0:\n                        return '[la scorsa] dddd [alle] LT';\n                    default:\n                        return '[lo scorso] dddd [alle] LT';\n                }\n            },\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: function (s) {\n                return (/^[0-9].+$/.test(s) ? 'tra' : 'in') + ' ' + s;\n            },\n            past: '%s fa',\n            s: 'alcuni secondi',\n            ss: '%d secondi',\n            m: 'un minuto',\n            mm: '%d minuti',\n            h: \"un'ora\",\n            hh: '%d ore',\n            d: 'un giorno',\n            dd: '%d giorni',\n            M: 'un mese',\n            MM: '%d mesi',\n            y: 'un anno',\n            yy: '%d anni',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}º/,\n        ordinal: '%dº',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return itCh;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/it-ch.js\n// module id = 541\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Italian [it]\n//! author : Lorenzo : https://github.com/aliem\n//! author: Mattia Larentis: https://github.com/nostalgiaz\n//! author: Marco : https://github.com/Manfre98\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var it = moment.defineLocale('it', {\n        months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split(\n            '_'\n        ),\n        monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),\n        weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split(\n            '_'\n        ),\n        weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'),\n        weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: function () {\n                return (\n                    '[Oggi a' +\n                    (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : \"ll'\") +\n                    ']LT'\n                );\n            },\n            nextDay: function () {\n                return (\n                    '[Domani a' +\n                    (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : \"ll'\") +\n                    ']LT'\n                );\n            },\n            nextWeek: function () {\n                return (\n                    'dddd [a' +\n                    (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : \"ll'\") +\n                    ']LT'\n                );\n            },\n            lastDay: function () {\n                return (\n                    '[Ieri a' +\n                    (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : \"ll'\") +\n                    ']LT'\n                );\n            },\n            lastWeek: function () {\n                switch (this.day()) {\n                    case 0:\n                        return (\n                            '[La scorsa] dddd [a' +\n                            (this.hours() > 1\n                                ? 'lle '\n                                : this.hours() === 0\n                                ? ' '\n                                : \"ll'\") +\n                            ']LT'\n                        );\n                    default:\n                        return (\n                            '[Lo scorso] dddd [a' +\n                            (this.hours() > 1\n                                ? 'lle '\n                                : this.hours() === 0\n                                ? ' '\n                                : \"ll'\") +\n                            ']LT'\n                        );\n                }\n            },\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'tra %s',\n            past: '%s fa',\n            s: 'alcuni secondi',\n            ss: '%d secondi',\n            m: 'un minuto',\n            mm: '%d minuti',\n            h: \"un'ora\",\n            hh: '%d ore',\n            d: 'un giorno',\n            dd: '%d giorni',\n            w: 'una settimana',\n            ww: '%d settimane',\n            M: 'un mese',\n            MM: '%d mesi',\n            y: 'un anno',\n            yy: '%d anni',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}º/,\n        ordinal: '%dº',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return it;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/it.js\n// module id = 542\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Japanese [ja]\n//! author : LI Long : https://github.com/baryon\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var ja = moment.defineLocale('ja', {\n        eras: [\n            {\n                since: '2019-05-01',\n                offset: 1,\n                name: '令和',\n                narrow: '㋿',\n                abbr: 'R',\n            },\n            {\n                since: '1989-01-08',\n                until: '2019-04-30',\n                offset: 1,\n                name: '平成',\n                narrow: '㍻',\n                abbr: 'H',\n            },\n            {\n                since: '1926-12-25',\n                until: '1989-01-07',\n                offset: 1,\n                name: '昭和',\n                narrow: '㍼',\n                abbr: 'S',\n            },\n            {\n                since: '1912-07-30',\n                until: '1926-12-24',\n                offset: 1,\n                name: '大正',\n                narrow: '㍽',\n                abbr: 'T',\n            },\n            {\n                since: '1873-01-01',\n                until: '1912-07-29',\n                offset: 6,\n                name: '明治',\n                narrow: '㍾',\n                abbr: 'M',\n            },\n            {\n                since: '0001-01-01',\n                until: '1873-12-31',\n                offset: 1,\n                name: '西暦',\n                narrow: 'AD',\n                abbr: 'AD',\n            },\n            {\n                since: '0000-12-31',\n                until: -Infinity,\n                offset: 1,\n                name: '紀元前',\n                narrow: 'BC',\n                abbr: 'BC',\n            },\n        ],\n        eraYearOrdinalRegex: /(元|\\d+)年/,\n        eraYearOrdinalParse: function (input, match) {\n            return match[1] === '元' ? 1 : parseInt(match[1] || input, 10);\n        },\n        months: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),\n        monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(\n            '_'\n        ),\n        weekdays: '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'),\n        weekdaysShort: '日_月_火_水_木_金_土'.split('_'),\n        weekdaysMin: '日_月_火_水_木_金_土'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'YYYY/MM/DD',\n            LL: 'YYYY年M月D日',\n            LLL: 'YYYY年M月D日 HH:mm',\n            LLLL: 'YYYY年M月D日 dddd HH:mm',\n            l: 'YYYY/MM/DD',\n            ll: 'YYYY年M月D日',\n            lll: 'YYYY年M月D日 HH:mm',\n            llll: 'YYYY年M月D日(ddd) HH:mm',\n        },\n        meridiemParse: /午前|午後/i,\n        isPM: function (input) {\n            return input === '午後';\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 12) {\n                return '午前';\n            } else {\n                return '午後';\n            }\n        },\n        calendar: {\n            sameDay: '[今日] LT',\n            nextDay: '[明日] LT',\n            nextWeek: function (now) {\n                if (now.week() !== this.week()) {\n                    return '[来週]dddd LT';\n                } else {\n                    return 'dddd LT';\n                }\n            },\n            lastDay: '[昨日] LT',\n            lastWeek: function (now) {\n                if (this.week() !== now.week()) {\n                    return '[先週]dddd LT';\n                } else {\n                    return 'dddd LT';\n                }\n            },\n            sameElse: 'L',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}日/,\n        ordinal: function (number, period) {\n            switch (period) {\n                case 'y':\n                    return number === 1 ? '元年' : number + '年';\n                case 'd':\n                case 'D':\n                case 'DDD':\n                    return number + '日';\n                default:\n                    return number;\n            }\n        },\n        relativeTime: {\n            future: '%s後',\n            past: '%s前',\n            s: '数秒',\n            ss: '%d秒',\n            m: '1分',\n            mm: '%d分',\n            h: '1時間',\n            hh: '%d時間',\n            d: '1日',\n            dd: '%d日',\n            M: '1ヶ月',\n            MM: '%dヶ月',\n            y: '1年',\n            yy: '%d年',\n        },\n    });\n\n    return ja;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ja.js\n// module id = 543\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Javanese [jv]\n//! author : Rony Lantip : https://github.com/lantip\n//! reference: http://jv.wikipedia.org/wiki/Basa_Jawa\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var jv = moment.defineLocale('jv', {\n        months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split(\n            '_'\n        ),\n        monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'),\n        weekdays: 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'),\n        weekdaysShort: 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'),\n        weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'),\n        longDateFormat: {\n            LT: 'HH.mm',\n            LTS: 'HH.mm.ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY [pukul] HH.mm',\n            LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',\n        },\n        meridiemParse: /enjing|siyang|sonten|ndalu/,\n        meridiemHour: function (hour, meridiem) {\n            if (hour === 12) {\n                hour = 0;\n            }\n            if (meridiem === 'enjing') {\n                return hour;\n            } else if (meridiem === 'siyang') {\n                return hour >= 11 ? hour : hour + 12;\n            } else if (meridiem === 'sonten' || meridiem === 'ndalu') {\n                return hour + 12;\n            }\n        },\n        meridiem: function (hours, minutes, isLower) {\n            if (hours < 11) {\n                return 'enjing';\n            } else if (hours < 15) {\n                return 'siyang';\n            } else if (hours < 19) {\n                return 'sonten';\n            } else {\n                return 'ndalu';\n            }\n        },\n        calendar: {\n            sameDay: '[Dinten puniko pukul] LT',\n            nextDay: '[Mbenjang pukul] LT',\n            nextWeek: 'dddd [pukul] LT',\n            lastDay: '[Kala wingi pukul] LT',\n            lastWeek: 'dddd [kepengker pukul] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'wonten ing %s',\n            past: '%s ingkang kepengker',\n            s: 'sawetawis detik',\n            ss: '%d detik',\n            m: 'setunggal menit',\n            mm: '%d menit',\n            h: 'setunggal jam',\n            hh: '%d jam',\n            d: 'sedinten',\n            dd: '%d dinten',\n            M: 'sewulan',\n            MM: '%d wulan',\n            y: 'setaun',\n            yy: '%d taun',\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 7, // The week that contains Jan 7th is the first week of the year.\n        },\n    });\n\n    return jv;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/jv.js\n// module id = 544\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Georgian [ka]\n//! author : Irakli Janiashvili : https://github.com/IrakliJani\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var ka = moment.defineLocale('ka', {\n        months: 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split(\n            '_'\n        ),\n        monthsShort: 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split('_'),\n        weekdays: {\n            standalone:\n                'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split(\n                    '_'\n                ),\n            format: 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split(\n                '_'\n            ),\n            isFormat: /(წინა|შემდეგ)/,\n        },\n        weekdaysShort: 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'),\n        weekdaysMin: 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd, D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[დღეს] LT[-ზე]',\n            nextDay: '[ხვალ] LT[-ზე]',\n            lastDay: '[გუშინ] LT[-ზე]',\n            nextWeek: '[შემდეგ] dddd LT[-ზე]',\n            lastWeek: '[წინა] dddd LT-ზე',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: function (s) {\n                return s.replace(\n                    /(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/,\n                    function ($0, $1, $2) {\n                        return $2 === 'ი' ? $1 + 'ში' : $1 + $2 + 'ში';\n                    }\n                );\n            },\n            past: function (s) {\n                if (/(წამი|წუთი|საათი|დღე|თვე)/.test(s)) {\n                    return s.replace(/(ი|ე)$/, 'ის წინ');\n                }\n                if (/წელი/.test(s)) {\n                    return s.replace(/წელი$/, 'წლის წინ');\n                }\n                return s;\n            },\n            s: 'რამდენიმე წამი',\n            ss: '%d წამი',\n            m: 'წუთი',\n            mm: '%d წუთი',\n            h: 'საათი',\n            hh: '%d საათი',\n            d: 'დღე',\n            dd: '%d დღე',\n            M: 'თვე',\n            MM: '%d თვე',\n            y: 'წელი',\n            yy: '%d წელი',\n        },\n        dayOfMonthOrdinalParse: /0|1-ლი|მე-\\d{1,2}|\\d{1,2}-ე/,\n        ordinal: function (number) {\n            if (number === 0) {\n                return number;\n            }\n            if (number === 1) {\n                return number + '-ლი';\n            }\n            if (\n                number < 20 ||\n                (number <= 100 && number % 20 === 0) ||\n                number % 100 === 0\n            ) {\n                return 'მე-' + number;\n            }\n            return number + '-ე';\n        },\n        week: {\n            dow: 1,\n            doy: 7,\n        },\n    });\n\n    return ka;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ka.js\n// module id = 545\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Kazakh [kk]\n//! authors : Nurlan Rakhimzhanov : https://github.com/nurlan\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var suffixes = {\n        0: '-ші',\n        1: '-ші',\n        2: '-ші',\n        3: '-ші',\n        4: '-ші',\n        5: '-ші',\n        6: '-шы',\n        7: '-ші',\n        8: '-ші',\n        9: '-шы',\n        10: '-шы',\n        20: '-шы',\n        30: '-шы',\n        40: '-шы',\n        50: '-ші',\n        60: '-шы',\n        70: '-ші',\n        80: '-ші',\n        90: '-шы',\n        100: '-ші',\n    };\n\n    var kk = moment.defineLocale('kk', {\n        months: 'қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан'.split(\n            '_'\n        ),\n        monthsShort: 'қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел'.split('_'),\n        weekdays: 'жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі'.split(\n            '_'\n        ),\n        weekdaysShort: 'жек_дүй_сей_сәр_бей_жұм_сен'.split('_'),\n        weekdaysMin: 'жк_дй_сй_ср_бй_жм_сн'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD.MM.YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd, D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[Бүгін сағат] LT',\n            nextDay: '[Ертең сағат] LT',\n            nextWeek: 'dddd [сағат] LT',\n            lastDay: '[Кеше сағат] LT',\n            lastWeek: '[Өткен аптаның] dddd [сағат] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s ішінде',\n            past: '%s бұрын',\n            s: 'бірнеше секунд',\n            ss: '%d секунд',\n            m: 'бір минут',\n            mm: '%d минут',\n            h: 'бір сағат',\n            hh: '%d сағат',\n            d: 'бір күн',\n            dd: '%d күн',\n            M: 'бір ай',\n            MM: '%d ай',\n            y: 'бір жыл',\n            yy: '%d жыл',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}-(ші|шы)/,\n        ordinal: function (number) {\n            var a = number % 10,\n                b = number >= 100 ? 100 : null;\n            return number + (suffixes[number] || suffixes[a] || suffixes[b]);\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 7, // The week that contains Jan 7th is the first week of the year.\n        },\n    });\n\n    return kk;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/kk.js\n// module id = 546\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Cambodian [km]\n//! author : Kruy Vanna : https://github.com/kruyvanna\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var symbolMap = {\n            1: '១',\n            2: '២',\n            3: '៣',\n            4: '៤',\n            5: '៥',\n            6: '៦',\n            7: '៧',\n            8: '៨',\n            9: '៩',\n            0: '០',\n        },\n        numberMap = {\n            '១': '1',\n            '២': '2',\n            '៣': '3',\n            '៤': '4',\n            '៥': '5',\n            '៦': '6',\n            '៧': '7',\n            '៨': '8',\n            '៩': '9',\n            '០': '0',\n        };\n\n    var km = moment.defineLocale('km', {\n        months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split(\n            '_'\n        ),\n        monthsShort:\n            'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split(\n                '_'\n            ),\n        weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),\n        weekdaysShort: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),\n        weekdaysMin: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd, D MMMM YYYY HH:mm',\n        },\n        meridiemParse: /ព្រឹក|ល្ងាច/,\n        isPM: function (input) {\n            return input === 'ល្ងាច';\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 12) {\n                return 'ព្រឹក';\n            } else {\n                return 'ល្ងាច';\n            }\n        },\n        calendar: {\n            sameDay: '[ថ្ងៃនេះ ម៉ោង] LT',\n            nextDay: '[ស្អែក ម៉ោង] LT',\n            nextWeek: 'dddd [ម៉ោង] LT',\n            lastDay: '[ម្សិលមិញ ម៉ោង] LT',\n            lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%sទៀត',\n            past: '%sមុន',\n            s: 'ប៉ុន្មានវិនាទី',\n            ss: '%d វិនាទី',\n            m: 'មួយនាទី',\n            mm: '%d នាទី',\n            h: 'មួយម៉ោង',\n            hh: '%d ម៉ោង',\n            d: 'មួយថ្ងៃ',\n            dd: '%d ថ្ងៃ',\n            M: 'មួយខែ',\n            MM: '%d ខែ',\n            y: 'មួយឆ្នាំ',\n            yy: '%d ឆ្នាំ',\n        },\n        dayOfMonthOrdinalParse: /ទី\\d{1,2}/,\n        ordinal: 'ទី%d',\n        preparse: function (string) {\n            return string.replace(/[១២៣៤៥៦៧៨៩០]/g, function (match) {\n                return numberMap[match];\n            });\n        },\n        postformat: function (string) {\n            return string.replace(/\\d/g, function (match) {\n                return symbolMap[match];\n            });\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return km;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/km.js\n// module id = 547\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Kannada [kn]\n//! author : Rajeev Naik : https://github.com/rajeevnaikte\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var symbolMap = {\n            1: '೧',\n            2: '೨',\n            3: '೩',\n            4: '೪',\n            5: '೫',\n            6: '೬',\n            7: '೭',\n            8: '೮',\n            9: '೯',\n            0: '೦',\n        },\n        numberMap = {\n            '೧': '1',\n            '೨': '2',\n            '೩': '3',\n            '೪': '4',\n            '೫': '5',\n            '೬': '6',\n            '೭': '7',\n            '೮': '8',\n            '೯': '9',\n            '೦': '0',\n        };\n\n    var kn = moment.defineLocale('kn', {\n        months: 'ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್'.split(\n            '_'\n        ),\n        monthsShort:\n            'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ'.split(\n                '_'\n            ),\n        monthsParseExact: true,\n        weekdays: 'ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ'.split(\n            '_'\n        ),\n        weekdaysShort: 'ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ'.split('_'),\n        weekdaysMin: 'ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ'.split('_'),\n        longDateFormat: {\n            LT: 'A h:mm',\n            LTS: 'A h:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY, A h:mm',\n            LLLL: 'dddd, D MMMM YYYY, A h:mm',\n        },\n        calendar: {\n            sameDay: '[ಇಂದು] LT',\n            nextDay: '[ನಾಳೆ] LT',\n            nextWeek: 'dddd, LT',\n            lastDay: '[ನಿನ್ನೆ] LT',\n            lastWeek: '[ಕೊನೆಯ] dddd, LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s ನಂತರ',\n            past: '%s ಹಿಂದೆ',\n            s: 'ಕೆಲವು ಕ್ಷಣಗಳು',\n            ss: '%d ಸೆಕೆಂಡುಗಳು',\n            m: 'ಒಂದು ನಿಮಿಷ',\n            mm: '%d ನಿಮಿಷ',\n            h: 'ಒಂದು ಗಂಟೆ',\n            hh: '%d ಗಂಟೆ',\n            d: 'ಒಂದು ದಿನ',\n            dd: '%d ದಿನ',\n            M: 'ಒಂದು ತಿಂಗಳು',\n            MM: '%d ತಿಂಗಳು',\n            y: 'ಒಂದು ವರ್ಷ',\n            yy: '%d ವರ್ಷ',\n        },\n        preparse: function (string) {\n            return string.replace(/[೧೨೩೪೫೬೭೮೯೦]/g, function (match) {\n                return numberMap[match];\n            });\n        },\n        postformat: function (string) {\n            return string.replace(/\\d/g, function (match) {\n                return symbolMap[match];\n            });\n        },\n        meridiemParse: /ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,\n        meridiemHour: function (hour, meridiem) {\n            if (hour === 12) {\n                hour = 0;\n            }\n            if (meridiem === 'ರಾತ್ರಿ') {\n                return hour < 4 ? hour : hour + 12;\n            } else if (meridiem === 'ಬೆಳಿಗ್ಗೆ') {\n                return hour;\n            } else if (meridiem === 'ಮಧ್ಯಾಹ್ನ') {\n                return hour >= 10 ? hour : hour + 12;\n            } else if (meridiem === 'ಸಂಜೆ') {\n                return hour + 12;\n            }\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 4) {\n                return 'ರಾತ್ರಿ';\n            } else if (hour < 10) {\n                return 'ಬೆಳಿಗ್ಗೆ';\n            } else if (hour < 17) {\n                return 'ಮಧ್ಯಾಹ್ನ';\n            } else if (hour < 20) {\n                return 'ಸಂಜೆ';\n            } else {\n                return 'ರಾತ್ರಿ';\n            }\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(ನೇ)/,\n        ordinal: function (number) {\n            return number + 'ನೇ';\n        },\n        week: {\n            dow: 0, // Sunday is the first day of the week.\n            doy: 6, // The week that contains Jan 6th is the first week of the year.\n        },\n    });\n\n    return kn;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/kn.js\n// module id = 548\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Korean [ko]\n//! author : Kyungwook, Park : https://github.com/kyungw00k\n//! author : Jeeeyul Lee <jeeeyul@gmail.com>\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var ko = moment.defineLocale('ko', {\n        months: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),\n        monthsShort: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split(\n            '_'\n        ),\n        weekdays: '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'),\n        weekdaysShort: '일_월_화_수_목_금_토'.split('_'),\n        weekdaysMin: '일_월_화_수_목_금_토'.split('_'),\n        longDateFormat: {\n            LT: 'A h:mm',\n            LTS: 'A h:mm:ss',\n            L: 'YYYY.MM.DD.',\n            LL: 'YYYY년 MMMM D일',\n            LLL: 'YYYY년 MMMM D일 A h:mm',\n            LLLL: 'YYYY년 MMMM D일 dddd A h:mm',\n            l: 'YYYY.MM.DD.',\n            ll: 'YYYY년 MMMM D일',\n            lll: 'YYYY년 MMMM D일 A h:mm',\n            llll: 'YYYY년 MMMM D일 dddd A h:mm',\n        },\n        calendar: {\n            sameDay: '오늘 LT',\n            nextDay: '내일 LT',\n            nextWeek: 'dddd LT',\n            lastDay: '어제 LT',\n            lastWeek: '지난주 dddd LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s 후',\n            past: '%s 전',\n            s: '몇 초',\n            ss: '%d초',\n            m: '1분',\n            mm: '%d분',\n            h: '한 시간',\n            hh: '%d시간',\n            d: '하루',\n            dd: '%d일',\n            M: '한 달',\n            MM: '%d달',\n            y: '일 년',\n            yy: '%d년',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(일|월|주)/,\n        ordinal: function (number, period) {\n            switch (period) {\n                case 'd':\n                case 'D':\n                case 'DDD':\n                    return number + '일';\n                case 'M':\n                    return number + '월';\n                case 'w':\n                case 'W':\n                    return number + '주';\n                default:\n                    return number;\n            }\n        },\n        meridiemParse: /오전|오후/,\n        isPM: function (token) {\n            return token === '오후';\n        },\n        meridiem: function (hour, minute, isUpper) {\n            return hour < 12 ? '오전' : '오후';\n        },\n    });\n\n    return ko;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ko.js\n// module id = 549\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Kurdish [ku]\n//! author : Shahram Mebashar : https://github.com/ShahramMebashar\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var symbolMap = {\n            1: '١',\n            2: '٢',\n            3: '٣',\n            4: '٤',\n            5: '٥',\n            6: '٦',\n            7: '٧',\n            8: '٨',\n            9: '٩',\n            0: '٠',\n        },\n        numberMap = {\n            '١': '1',\n            '٢': '2',\n            '٣': '3',\n            '٤': '4',\n            '٥': '5',\n            '٦': '6',\n            '٧': '7',\n            '٨': '8',\n            '٩': '9',\n            '٠': '0',\n        },\n        months = [\n            'کانونی دووەم',\n            'شوبات',\n            'ئازار',\n            'نیسان',\n            'ئایار',\n            'حوزەیران',\n            'تەمموز',\n            'ئاب',\n            'ئەیلوول',\n            'تشرینی یەكەم',\n            'تشرینی دووەم',\n            'كانونی یەکەم',\n        ];\n\n    var ku = moment.defineLocale('ku', {\n        months: months,\n        monthsShort: months,\n        weekdays:\n            'یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌'.split(\n                '_'\n            ),\n        weekdaysShort:\n            'یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌'.split('_'),\n        weekdaysMin: 'ی_د_س_چ_پ_ه_ش'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd, D MMMM YYYY HH:mm',\n        },\n        meridiemParse: /ئێواره‌|به‌یانی/,\n        isPM: function (input) {\n            return /ئێواره‌/.test(input);\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 12) {\n                return 'به‌یانی';\n            } else {\n                return 'ئێواره‌';\n            }\n        },\n        calendar: {\n            sameDay: '[ئه‌مرۆ كاتژمێر] LT',\n            nextDay: '[به‌یانی كاتژمێر] LT',\n            nextWeek: 'dddd [كاتژمێر] LT',\n            lastDay: '[دوێنێ كاتژمێر] LT',\n            lastWeek: 'dddd [كاتژمێر] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'له‌ %s',\n            past: '%s',\n            s: 'چه‌ند چركه‌یه‌ك',\n            ss: 'چركه‌ %d',\n            m: 'یه‌ك خوله‌ك',\n            mm: '%d خوله‌ك',\n            h: 'یه‌ك كاتژمێر',\n            hh: '%d كاتژمێر',\n            d: 'یه‌ك ڕۆژ',\n            dd: '%d ڕۆژ',\n            M: 'یه‌ك مانگ',\n            MM: '%d مانگ',\n            y: 'یه‌ك ساڵ',\n            yy: '%d ساڵ',\n        },\n        preparse: function (string) {\n            return string\n                .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {\n                    return numberMap[match];\n                })\n                .replace(/،/g, ',');\n        },\n        postformat: function (string) {\n            return string\n                .replace(/\\d/g, function (match) {\n                    return symbolMap[match];\n                })\n                .replace(/,/g, '،');\n        },\n        week: {\n            dow: 6, // Saturday is the first day of the week.\n            doy: 12, // The week that contains Jan 12th is the first week of the year.\n        },\n    });\n\n    return ku;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ku.js\n// module id = 550\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Kyrgyz [ky]\n//! author : Chyngyz Arystan uulu : https://github.com/chyngyz\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var suffixes = {\n        0: '-чү',\n        1: '-чи',\n        2: '-чи',\n        3: '-чү',\n        4: '-чү',\n        5: '-чи',\n        6: '-чы',\n        7: '-чи',\n        8: '-чи',\n        9: '-чу',\n        10: '-чу',\n        20: '-чы',\n        30: '-чу',\n        40: '-чы',\n        50: '-чү',\n        60: '-чы',\n        70: '-чи',\n        80: '-чи',\n        90: '-чу',\n        100: '-чү',\n    };\n\n    var ky = moment.defineLocale('ky', {\n        months: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split(\n            '_'\n        ),\n        monthsShort: 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split(\n            '_'\n        ),\n        weekdays: 'Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби'.split(\n            '_'\n        ),\n        weekdaysShort: 'Жек_Дүй_Шей_Шар_Бей_Жум_Ише'.split('_'),\n        weekdaysMin: 'Жк_Дй_Шй_Шр_Бй_Жм_Иш'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD.MM.YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd, D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[Бүгүн саат] LT',\n            nextDay: '[Эртең саат] LT',\n            nextWeek: 'dddd [саат] LT',\n            lastDay: '[Кечээ саат] LT',\n            lastWeek: '[Өткөн аптанын] dddd [күнү] [саат] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s ичинде',\n            past: '%s мурун',\n            s: 'бирнече секунд',\n            ss: '%d секунд',\n            m: 'бир мүнөт',\n            mm: '%d мүнөт',\n            h: 'бир саат',\n            hh: '%d саат',\n            d: 'бир күн',\n            dd: '%d күн',\n            M: 'бир ай',\n            MM: '%d ай',\n            y: 'бир жыл',\n            yy: '%d жыл',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}-(чи|чы|чү|чу)/,\n        ordinal: function (number) {\n            var a = number % 10,\n                b = number >= 100 ? 100 : null;\n            return number + (suffixes[number] || suffixes[a] || suffixes[b]);\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 7, // The week that contains Jan 7th is the first week of the year.\n        },\n    });\n\n    return ky;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ky.js\n// module id = 551\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Luxembourgish [lb]\n//! author : mweimerskirch : https://github.com/mweimerskirch\n//! author : David Raison : https://github.com/kwisatz\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    function processRelativeTime(number, withoutSuffix, key, isFuture) {\n        var format = {\n            m: ['eng Minutt', 'enger Minutt'],\n            h: ['eng Stonn', 'enger Stonn'],\n            d: ['een Dag', 'engem Dag'],\n            M: ['ee Mount', 'engem Mount'],\n            y: ['ee Joer', 'engem Joer'],\n        };\n        return withoutSuffix ? format[key][0] : format[key][1];\n    }\n    function processFutureTime(string) {\n        var number = string.substr(0, string.indexOf(' '));\n        if (eifelerRegelAppliesToNumber(number)) {\n            return 'a ' + string;\n        }\n        return 'an ' + string;\n    }\n    function processPastTime(string) {\n        var number = string.substr(0, string.indexOf(' '));\n        if (eifelerRegelAppliesToNumber(number)) {\n            return 'viru ' + string;\n        }\n        return 'virun ' + string;\n    }\n    /**\n     * Returns true if the word before the given number loses the '-n' ending.\n     * e.g. 'an 10 Deeg' but 'a 5 Deeg'\n     *\n     * @param number {integer}\n     * @returns {boolean}\n     */\n    function eifelerRegelAppliesToNumber(number) {\n        number = parseInt(number, 10);\n        if (isNaN(number)) {\n            return false;\n        }\n        if (number < 0) {\n            // Negative Number --> always true\n            return true;\n        } else if (number < 10) {\n            // Only 1 digit\n            if (4 <= number && number <= 7) {\n                return true;\n            }\n            return false;\n        } else if (number < 100) {\n            // 2 digits\n            var lastDigit = number % 10,\n                firstDigit = number / 10;\n            if (lastDigit === 0) {\n                return eifelerRegelAppliesToNumber(firstDigit);\n            }\n            return eifelerRegelAppliesToNumber(lastDigit);\n        } else if (number < 10000) {\n            // 3 or 4 digits --> recursively check first digit\n            while (number >= 10) {\n                number = number / 10;\n            }\n            return eifelerRegelAppliesToNumber(number);\n        } else {\n            // Anything larger than 4 digits: recursively check first n-3 digits\n            number = number / 1000;\n            return eifelerRegelAppliesToNumber(number);\n        }\n    }\n\n    var lb = moment.defineLocale('lb', {\n        months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split(\n            '_'\n        ),\n        monthsShort:\n            'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split(\n                '_'\n            ),\n        monthsParseExact: true,\n        weekdays:\n            'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split(\n                '_'\n            ),\n        weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'),\n        weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'H:mm [Auer]',\n            LTS: 'H:mm:ss [Auer]',\n            L: 'DD.MM.YYYY',\n            LL: 'D. MMMM YYYY',\n            LLL: 'D. MMMM YYYY H:mm [Auer]',\n            LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]',\n        },\n        calendar: {\n            sameDay: '[Haut um] LT',\n            sameElse: 'L',\n            nextDay: '[Muer um] LT',\n            nextWeek: 'dddd [um] LT',\n            lastDay: '[Gëschter um] LT',\n            lastWeek: function () {\n                // Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule\n                switch (this.day()) {\n                    case 2:\n                    case 4:\n                        return '[Leschten] dddd [um] LT';\n                    default:\n                        return '[Leschte] dddd [um] LT';\n                }\n            },\n        },\n        relativeTime: {\n            future: processFutureTime,\n            past: processPastTime,\n            s: 'e puer Sekonnen',\n            ss: '%d Sekonnen',\n            m: processRelativeTime,\n            mm: '%d Minutten',\n            h: processRelativeTime,\n            hh: '%d Stonnen',\n            d: processRelativeTime,\n            dd: '%d Deeg',\n            M: processRelativeTime,\n            MM: '%d Méint',\n            y: processRelativeTime,\n            yy: '%d Joer',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n        ordinal: '%d.',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return lb;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/lb.js\n// module id = 552\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Lao [lo]\n//! author : Ryan Hart : https://github.com/ryanhart2\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var lo = moment.defineLocale('lo', {\n        months: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split(\n            '_'\n        ),\n        monthsShort:\n            'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split(\n                '_'\n            ),\n        weekdays: 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),\n        weekdaysShort: 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),\n        weekdaysMin: 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'ວັນdddd D MMMM YYYY HH:mm',\n        },\n        meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/,\n        isPM: function (input) {\n            return input === 'ຕອນແລງ';\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 12) {\n                return 'ຕອນເຊົ້າ';\n            } else {\n                return 'ຕອນແລງ';\n            }\n        },\n        calendar: {\n            sameDay: '[ມື້ນີ້ເວລາ] LT',\n            nextDay: '[ມື້ອື່ນເວລາ] LT',\n            nextWeek: '[ວັນ]dddd[ໜ້າເວລາ] LT',\n            lastDay: '[ມື້ວານນີ້ເວລາ] LT',\n            lastWeek: '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'ອີກ %s',\n            past: '%sຜ່ານມາ',\n            s: 'ບໍ່ເທົ່າໃດວິນາທີ',\n            ss: '%d ວິນາທີ',\n            m: '1 ນາທີ',\n            mm: '%d ນາທີ',\n            h: '1 ຊົ່ວໂມງ',\n            hh: '%d ຊົ່ວໂມງ',\n            d: '1 ມື້',\n            dd: '%d ມື້',\n            M: '1 ເດືອນ',\n            MM: '%d ເດືອນ',\n            y: '1 ປີ',\n            yy: '%d ປີ',\n        },\n        dayOfMonthOrdinalParse: /(ທີ່)\\d{1,2}/,\n        ordinal: function (number) {\n            return 'ທີ່' + number;\n        },\n    });\n\n    return lo;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/lo.js\n// module id = 553\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Lithuanian [lt]\n//! author : Mindaugas Mozūras : https://github.com/mmozuras\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var units = {\n        ss: 'sekundė_sekundžių_sekundes',\n        m: 'minutė_minutės_minutę',\n        mm: 'minutės_minučių_minutes',\n        h: 'valanda_valandos_valandą',\n        hh: 'valandos_valandų_valandas',\n        d: 'diena_dienos_dieną',\n        dd: 'dienos_dienų_dienas',\n        M: 'mėnuo_mėnesio_mėnesį',\n        MM: 'mėnesiai_mėnesių_mėnesius',\n        y: 'metai_metų_metus',\n        yy: 'metai_metų_metus',\n    };\n    function translateSeconds(number, withoutSuffix, key, isFuture) {\n        if (withoutSuffix) {\n            return 'kelios sekundės';\n        } else {\n            return isFuture ? 'kelių sekundžių' : 'kelias sekundes';\n        }\n    }\n    function translateSingular(number, withoutSuffix, key, isFuture) {\n        return withoutSuffix\n            ? forms(key)[0]\n            : isFuture\n            ? forms(key)[1]\n            : forms(key)[2];\n    }\n    function special(number) {\n        return number % 10 === 0 || (number > 10 && number < 20);\n    }\n    function forms(key) {\n        return units[key].split('_');\n    }\n    function translate(number, withoutSuffix, key, isFuture) {\n        var result = number + ' ';\n        if (number === 1) {\n            return (\n                result + translateSingular(number, withoutSuffix, key[0], isFuture)\n            );\n        } else if (withoutSuffix) {\n            return result + (special(number) ? forms(key)[1] : forms(key)[0]);\n        } else {\n            if (isFuture) {\n                return result + forms(key)[1];\n            } else {\n                return result + (special(number) ? forms(key)[1] : forms(key)[2]);\n            }\n        }\n    }\n    var lt = moment.defineLocale('lt', {\n        months: {\n            format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split(\n                '_'\n            ),\n            standalone:\n                'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split(\n                    '_'\n                ),\n            isFormat: /D[oD]?(\\[[^\\[\\]]*\\]|\\s)+MMMM?|MMMM?(\\[[^\\[\\]]*\\]|\\s)+D[oD]?/,\n        },\n        monthsShort: 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'),\n        weekdays: {\n            format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split(\n                '_'\n            ),\n            standalone:\n                'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split(\n                    '_'\n                ),\n            isFormat: /dddd HH:mm/,\n        },\n        weekdaysShort: 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'),\n        weekdaysMin: 'S_P_A_T_K_Pn_Š'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'YYYY-MM-DD',\n            LL: 'YYYY [m.] MMMM D [d.]',\n            LLL: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',\n            LLLL: 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]',\n            l: 'YYYY-MM-DD',\n            ll: 'YYYY [m.] MMMM D [d.]',\n            lll: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',\n            llll: 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]',\n        },\n        calendar: {\n            sameDay: '[Šiandien] LT',\n            nextDay: '[Rytoj] LT',\n            nextWeek: 'dddd LT',\n            lastDay: '[Vakar] LT',\n            lastWeek: '[Praėjusį] dddd LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'po %s',\n            past: 'prieš %s',\n            s: translateSeconds,\n            ss: translate,\n            m: translateSingular,\n            mm: translate,\n            h: translateSingular,\n            hh: translate,\n            d: translateSingular,\n            dd: translate,\n            M: translateSingular,\n            MM: translate,\n            y: translateSingular,\n            yy: translate,\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}-oji/,\n        ordinal: function (number) {\n            return number + '-oji';\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return lt;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/lt.js\n// module id = 554\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Latvian [lv]\n//! author : Kristaps Karlsons : https://github.com/skakri\n//! author : Jānis Elmeris : https://github.com/JanisE\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var units = {\n        ss: 'sekundes_sekundēm_sekunde_sekundes'.split('_'),\n        m: 'minūtes_minūtēm_minūte_minūtes'.split('_'),\n        mm: 'minūtes_minūtēm_minūte_minūtes'.split('_'),\n        h: 'stundas_stundām_stunda_stundas'.split('_'),\n        hh: 'stundas_stundām_stunda_stundas'.split('_'),\n        d: 'dienas_dienām_diena_dienas'.split('_'),\n        dd: 'dienas_dienām_diena_dienas'.split('_'),\n        M: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),\n        MM: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),\n        y: 'gada_gadiem_gads_gadi'.split('_'),\n        yy: 'gada_gadiem_gads_gadi'.split('_'),\n    };\n    /**\n     * @param withoutSuffix boolean true = a length of time; false = before/after a period of time.\n     */\n    function format(forms, number, withoutSuffix) {\n        if (withoutSuffix) {\n            // E.g. \"21 minūte\", \"3 minūtes\".\n            return number % 10 === 1 && number % 100 !== 11 ? forms[2] : forms[3];\n        } else {\n            // E.g. \"21 minūtes\" as in \"pēc 21 minūtes\".\n            // E.g. \"3 minūtēm\" as in \"pēc 3 minūtēm\".\n            return number % 10 === 1 && number % 100 !== 11 ? forms[0] : forms[1];\n        }\n    }\n    function relativeTimeWithPlural(number, withoutSuffix, key) {\n        return number + ' ' + format(units[key], number, withoutSuffix);\n    }\n    function relativeTimeWithSingular(number, withoutSuffix, key) {\n        return format(units[key], number, withoutSuffix);\n    }\n    function relativeSeconds(number, withoutSuffix) {\n        return withoutSuffix ? 'dažas sekundes' : 'dažām sekundēm';\n    }\n\n    var lv = moment.defineLocale('lv', {\n        months: 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split(\n            '_'\n        ),\n        monthsShort: 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'),\n        weekdays:\n            'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split(\n                '_'\n            ),\n        weekdaysShort: 'Sv_P_O_T_C_Pk_S'.split('_'),\n        weekdaysMin: 'Sv_P_O_T_C_Pk_S'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD.MM.YYYY.',\n            LL: 'YYYY. [gada] D. MMMM',\n            LLL: 'YYYY. [gada] D. MMMM, HH:mm',\n            LLLL: 'YYYY. [gada] D. MMMM, dddd, HH:mm',\n        },\n        calendar: {\n            sameDay: '[Šodien pulksten] LT',\n            nextDay: '[Rīt pulksten] LT',\n            nextWeek: 'dddd [pulksten] LT',\n            lastDay: '[Vakar pulksten] LT',\n            lastWeek: '[Pagājušā] dddd [pulksten] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'pēc %s',\n            past: 'pirms %s',\n            s: relativeSeconds,\n            ss: relativeTimeWithPlural,\n            m: relativeTimeWithSingular,\n            mm: relativeTimeWithPlural,\n            h: relativeTimeWithSingular,\n            hh: relativeTimeWithPlural,\n            d: relativeTimeWithSingular,\n            dd: relativeTimeWithPlural,\n            M: relativeTimeWithSingular,\n            MM: relativeTimeWithPlural,\n            y: relativeTimeWithSingular,\n            yy: relativeTimeWithPlural,\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n        ordinal: '%d.',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return lv;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/lv.js\n// module id = 555\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Montenegrin [me]\n//! author : Miodrag Nikač <miodrag@restartit.me> : https://github.com/miodragnikac\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var translator = {\n        words: {\n            //Different grammatical cases\n            ss: ['sekund', 'sekunda', 'sekundi'],\n            m: ['jedan minut', 'jednog minuta'],\n            mm: ['minut', 'minuta', 'minuta'],\n            h: ['jedan sat', 'jednog sata'],\n            hh: ['sat', 'sata', 'sati'],\n            dd: ['dan', 'dana', 'dana'],\n            MM: ['mjesec', 'mjeseca', 'mjeseci'],\n            yy: ['godina', 'godine', 'godina'],\n        },\n        correctGrammaticalCase: function (number, wordKey) {\n            return number === 1\n                ? wordKey[0]\n                : number >= 2 && number <= 4\n                ? wordKey[1]\n                : wordKey[2];\n        },\n        translate: function (number, withoutSuffix, key) {\n            var wordKey = translator.words[key];\n            if (key.length === 1) {\n                return withoutSuffix ? wordKey[0] : wordKey[1];\n            } else {\n                return (\n                    number +\n                    ' ' +\n                    translator.correctGrammaticalCase(number, wordKey)\n                );\n            }\n        },\n    };\n\n    var me = moment.defineLocale('me', {\n        months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split(\n            '_'\n        ),\n        monthsShort:\n            'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),\n        monthsParseExact: true,\n        weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(\n            '_'\n        ),\n        weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),\n        weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'H:mm',\n            LTS: 'H:mm:ss',\n            L: 'DD.MM.YYYY',\n            LL: 'D. MMMM YYYY',\n            LLL: 'D. MMMM YYYY H:mm',\n            LLLL: 'dddd, D. MMMM YYYY H:mm',\n        },\n        calendar: {\n            sameDay: '[danas u] LT',\n            nextDay: '[sjutra u] LT',\n\n            nextWeek: function () {\n                switch (this.day()) {\n                    case 0:\n                        return '[u] [nedjelju] [u] LT';\n                    case 3:\n                        return '[u] [srijedu] [u] LT';\n                    case 6:\n                        return '[u] [subotu] [u] LT';\n                    case 1:\n                    case 2:\n                    case 4:\n                    case 5:\n                        return '[u] dddd [u] LT';\n                }\n            },\n            lastDay: '[juče u] LT',\n            lastWeek: function () {\n                var lastWeekDays = [\n                    '[prošle] [nedjelje] [u] LT',\n                    '[prošlog] [ponedjeljka] [u] LT',\n                    '[prošlog] [utorka] [u] LT',\n                    '[prošle] [srijede] [u] LT',\n                    '[prošlog] [četvrtka] [u] LT',\n                    '[prošlog] [petka] [u] LT',\n                    '[prošle] [subote] [u] LT',\n                ];\n                return lastWeekDays[this.day()];\n            },\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'za %s',\n            past: 'prije %s',\n            s: 'nekoliko sekundi',\n            ss: translator.translate,\n            m: translator.translate,\n            mm: translator.translate,\n            h: translator.translate,\n            hh: translator.translate,\n            d: 'dan',\n            dd: translator.translate,\n            M: 'mjesec',\n            MM: translator.translate,\n            y: 'godinu',\n            yy: translator.translate,\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n        ordinal: '%d.',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 7, // The week that contains Jan 7th is the first week of the year.\n        },\n    });\n\n    return me;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/me.js\n// module id = 556\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Maori [mi]\n//! author : John Corrigan <robbiecloset@gmail.com> : https://github.com/johnideal\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var mi = moment.defineLocale('mi', {\n        months: 'Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea'.split(\n            '_'\n        ),\n        monthsShort:\n            'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split(\n                '_'\n            ),\n        monthsRegex: /(?:['a-z\\u0101\\u014D\\u016B]+\\-?){1,3}/i,\n        monthsStrictRegex: /(?:['a-z\\u0101\\u014D\\u016B]+\\-?){1,3}/i,\n        monthsShortRegex: /(?:['a-z\\u0101\\u014D\\u016B]+\\-?){1,3}/i,\n        monthsShortStrictRegex: /(?:['a-z\\u0101\\u014D\\u016B]+\\-?){1,2}/i,\n        weekdays: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split('_'),\n        weekdaysShort: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),\n        weekdaysMin: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY [i] HH:mm',\n            LLLL: 'dddd, D MMMM YYYY [i] HH:mm',\n        },\n        calendar: {\n            sameDay: '[i teie mahana, i] LT',\n            nextDay: '[apopo i] LT',\n            nextWeek: 'dddd [i] LT',\n            lastDay: '[inanahi i] LT',\n            lastWeek: 'dddd [whakamutunga i] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'i roto i %s',\n            past: '%s i mua',\n            s: 'te hēkona ruarua',\n            ss: '%d hēkona',\n            m: 'he meneti',\n            mm: '%d meneti',\n            h: 'te haora',\n            hh: '%d haora',\n            d: 'he ra',\n            dd: '%d ra',\n            M: 'he marama',\n            MM: '%d marama',\n            y: 'he tau',\n            yy: '%d tau',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}º/,\n        ordinal: '%dº',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return mi;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/mi.js\n// module id = 557\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Macedonian [mk]\n//! author : Borislav Mickov : https://github.com/B0k0\n//! author : Sashko Todorov : https://github.com/bkyceh\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var mk = moment.defineLocale('mk', {\n        months: 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split(\n            '_'\n        ),\n        monthsShort: 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split('_'),\n        weekdays: 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split(\n            '_'\n        ),\n        weekdaysShort: 'нед_пон_вто_сре_чет_пет_саб'.split('_'),\n        weekdaysMin: 'нe_пo_вт_ср_че_пе_сa'.split('_'),\n        longDateFormat: {\n            LT: 'H:mm',\n            LTS: 'H:mm:ss',\n            L: 'D.MM.YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY H:mm',\n            LLLL: 'dddd, D MMMM YYYY H:mm',\n        },\n        calendar: {\n            sameDay: '[Денес во] LT',\n            nextDay: '[Утре во] LT',\n            nextWeek: '[Во] dddd [во] LT',\n            lastDay: '[Вчера во] LT',\n            lastWeek: function () {\n                switch (this.day()) {\n                    case 0:\n                    case 3:\n                    case 6:\n                        return '[Изминатата] dddd [во] LT';\n                    case 1:\n                    case 2:\n                    case 4:\n                    case 5:\n                        return '[Изминатиот] dddd [во] LT';\n                }\n            },\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'за %s',\n            past: 'пред %s',\n            s: 'неколку секунди',\n            ss: '%d секунди',\n            m: 'една минута',\n            mm: '%d минути',\n            h: 'еден час',\n            hh: '%d часа',\n            d: 'еден ден',\n            dd: '%d дена',\n            M: 'еден месец',\n            MM: '%d месеци',\n            y: 'една година',\n            yy: '%d години',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}-(ев|ен|ти|ви|ри|ми)/,\n        ordinal: function (number) {\n            var lastDigit = number % 10,\n                last2Digits = number % 100;\n            if (number === 0) {\n                return number + '-ев';\n            } else if (last2Digits === 0) {\n                return number + '-ен';\n            } else if (last2Digits > 10 && last2Digits < 20) {\n                return number + '-ти';\n            } else if (lastDigit === 1) {\n                return number + '-ви';\n            } else if (lastDigit === 2) {\n                return number + '-ри';\n            } else if (lastDigit === 7 || lastDigit === 8) {\n                return number + '-ми';\n            } else {\n                return number + '-ти';\n            }\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 7, // The week that contains Jan 7th is the first week of the year.\n        },\n    });\n\n    return mk;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/mk.js\n// module id = 558\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Malayalam [ml]\n//! author : Floyd Pink : https://github.com/floydpink\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var ml = moment.defineLocale('ml', {\n        months: 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split(\n            '_'\n        ),\n        monthsShort:\n            'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split(\n                '_'\n            ),\n        monthsParseExact: true,\n        weekdays:\n            'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split(\n                '_'\n            ),\n        weekdaysShort: 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'),\n        weekdaysMin: 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'),\n        longDateFormat: {\n            LT: 'A h:mm -നു',\n            LTS: 'A h:mm:ss -നു',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY, A h:mm -നു',\n            LLLL: 'dddd, D MMMM YYYY, A h:mm -നു',\n        },\n        calendar: {\n            sameDay: '[ഇന്ന്] LT',\n            nextDay: '[നാളെ] LT',\n            nextWeek: 'dddd, LT',\n            lastDay: '[ഇന്നലെ] LT',\n            lastWeek: '[കഴിഞ്ഞ] dddd, LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s കഴിഞ്ഞ്',\n            past: '%s മുൻപ്',\n            s: 'അൽപ നിമിഷങ്ങൾ',\n            ss: '%d സെക്കൻഡ്',\n            m: 'ഒരു മിനിറ്റ്',\n            mm: '%d മിനിറ്റ്',\n            h: 'ഒരു മണിക്കൂർ',\n            hh: '%d മണിക്കൂർ',\n            d: 'ഒരു ദിവസം',\n            dd: '%d ദിവസം',\n            M: 'ഒരു മാസം',\n            MM: '%d മാസം',\n            y: 'ഒരു വർഷം',\n            yy: '%d വർഷം',\n        },\n        meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,\n        meridiemHour: function (hour, meridiem) {\n            if (hour === 12) {\n                hour = 0;\n            }\n            if (\n                (meridiem === 'രാത്രി' && hour >= 4) ||\n                meridiem === 'ഉച്ച കഴിഞ്ഞ്' ||\n                meridiem === 'വൈകുന്നേരം'\n            ) {\n                return hour + 12;\n            } else {\n                return hour;\n            }\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 4) {\n                return 'രാത്രി';\n            } else if (hour < 12) {\n                return 'രാവിലെ';\n            } else if (hour < 17) {\n                return 'ഉച്ച കഴിഞ്ഞ്';\n            } else if (hour < 20) {\n                return 'വൈകുന്നേരം';\n            } else {\n                return 'രാത്രി';\n            }\n        },\n    });\n\n    return ml;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ml.js\n// module id = 559\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Mongolian [mn]\n//! author : Javkhlantugs Nyamdorj : https://github.com/javkhaanj7\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    function translate(number, withoutSuffix, key, isFuture) {\n        switch (key) {\n            case 's':\n                return withoutSuffix ? 'хэдхэн секунд' : 'хэдхэн секундын';\n            case 'ss':\n                return number + (withoutSuffix ? ' секунд' : ' секундын');\n            case 'm':\n            case 'mm':\n                return number + (withoutSuffix ? ' минут' : ' минутын');\n            case 'h':\n            case 'hh':\n                return number + (withoutSuffix ? ' цаг' : ' цагийн');\n            case 'd':\n            case 'dd':\n                return number + (withoutSuffix ? ' өдөр' : ' өдрийн');\n            case 'M':\n            case 'MM':\n                return number + (withoutSuffix ? ' сар' : ' сарын');\n            case 'y':\n            case 'yy':\n                return number + (withoutSuffix ? ' жил' : ' жилийн');\n            default:\n                return number;\n        }\n    }\n\n    var mn = moment.defineLocale('mn', {\n        months: 'Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар'.split(\n            '_'\n        ),\n        monthsShort:\n            '1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар'.split(\n                '_'\n            ),\n        monthsParseExact: true,\n        weekdays: 'Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба'.split('_'),\n        weekdaysShort: 'Ням_Дав_Мяг_Лха_Пүр_Баа_Бям'.split('_'),\n        weekdaysMin: 'Ня_Да_Мя_Лх_Пү_Ба_Бя'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'YYYY-MM-DD',\n            LL: 'YYYY оны MMMMын D',\n            LLL: 'YYYY оны MMMMын D HH:mm',\n            LLLL: 'dddd, YYYY оны MMMMын D HH:mm',\n        },\n        meridiemParse: /ҮӨ|ҮХ/i,\n        isPM: function (input) {\n            return input === 'ҮХ';\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 12) {\n                return 'ҮӨ';\n            } else {\n                return 'ҮХ';\n            }\n        },\n        calendar: {\n            sameDay: '[Өнөөдөр] LT',\n            nextDay: '[Маргааш] LT',\n            nextWeek: '[Ирэх] dddd LT',\n            lastDay: '[Өчигдөр] LT',\n            lastWeek: '[Өнгөрсөн] dddd LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s дараа',\n            past: '%s өмнө',\n            s: translate,\n            ss: translate,\n            m: translate,\n            mm: translate,\n            h: translate,\n            hh: translate,\n            d: translate,\n            dd: translate,\n            M: translate,\n            MM: translate,\n            y: translate,\n            yy: translate,\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2} өдөр/,\n        ordinal: function (number, period) {\n            switch (period) {\n                case 'd':\n                case 'D':\n                case 'DDD':\n                    return number + ' өдөр';\n                default:\n                    return number;\n            }\n        },\n    });\n\n    return mn;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/mn.js\n// module id = 560\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Marathi [mr]\n//! author : Harshad Kale : https://github.com/kalehv\n//! author : Vivek Athalye : https://github.com/vnathalye\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var symbolMap = {\n            1: '१',\n            2: '२',\n            3: '३',\n            4: '४',\n            5: '५',\n            6: '६',\n            7: '७',\n            8: '८',\n            9: '९',\n            0: '०',\n        },\n        numberMap = {\n            '१': '1',\n            '२': '2',\n            '३': '3',\n            '४': '4',\n            '५': '5',\n            '६': '6',\n            '७': '7',\n            '८': '8',\n            '९': '9',\n            '०': '0',\n        };\n\n    function relativeTimeMr(number, withoutSuffix, string, isFuture) {\n        var output = '';\n        if (withoutSuffix) {\n            switch (string) {\n                case 's':\n                    output = 'काही सेकंद';\n                    break;\n                case 'ss':\n                    output = '%d सेकंद';\n                    break;\n                case 'm':\n                    output = 'एक मिनिट';\n                    break;\n                case 'mm':\n                    output = '%d मिनिटे';\n                    break;\n                case 'h':\n                    output = 'एक तास';\n                    break;\n                case 'hh':\n                    output = '%d तास';\n                    break;\n                case 'd':\n                    output = 'एक दिवस';\n                    break;\n                case 'dd':\n                    output = '%d दिवस';\n                    break;\n                case 'M':\n                    output = 'एक महिना';\n                    break;\n                case 'MM':\n                    output = '%d महिने';\n                    break;\n                case 'y':\n                    output = 'एक वर्ष';\n                    break;\n                case 'yy':\n                    output = '%d वर्षे';\n                    break;\n            }\n        } else {\n            switch (string) {\n                case 's':\n                    output = 'काही सेकंदां';\n                    break;\n                case 'ss':\n                    output = '%d सेकंदां';\n                    break;\n                case 'm':\n                    output = 'एका मिनिटा';\n                    break;\n                case 'mm':\n                    output = '%d मिनिटां';\n                    break;\n                case 'h':\n                    output = 'एका तासा';\n                    break;\n                case 'hh':\n                    output = '%d तासां';\n                    break;\n                case 'd':\n                    output = 'एका दिवसा';\n                    break;\n                case 'dd':\n                    output = '%d दिवसां';\n                    break;\n                case 'M':\n                    output = 'एका महिन्या';\n                    break;\n                case 'MM':\n                    output = '%d महिन्यां';\n                    break;\n                case 'y':\n                    output = 'एका वर्षा';\n                    break;\n                case 'yy':\n                    output = '%d वर्षां';\n                    break;\n            }\n        }\n        return output.replace(/%d/i, number);\n    }\n\n    var mr = moment.defineLocale('mr', {\n        months: 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split(\n            '_'\n        ),\n        monthsShort:\n            'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split(\n                '_'\n            ),\n        monthsParseExact: true,\n        weekdays: 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),\n        weekdaysShort: 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'),\n        weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),\n        longDateFormat: {\n            LT: 'A h:mm वाजता',\n            LTS: 'A h:mm:ss वाजता',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY, A h:mm वाजता',\n            LLLL: 'dddd, D MMMM YYYY, A h:mm वाजता',\n        },\n        calendar: {\n            sameDay: '[आज] LT',\n            nextDay: '[उद्या] LT',\n            nextWeek: 'dddd, LT',\n            lastDay: '[काल] LT',\n            lastWeek: '[मागील] dddd, LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%sमध्ये',\n            past: '%sपूर्वी',\n            s: relativeTimeMr,\n            ss: relativeTimeMr,\n            m: relativeTimeMr,\n            mm: relativeTimeMr,\n            h: relativeTimeMr,\n            hh: relativeTimeMr,\n            d: relativeTimeMr,\n            dd: relativeTimeMr,\n            M: relativeTimeMr,\n            MM: relativeTimeMr,\n            y: relativeTimeMr,\n            yy: relativeTimeMr,\n        },\n        preparse: function (string) {\n            return string.replace(/[१२३४५६७८९०]/g, function (match) {\n                return numberMap[match];\n            });\n        },\n        postformat: function (string) {\n            return string.replace(/\\d/g, function (match) {\n                return symbolMap[match];\n            });\n        },\n        meridiemParse: /पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,\n        meridiemHour: function (hour, meridiem) {\n            if (hour === 12) {\n                hour = 0;\n            }\n            if (meridiem === 'पहाटे' || meridiem === 'सकाळी') {\n                return hour;\n            } else if (\n                meridiem === 'दुपारी' ||\n                meridiem === 'सायंकाळी' ||\n                meridiem === 'रात्री'\n            ) {\n                return hour >= 12 ? hour : hour + 12;\n            }\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour >= 0 && hour < 6) {\n                return 'पहाटे';\n            } else if (hour < 12) {\n                return 'सकाळी';\n            } else if (hour < 17) {\n                return 'दुपारी';\n            } else if (hour < 20) {\n                return 'सायंकाळी';\n            } else {\n                return 'रात्री';\n            }\n        },\n        week: {\n            dow: 0, // Sunday is the first day of the week.\n            doy: 6, // The week that contains Jan 6th is the first week of the year.\n        },\n    });\n\n    return mr;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/mr.js\n// module id = 561\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Malay [ms-my]\n//! note : DEPRECATED, the correct one is [ms]\n//! author : Weldan Jamili : https://github.com/weldan\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var msMy = moment.defineLocale('ms-my', {\n        months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split(\n            '_'\n        ),\n        monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),\n        weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),\n        weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),\n        weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),\n        longDateFormat: {\n            LT: 'HH.mm',\n            LTS: 'HH.mm.ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY [pukul] HH.mm',\n            LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',\n        },\n        meridiemParse: /pagi|tengahari|petang|malam/,\n        meridiemHour: function (hour, meridiem) {\n            if (hour === 12) {\n                hour = 0;\n            }\n            if (meridiem === 'pagi') {\n                return hour;\n            } else if (meridiem === 'tengahari') {\n                return hour >= 11 ? hour : hour + 12;\n            } else if (meridiem === 'petang' || meridiem === 'malam') {\n                return hour + 12;\n            }\n        },\n        meridiem: function (hours, minutes, isLower) {\n            if (hours < 11) {\n                return 'pagi';\n            } else if (hours < 15) {\n                return 'tengahari';\n            } else if (hours < 19) {\n                return 'petang';\n            } else {\n                return 'malam';\n            }\n        },\n        calendar: {\n            sameDay: '[Hari ini pukul] LT',\n            nextDay: '[Esok pukul] LT',\n            nextWeek: 'dddd [pukul] LT',\n            lastDay: '[Kelmarin pukul] LT',\n            lastWeek: 'dddd [lepas pukul] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'dalam %s',\n            past: '%s yang lepas',\n            s: 'beberapa saat',\n            ss: '%d saat',\n            m: 'seminit',\n            mm: '%d minit',\n            h: 'sejam',\n            hh: '%d jam',\n            d: 'sehari',\n            dd: '%d hari',\n            M: 'sebulan',\n            MM: '%d bulan',\n            y: 'setahun',\n            yy: '%d tahun',\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 7, // The week that contains Jan 7th is the first week of the year.\n        },\n    });\n\n    return msMy;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ms-my.js\n// module id = 562\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Malay [ms]\n//! author : Weldan Jamili : https://github.com/weldan\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var ms = moment.defineLocale('ms', {\n        months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split(\n            '_'\n        ),\n        monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),\n        weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),\n        weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),\n        weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),\n        longDateFormat: {\n            LT: 'HH.mm',\n            LTS: 'HH.mm.ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY [pukul] HH.mm',\n            LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',\n        },\n        meridiemParse: /pagi|tengahari|petang|malam/,\n        meridiemHour: function (hour, meridiem) {\n            if (hour === 12) {\n                hour = 0;\n            }\n            if (meridiem === 'pagi') {\n                return hour;\n            } else if (meridiem === 'tengahari') {\n                return hour >= 11 ? hour : hour + 12;\n            } else if (meridiem === 'petang' || meridiem === 'malam') {\n                return hour + 12;\n            }\n        },\n        meridiem: function (hours, minutes, isLower) {\n            if (hours < 11) {\n                return 'pagi';\n            } else if (hours < 15) {\n                return 'tengahari';\n            } else if (hours < 19) {\n                return 'petang';\n            } else {\n                return 'malam';\n            }\n        },\n        calendar: {\n            sameDay: '[Hari ini pukul] LT',\n            nextDay: '[Esok pukul] LT',\n            nextWeek: 'dddd [pukul] LT',\n            lastDay: '[Kelmarin pukul] LT',\n            lastWeek: 'dddd [lepas pukul] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'dalam %s',\n            past: '%s yang lepas',\n            s: 'beberapa saat',\n            ss: '%d saat',\n            m: 'seminit',\n            mm: '%d minit',\n            h: 'sejam',\n            hh: '%d jam',\n            d: 'sehari',\n            dd: '%d hari',\n            M: 'sebulan',\n            MM: '%d bulan',\n            y: 'setahun',\n            yy: '%d tahun',\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 7, // The week that contains Jan 7th is the first week of the year.\n        },\n    });\n\n    return ms;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ms.js\n// module id = 563\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Maltese (Malta) [mt]\n//! author : Alessandro Maruccia : https://github.com/alesma\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var mt = moment.defineLocale('mt', {\n        months: 'Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru'.split(\n            '_'\n        ),\n        monthsShort: 'Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ'.split('_'),\n        weekdays:\n            'Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt'.split(\n                '_'\n            ),\n        weekdaysShort: 'Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib'.split('_'),\n        weekdaysMin: 'Ħa_Tn_Tl_Er_Ħa_Ġi_Si'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd, D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[Illum fil-]LT',\n            nextDay: '[Għada fil-]LT',\n            nextWeek: 'dddd [fil-]LT',\n            lastDay: '[Il-bieraħ fil-]LT',\n            lastWeek: 'dddd [li għadda] [fil-]LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'f’ %s',\n            past: '%s ilu',\n            s: 'ftit sekondi',\n            ss: '%d sekondi',\n            m: 'minuta',\n            mm: '%d minuti',\n            h: 'siegħa',\n            hh: '%d siegħat',\n            d: 'ġurnata',\n            dd: '%d ġranet',\n            M: 'xahar',\n            MM: '%d xhur',\n            y: 'sena',\n            yy: '%d sni',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}º/,\n        ordinal: '%dº',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return mt;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/mt.js\n// module id = 564\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Burmese [my]\n//! author : Squar team, mysquar.com\n//! author : David Rossellat : https://github.com/gholadr\n//! author : Tin Aung Lin : https://github.com/thanyawzinmin\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var symbolMap = {\n            1: '၁',\n            2: '၂',\n            3: '၃',\n            4: '၄',\n            5: '၅',\n            6: '၆',\n            7: '၇',\n            8: '၈',\n            9: '၉',\n            0: '၀',\n        },\n        numberMap = {\n            '၁': '1',\n            '၂': '2',\n            '၃': '3',\n            '၄': '4',\n            '၅': '5',\n            '၆': '6',\n            '၇': '7',\n            '၈': '8',\n            '၉': '9',\n            '၀': '0',\n        };\n\n    var my = moment.defineLocale('my', {\n        months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split(\n            '_'\n        ),\n        monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'),\n        weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split(\n            '_'\n        ),\n        weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),\n        weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),\n\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[ယနေ.] LT [မှာ]',\n            nextDay: '[မနက်ဖြန်] LT [မှာ]',\n            nextWeek: 'dddd LT [မှာ]',\n            lastDay: '[မနေ.က] LT [မှာ]',\n            lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'လာမည့် %s မှာ',\n            past: 'လွန်ခဲ့သော %s က',\n            s: 'စက္ကန်.အနည်းငယ်',\n            ss: '%d စက္ကန့်',\n            m: 'တစ်မိနစ်',\n            mm: '%d မိနစ်',\n            h: 'တစ်နာရီ',\n            hh: '%d နာရီ',\n            d: 'တစ်ရက်',\n            dd: '%d ရက်',\n            M: 'တစ်လ',\n            MM: '%d လ',\n            y: 'တစ်နှစ်',\n            yy: '%d နှစ်',\n        },\n        preparse: function (string) {\n            return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match) {\n                return numberMap[match];\n            });\n        },\n        postformat: function (string) {\n            return string.replace(/\\d/g, function (match) {\n                return symbolMap[match];\n            });\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return my;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/my.js\n// module id = 565\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Norwegian Bokmål [nb]\n//! authors : Espen Hovlandsdal : https://github.com/rexxars\n//!           Sigurd Gartmann : https://github.com/sigurdga\n//!           Stephen Ramthun : https://github.com/stephenramthun\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var nb = moment.defineLocale('nb', {\n        months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split(\n            '_'\n        ),\n        monthsShort:\n            'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),\n        monthsParseExact: true,\n        weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),\n        weekdaysShort: 'sø._ma._ti._on._to._fr._lø.'.split('_'),\n        weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD.MM.YYYY',\n            LL: 'D. MMMM YYYY',\n            LLL: 'D. MMMM YYYY [kl.] HH:mm',\n            LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm',\n        },\n        calendar: {\n            sameDay: '[i dag kl.] LT',\n            nextDay: '[i morgen kl.] LT',\n            nextWeek: 'dddd [kl.] LT',\n            lastDay: '[i går kl.] LT',\n            lastWeek: '[forrige] dddd [kl.] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'om %s',\n            past: '%s siden',\n            s: 'noen sekunder',\n            ss: '%d sekunder',\n            m: 'ett minutt',\n            mm: '%d minutter',\n            h: 'en time',\n            hh: '%d timer',\n            d: 'en dag',\n            dd: '%d dager',\n            w: 'en uke',\n            ww: '%d uker',\n            M: 'en måned',\n            MM: '%d måneder',\n            y: 'ett år',\n            yy: '%d år',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n        ordinal: '%d.',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return nb;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/nb.js\n// module id = 566\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Nepalese [ne]\n//! author : suvash : https://github.com/suvash\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var symbolMap = {\n            1: '१',\n            2: '२',\n            3: '३',\n            4: '४',\n            5: '५',\n            6: '६',\n            7: '७',\n            8: '८',\n            9: '९',\n            0: '०',\n        },\n        numberMap = {\n            '१': '1',\n            '२': '2',\n            '३': '3',\n            '४': '4',\n            '५': '5',\n            '६': '6',\n            '७': '7',\n            '८': '8',\n            '९': '9',\n            '०': '0',\n        };\n\n    var ne = moment.defineLocale('ne', {\n        months: 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split(\n            '_'\n        ),\n        monthsShort:\n            'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split(\n                '_'\n            ),\n        monthsParseExact: true,\n        weekdays: 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split(\n            '_'\n        ),\n        weekdaysShort: 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'),\n        weekdaysMin: 'आ._सो._मं._बु._बि._शु._श.'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'Aको h:mm बजे',\n            LTS: 'Aको h:mm:ss बजे',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY, Aको h:mm बजे',\n            LLLL: 'dddd, D MMMM YYYY, Aको h:mm बजे',\n        },\n        preparse: function (string) {\n            return string.replace(/[१२३४५६७८९०]/g, function (match) {\n                return numberMap[match];\n            });\n        },\n        postformat: function (string) {\n            return string.replace(/\\d/g, function (match) {\n                return symbolMap[match];\n            });\n        },\n        meridiemParse: /राति|बिहान|दिउँसो|साँझ/,\n        meridiemHour: function (hour, meridiem) {\n            if (hour === 12) {\n                hour = 0;\n            }\n            if (meridiem === 'राति') {\n                return hour < 4 ? hour : hour + 12;\n            } else if (meridiem === 'बिहान') {\n                return hour;\n            } else if (meridiem === 'दिउँसो') {\n                return hour >= 10 ? hour : hour + 12;\n            } else if (meridiem === 'साँझ') {\n                return hour + 12;\n            }\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 3) {\n                return 'राति';\n            } else if (hour < 12) {\n                return 'बिहान';\n            } else if (hour < 16) {\n                return 'दिउँसो';\n            } else if (hour < 20) {\n                return 'साँझ';\n            } else {\n                return 'राति';\n            }\n        },\n        calendar: {\n            sameDay: '[आज] LT',\n            nextDay: '[भोलि] LT',\n            nextWeek: '[आउँदो] dddd[,] LT',\n            lastDay: '[हिजो] LT',\n            lastWeek: '[गएको] dddd[,] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%sमा',\n            past: '%s अगाडि',\n            s: 'केही क्षण',\n            ss: '%d सेकेण्ड',\n            m: 'एक मिनेट',\n            mm: '%d मिनेट',\n            h: 'एक घण्टा',\n            hh: '%d घण्टा',\n            d: 'एक दिन',\n            dd: '%d दिन',\n            M: 'एक महिना',\n            MM: '%d महिना',\n            y: 'एक बर्ष',\n            yy: '%d बर्ष',\n        },\n        week: {\n            dow: 0, // Sunday is the first day of the week.\n            doy: 6, // The week that contains Jan 6th is the first week of the year.\n        },\n    });\n\n    return ne;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ne.js\n// module id = 567\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Dutch (Belgium) [nl-be]\n//! author : Joris Röling : https://github.com/jorisroling\n//! author : Jacob Middag : https://github.com/middagj\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var monthsShortWithDots =\n            'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'),\n        monthsShortWithoutDots =\n            'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'),\n        monthsParse = [\n            /^jan/i,\n            /^feb/i,\n            /^maart|mrt.?$/i,\n            /^apr/i,\n            /^mei$/i,\n            /^jun[i.]?$/i,\n            /^jul[i.]?$/i,\n            /^aug/i,\n            /^sep/i,\n            /^okt/i,\n            /^nov/i,\n            /^dec/i,\n        ],\n        monthsRegex =\n            /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\\.?|feb\\.?|mrt\\.?|apr\\.?|ju[nl]\\.?|aug\\.?|sep\\.?|okt\\.?|nov\\.?|dec\\.?)/i;\n\n    var nlBe = moment.defineLocale('nl-be', {\n        months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split(\n            '_'\n        ),\n        monthsShort: function (m, format) {\n            if (!m) {\n                return monthsShortWithDots;\n            } else if (/-MMM-/.test(format)) {\n                return monthsShortWithoutDots[m.month()];\n            } else {\n                return monthsShortWithDots[m.month()];\n            }\n        },\n\n        monthsRegex: monthsRegex,\n        monthsShortRegex: monthsRegex,\n        monthsStrictRegex:\n            /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,\n        monthsShortStrictRegex:\n            /^(jan\\.?|feb\\.?|mrt\\.?|apr\\.?|mei|ju[nl]\\.?|aug\\.?|sep\\.?|okt\\.?|nov\\.?|dec\\.?)/i,\n\n        monthsParse: monthsParse,\n        longMonthsParse: monthsParse,\n        shortMonthsParse: monthsParse,\n\n        weekdays:\n            'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),\n        weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'),\n        weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[vandaag om] LT',\n            nextDay: '[morgen om] LT',\n            nextWeek: 'dddd [om] LT',\n            lastDay: '[gisteren om] LT',\n            lastWeek: '[afgelopen] dddd [om] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'over %s',\n            past: '%s geleden',\n            s: 'een paar seconden',\n            ss: '%d seconden',\n            m: 'één minuut',\n            mm: '%d minuten',\n            h: 'één uur',\n            hh: '%d uur',\n            d: 'één dag',\n            dd: '%d dagen',\n            M: 'één maand',\n            MM: '%d maanden',\n            y: 'één jaar',\n            yy: '%d jaar',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(ste|de)/,\n        ordinal: function (number) {\n            return (\n                number +\n                (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')\n            );\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return nlBe;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/nl-be.js\n// module id = 568\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Dutch [nl]\n//! author : Joris Röling : https://github.com/jorisroling\n//! author : Jacob Middag : https://github.com/middagj\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var monthsShortWithDots =\n            'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'),\n        monthsShortWithoutDots =\n            'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'),\n        monthsParse = [\n            /^jan/i,\n            /^feb/i,\n            /^maart|mrt.?$/i,\n            /^apr/i,\n            /^mei$/i,\n            /^jun[i.]?$/i,\n            /^jul[i.]?$/i,\n            /^aug/i,\n            /^sep/i,\n            /^okt/i,\n            /^nov/i,\n            /^dec/i,\n        ],\n        monthsRegex =\n            /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\\.?|feb\\.?|mrt\\.?|apr\\.?|ju[nl]\\.?|aug\\.?|sep\\.?|okt\\.?|nov\\.?|dec\\.?)/i;\n\n    var nl = moment.defineLocale('nl', {\n        months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split(\n            '_'\n        ),\n        monthsShort: function (m, format) {\n            if (!m) {\n                return monthsShortWithDots;\n            } else if (/-MMM-/.test(format)) {\n                return monthsShortWithoutDots[m.month()];\n            } else {\n                return monthsShortWithDots[m.month()];\n            }\n        },\n\n        monthsRegex: monthsRegex,\n        monthsShortRegex: monthsRegex,\n        monthsStrictRegex:\n            /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,\n        monthsShortStrictRegex:\n            /^(jan\\.?|feb\\.?|mrt\\.?|apr\\.?|mei|ju[nl]\\.?|aug\\.?|sep\\.?|okt\\.?|nov\\.?|dec\\.?)/i,\n\n        monthsParse: monthsParse,\n        longMonthsParse: monthsParse,\n        shortMonthsParse: monthsParse,\n\n        weekdays:\n            'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),\n        weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'),\n        weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD-MM-YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[vandaag om] LT',\n            nextDay: '[morgen om] LT',\n            nextWeek: 'dddd [om] LT',\n            lastDay: '[gisteren om] LT',\n            lastWeek: '[afgelopen] dddd [om] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'over %s',\n            past: '%s geleden',\n            s: 'een paar seconden',\n            ss: '%d seconden',\n            m: 'één minuut',\n            mm: '%d minuten',\n            h: 'één uur',\n            hh: '%d uur',\n            d: 'één dag',\n            dd: '%d dagen',\n            w: 'één week',\n            ww: '%d weken',\n            M: 'één maand',\n            MM: '%d maanden',\n            y: 'één jaar',\n            yy: '%d jaar',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(ste|de)/,\n        ordinal: function (number) {\n            return (\n                number +\n                (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')\n            );\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return nl;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/nl.js\n// module id = 569\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Nynorsk [nn]\n//! authors : https://github.com/mechuwind\n//!           Stephen Ramthun : https://github.com/stephenramthun\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var nn = moment.defineLocale('nn', {\n        months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split(\n            '_'\n        ),\n        monthsShort:\n            'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),\n        monthsParseExact: true,\n        weekdays: 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'),\n        weekdaysShort: 'su._må._ty._on._to._fr._lau.'.split('_'),\n        weekdaysMin: 'su_må_ty_on_to_fr_la'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD.MM.YYYY',\n            LL: 'D. MMMM YYYY',\n            LLL: 'D. MMMM YYYY [kl.] H:mm',\n            LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm',\n        },\n        calendar: {\n            sameDay: '[I dag klokka] LT',\n            nextDay: '[I morgon klokka] LT',\n            nextWeek: 'dddd [klokka] LT',\n            lastDay: '[I går klokka] LT',\n            lastWeek: '[Føregåande] dddd [klokka] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'om %s',\n            past: '%s sidan',\n            s: 'nokre sekund',\n            ss: '%d sekund',\n            m: 'eit minutt',\n            mm: '%d minutt',\n            h: 'ein time',\n            hh: '%d timar',\n            d: 'ein dag',\n            dd: '%d dagar',\n            w: 'ei veke',\n            ww: '%d veker',\n            M: 'ein månad',\n            MM: '%d månader',\n            y: 'eit år',\n            yy: '%d år',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n        ordinal: '%d.',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return nn;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/nn.js\n// module id = 570\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Occitan, lengadocian dialecte [oc-lnc]\n//! author : Quentin PAGÈS : https://github.com/Quenty31\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var ocLnc = moment.defineLocale('oc-lnc', {\n        months: {\n            standalone:\n                'genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre'.split(\n                    '_'\n                ),\n            format: \"de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre\".split(\n                '_'\n            ),\n            isFormat: /D[oD]?(\\s)+MMMM/,\n        },\n        monthsShort:\n            'gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.'.split(\n                '_'\n            ),\n        monthsParseExact: true,\n        weekdays: 'dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte'.split(\n            '_'\n        ),\n        weekdaysShort: 'dg._dl._dm._dc._dj._dv._ds.'.split('_'),\n        weekdaysMin: 'dg_dl_dm_dc_dj_dv_ds'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'H:mm',\n            LTS: 'H:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM [de] YYYY',\n            ll: 'D MMM YYYY',\n            LLL: 'D MMMM [de] YYYY [a] H:mm',\n            lll: 'D MMM YYYY, H:mm',\n            LLLL: 'dddd D MMMM [de] YYYY [a] H:mm',\n            llll: 'ddd D MMM YYYY, H:mm',\n        },\n        calendar: {\n            sameDay: '[uèi a] LT',\n            nextDay: '[deman a] LT',\n            nextWeek: 'dddd [a] LT',\n            lastDay: '[ièr a] LT',\n            lastWeek: 'dddd [passat a] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: \"d'aquí %s\",\n            past: 'fa %s',\n            s: 'unas segondas',\n            ss: '%d segondas',\n            m: 'una minuta',\n            mm: '%d minutas',\n            h: 'una ora',\n            hh: '%d oras',\n            d: 'un jorn',\n            dd: '%d jorns',\n            M: 'un mes',\n            MM: '%d meses',\n            y: 'un an',\n            yy: '%d ans',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(r|n|t|è|a)/,\n        ordinal: function (number, period) {\n            var output =\n                number === 1\n                    ? 'r'\n                    : number === 2\n                    ? 'n'\n                    : number === 3\n                    ? 'r'\n                    : number === 4\n                    ? 't'\n                    : 'è';\n            if (period === 'w' || period === 'W') {\n                output = 'a';\n            }\n            return number + output;\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4,\n        },\n    });\n\n    return ocLnc;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/oc-lnc.js\n// module id = 571\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Punjabi (India) [pa-in]\n//! author : Harpreet Singh : https://github.com/harpreetkhalsagtbit\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var symbolMap = {\n            1: '੧',\n            2: '੨',\n            3: '੩',\n            4: '੪',\n            5: '੫',\n            6: '੬',\n            7: '੭',\n            8: '੮',\n            9: '੯',\n            0: '੦',\n        },\n        numberMap = {\n            '੧': '1',\n            '੨': '2',\n            '੩': '3',\n            '੪': '4',\n            '੫': '5',\n            '੬': '6',\n            '੭': '7',\n            '੮': '8',\n            '੯': '9',\n            '੦': '0',\n        };\n\n    var paIn = moment.defineLocale('pa-in', {\n        // There are months name as per Nanakshahi Calendar but they are not used as rigidly in modern Punjabi.\n        months: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split(\n            '_'\n        ),\n        monthsShort:\n            'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split(\n                '_'\n            ),\n        weekdays: 'ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ'.split(\n            '_'\n        ),\n        weekdaysShort: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),\n        weekdaysMin: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),\n        longDateFormat: {\n            LT: 'A h:mm ਵਜੇ',\n            LTS: 'A h:mm:ss ਵਜੇ',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY, A h:mm ਵਜੇ',\n            LLLL: 'dddd, D MMMM YYYY, A h:mm ਵਜੇ',\n        },\n        calendar: {\n            sameDay: '[ਅਜ] LT',\n            nextDay: '[ਕਲ] LT',\n            nextWeek: '[ਅਗਲਾ] dddd, LT',\n            lastDay: '[ਕਲ] LT',\n            lastWeek: '[ਪਿਛਲੇ] dddd, LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s ਵਿੱਚ',\n            past: '%s ਪਿਛਲੇ',\n            s: 'ਕੁਝ ਸਕਿੰਟ',\n            ss: '%d ਸਕਿੰਟ',\n            m: 'ਇਕ ਮਿੰਟ',\n            mm: '%d ਮਿੰਟ',\n            h: 'ਇੱਕ ਘੰਟਾ',\n            hh: '%d ਘੰਟੇ',\n            d: 'ਇੱਕ ਦਿਨ',\n            dd: '%d ਦਿਨ',\n            M: 'ਇੱਕ ਮਹੀਨਾ',\n            MM: '%d ਮਹੀਨੇ',\n            y: 'ਇੱਕ ਸਾਲ',\n            yy: '%d ਸਾਲ',\n        },\n        preparse: function (string) {\n            return string.replace(/[੧੨੩੪੫੬੭੮੯੦]/g, function (match) {\n                return numberMap[match];\n            });\n        },\n        postformat: function (string) {\n            return string.replace(/\\d/g, function (match) {\n                return symbolMap[match];\n            });\n        },\n        // Punjabi notation for meridiems are quite fuzzy in practice. While there exists\n        // a rigid notion of a 'Pahar' it is not used as rigidly in modern Punjabi.\n        meridiemParse: /ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,\n        meridiemHour: function (hour, meridiem) {\n            if (hour === 12) {\n                hour = 0;\n            }\n            if (meridiem === 'ਰਾਤ') {\n                return hour < 4 ? hour : hour + 12;\n            } else if (meridiem === 'ਸਵੇਰ') {\n                return hour;\n            } else if (meridiem === 'ਦੁਪਹਿਰ') {\n                return hour >= 10 ? hour : hour + 12;\n            } else if (meridiem === 'ਸ਼ਾਮ') {\n                return hour + 12;\n            }\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 4) {\n                return 'ਰਾਤ';\n            } else if (hour < 10) {\n                return 'ਸਵੇਰ';\n            } else if (hour < 17) {\n                return 'ਦੁਪਹਿਰ';\n            } else if (hour < 20) {\n                return 'ਸ਼ਾਮ';\n            } else {\n                return 'ਰਾਤ';\n            }\n        },\n        week: {\n            dow: 0, // Sunday is the first day of the week.\n            doy: 6, // The week that contains Jan 6th is the first week of the year.\n        },\n    });\n\n    return paIn;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/pa-in.js\n// module id = 572\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Polish [pl]\n//! author : Rafal Hirsz : https://github.com/evoL\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var monthsNominative =\n            'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split(\n                '_'\n            ),\n        monthsSubjective =\n            'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split(\n                '_'\n            ),\n        monthsParse = [\n            /^sty/i,\n            /^lut/i,\n            /^mar/i,\n            /^kwi/i,\n            /^maj/i,\n            /^cze/i,\n            /^lip/i,\n            /^sie/i,\n            /^wrz/i,\n            /^paź/i,\n            /^lis/i,\n            /^gru/i,\n        ];\n    function plural(n) {\n        return n % 10 < 5 && n % 10 > 1 && ~~(n / 10) % 10 !== 1;\n    }\n    function translate(number, withoutSuffix, key) {\n        var result = number + ' ';\n        switch (key) {\n            case 'ss':\n                return result + (plural(number) ? 'sekundy' : 'sekund');\n            case 'm':\n                return withoutSuffix ? 'minuta' : 'minutę';\n            case 'mm':\n                return result + (plural(number) ? 'minuty' : 'minut');\n            case 'h':\n                return withoutSuffix ? 'godzina' : 'godzinę';\n            case 'hh':\n                return result + (plural(number) ? 'godziny' : 'godzin');\n            case 'ww':\n                return result + (plural(number) ? 'tygodnie' : 'tygodni');\n            case 'MM':\n                return result + (plural(number) ? 'miesiące' : 'miesięcy');\n            case 'yy':\n                return result + (plural(number) ? 'lata' : 'lat');\n        }\n    }\n\n    var pl = moment.defineLocale('pl', {\n        months: function (momentToFormat, format) {\n            if (!momentToFormat) {\n                return monthsNominative;\n            } else if (/D MMMM/.test(format)) {\n                return monthsSubjective[momentToFormat.month()];\n            } else {\n                return monthsNominative[momentToFormat.month()];\n            }\n        },\n        monthsShort: 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'),\n        monthsParse: monthsParse,\n        longMonthsParse: monthsParse,\n        shortMonthsParse: monthsParse,\n        weekdays:\n            'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split('_'),\n        weekdaysShort: 'ndz_pon_wt_śr_czw_pt_sob'.split('_'),\n        weekdaysMin: 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD.MM.YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd, D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[Dziś o] LT',\n            nextDay: '[Jutro o] LT',\n            nextWeek: function () {\n                switch (this.day()) {\n                    case 0:\n                        return '[W niedzielę o] LT';\n\n                    case 2:\n                        return '[We wtorek o] LT';\n\n                    case 3:\n                        return '[W środę o] LT';\n\n                    case 6:\n                        return '[W sobotę o] LT';\n\n                    default:\n                        return '[W] dddd [o] LT';\n                }\n            },\n            lastDay: '[Wczoraj o] LT',\n            lastWeek: function () {\n                switch (this.day()) {\n                    case 0:\n                        return '[W zeszłą niedzielę o] LT';\n                    case 3:\n                        return '[W zeszłą środę o] LT';\n                    case 6:\n                        return '[W zeszłą sobotę o] LT';\n                    default:\n                        return '[W zeszły] dddd [o] LT';\n                }\n            },\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'za %s',\n            past: '%s temu',\n            s: 'kilka sekund',\n            ss: translate,\n            m: translate,\n            mm: translate,\n            h: translate,\n            hh: translate,\n            d: '1 dzień',\n            dd: '%d dni',\n            w: 'tydzień',\n            ww: translate,\n            M: 'miesiąc',\n            MM: translate,\n            y: 'rok',\n            yy: translate,\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n        ordinal: '%d.',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return pl;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/pl.js\n// module id = 573\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Portuguese (Brazil) [pt-br]\n//! author : Caio Ribeiro Pereira : https://github.com/caio-ribeiro-pereira\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var ptBr = moment.defineLocale('pt-br', {\n        months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split(\n            '_'\n        ),\n        monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),\n        weekdays:\n            'domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado'.split(\n                '_'\n            ),\n        weekdaysShort: 'dom_seg_ter_qua_qui_sex_sáb'.split('_'),\n        weekdaysMin: 'do_2ª_3ª_4ª_5ª_6ª_sá'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D [de] MMMM [de] YYYY',\n            LLL: 'D [de] MMMM [de] YYYY [às] HH:mm',\n            LLLL: 'dddd, D [de] MMMM [de] YYYY [às] HH:mm',\n        },\n        calendar: {\n            sameDay: '[Hoje às] LT',\n            nextDay: '[Amanhã às] LT',\n            nextWeek: 'dddd [às] LT',\n            lastDay: '[Ontem às] LT',\n            lastWeek: function () {\n                return this.day() === 0 || this.day() === 6\n                    ? '[Último] dddd [às] LT' // Saturday + Sunday\n                    : '[Última] dddd [às] LT'; // Monday - Friday\n            },\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'em %s',\n            past: 'há %s',\n            s: 'poucos segundos',\n            ss: '%d segundos',\n            m: 'um minuto',\n            mm: '%d minutos',\n            h: 'uma hora',\n            hh: '%d horas',\n            d: 'um dia',\n            dd: '%d dias',\n            M: 'um mês',\n            MM: '%d meses',\n            y: 'um ano',\n            yy: '%d anos',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}º/,\n        ordinal: '%dº',\n        invalidDate: 'Data inválida',\n    });\n\n    return ptBr;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/pt-br.js\n// module id = 574\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Portuguese [pt]\n//! author : Jefferson : https://github.com/jalex79\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var pt = moment.defineLocale('pt', {\n        months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split(\n            '_'\n        ),\n        monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),\n        weekdays:\n            'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split(\n                '_'\n            ),\n        weekdaysShort: 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),\n        weekdaysMin: 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D [de] MMMM [de] YYYY',\n            LLL: 'D [de] MMMM [de] YYYY HH:mm',\n            LLLL: 'dddd, D [de] MMMM [de] YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[Hoje às] LT',\n            nextDay: '[Amanhã às] LT',\n            nextWeek: 'dddd [às] LT',\n            lastDay: '[Ontem às] LT',\n            lastWeek: function () {\n                return this.day() === 0 || this.day() === 6\n                    ? '[Último] dddd [às] LT' // Saturday + Sunday\n                    : '[Última] dddd [às] LT'; // Monday - Friday\n            },\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'em %s',\n            past: 'há %s',\n            s: 'segundos',\n            ss: '%d segundos',\n            m: 'um minuto',\n            mm: '%d minutos',\n            h: 'uma hora',\n            hh: '%d horas',\n            d: 'um dia',\n            dd: '%d dias',\n            w: 'uma semana',\n            ww: '%d semanas',\n            M: 'um mês',\n            MM: '%d meses',\n            y: 'um ano',\n            yy: '%d anos',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}º/,\n        ordinal: '%dº',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return pt;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/pt.js\n// module id = 575\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Romanian [ro]\n//! author : Vlad Gurdiga : https://github.com/gurdiga\n//! author : Valentin Agachi : https://github.com/avaly\n//! author : Emanuel Cepoi : https://github.com/cepem\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    function relativeTimeWithPlural(number, withoutSuffix, key) {\n        var format = {\n                ss: 'secunde',\n                mm: 'minute',\n                hh: 'ore',\n                dd: 'zile',\n                ww: 'săptămâni',\n                MM: 'luni',\n                yy: 'ani',\n            },\n            separator = ' ';\n        if (number % 100 >= 20 || (number >= 100 && number % 100 === 0)) {\n            separator = ' de ';\n        }\n        return number + separator + format[key];\n    }\n\n    var ro = moment.defineLocale('ro', {\n        months: 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split(\n            '_'\n        ),\n        monthsShort:\n            'ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split(\n                '_'\n            ),\n        monthsParseExact: true,\n        weekdays: 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'),\n        weekdaysShort: 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'),\n        weekdaysMin: 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'),\n        longDateFormat: {\n            LT: 'H:mm',\n            LTS: 'H:mm:ss',\n            L: 'DD.MM.YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY H:mm',\n            LLLL: 'dddd, D MMMM YYYY H:mm',\n        },\n        calendar: {\n            sameDay: '[azi la] LT',\n            nextDay: '[mâine la] LT',\n            nextWeek: 'dddd [la] LT',\n            lastDay: '[ieri la] LT',\n            lastWeek: '[fosta] dddd [la] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'peste %s',\n            past: '%s în urmă',\n            s: 'câteva secunde',\n            ss: relativeTimeWithPlural,\n            m: 'un minut',\n            mm: relativeTimeWithPlural,\n            h: 'o oră',\n            hh: relativeTimeWithPlural,\n            d: 'o zi',\n            dd: relativeTimeWithPlural,\n            w: 'o săptămână',\n            ww: relativeTimeWithPlural,\n            M: 'o lună',\n            MM: relativeTimeWithPlural,\n            y: 'un an',\n            yy: relativeTimeWithPlural,\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 7, // The week that contains Jan 7th is the first week of the year.\n        },\n    });\n\n    return ro;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ro.js\n// module id = 576\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Russian [ru]\n//! author : Viktorminator : https://github.com/Viktorminator\n//! author : Menelion Elensúle : https://github.com/Oire\n//! author : Коренберг Марк : https://github.com/socketpair\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    function plural(word, num) {\n        var forms = word.split('_');\n        return num % 10 === 1 && num % 100 !== 11\n            ? forms[0]\n            : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)\n            ? forms[1]\n            : forms[2];\n    }\n    function relativeTimeWithPlural(number, withoutSuffix, key) {\n        var format = {\n            ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',\n            mm: withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут',\n            hh: 'час_часа_часов',\n            dd: 'день_дня_дней',\n            ww: 'неделя_недели_недель',\n            MM: 'месяц_месяца_месяцев',\n            yy: 'год_года_лет',\n        };\n        if (key === 'm') {\n            return withoutSuffix ? 'минута' : 'минуту';\n        } else {\n            return number + ' ' + plural(format[key], +number);\n        }\n    }\n    var monthsParse = [\n        /^янв/i,\n        /^фев/i,\n        /^мар/i,\n        /^апр/i,\n        /^ма[йя]/i,\n        /^июн/i,\n        /^июл/i,\n        /^авг/i,\n        /^сен/i,\n        /^окт/i,\n        /^ноя/i,\n        /^дек/i,\n    ];\n\n    // http://new.gramota.ru/spravka/rules/139-prop : § 103\n    // Сокращения месяцев: http://new.gramota.ru/spravka/buro/search-answer?s=242637\n    // CLDR data:          http://www.unicode.org/cldr/charts/28/summary/ru.html#1753\n    var ru = moment.defineLocale('ru', {\n        months: {\n            format: 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split(\n                '_'\n            ),\n            standalone:\n                'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split(\n                    '_'\n                ),\n        },\n        monthsShort: {\n            // по CLDR именно \"июл.\" и \"июн.\", но какой смысл менять букву на точку?\n            format: 'янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.'.split(\n                '_'\n            ),\n            standalone:\n                'янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.'.split(\n                    '_'\n                ),\n        },\n        weekdays: {\n            standalone:\n                'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split(\n                    '_'\n                ),\n            format: 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split(\n                '_'\n            ),\n            isFormat: /\\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/,\n        },\n        weekdaysShort: 'вс_пн_вт_ср_чт_пт_сб'.split('_'),\n        weekdaysMin: 'вс_пн_вт_ср_чт_пт_сб'.split('_'),\n        monthsParse: monthsParse,\n        longMonthsParse: monthsParse,\n        shortMonthsParse: monthsParse,\n\n        // полные названия с падежами, по три буквы, для некоторых, по 4 буквы, сокращения с точкой и без точки\n        monthsRegex:\n            /^(январ[ья]|янв\\.?|феврал[ья]|февр?\\.?|марта?|мар\\.?|апрел[ья]|апр\\.?|ма[йя]|июн[ья]|июн\\.?|июл[ья]|июл\\.?|августа?|авг\\.?|сентябр[ья]|сент?\\.?|октябр[ья]|окт\\.?|ноябр[ья]|нояб?\\.?|декабр[ья]|дек\\.?)/i,\n\n        // копия предыдущего\n        monthsShortRegex:\n            /^(январ[ья]|янв\\.?|феврал[ья]|февр?\\.?|марта?|мар\\.?|апрел[ья]|апр\\.?|ма[йя]|июн[ья]|июн\\.?|июл[ья]|июл\\.?|августа?|авг\\.?|сентябр[ья]|сент?\\.?|октябр[ья]|окт\\.?|ноябр[ья]|нояб?\\.?|декабр[ья]|дек\\.?)/i,\n\n        // полные названия с падежами\n        monthsStrictRegex:\n            /^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,\n\n        // Выражение, которое соответствует только сокращённым формам\n        monthsShortStrictRegex:\n            /^(янв\\.|февр?\\.|мар[т.]|апр\\.|ма[яй]|июн[ья.]|июл[ья.]|авг\\.|сент?\\.|окт\\.|нояб?\\.|дек\\.)/i,\n        longDateFormat: {\n            LT: 'H:mm',\n            LTS: 'H:mm:ss',\n            L: 'DD.MM.YYYY',\n            LL: 'D MMMM YYYY г.',\n            LLL: 'D MMMM YYYY г., H:mm',\n            LLLL: 'dddd, D MMMM YYYY г., H:mm',\n        },\n        calendar: {\n            sameDay: '[Сегодня, в] LT',\n            nextDay: '[Завтра, в] LT',\n            lastDay: '[Вчера, в] LT',\n            nextWeek: function (now) {\n                if (now.week() !== this.week()) {\n                    switch (this.day()) {\n                        case 0:\n                            return '[В следующее] dddd, [в] LT';\n                        case 1:\n                        case 2:\n                        case 4:\n                            return '[В следующий] dddd, [в] LT';\n                        case 3:\n                        case 5:\n                        case 6:\n                            return '[В следующую] dddd, [в] LT';\n                    }\n                } else {\n                    if (this.day() === 2) {\n                        return '[Во] dddd, [в] LT';\n                    } else {\n                        return '[В] dddd, [в] LT';\n                    }\n                }\n            },\n            lastWeek: function (now) {\n                if (now.week() !== this.week()) {\n                    switch (this.day()) {\n                        case 0:\n                            return '[В прошлое] dddd, [в] LT';\n                        case 1:\n                        case 2:\n                        case 4:\n                            return '[В прошлый] dddd, [в] LT';\n                        case 3:\n                        case 5:\n                        case 6:\n                            return '[В прошлую] dddd, [в] LT';\n                    }\n                } else {\n                    if (this.day() === 2) {\n                        return '[Во] dddd, [в] LT';\n                    } else {\n                        return '[В] dddd, [в] LT';\n                    }\n                }\n            },\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'через %s',\n            past: '%s назад',\n            s: 'несколько секунд',\n            ss: relativeTimeWithPlural,\n            m: relativeTimeWithPlural,\n            mm: relativeTimeWithPlural,\n            h: 'час',\n            hh: relativeTimeWithPlural,\n            d: 'день',\n            dd: relativeTimeWithPlural,\n            w: 'неделя',\n            ww: relativeTimeWithPlural,\n            M: 'месяц',\n            MM: relativeTimeWithPlural,\n            y: 'год',\n            yy: relativeTimeWithPlural,\n        },\n        meridiemParse: /ночи|утра|дня|вечера/i,\n        isPM: function (input) {\n            return /^(дня|вечера)$/.test(input);\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 4) {\n                return 'ночи';\n            } else if (hour < 12) {\n                return 'утра';\n            } else if (hour < 17) {\n                return 'дня';\n            } else {\n                return 'вечера';\n            }\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}-(й|го|я)/,\n        ordinal: function (number, period) {\n            switch (period) {\n                case 'M':\n                case 'd':\n                case 'DDD':\n                    return number + '-й';\n                case 'D':\n                    return number + '-го';\n                case 'w':\n                case 'W':\n                    return number + '-я';\n                default:\n                    return number;\n            }\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return ru;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ru.js\n// module id = 577\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Sindhi [sd]\n//! author : Narain Sagar : https://github.com/narainsagar\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var months = [\n            'جنوري',\n            'فيبروري',\n            'مارچ',\n            'اپريل',\n            'مئي',\n            'جون',\n            'جولاءِ',\n            'آگسٽ',\n            'سيپٽمبر',\n            'آڪٽوبر',\n            'نومبر',\n            'ڊسمبر',\n        ],\n        days = ['آچر', 'سومر', 'اڱارو', 'اربع', 'خميس', 'جمع', 'ڇنڇر'];\n\n    var sd = moment.defineLocale('sd', {\n        months: months,\n        monthsShort: months,\n        weekdays: days,\n        weekdaysShort: days,\n        weekdaysMin: days,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd، D MMMM YYYY HH:mm',\n        },\n        meridiemParse: /صبح|شام/,\n        isPM: function (input) {\n            return 'شام' === input;\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 12) {\n                return 'صبح';\n            }\n            return 'شام';\n        },\n        calendar: {\n            sameDay: '[اڄ] LT',\n            nextDay: '[سڀاڻي] LT',\n            nextWeek: 'dddd [اڳين هفتي تي] LT',\n            lastDay: '[ڪالهه] LT',\n            lastWeek: '[گزريل هفتي] dddd [تي] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s پوء',\n            past: '%s اڳ',\n            s: 'چند سيڪنڊ',\n            ss: '%d سيڪنڊ',\n            m: 'هڪ منٽ',\n            mm: '%d منٽ',\n            h: 'هڪ ڪلاڪ',\n            hh: '%d ڪلاڪ',\n            d: 'هڪ ڏينهن',\n            dd: '%d ڏينهن',\n            M: 'هڪ مهينو',\n            MM: '%d مهينا',\n            y: 'هڪ سال',\n            yy: '%d سال',\n        },\n        preparse: function (string) {\n            return string.replace(/،/g, ',');\n        },\n        postformat: function (string) {\n            return string.replace(/,/g, '،');\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return sd;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/sd.js\n// module id = 578\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Northern Sami [se]\n//! authors : Bård Rolstad Henriksen : https://github.com/karamell\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var se = moment.defineLocale('se', {\n        months: 'ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu'.split(\n            '_'\n        ),\n        monthsShort:\n            'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split('_'),\n        weekdays:\n            'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split(\n                '_'\n            ),\n        weekdaysShort: 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'),\n        weekdaysMin: 's_v_m_g_d_b_L'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD.MM.YYYY',\n            LL: 'MMMM D. [b.] YYYY',\n            LLL: 'MMMM D. [b.] YYYY [ti.] HH:mm',\n            LLLL: 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm',\n        },\n        calendar: {\n            sameDay: '[otne ti] LT',\n            nextDay: '[ihttin ti] LT',\n            nextWeek: 'dddd [ti] LT',\n            lastDay: '[ikte ti] LT',\n            lastWeek: '[ovddit] dddd [ti] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s geažes',\n            past: 'maŋit %s',\n            s: 'moadde sekunddat',\n            ss: '%d sekunddat',\n            m: 'okta minuhta',\n            mm: '%d minuhtat',\n            h: 'okta diimmu',\n            hh: '%d diimmut',\n            d: 'okta beaivi',\n            dd: '%d beaivvit',\n            M: 'okta mánnu',\n            MM: '%d mánut',\n            y: 'okta jahki',\n            yy: '%d jagit',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n        ordinal: '%d.',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return se;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/se.js\n// module id = 579\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Sinhalese [si]\n//! author : Sampath Sitinamaluwa : https://github.com/sampathsris\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    /*jshint -W100*/\n    var si = moment.defineLocale('si', {\n        months: 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split(\n            '_'\n        ),\n        monthsShort: 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split(\n            '_'\n        ),\n        weekdays:\n            'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split(\n                '_'\n            ),\n        weekdaysShort: 'ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන'.split('_'),\n        weekdaysMin: 'ඉ_ස_අ_බ_බ්‍ර_සි_සෙ'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'a h:mm',\n            LTS: 'a h:mm:ss',\n            L: 'YYYY/MM/DD',\n            LL: 'YYYY MMMM D',\n            LLL: 'YYYY MMMM D, a h:mm',\n            LLLL: 'YYYY MMMM D [වැනි] dddd, a h:mm:ss',\n        },\n        calendar: {\n            sameDay: '[අද] LT[ට]',\n            nextDay: '[හෙට] LT[ට]',\n            nextWeek: 'dddd LT[ට]',\n            lastDay: '[ඊයේ] LT[ට]',\n            lastWeek: '[පසුගිය] dddd LT[ට]',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%sකින්',\n            past: '%sකට පෙර',\n            s: 'තත්පර කිහිපය',\n            ss: 'තත්පර %d',\n            m: 'මිනිත්තුව',\n            mm: 'මිනිත්තු %d',\n            h: 'පැය',\n            hh: 'පැය %d',\n            d: 'දිනය',\n            dd: 'දින %d',\n            M: 'මාසය',\n            MM: 'මාස %d',\n            y: 'වසර',\n            yy: 'වසර %d',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2} වැනි/,\n        ordinal: function (number) {\n            return number + ' වැනි';\n        },\n        meridiemParse: /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,\n        isPM: function (input) {\n            return input === 'ප.ව.' || input === 'පස් වරු';\n        },\n        meridiem: function (hours, minutes, isLower) {\n            if (hours > 11) {\n                return isLower ? 'ප.ව.' : 'පස් වරු';\n            } else {\n                return isLower ? 'පෙ.ව.' : 'පෙර වරු';\n            }\n        },\n    });\n\n    return si;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/si.js\n// module id = 580\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Slovak [sk]\n//! author : Martin Minka : https://github.com/k2s\n//! based on work of petrbela : https://github.com/petrbela\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var months =\n            'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split(\n                '_'\n            ),\n        monthsShort = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_');\n    function plural(n) {\n        return n > 1 && n < 5;\n    }\n    function translate(number, withoutSuffix, key, isFuture) {\n        var result = number + ' ';\n        switch (key) {\n            case 's': // a few seconds / in a few seconds / a few seconds ago\n                return withoutSuffix || isFuture ? 'pár sekúnd' : 'pár sekundami';\n            case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago\n                if (withoutSuffix || isFuture) {\n                    return result + (plural(number) ? 'sekundy' : 'sekúnd');\n                } else {\n                    return result + 'sekundami';\n                }\n            case 'm': // a minute / in a minute / a minute ago\n                return withoutSuffix ? 'minúta' : isFuture ? 'minútu' : 'minútou';\n            case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago\n                if (withoutSuffix || isFuture) {\n                    return result + (plural(number) ? 'minúty' : 'minút');\n                } else {\n                    return result + 'minútami';\n                }\n            case 'h': // an hour / in an hour / an hour ago\n                return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou';\n            case 'hh': // 9 hours / in 9 hours / 9 hours ago\n                if (withoutSuffix || isFuture) {\n                    return result + (plural(number) ? 'hodiny' : 'hodín');\n                } else {\n                    return result + 'hodinami';\n                }\n            case 'd': // a day / in a day / a day ago\n                return withoutSuffix || isFuture ? 'deň' : 'dňom';\n            case 'dd': // 9 days / in 9 days / 9 days ago\n                if (withoutSuffix || isFuture) {\n                    return result + (plural(number) ? 'dni' : 'dní');\n                } else {\n                    return result + 'dňami';\n                }\n            case 'M': // a month / in a month / a month ago\n                return withoutSuffix || isFuture ? 'mesiac' : 'mesiacom';\n            case 'MM': // 9 months / in 9 months / 9 months ago\n                if (withoutSuffix || isFuture) {\n                    return result + (plural(number) ? 'mesiace' : 'mesiacov');\n                } else {\n                    return result + 'mesiacmi';\n                }\n            case 'y': // a year / in a year / a year ago\n                return withoutSuffix || isFuture ? 'rok' : 'rokom';\n            case 'yy': // 9 years / in 9 years / 9 years ago\n                if (withoutSuffix || isFuture) {\n                    return result + (plural(number) ? 'roky' : 'rokov');\n                } else {\n                    return result + 'rokmi';\n                }\n        }\n    }\n\n    var sk = moment.defineLocale('sk', {\n        months: months,\n        monthsShort: monthsShort,\n        weekdays: 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'),\n        weekdaysShort: 'ne_po_ut_st_št_pi_so'.split('_'),\n        weekdaysMin: 'ne_po_ut_st_št_pi_so'.split('_'),\n        longDateFormat: {\n            LT: 'H:mm',\n            LTS: 'H:mm:ss',\n            L: 'DD.MM.YYYY',\n            LL: 'D. MMMM YYYY',\n            LLL: 'D. MMMM YYYY H:mm',\n            LLLL: 'dddd D. MMMM YYYY H:mm',\n        },\n        calendar: {\n            sameDay: '[dnes o] LT',\n            nextDay: '[zajtra o] LT',\n            nextWeek: function () {\n                switch (this.day()) {\n                    case 0:\n                        return '[v nedeľu o] LT';\n                    case 1:\n                    case 2:\n                        return '[v] dddd [o] LT';\n                    case 3:\n                        return '[v stredu o] LT';\n                    case 4:\n                        return '[vo štvrtok o] LT';\n                    case 5:\n                        return '[v piatok o] LT';\n                    case 6:\n                        return '[v sobotu o] LT';\n                }\n            },\n            lastDay: '[včera o] LT',\n            lastWeek: function () {\n                switch (this.day()) {\n                    case 0:\n                        return '[minulú nedeľu o] LT';\n                    case 1:\n                    case 2:\n                        return '[minulý] dddd [o] LT';\n                    case 3:\n                        return '[minulú stredu o] LT';\n                    case 4:\n                    case 5:\n                        return '[minulý] dddd [o] LT';\n                    case 6:\n                        return '[minulú sobotu o] LT';\n                }\n            },\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'za %s',\n            past: 'pred %s',\n            s: translate,\n            ss: translate,\n            m: translate,\n            mm: translate,\n            h: translate,\n            hh: translate,\n            d: translate,\n            dd: translate,\n            M: translate,\n            MM: translate,\n            y: translate,\n            yy: translate,\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n        ordinal: '%d.',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return sk;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/sk.js\n// module id = 581\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Slovenian [sl]\n//! author : Robert Sedovšek : https://github.com/sedovsek\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    function processRelativeTime(number, withoutSuffix, key, isFuture) {\n        var result = number + ' ';\n        switch (key) {\n            case 's':\n                return withoutSuffix || isFuture\n                    ? 'nekaj sekund'\n                    : 'nekaj sekundami';\n            case 'ss':\n                if (number === 1) {\n                    result += withoutSuffix ? 'sekundo' : 'sekundi';\n                } else if (number === 2) {\n                    result += withoutSuffix || isFuture ? 'sekundi' : 'sekundah';\n                } else if (number < 5) {\n                    result += withoutSuffix || isFuture ? 'sekunde' : 'sekundah';\n                } else {\n                    result += 'sekund';\n                }\n                return result;\n            case 'm':\n                return withoutSuffix ? 'ena minuta' : 'eno minuto';\n            case 'mm':\n                if (number === 1) {\n                    result += withoutSuffix ? 'minuta' : 'minuto';\n                } else if (number === 2) {\n                    result += withoutSuffix || isFuture ? 'minuti' : 'minutama';\n                } else if (number < 5) {\n                    result += withoutSuffix || isFuture ? 'minute' : 'minutami';\n                } else {\n                    result += withoutSuffix || isFuture ? 'minut' : 'minutami';\n                }\n                return result;\n            case 'h':\n                return withoutSuffix ? 'ena ura' : 'eno uro';\n            case 'hh':\n                if (number === 1) {\n                    result += withoutSuffix ? 'ura' : 'uro';\n                } else if (number === 2) {\n                    result += withoutSuffix || isFuture ? 'uri' : 'urama';\n                } else if (number < 5) {\n                    result += withoutSuffix || isFuture ? 'ure' : 'urami';\n                } else {\n                    result += withoutSuffix || isFuture ? 'ur' : 'urami';\n                }\n                return result;\n            case 'd':\n                return withoutSuffix || isFuture ? 'en dan' : 'enim dnem';\n            case 'dd':\n                if (number === 1) {\n                    result += withoutSuffix || isFuture ? 'dan' : 'dnem';\n                } else if (number === 2) {\n                    result += withoutSuffix || isFuture ? 'dni' : 'dnevoma';\n                } else {\n                    result += withoutSuffix || isFuture ? 'dni' : 'dnevi';\n                }\n                return result;\n            case 'M':\n                return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem';\n            case 'MM':\n                if (number === 1) {\n                    result += withoutSuffix || isFuture ? 'mesec' : 'mesecem';\n                } else if (number === 2) {\n                    result += withoutSuffix || isFuture ? 'meseca' : 'mesecema';\n                } else if (number < 5) {\n                    result += withoutSuffix || isFuture ? 'mesece' : 'meseci';\n                } else {\n                    result += withoutSuffix || isFuture ? 'mesecev' : 'meseci';\n                }\n                return result;\n            case 'y':\n                return withoutSuffix || isFuture ? 'eno leto' : 'enim letom';\n            case 'yy':\n                if (number === 1) {\n                    result += withoutSuffix || isFuture ? 'leto' : 'letom';\n                } else if (number === 2) {\n                    result += withoutSuffix || isFuture ? 'leti' : 'letoma';\n                } else if (number < 5) {\n                    result += withoutSuffix || isFuture ? 'leta' : 'leti';\n                } else {\n                    result += withoutSuffix || isFuture ? 'let' : 'leti';\n                }\n                return result;\n        }\n    }\n\n    var sl = moment.defineLocale('sl', {\n        months: 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split(\n            '_'\n        ),\n        monthsShort:\n            'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split(\n                '_'\n            ),\n        monthsParseExact: true,\n        weekdays: 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),\n        weekdaysShort: 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),\n        weekdaysMin: 'ne_po_to_sr_če_pe_so'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'H:mm',\n            LTS: 'H:mm:ss',\n            L: 'DD. MM. YYYY',\n            LL: 'D. MMMM YYYY',\n            LLL: 'D. MMMM YYYY H:mm',\n            LLLL: 'dddd, D. MMMM YYYY H:mm',\n        },\n        calendar: {\n            sameDay: '[danes ob] LT',\n            nextDay: '[jutri ob] LT',\n\n            nextWeek: function () {\n                switch (this.day()) {\n                    case 0:\n                        return '[v] [nedeljo] [ob] LT';\n                    case 3:\n                        return '[v] [sredo] [ob] LT';\n                    case 6:\n                        return '[v] [soboto] [ob] LT';\n                    case 1:\n                    case 2:\n                    case 4:\n                    case 5:\n                        return '[v] dddd [ob] LT';\n                }\n            },\n            lastDay: '[včeraj ob] LT',\n            lastWeek: function () {\n                switch (this.day()) {\n                    case 0:\n                        return '[prejšnjo] [nedeljo] [ob] LT';\n                    case 3:\n                        return '[prejšnjo] [sredo] [ob] LT';\n                    case 6:\n                        return '[prejšnjo] [soboto] [ob] LT';\n                    case 1:\n                    case 2:\n                    case 4:\n                    case 5:\n                        return '[prejšnji] dddd [ob] LT';\n                }\n            },\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'čez %s',\n            past: 'pred %s',\n            s: processRelativeTime,\n            ss: processRelativeTime,\n            m: processRelativeTime,\n            mm: processRelativeTime,\n            h: processRelativeTime,\n            hh: processRelativeTime,\n            d: processRelativeTime,\n            dd: processRelativeTime,\n            M: processRelativeTime,\n            MM: processRelativeTime,\n            y: processRelativeTime,\n            yy: processRelativeTime,\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n        ordinal: '%d.',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 7, // The week that contains Jan 7th is the first week of the year.\n        },\n    });\n\n    return sl;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/sl.js\n// module id = 582\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Albanian [sq]\n//! author : Flakërim Ismani : https://github.com/flakerimi\n//! author : Menelion Elensúle : https://github.com/Oire\n//! author : Oerd Cukalla : https://github.com/oerd\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var sq = moment.defineLocale('sq', {\n        months: 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split(\n            '_'\n        ),\n        monthsShort: 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'),\n        weekdays: 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split(\n            '_'\n        ),\n        weekdaysShort: 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'),\n        weekdaysMin: 'D_H_Ma_Më_E_P_Sh'.split('_'),\n        weekdaysParseExact: true,\n        meridiemParse: /PD|MD/,\n        isPM: function (input) {\n            return input.charAt(0) === 'M';\n        },\n        meridiem: function (hours, minutes, isLower) {\n            return hours < 12 ? 'PD' : 'MD';\n        },\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd, D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[Sot në] LT',\n            nextDay: '[Nesër në] LT',\n            nextWeek: 'dddd [në] LT',\n            lastDay: '[Dje në] LT',\n            lastWeek: 'dddd [e kaluar në] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'në %s',\n            past: '%s më parë',\n            s: 'disa sekonda',\n            ss: '%d sekonda',\n            m: 'një minutë',\n            mm: '%d minuta',\n            h: 'një orë',\n            hh: '%d orë',\n            d: 'një ditë',\n            dd: '%d ditë',\n            M: 'një muaj',\n            MM: '%d muaj',\n            y: 'një vit',\n            yy: '%d vite',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n        ordinal: '%d.',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return sq;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/sq.js\n// module id = 583\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Serbian Cyrillic [sr-cyrl]\n//! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j\n//! author : Stefan Crnjaković <stefan@hotmail.rs> : https://github.com/crnjakovic\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var translator = {\n        words: {\n            //Different grammatical cases\n            ss: ['секунда', 'секунде', 'секунди'],\n            m: ['један минут', 'једног минута'],\n            mm: ['минут', 'минута', 'минута'],\n            h: ['један сат', 'једног сата'],\n            hh: ['сат', 'сата', 'сати'],\n            d: ['један дан', 'једног дана'],\n            dd: ['дан', 'дана', 'дана'],\n            M: ['један месец', 'једног месеца'],\n            MM: ['месец', 'месеца', 'месеци'],\n            y: ['једну годину', 'једне године'],\n            yy: ['годину', 'године', 'година'],\n        },\n        correctGrammaticalCase: function (number, wordKey) {\n            if (\n                number % 10 >= 1 &&\n                number % 10 <= 4 &&\n                (number % 100 < 10 || number % 100 >= 20)\n            ) {\n                return number % 10 === 1 ? wordKey[0] : wordKey[1];\n            }\n            return wordKey[2];\n        },\n        translate: function (number, withoutSuffix, key, isFuture) {\n            var wordKey = translator.words[key],\n                word;\n\n            if (key.length === 1) {\n                // Nominativ\n                if (key === 'y' && withoutSuffix) return 'једна година';\n                return isFuture || withoutSuffix ? wordKey[0] : wordKey[1];\n            }\n\n            word = translator.correctGrammaticalCase(number, wordKey);\n            // Nominativ\n            if (key === 'yy' && withoutSuffix && word === 'годину') {\n                return number + ' година';\n            }\n\n            return number + ' ' + word;\n        },\n    };\n\n    var srCyrl = moment.defineLocale('sr-cyrl', {\n        months: 'јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар'.split(\n            '_'\n        ),\n        monthsShort:\n            'јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.'.split('_'),\n        monthsParseExact: true,\n        weekdays: 'недеља_понедељак_уторак_среда_четвртак_петак_субота'.split('_'),\n        weekdaysShort: 'нед._пон._уто._сре._чет._пет._суб.'.split('_'),\n        weekdaysMin: 'не_по_ут_ср_че_пе_су'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'H:mm',\n            LTS: 'H:mm:ss',\n            L: 'D. M. YYYY.',\n            LL: 'D. MMMM YYYY.',\n            LLL: 'D. MMMM YYYY. H:mm',\n            LLLL: 'dddd, D. MMMM YYYY. H:mm',\n        },\n        calendar: {\n            sameDay: '[данас у] LT',\n            nextDay: '[сутра у] LT',\n            nextWeek: function () {\n                switch (this.day()) {\n                    case 0:\n                        return '[у] [недељу] [у] LT';\n                    case 3:\n                        return '[у] [среду] [у] LT';\n                    case 6:\n                        return '[у] [суботу] [у] LT';\n                    case 1:\n                    case 2:\n                    case 4:\n                    case 5:\n                        return '[у] dddd [у] LT';\n                }\n            },\n            lastDay: '[јуче у] LT',\n            lastWeek: function () {\n                var lastWeekDays = [\n                    '[прошле] [недеље] [у] LT',\n                    '[прошлог] [понедељка] [у] LT',\n                    '[прошлог] [уторка] [у] LT',\n                    '[прошле] [среде] [у] LT',\n                    '[прошлог] [четвртка] [у] LT',\n                    '[прошлог] [петка] [у] LT',\n                    '[прошле] [суботе] [у] LT',\n                ];\n                return lastWeekDays[this.day()];\n            },\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'за %s',\n            past: 'пре %s',\n            s: 'неколико секунди',\n            ss: translator.translate,\n            m: translator.translate,\n            mm: translator.translate,\n            h: translator.translate,\n            hh: translator.translate,\n            d: translator.translate,\n            dd: translator.translate,\n            M: translator.translate,\n            MM: translator.translate,\n            y: translator.translate,\n            yy: translator.translate,\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n        ordinal: '%d.',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 7, // The week that contains Jan 1st is the first week of the year.\n        },\n    });\n\n    return srCyrl;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/sr-cyrl.js\n// module id = 584\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Serbian [sr]\n//! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j\n//! author : Stefan Crnjaković <stefan@hotmail.rs> : https://github.com/crnjakovic\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var translator = {\n        words: {\n            //Different grammatical cases\n            ss: ['sekunda', 'sekunde', 'sekundi'],\n            m: ['jedan minut', 'jednog minuta'],\n            mm: ['minut', 'minuta', 'minuta'],\n            h: ['jedan sat', 'jednog sata'],\n            hh: ['sat', 'sata', 'sati'],\n            d: ['jedan dan', 'jednog dana'],\n            dd: ['dan', 'dana', 'dana'],\n            M: ['jedan mesec', 'jednog meseca'],\n            MM: ['mesec', 'meseca', 'meseci'],\n            y: ['jednu godinu', 'jedne godine'],\n            yy: ['godinu', 'godine', 'godina'],\n        },\n        correctGrammaticalCase: function (number, wordKey) {\n            if (\n                number % 10 >= 1 &&\n                number % 10 <= 4 &&\n                (number % 100 < 10 || number % 100 >= 20)\n            ) {\n                return number % 10 === 1 ? wordKey[0] : wordKey[1];\n            }\n            return wordKey[2];\n        },\n        translate: function (number, withoutSuffix, key, isFuture) {\n            var wordKey = translator.words[key],\n                word;\n\n            if (key.length === 1) {\n                // Nominativ\n                if (key === 'y' && withoutSuffix) return 'jedna godina';\n                return isFuture || withoutSuffix ? wordKey[0] : wordKey[1];\n            }\n\n            word = translator.correctGrammaticalCase(number, wordKey);\n            // Nominativ\n            if (key === 'yy' && withoutSuffix && word === 'godinu') {\n                return number + ' godina';\n            }\n\n            return number + ' ' + word;\n        },\n    };\n\n    var sr = moment.defineLocale('sr', {\n        months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split(\n            '_'\n        ),\n        monthsShort:\n            'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),\n        monthsParseExact: true,\n        weekdays: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split(\n            '_'\n        ),\n        weekdaysShort: 'ned._pon._uto._sre._čet._pet._sub.'.split('_'),\n        weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'H:mm',\n            LTS: 'H:mm:ss',\n            L: 'D. M. YYYY.',\n            LL: 'D. MMMM YYYY.',\n            LLL: 'D. MMMM YYYY. H:mm',\n            LLLL: 'dddd, D. MMMM YYYY. H:mm',\n        },\n        calendar: {\n            sameDay: '[danas u] LT',\n            nextDay: '[sutra u] LT',\n            nextWeek: function () {\n                switch (this.day()) {\n                    case 0:\n                        return '[u] [nedelju] [u] LT';\n                    case 3:\n                        return '[u] [sredu] [u] LT';\n                    case 6:\n                        return '[u] [subotu] [u] LT';\n                    case 1:\n                    case 2:\n                    case 4:\n                    case 5:\n                        return '[u] dddd [u] LT';\n                }\n            },\n            lastDay: '[juče u] LT',\n            lastWeek: function () {\n                var lastWeekDays = [\n                    '[prošle] [nedelje] [u] LT',\n                    '[prošlog] [ponedeljka] [u] LT',\n                    '[prošlog] [utorka] [u] LT',\n                    '[prošle] [srede] [u] LT',\n                    '[prošlog] [četvrtka] [u] LT',\n                    '[prošlog] [petka] [u] LT',\n                    '[prošle] [subote] [u] LT',\n                ];\n                return lastWeekDays[this.day()];\n            },\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'za %s',\n            past: 'pre %s',\n            s: 'nekoliko sekundi',\n            ss: translator.translate,\n            m: translator.translate,\n            mm: translator.translate,\n            h: translator.translate,\n            hh: translator.translate,\n            d: translator.translate,\n            dd: translator.translate,\n            M: translator.translate,\n            MM: translator.translate,\n            y: translator.translate,\n            yy: translator.translate,\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n        ordinal: '%d.',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 7, // The week that contains Jan 7th is the first week of the year.\n        },\n    });\n\n    return sr;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/sr.js\n// module id = 585\n// module chunks = 0","//! moment.js locale configuration\n//! locale : siSwati [ss]\n//! author : Nicolai Davies<mail@nicolai.io> : https://github.com/nicolaidavies\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var ss = moment.defineLocale('ss', {\n        months: \"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni\".split(\n            '_'\n        ),\n        monthsShort: 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split('_'),\n        weekdays:\n            'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split(\n                '_'\n            ),\n        weekdaysShort: 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'),\n        weekdaysMin: 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'h:mm A',\n            LTS: 'h:mm:ss A',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY h:mm A',\n            LLLL: 'dddd, D MMMM YYYY h:mm A',\n        },\n        calendar: {\n            sameDay: '[Namuhla nga] LT',\n            nextDay: '[Kusasa nga] LT',\n            nextWeek: 'dddd [nga] LT',\n            lastDay: '[Itolo nga] LT',\n            lastWeek: 'dddd [leliphelile] [nga] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'nga %s',\n            past: 'wenteka nga %s',\n            s: 'emizuzwana lomcane',\n            ss: '%d mzuzwana',\n            m: 'umzuzu',\n            mm: '%d emizuzu',\n            h: 'lihora',\n            hh: '%d emahora',\n            d: 'lilanga',\n            dd: '%d emalanga',\n            M: 'inyanga',\n            MM: '%d tinyanga',\n            y: 'umnyaka',\n            yy: '%d iminyaka',\n        },\n        meridiemParse: /ekuseni|emini|entsambama|ebusuku/,\n        meridiem: function (hours, minutes, isLower) {\n            if (hours < 11) {\n                return 'ekuseni';\n            } else if (hours < 15) {\n                return 'emini';\n            } else if (hours < 19) {\n                return 'entsambama';\n            } else {\n                return 'ebusuku';\n            }\n        },\n        meridiemHour: function (hour, meridiem) {\n            if (hour === 12) {\n                hour = 0;\n            }\n            if (meridiem === 'ekuseni') {\n                return hour;\n            } else if (meridiem === 'emini') {\n                return hour >= 11 ? hour : hour + 12;\n            } else if (meridiem === 'entsambama' || meridiem === 'ebusuku') {\n                if (hour === 0) {\n                    return 0;\n                }\n                return hour + 12;\n            }\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}/,\n        ordinal: '%d',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return ss;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ss.js\n// module id = 586\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Swedish [sv]\n//! author : Jens Alm : https://github.com/ulmus\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var sv = moment.defineLocale('sv', {\n        months: 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split(\n            '_'\n        ),\n        monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),\n        weekdays: 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),\n        weekdaysShort: 'sön_mån_tis_ons_tor_fre_lör'.split('_'),\n        weekdaysMin: 'sö_må_ti_on_to_fr_lö'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'YYYY-MM-DD',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY [kl.] HH:mm',\n            LLLL: 'dddd D MMMM YYYY [kl.] HH:mm',\n            lll: 'D MMM YYYY HH:mm',\n            llll: 'ddd D MMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[Idag] LT',\n            nextDay: '[Imorgon] LT',\n            lastDay: '[Igår] LT',\n            nextWeek: '[På] dddd LT',\n            lastWeek: '[I] dddd[s] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'om %s',\n            past: 'för %s sedan',\n            s: 'några sekunder',\n            ss: '%d sekunder',\n            m: 'en minut',\n            mm: '%d minuter',\n            h: 'en timme',\n            hh: '%d timmar',\n            d: 'en dag',\n            dd: '%d dagar',\n            M: 'en månad',\n            MM: '%d månader',\n            y: 'ett år',\n            yy: '%d år',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(\\:e|\\:a)/,\n        ordinal: function (number) {\n            var b = number % 10,\n                output =\n                    ~~((number % 100) / 10) === 1\n                        ? ':e'\n                        : b === 1\n                        ? ':a'\n                        : b === 2\n                        ? ':a'\n                        : b === 3\n                        ? ':e'\n                        : ':e';\n            return number + output;\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return sv;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/sv.js\n// module id = 587\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Swahili [sw]\n//! author : Fahad Kassim : https://github.com/fadsel\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var sw = moment.defineLocale('sw', {\n        months: 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split(\n            '_'\n        ),\n        monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'),\n        weekdays:\n            'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split(\n                '_'\n            ),\n        weekdaysShort: 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'),\n        weekdaysMin: 'J2_J3_J4_J5_Al_Ij_J1'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'hh:mm A',\n            LTS: 'HH:mm:ss',\n            L: 'DD.MM.YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd, D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[leo saa] LT',\n            nextDay: '[kesho saa] LT',\n            nextWeek: '[wiki ijayo] dddd [saat] LT',\n            lastDay: '[jana] LT',\n            lastWeek: '[wiki iliyopita] dddd [saat] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s baadaye',\n            past: 'tokea %s',\n            s: 'hivi punde',\n            ss: 'sekunde %d',\n            m: 'dakika moja',\n            mm: 'dakika %d',\n            h: 'saa limoja',\n            hh: 'masaa %d',\n            d: 'siku moja',\n            dd: 'siku %d',\n            M: 'mwezi mmoja',\n            MM: 'miezi %d',\n            y: 'mwaka mmoja',\n            yy: 'miaka %d',\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 7, // The week that contains Jan 7th is the first week of the year.\n        },\n    });\n\n    return sw;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/sw.js\n// module id = 588\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Tamil [ta]\n//! author : Arjunkumar Krishnamoorthy : https://github.com/tk120404\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var symbolMap = {\n            1: '௧',\n            2: '௨',\n            3: '௩',\n            4: '௪',\n            5: '௫',\n            6: '௬',\n            7: '௭',\n            8: '௮',\n            9: '௯',\n            0: '௦',\n        },\n        numberMap = {\n            '௧': '1',\n            '௨': '2',\n            '௩': '3',\n            '௪': '4',\n            '௫': '5',\n            '௬': '6',\n            '௭': '7',\n            '௮': '8',\n            '௯': '9',\n            '௦': '0',\n        };\n\n    var ta = moment.defineLocale('ta', {\n        months: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split(\n            '_'\n        ),\n        monthsShort:\n            'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split(\n                '_'\n            ),\n        weekdays:\n            'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split(\n                '_'\n            ),\n        weekdaysShort: 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split(\n            '_'\n        ),\n        weekdaysMin: 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY, HH:mm',\n            LLLL: 'dddd, D MMMM YYYY, HH:mm',\n        },\n        calendar: {\n            sameDay: '[இன்று] LT',\n            nextDay: '[நாளை] LT',\n            nextWeek: 'dddd, LT',\n            lastDay: '[நேற்று] LT',\n            lastWeek: '[கடந்த வாரம்] dddd, LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s இல்',\n            past: '%s முன்',\n            s: 'ஒரு சில விநாடிகள்',\n            ss: '%d விநாடிகள்',\n            m: 'ஒரு நிமிடம்',\n            mm: '%d நிமிடங்கள்',\n            h: 'ஒரு மணி நேரம்',\n            hh: '%d மணி நேரம்',\n            d: 'ஒரு நாள்',\n            dd: '%d நாட்கள்',\n            M: 'ஒரு மாதம்',\n            MM: '%d மாதங்கள்',\n            y: 'ஒரு வருடம்',\n            yy: '%d ஆண்டுகள்',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}வது/,\n        ordinal: function (number) {\n            return number + 'வது';\n        },\n        preparse: function (string) {\n            return string.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (match) {\n                return numberMap[match];\n            });\n        },\n        postformat: function (string) {\n            return string.replace(/\\d/g, function (match) {\n                return symbolMap[match];\n            });\n        },\n        // refer http://ta.wikipedia.org/s/1er1\n        meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 2) {\n                return ' யாமம்';\n            } else if (hour < 6) {\n                return ' வைகறை'; // வைகறை\n            } else if (hour < 10) {\n                return ' காலை'; // காலை\n            } else if (hour < 14) {\n                return ' நண்பகல்'; // நண்பகல்\n            } else if (hour < 18) {\n                return ' எற்பாடு'; // எற்பாடு\n            } else if (hour < 22) {\n                return ' மாலை'; // மாலை\n            } else {\n                return ' யாமம்';\n            }\n        },\n        meridiemHour: function (hour, meridiem) {\n            if (hour === 12) {\n                hour = 0;\n            }\n            if (meridiem === 'யாமம்') {\n                return hour < 2 ? hour : hour + 12;\n            } else if (meridiem === 'வைகறை' || meridiem === 'காலை') {\n                return hour;\n            } else if (meridiem === 'நண்பகல்') {\n                return hour >= 10 ? hour : hour + 12;\n            } else {\n                return hour + 12;\n            }\n        },\n        week: {\n            dow: 0, // Sunday is the first day of the week.\n            doy: 6, // The week that contains Jan 6th is the first week of the year.\n        },\n    });\n\n    return ta;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ta.js\n// module id = 589\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Telugu [te]\n//! author : Krishna Chaitanya Thota : https://github.com/kcthota\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var te = moment.defineLocale('te', {\n        months: 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split(\n            '_'\n        ),\n        monthsShort:\n            'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split(\n                '_'\n            ),\n        monthsParseExact: true,\n        weekdays:\n            'ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం'.split(\n                '_'\n            ),\n        weekdaysShort: 'ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని'.split('_'),\n        weekdaysMin: 'ఆ_సో_మం_బు_గు_శు_శ'.split('_'),\n        longDateFormat: {\n            LT: 'A h:mm',\n            LTS: 'A h:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY, A h:mm',\n            LLLL: 'dddd, D MMMM YYYY, A h:mm',\n        },\n        calendar: {\n            sameDay: '[నేడు] LT',\n            nextDay: '[రేపు] LT',\n            nextWeek: 'dddd, LT',\n            lastDay: '[నిన్న] LT',\n            lastWeek: '[గత] dddd, LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s లో',\n            past: '%s క్రితం',\n            s: 'కొన్ని క్షణాలు',\n            ss: '%d సెకన్లు',\n            m: 'ఒక నిమిషం',\n            mm: '%d నిమిషాలు',\n            h: 'ఒక గంట',\n            hh: '%d గంటలు',\n            d: 'ఒక రోజు',\n            dd: '%d రోజులు',\n            M: 'ఒక నెల',\n            MM: '%d నెలలు',\n            y: 'ఒక సంవత్సరం',\n            yy: '%d సంవత్సరాలు',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}వ/,\n        ordinal: '%dవ',\n        meridiemParse: /రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,\n        meridiemHour: function (hour, meridiem) {\n            if (hour === 12) {\n                hour = 0;\n            }\n            if (meridiem === 'రాత్రి') {\n                return hour < 4 ? hour : hour + 12;\n            } else if (meridiem === 'ఉదయం') {\n                return hour;\n            } else if (meridiem === 'మధ్యాహ్నం') {\n                return hour >= 10 ? hour : hour + 12;\n            } else if (meridiem === 'సాయంత్రం') {\n                return hour + 12;\n            }\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 4) {\n                return 'రాత్రి';\n            } else if (hour < 10) {\n                return 'ఉదయం';\n            } else if (hour < 17) {\n                return 'మధ్యాహ్నం';\n            } else if (hour < 20) {\n                return 'సాయంత్రం';\n            } else {\n                return 'రాత్రి';\n            }\n        },\n        week: {\n            dow: 0, // Sunday is the first day of the week.\n            doy: 6, // The week that contains Jan 6th is the first week of the year.\n        },\n    });\n\n    return te;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/te.js\n// module id = 590\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Tetun Dili (East Timor) [tet]\n//! author : Joshua Brooks : https://github.com/joshbrooks\n//! author : Onorio De J. Afonso : https://github.com/marobo\n//! author : Sonia Simoes : https://github.com/soniasimoes\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var tet = moment.defineLocale('tet', {\n        months: 'Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru'.split(\n            '_'\n        ),\n        monthsShort: 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),\n        weekdays: 'Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu'.split('_'),\n        weekdaysShort: 'Dom_Seg_Ters_Kua_Kint_Sest_Sab'.split('_'),\n        weekdaysMin: 'Do_Seg_Te_Ku_Ki_Ses_Sa'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd, D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[Ohin iha] LT',\n            nextDay: '[Aban iha] LT',\n            nextWeek: 'dddd [iha] LT',\n            lastDay: '[Horiseik iha] LT',\n            lastWeek: 'dddd [semana kotuk] [iha] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'iha %s',\n            past: '%s liuba',\n            s: 'segundu balun',\n            ss: 'segundu %d',\n            m: 'minutu ida',\n            mm: 'minutu %d',\n            h: 'oras ida',\n            hh: 'oras %d',\n            d: 'loron ida',\n            dd: 'loron %d',\n            M: 'fulan ida',\n            MM: 'fulan %d',\n            y: 'tinan ida',\n            yy: 'tinan %d',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n        ordinal: function (number) {\n            var b = number % 10,\n                output =\n                    ~~((number % 100) / 10) === 1\n                        ? 'th'\n                        : b === 1\n                        ? 'st'\n                        : b === 2\n                        ? 'nd'\n                        : b === 3\n                        ? 'rd'\n                        : 'th';\n            return number + output;\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return tet;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/tet.js\n// module id = 591\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Tajik [tg]\n//! author : Orif N. Jr. : https://github.com/orif-jr\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var suffixes = {\n        0: '-ум',\n        1: '-ум',\n        2: '-юм',\n        3: '-юм',\n        4: '-ум',\n        5: '-ум',\n        6: '-ум',\n        7: '-ум',\n        8: '-ум',\n        9: '-ум',\n        10: '-ум',\n        12: '-ум',\n        13: '-ум',\n        20: '-ум',\n        30: '-юм',\n        40: '-ум',\n        50: '-ум',\n        60: '-ум',\n        70: '-ум',\n        80: '-ум',\n        90: '-ум',\n        100: '-ум',\n    };\n\n    var tg = moment.defineLocale('tg', {\n        months: {\n            format: 'январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри'.split(\n                '_'\n            ),\n            standalone:\n                'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split(\n                    '_'\n                ),\n        },\n        monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),\n        weekdays: 'якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе'.split(\n            '_'\n        ),\n        weekdaysShort: 'яшб_дшб_сшб_чшб_пшб_ҷум_шнб'.split('_'),\n        weekdaysMin: 'яш_дш_сш_чш_пш_ҷм_шб'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD.MM.YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd, D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[Имрӯз соати] LT',\n            nextDay: '[Фардо соати] LT',\n            lastDay: '[Дирӯз соати] LT',\n            nextWeek: 'dddd[и] [ҳафтаи оянда соати] LT',\n            lastWeek: 'dddd[и] [ҳафтаи гузашта соати] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'баъди %s',\n            past: '%s пеш',\n            s: 'якчанд сония',\n            m: 'як дақиқа',\n            mm: '%d дақиқа',\n            h: 'як соат',\n            hh: '%d соат',\n            d: 'як рӯз',\n            dd: '%d рӯз',\n            M: 'як моҳ',\n            MM: '%d моҳ',\n            y: 'як сол',\n            yy: '%d сол',\n        },\n        meridiemParse: /шаб|субҳ|рӯз|бегоҳ/,\n        meridiemHour: function (hour, meridiem) {\n            if (hour === 12) {\n                hour = 0;\n            }\n            if (meridiem === 'шаб') {\n                return hour < 4 ? hour : hour + 12;\n            } else if (meridiem === 'субҳ') {\n                return hour;\n            } else if (meridiem === 'рӯз') {\n                return hour >= 11 ? hour : hour + 12;\n            } else if (meridiem === 'бегоҳ') {\n                return hour + 12;\n            }\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 4) {\n                return 'шаб';\n            } else if (hour < 11) {\n                return 'субҳ';\n            } else if (hour < 16) {\n                return 'рӯз';\n            } else if (hour < 19) {\n                return 'бегоҳ';\n            } else {\n                return 'шаб';\n            }\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}-(ум|юм)/,\n        ordinal: function (number) {\n            var a = number % 10,\n                b = number >= 100 ? 100 : null;\n            return number + (suffixes[number] || suffixes[a] || suffixes[b]);\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 7, // The week that contains Jan 1th is the first week of the year.\n        },\n    });\n\n    return tg;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/tg.js\n// module id = 592\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Thai [th]\n//! author : Kridsada Thanabulpong : https://github.com/sirn\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var th = moment.defineLocale('th', {\n        months: 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split(\n            '_'\n        ),\n        monthsShort:\n            'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split(\n                '_'\n            ),\n        monthsParseExact: true,\n        weekdays: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'),\n        weekdaysShort: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), // yes, three characters difference\n        weekdaysMin: 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'H:mm',\n            LTS: 'H:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY เวลา H:mm',\n            LLLL: 'วันddddที่ D MMMM YYYY เวลา H:mm',\n        },\n        meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/,\n        isPM: function (input) {\n            return input === 'หลังเที่ยง';\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 12) {\n                return 'ก่อนเที่ยง';\n            } else {\n                return 'หลังเที่ยง';\n            }\n        },\n        calendar: {\n            sameDay: '[วันนี้ เวลา] LT',\n            nextDay: '[พรุ่งนี้ เวลา] LT',\n            nextWeek: 'dddd[หน้า เวลา] LT',\n            lastDay: '[เมื่อวานนี้ เวลา] LT',\n            lastWeek: '[วัน]dddd[ที่แล้ว เวลา] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'อีก %s',\n            past: '%sที่แล้ว',\n            s: 'ไม่กี่วินาที',\n            ss: '%d วินาที',\n            m: '1 นาที',\n            mm: '%d นาที',\n            h: '1 ชั่วโมง',\n            hh: '%d ชั่วโมง',\n            d: '1 วัน',\n            dd: '%d วัน',\n            w: '1 สัปดาห์',\n            ww: '%d สัปดาห์',\n            M: '1 เดือน',\n            MM: '%d เดือน',\n            y: '1 ปี',\n            yy: '%d ปี',\n        },\n    });\n\n    return th;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/th.js\n// module id = 593\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Turkmen [tk]\n//! author : Atamyrat Abdyrahmanov : https://github.com/atamyratabdy\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var suffixes = {\n        1: \"'inji\",\n        5: \"'inji\",\n        8: \"'inji\",\n        70: \"'inji\",\n        80: \"'inji\",\n        2: \"'nji\",\n        7: \"'nji\",\n        20: \"'nji\",\n        50: \"'nji\",\n        3: \"'ünji\",\n        4: \"'ünji\",\n        100: \"'ünji\",\n        6: \"'njy\",\n        9: \"'unjy\",\n        10: \"'unjy\",\n        30: \"'unjy\",\n        60: \"'ynjy\",\n        90: \"'ynjy\",\n    };\n\n    var tk = moment.defineLocale('tk', {\n        months: 'Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr'.split(\n            '_'\n        ),\n        monthsShort: 'Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek'.split('_'),\n        weekdays: 'Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe'.split(\n            '_'\n        ),\n        weekdaysShort: 'Ýek_Duş_Siş_Çar_Pen_Ann_Şen'.split('_'),\n        weekdaysMin: 'Ýk_Dş_Sş_Çr_Pn_An_Şn'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD.MM.YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd, D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[bugün sagat] LT',\n            nextDay: '[ertir sagat] LT',\n            nextWeek: '[indiki] dddd [sagat] LT',\n            lastDay: '[düýn] LT',\n            lastWeek: '[geçen] dddd [sagat] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s soň',\n            past: '%s öň',\n            s: 'birnäçe sekunt',\n            m: 'bir minut',\n            mm: '%d minut',\n            h: 'bir sagat',\n            hh: '%d sagat',\n            d: 'bir gün',\n            dd: '%d gün',\n            M: 'bir aý',\n            MM: '%d aý',\n            y: 'bir ýyl',\n            yy: '%d ýyl',\n        },\n        ordinal: function (number, period) {\n            switch (period) {\n                case 'd':\n                case 'D':\n                case 'Do':\n                case 'DD':\n                    return number;\n                default:\n                    if (number === 0) {\n                        // special case for zero\n                        return number + \"'unjy\";\n                    }\n                    var a = number % 10,\n                        b = (number % 100) - a,\n                        c = number >= 100 ? 100 : null;\n                    return number + (suffixes[a] || suffixes[b] || suffixes[c]);\n            }\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 7, // The week that contains Jan 7th is the first week of the year.\n        },\n    });\n\n    return tk;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/tk.js\n// module id = 594\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Tagalog (Philippines) [tl-ph]\n//! author : Dan Hagman : https://github.com/hagmandan\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var tlPh = moment.defineLocale('tl-ph', {\n        months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split(\n            '_'\n        ),\n        monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),\n        weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split(\n            '_'\n        ),\n        weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),\n        weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'MM/D/YYYY',\n            LL: 'MMMM D, YYYY',\n            LLL: 'MMMM D, YYYY HH:mm',\n            LLLL: 'dddd, MMMM DD, YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: 'LT [ngayong araw]',\n            nextDay: '[Bukas ng] LT',\n            nextWeek: 'LT [sa susunod na] dddd',\n            lastDay: 'LT [kahapon]',\n            lastWeek: 'LT [noong nakaraang] dddd',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'sa loob ng %s',\n            past: '%s ang nakalipas',\n            s: 'ilang segundo',\n            ss: '%d segundo',\n            m: 'isang minuto',\n            mm: '%d minuto',\n            h: 'isang oras',\n            hh: '%d oras',\n            d: 'isang araw',\n            dd: '%d araw',\n            M: 'isang buwan',\n            MM: '%d buwan',\n            y: 'isang taon',\n            yy: '%d taon',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}/,\n        ordinal: function (number) {\n            return number;\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return tlPh;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/tl-ph.js\n// module id = 595\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Klingon [tlh]\n//! author : Dominika Kruk : https://github.com/amaranthrose\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var numbersNouns = 'pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut'.split('_');\n\n    function translateFuture(output) {\n        var time = output;\n        time =\n            output.indexOf('jaj') !== -1\n                ? time.slice(0, -3) + 'leS'\n                : output.indexOf('jar') !== -1\n                ? time.slice(0, -3) + 'waQ'\n                : output.indexOf('DIS') !== -1\n                ? time.slice(0, -3) + 'nem'\n                : time + ' pIq';\n        return time;\n    }\n\n    function translatePast(output) {\n        var time = output;\n        time =\n            output.indexOf('jaj') !== -1\n                ? time.slice(0, -3) + 'Hu’'\n                : output.indexOf('jar') !== -1\n                ? time.slice(0, -3) + 'wen'\n                : output.indexOf('DIS') !== -1\n                ? time.slice(0, -3) + 'ben'\n                : time + ' ret';\n        return time;\n    }\n\n    function translate(number, withoutSuffix, string, isFuture) {\n        var numberNoun = numberAsNoun(number);\n        switch (string) {\n            case 'ss':\n                return numberNoun + ' lup';\n            case 'mm':\n                return numberNoun + ' tup';\n            case 'hh':\n                return numberNoun + ' rep';\n            case 'dd':\n                return numberNoun + ' jaj';\n            case 'MM':\n                return numberNoun + ' jar';\n            case 'yy':\n                return numberNoun + ' DIS';\n        }\n    }\n\n    function numberAsNoun(number) {\n        var hundred = Math.floor((number % 1000) / 100),\n            ten = Math.floor((number % 100) / 10),\n            one = number % 10,\n            word = '';\n        if (hundred > 0) {\n            word += numbersNouns[hundred] + 'vatlh';\n        }\n        if (ten > 0) {\n            word += (word !== '' ? ' ' : '') + numbersNouns[ten] + 'maH';\n        }\n        if (one > 0) {\n            word += (word !== '' ? ' ' : '') + numbersNouns[one];\n        }\n        return word === '' ? 'pagh' : word;\n    }\n\n    var tlh = moment.defineLocale('tlh', {\n        months: 'tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’'.split(\n            '_'\n        ),\n        monthsShort:\n            'jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’'.split(\n                '_'\n            ),\n        monthsParseExact: true,\n        weekdays: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split(\n            '_'\n        ),\n        weekdaysShort:\n            'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),\n        weekdaysMin:\n            'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD.MM.YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd, D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[DaHjaj] LT',\n            nextDay: '[wa’leS] LT',\n            nextWeek: 'LLL',\n            lastDay: '[wa’Hu’] LT',\n            lastWeek: 'LLL',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: translateFuture,\n            past: translatePast,\n            s: 'puS lup',\n            ss: translate,\n            m: 'wa’ tup',\n            mm: translate,\n            h: 'wa’ rep',\n            hh: translate,\n            d: 'wa’ jaj',\n            dd: translate,\n            M: 'wa’ jar',\n            MM: translate,\n            y: 'wa’ DIS',\n            yy: translate,\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n        ordinal: '%d.',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return tlh;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/tlh.js\n// module id = 596\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Turkish [tr]\n//! authors : Erhan Gundogan : https://github.com/erhangundogan,\n//!           Burak Yiğit Kaya: https://github.com/BYK\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var suffixes = {\n        1: \"'inci\",\n        5: \"'inci\",\n        8: \"'inci\",\n        70: \"'inci\",\n        80: \"'inci\",\n        2: \"'nci\",\n        7: \"'nci\",\n        20: \"'nci\",\n        50: \"'nci\",\n        3: \"'üncü\",\n        4: \"'üncü\",\n        100: \"'üncü\",\n        6: \"'ncı\",\n        9: \"'uncu\",\n        10: \"'uncu\",\n        30: \"'uncu\",\n        60: \"'ıncı\",\n        90: \"'ıncı\",\n    };\n\n    var tr = moment.defineLocale('tr', {\n        months: 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split(\n            '_'\n        ),\n        monthsShort: 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'),\n        weekdays: 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split(\n            '_'\n        ),\n        weekdaysShort: 'Paz_Pzt_Sal_Çar_Per_Cum_Cmt'.split('_'),\n        weekdaysMin: 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'),\n        meridiem: function (hours, minutes, isLower) {\n            if (hours < 12) {\n                return isLower ? 'öö' : 'ÖÖ';\n            } else {\n                return isLower ? 'ös' : 'ÖS';\n            }\n        },\n        meridiemParse: /öö|ÖÖ|ös|ÖS/,\n        isPM: function (input) {\n            return input === 'ös' || input === 'ÖS';\n        },\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD.MM.YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd, D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[bugün saat] LT',\n            nextDay: '[yarın saat] LT',\n            nextWeek: '[gelecek] dddd [saat] LT',\n            lastDay: '[dün] LT',\n            lastWeek: '[geçen] dddd [saat] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s sonra',\n            past: '%s önce',\n            s: 'birkaç saniye',\n            ss: '%d saniye',\n            m: 'bir dakika',\n            mm: '%d dakika',\n            h: 'bir saat',\n            hh: '%d saat',\n            d: 'bir gün',\n            dd: '%d gün',\n            w: 'bir hafta',\n            ww: '%d hafta',\n            M: 'bir ay',\n            MM: '%d ay',\n            y: 'bir yıl',\n            yy: '%d yıl',\n        },\n        ordinal: function (number, period) {\n            switch (period) {\n                case 'd':\n                case 'D':\n                case 'Do':\n                case 'DD':\n                    return number;\n                default:\n                    if (number === 0) {\n                        // special case for zero\n                        return number + \"'ıncı\";\n                    }\n                    var a = number % 10,\n                        b = (number % 100) - a,\n                        c = number >= 100 ? 100 : null;\n                    return number + (suffixes[a] || suffixes[b] || suffixes[c]);\n            }\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 7, // The week that contains Jan 7th is the first week of the year.\n        },\n    });\n\n    return tr;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/tr.js\n// module id = 597\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Talossan [tzl]\n//! author : Robin van der Vliet : https://github.com/robin0van0der0v\n//! author : Iustì Canun\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    // After the year there should be a slash and the amount of years since December 26, 1979 in Roman numerals.\n    // This is currently too difficult (maybe even impossible) to add.\n    var tzl = moment.defineLocale('tzl', {\n        months: 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split(\n            '_'\n        ),\n        monthsShort: 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split('_'),\n        weekdays: 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split('_'),\n        weekdaysShort: 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'),\n        weekdaysMin: 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'),\n        longDateFormat: {\n            LT: 'HH.mm',\n            LTS: 'HH.mm.ss',\n            L: 'DD.MM.YYYY',\n            LL: 'D. MMMM [dallas] YYYY',\n            LLL: 'D. MMMM [dallas] YYYY HH.mm',\n            LLLL: 'dddd, [li] D. MMMM [dallas] YYYY HH.mm',\n        },\n        meridiemParse: /d\\'o|d\\'a/i,\n        isPM: function (input) {\n            return \"d'o\" === input.toLowerCase();\n        },\n        meridiem: function (hours, minutes, isLower) {\n            if (hours > 11) {\n                return isLower ? \"d'o\" : \"D'O\";\n            } else {\n                return isLower ? \"d'a\" : \"D'A\";\n            }\n        },\n        calendar: {\n            sameDay: '[oxhi à] LT',\n            nextDay: '[demà à] LT',\n            nextWeek: 'dddd [à] LT',\n            lastDay: '[ieiri à] LT',\n            lastWeek: '[sür el] dddd [lasteu à] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'osprei %s',\n            past: 'ja%s',\n            s: processRelativeTime,\n            ss: processRelativeTime,\n            m: processRelativeTime,\n            mm: processRelativeTime,\n            h: processRelativeTime,\n            hh: processRelativeTime,\n            d: processRelativeTime,\n            dd: processRelativeTime,\n            M: processRelativeTime,\n            MM: processRelativeTime,\n            y: processRelativeTime,\n            yy: processRelativeTime,\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n        ordinal: '%d.',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    function processRelativeTime(number, withoutSuffix, key, isFuture) {\n        var format = {\n            s: ['viensas secunds', \"'iensas secunds\"],\n            ss: [number + ' secunds', '' + number + ' secunds'],\n            m: [\"'n míut\", \"'iens míut\"],\n            mm: [number + ' míuts', '' + number + ' míuts'],\n            h: [\"'n þora\", \"'iensa þora\"],\n            hh: [number + ' þoras', '' + number + ' þoras'],\n            d: [\"'n ziua\", \"'iensa ziua\"],\n            dd: [number + ' ziuas', '' + number + ' ziuas'],\n            M: [\"'n mes\", \"'iens mes\"],\n            MM: [number + ' mesen', '' + number + ' mesen'],\n            y: [\"'n ar\", \"'iens ar\"],\n            yy: [number + ' ars', '' + number + ' ars'],\n        };\n        return isFuture\n            ? format[key][0]\n            : withoutSuffix\n            ? format[key][0]\n            : format[key][1];\n    }\n\n    return tzl;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/tzl.js\n// module id = 598\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Central Atlas Tamazight Latin [tzm-latn]\n//! author : Abdel Said : https://github.com/abdelsaid\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var tzmLatn = moment.defineLocale('tzm-latn', {\n        months: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split(\n            '_'\n        ),\n        monthsShort:\n            'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split(\n                '_'\n            ),\n        weekdays: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),\n        weekdaysShort: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),\n        weekdaysMin: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[asdkh g] LT',\n            nextDay: '[aska g] LT',\n            nextWeek: 'dddd [g] LT',\n            lastDay: '[assant g] LT',\n            lastWeek: 'dddd [g] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'dadkh s yan %s',\n            past: 'yan %s',\n            s: 'imik',\n            ss: '%d imik',\n            m: 'minuḍ',\n            mm: '%d minuḍ',\n            h: 'saɛa',\n            hh: '%d tassaɛin',\n            d: 'ass',\n            dd: '%d ossan',\n            M: 'ayowr',\n            MM: '%d iyyirn',\n            y: 'asgas',\n            yy: '%d isgasn',\n        },\n        week: {\n            dow: 6, // Saturday is the first day of the week.\n            doy: 12, // The week that contains Jan 12th is the first week of the year.\n        },\n    });\n\n    return tzmLatn;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/tzm-latn.js\n// module id = 599\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Central Atlas Tamazight [tzm]\n//! author : Abdel Said : https://github.com/abdelsaid\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var tzm = moment.defineLocale('tzm', {\n        months: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split(\n            '_'\n        ),\n        monthsShort:\n            'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split(\n                '_'\n            ),\n        weekdays: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),\n        weekdaysShort: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),\n        weekdaysMin: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[ⴰⵙⴷⵅ ⴴ] LT',\n            nextDay: '[ⴰⵙⴽⴰ ⴴ] LT',\n            nextWeek: 'dddd [ⴴ] LT',\n            lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT',\n            lastWeek: 'dddd [ⴴ] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s',\n            past: 'ⵢⴰⵏ %s',\n            s: 'ⵉⵎⵉⴽ',\n            ss: '%d ⵉⵎⵉⴽ',\n            m: 'ⵎⵉⵏⵓⴺ',\n            mm: '%d ⵎⵉⵏⵓⴺ',\n            h: 'ⵙⴰⵄⴰ',\n            hh: '%d ⵜⴰⵙⵙⴰⵄⵉⵏ',\n            d: 'ⴰⵙⵙ',\n            dd: '%d oⵙⵙⴰⵏ',\n            M: 'ⴰⵢoⵓⵔ',\n            MM: '%d ⵉⵢⵢⵉⵔⵏ',\n            y: 'ⴰⵙⴳⴰⵙ',\n            yy: '%d ⵉⵙⴳⴰⵙⵏ',\n        },\n        week: {\n            dow: 6, // Saturday is the first day of the week.\n            doy: 12, // The week that contains Jan 12th is the first week of the year.\n        },\n    });\n\n    return tzm;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/tzm.js\n// module id = 600\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Uyghur (China) [ug-cn]\n//! author: boyaq : https://github.com/boyaq\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var ugCn = moment.defineLocale('ug-cn', {\n        months: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split(\n            '_'\n        ),\n        monthsShort:\n            'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split(\n                '_'\n            ),\n        weekdays: 'يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە'.split(\n            '_'\n        ),\n        weekdaysShort: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),\n        weekdaysMin: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'YYYY-MM-DD',\n            LL: 'YYYY-يىلىM-ئاينىڭD-كۈنى',\n            LLL: 'YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm',\n            LLLL: 'dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm',\n        },\n        meridiemParse: /يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,\n        meridiemHour: function (hour, meridiem) {\n            if (hour === 12) {\n                hour = 0;\n            }\n            if (\n                meridiem === 'يېرىم كېچە' ||\n                meridiem === 'سەھەر' ||\n                meridiem === 'چۈشتىن بۇرۇن'\n            ) {\n                return hour;\n            } else if (meridiem === 'چۈشتىن كېيىن' || meridiem === 'كەچ') {\n                return hour + 12;\n            } else {\n                return hour >= 11 ? hour : hour + 12;\n            }\n        },\n        meridiem: function (hour, minute, isLower) {\n            var hm = hour * 100 + minute;\n            if (hm < 600) {\n                return 'يېرىم كېچە';\n            } else if (hm < 900) {\n                return 'سەھەر';\n            } else if (hm < 1130) {\n                return 'چۈشتىن بۇرۇن';\n            } else if (hm < 1230) {\n                return 'چۈش';\n            } else if (hm < 1800) {\n                return 'چۈشتىن كېيىن';\n            } else {\n                return 'كەچ';\n            }\n        },\n        calendar: {\n            sameDay: '[بۈگۈن سائەت] LT',\n            nextDay: '[ئەتە سائەت] LT',\n            nextWeek: '[كېلەركى] dddd [سائەت] LT',\n            lastDay: '[تۆنۈگۈن] LT',\n            lastWeek: '[ئالدىنقى] dddd [سائەت] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s كېيىن',\n            past: '%s بۇرۇن',\n            s: 'نەچچە سېكونت',\n            ss: '%d سېكونت',\n            m: 'بىر مىنۇت',\n            mm: '%d مىنۇت',\n            h: 'بىر سائەت',\n            hh: '%d سائەت',\n            d: 'بىر كۈن',\n            dd: '%d كۈن',\n            M: 'بىر ئاي',\n            MM: '%d ئاي',\n            y: 'بىر يىل',\n            yy: '%d يىل',\n        },\n\n        dayOfMonthOrdinalParse: /\\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,\n        ordinal: function (number, period) {\n            switch (period) {\n                case 'd':\n                case 'D':\n                case 'DDD':\n                    return number + '-كۈنى';\n                case 'w':\n                case 'W':\n                    return number + '-ھەپتە';\n                default:\n                    return number;\n            }\n        },\n        preparse: function (string) {\n            return string.replace(/،/g, ',');\n        },\n        postformat: function (string) {\n            return string.replace(/,/g, '،');\n        },\n        week: {\n            // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效\n            dow: 1, // Monday is the first day of the week.\n            doy: 7, // The week that contains Jan 1st is the first week of the year.\n        },\n    });\n\n    return ugCn;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ug-cn.js\n// module id = 601\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Ukrainian [uk]\n//! author : zemlanin : https://github.com/zemlanin\n//! Author : Menelion Elensúle : https://github.com/Oire\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    function plural(word, num) {\n        var forms = word.split('_');\n        return num % 10 === 1 && num % 100 !== 11\n            ? forms[0]\n            : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)\n            ? forms[1]\n            : forms[2];\n    }\n    function relativeTimeWithPlural(number, withoutSuffix, key) {\n        var format = {\n            ss: withoutSuffix ? 'секунда_секунди_секунд' : 'секунду_секунди_секунд',\n            mm: withoutSuffix ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин',\n            hh: withoutSuffix ? 'година_години_годин' : 'годину_години_годин',\n            dd: 'день_дні_днів',\n            MM: 'місяць_місяці_місяців',\n            yy: 'рік_роки_років',\n        };\n        if (key === 'm') {\n            return withoutSuffix ? 'хвилина' : 'хвилину';\n        } else if (key === 'h') {\n            return withoutSuffix ? 'година' : 'годину';\n        } else {\n            return number + ' ' + plural(format[key], +number);\n        }\n    }\n    function weekdaysCaseReplace(m, format) {\n        var weekdays = {\n                nominative:\n                    'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split(\n                        '_'\n                    ),\n                accusative:\n                    'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split(\n                        '_'\n                    ),\n                genitive:\n                    'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split(\n                        '_'\n                    ),\n            },\n            nounCase;\n\n        if (m === true) {\n            return weekdays['nominative']\n                .slice(1, 7)\n                .concat(weekdays['nominative'].slice(0, 1));\n        }\n        if (!m) {\n            return weekdays['nominative'];\n        }\n\n        nounCase = /(\\[[ВвУу]\\]) ?dddd/.test(format)\n            ? 'accusative'\n            : /\\[?(?:минулої|наступної)? ?\\] ?dddd/.test(format)\n            ? 'genitive'\n            : 'nominative';\n        return weekdays[nounCase][m.day()];\n    }\n    function processHoursFunction(str) {\n        return function () {\n            return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT';\n        };\n    }\n\n    var uk = moment.defineLocale('uk', {\n        months: {\n            format: 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split(\n                '_'\n            ),\n            standalone:\n                'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split(\n                    '_'\n                ),\n        },\n        monthsShort: 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split(\n            '_'\n        ),\n        weekdays: weekdaysCaseReplace,\n        weekdaysShort: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),\n        weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD.MM.YYYY',\n            LL: 'D MMMM YYYY р.',\n            LLL: 'D MMMM YYYY р., HH:mm',\n            LLLL: 'dddd, D MMMM YYYY р., HH:mm',\n        },\n        calendar: {\n            sameDay: processHoursFunction('[Сьогодні '),\n            nextDay: processHoursFunction('[Завтра '),\n            lastDay: processHoursFunction('[Вчора '),\n            nextWeek: processHoursFunction('[У] dddd ['),\n            lastWeek: function () {\n                switch (this.day()) {\n                    case 0:\n                    case 3:\n                    case 5:\n                    case 6:\n                        return processHoursFunction('[Минулої] dddd [').call(this);\n                    case 1:\n                    case 2:\n                    case 4:\n                        return processHoursFunction('[Минулого] dddd [').call(this);\n                }\n            },\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'за %s',\n            past: '%s тому',\n            s: 'декілька секунд',\n            ss: relativeTimeWithPlural,\n            m: relativeTimeWithPlural,\n            mm: relativeTimeWithPlural,\n            h: 'годину',\n            hh: relativeTimeWithPlural,\n            d: 'день',\n            dd: relativeTimeWithPlural,\n            M: 'місяць',\n            MM: relativeTimeWithPlural,\n            y: 'рік',\n            yy: relativeTimeWithPlural,\n        },\n        // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason\n        meridiemParse: /ночі|ранку|дня|вечора/,\n        isPM: function (input) {\n            return /^(дня|вечора)$/.test(input);\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 4) {\n                return 'ночі';\n            } else if (hour < 12) {\n                return 'ранку';\n            } else if (hour < 17) {\n                return 'дня';\n            } else {\n                return 'вечора';\n            }\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}-(й|го)/,\n        ordinal: function (number, period) {\n            switch (period) {\n                case 'M':\n                case 'd':\n                case 'DDD':\n                case 'w':\n                case 'W':\n                    return number + '-й';\n                case 'D':\n                    return number + '-го';\n                default:\n                    return number;\n            }\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 7, // The week that contains Jan 7th is the first week of the year.\n        },\n    });\n\n    return uk;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/uk.js\n// module id = 602\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Urdu [ur]\n//! author : Sawood Alam : https://github.com/ibnesayeed\n//! author : Zack : https://github.com/ZackVision\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var months = [\n            'جنوری',\n            'فروری',\n            'مارچ',\n            'اپریل',\n            'مئی',\n            'جون',\n            'جولائی',\n            'اگست',\n            'ستمبر',\n            'اکتوبر',\n            'نومبر',\n            'دسمبر',\n        ],\n        days = ['اتوار', 'پیر', 'منگل', 'بدھ', 'جمعرات', 'جمعہ', 'ہفتہ'];\n\n    var ur = moment.defineLocale('ur', {\n        months: months,\n        monthsShort: months,\n        weekdays: days,\n        weekdaysShort: days,\n        weekdaysMin: days,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd، D MMMM YYYY HH:mm',\n        },\n        meridiemParse: /صبح|شام/,\n        isPM: function (input) {\n            return 'شام' === input;\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 12) {\n                return 'صبح';\n            }\n            return 'شام';\n        },\n        calendar: {\n            sameDay: '[آج بوقت] LT',\n            nextDay: '[کل بوقت] LT',\n            nextWeek: 'dddd [بوقت] LT',\n            lastDay: '[گذشتہ روز بوقت] LT',\n            lastWeek: '[گذشتہ] dddd [بوقت] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s بعد',\n            past: '%s قبل',\n            s: 'چند سیکنڈ',\n            ss: '%d سیکنڈ',\n            m: 'ایک منٹ',\n            mm: '%d منٹ',\n            h: 'ایک گھنٹہ',\n            hh: '%d گھنٹے',\n            d: 'ایک دن',\n            dd: '%d دن',\n            M: 'ایک ماہ',\n            MM: '%d ماہ',\n            y: 'ایک سال',\n            yy: '%d سال',\n        },\n        preparse: function (string) {\n            return string.replace(/،/g, ',');\n        },\n        postformat: function (string) {\n            return string.replace(/,/g, '،');\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return ur;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ur.js\n// module id = 603\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Uzbek Latin [uz-latn]\n//! author : Rasulbek Mirzayev : github.com/Rasulbeeek\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var uzLatn = moment.defineLocale('uz-latn', {\n        months: 'Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr'.split(\n            '_'\n        ),\n        monthsShort: 'Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek'.split('_'),\n        weekdays:\n            'Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba'.split(\n                '_'\n            ),\n        weekdaysShort: 'Yak_Dush_Sesh_Chor_Pay_Jum_Shan'.split('_'),\n        weekdaysMin: 'Ya_Du_Se_Cho_Pa_Ju_Sha'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'D MMMM YYYY, dddd HH:mm',\n        },\n        calendar: {\n            sameDay: '[Bugun soat] LT [da]',\n            nextDay: '[Ertaga] LT [da]',\n            nextWeek: 'dddd [kuni soat] LT [da]',\n            lastDay: '[Kecha soat] LT [da]',\n            lastWeek: \"[O'tgan] dddd [kuni soat] LT [da]\",\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'Yaqin %s ichida',\n            past: 'Bir necha %s oldin',\n            s: 'soniya',\n            ss: '%d soniya',\n            m: 'bir daqiqa',\n            mm: '%d daqiqa',\n            h: 'bir soat',\n            hh: '%d soat',\n            d: 'bir kun',\n            dd: '%d kun',\n            M: 'bir oy',\n            MM: '%d oy',\n            y: 'bir yil',\n            yy: '%d yil',\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 7, // The week that contains Jan 7th is the first week of the year.\n        },\n    });\n\n    return uzLatn;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/uz-latn.js\n// module id = 604\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Uzbek [uz]\n//! author : Sardor Muminov : https://github.com/muminoff\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var uz = moment.defineLocale('uz', {\n        months: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split(\n            '_'\n        ),\n        monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),\n        weekdays: 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'),\n        weekdaysShort: 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'),\n        weekdaysMin: 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'D MMMM YYYY, dddd HH:mm',\n        },\n        calendar: {\n            sameDay: '[Бугун соат] LT [да]',\n            nextDay: '[Эртага] LT [да]',\n            nextWeek: 'dddd [куни соат] LT [да]',\n            lastDay: '[Кеча соат] LT [да]',\n            lastWeek: '[Утган] dddd [куни соат] LT [да]',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'Якин %s ичида',\n            past: 'Бир неча %s олдин',\n            s: 'фурсат',\n            ss: '%d фурсат',\n            m: 'бир дакика',\n            mm: '%d дакика',\n            h: 'бир соат',\n            hh: '%d соат',\n            d: 'бир кун',\n            dd: '%d кун',\n            M: 'бир ой',\n            MM: '%d ой',\n            y: 'бир йил',\n            yy: '%d йил',\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 7, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return uz;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/uz.js\n// module id = 605\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Vietnamese [vi]\n//! author : Bang Nguyen : https://github.com/bangnk\n//! author : Chien Kira : https://github.com/chienkira\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var vi = moment.defineLocale('vi', {\n        months: 'tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12'.split(\n            '_'\n        ),\n        monthsShort:\n            'Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12'.split(\n                '_'\n            ),\n        monthsParseExact: true,\n        weekdays: 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split(\n            '_'\n        ),\n        weekdaysShort: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),\n        weekdaysMin: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),\n        weekdaysParseExact: true,\n        meridiemParse: /sa|ch/i,\n        isPM: function (input) {\n            return /^ch$/i.test(input);\n        },\n        meridiem: function (hours, minutes, isLower) {\n            if (hours < 12) {\n                return isLower ? 'sa' : 'SA';\n            } else {\n                return isLower ? 'ch' : 'CH';\n            }\n        },\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM [năm] YYYY',\n            LLL: 'D MMMM [năm] YYYY HH:mm',\n            LLLL: 'dddd, D MMMM [năm] YYYY HH:mm',\n            l: 'DD/M/YYYY',\n            ll: 'D MMM YYYY',\n            lll: 'D MMM YYYY HH:mm',\n            llll: 'ddd, D MMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[Hôm nay lúc] LT',\n            nextDay: '[Ngày mai lúc] LT',\n            nextWeek: 'dddd [tuần tới lúc] LT',\n            lastDay: '[Hôm qua lúc] LT',\n            lastWeek: 'dddd [tuần trước lúc] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s tới',\n            past: '%s trước',\n            s: 'vài giây',\n            ss: '%d giây',\n            m: 'một phút',\n            mm: '%d phút',\n            h: 'một giờ',\n            hh: '%d giờ',\n            d: 'một ngày',\n            dd: '%d ngày',\n            w: 'một tuần',\n            ww: '%d tuần',\n            M: 'một tháng',\n            MM: '%d tháng',\n            y: 'một năm',\n            yy: '%d năm',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}/,\n        ordinal: function (number) {\n            return number;\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return vi;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/vi.js\n// module id = 606\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Pseudo [x-pseudo]\n//! author : Andrew Hood : https://github.com/andrewhood125\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var xPseudo = moment.defineLocale('x-pseudo', {\n        months: 'J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér'.split(\n            '_'\n        ),\n        monthsShort:\n            'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split(\n                '_'\n            ),\n        monthsParseExact: true,\n        weekdays:\n            'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split(\n                '_'\n            ),\n        weekdaysShort: 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'),\n        weekdaysMin: 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'HH:mm',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd, D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[T~ódá~ý át] LT',\n            nextDay: '[T~ómó~rró~w át] LT',\n            nextWeek: 'dddd [át] LT',\n            lastDay: '[Ý~ést~érdá~ý át] LT',\n            lastWeek: '[L~ást] dddd [át] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'í~ñ %s',\n            past: '%s á~gó',\n            s: 'á ~féw ~sécó~ñds',\n            ss: '%d s~écóñ~ds',\n            m: 'á ~míñ~úté',\n            mm: '%d m~íñú~tés',\n            h: 'á~ñ hó~úr',\n            hh: '%d h~óúrs',\n            d: 'á ~dáý',\n            dd: '%d d~áýs',\n            M: 'á ~móñ~th',\n            MM: '%d m~óñt~hs',\n            y: 'á ~ýéár',\n            yy: '%d ý~éárs',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(th|st|nd|rd)/,\n        ordinal: function (number) {\n            var b = number % 10,\n                output =\n                    ~~((number % 100) / 10) === 1\n                        ? 'th'\n                        : b === 1\n                        ? 'st'\n                        : b === 2\n                        ? 'nd'\n                        : b === 3\n                        ? 'rd'\n                        : 'th';\n            return number + output;\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return xPseudo;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/x-pseudo.js\n// module id = 607\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Yoruba Nigeria [yo]\n//! author : Atolagbe Abisoye : https://github.com/andela-batolagbe\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var yo = moment.defineLocale('yo', {\n        months: 'Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀'.split(\n            '_'\n        ),\n        monthsShort: 'Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀'.split('_'),\n        weekdays: 'Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta'.split('_'),\n        weekdaysShort: 'Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá'.split('_'),\n        weekdaysMin: 'Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb'.split('_'),\n        longDateFormat: {\n            LT: 'h:mm A',\n            LTS: 'h:mm:ss A',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY h:mm A',\n            LLLL: 'dddd, D MMMM YYYY h:mm A',\n        },\n        calendar: {\n            sameDay: '[Ònì ni] LT',\n            nextDay: '[Ọ̀la ni] LT',\n            nextWeek: \"dddd [Ọsẹ̀ tón'bọ] [ni] LT\",\n            lastDay: '[Àna ni] LT',\n            lastWeek: 'dddd [Ọsẹ̀ tólọ́] [ni] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'ní %s',\n            past: '%s kọjá',\n            s: 'ìsẹjú aayá die',\n            ss: 'aayá %d',\n            m: 'ìsẹjú kan',\n            mm: 'ìsẹjú %d',\n            h: 'wákati kan',\n            hh: 'wákati %d',\n            d: 'ọjọ́ kan',\n            dd: 'ọjọ́ %d',\n            M: 'osù kan',\n            MM: 'osù %d',\n            y: 'ọdún kan',\n            yy: 'ọdún %d',\n        },\n        dayOfMonthOrdinalParse: /ọjọ́\\s\\d{1,2}/,\n        ordinal: 'ọjọ́ %d',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return yo;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/yo.js\n// module id = 608\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Chinese (China) [zh-cn]\n//! author : suupic : https://github.com/suupic\n//! author : Zeno Zeng : https://github.com/zenozeng\n//! author : uu109 : https://github.com/uu109\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var zhCn = moment.defineLocale('zh-cn', {\n        months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(\n            '_'\n        ),\n        monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(\n            '_'\n        ),\n        weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),\n        weekdaysShort: '周日_周一_周二_周三_周四_周五_周六'.split('_'),\n        weekdaysMin: '日_一_二_三_四_五_六'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'YYYY/MM/DD',\n            LL: 'YYYY年M月D日',\n            LLL: 'YYYY年M月D日Ah点mm分',\n            LLLL: 'YYYY年M月D日ddddAh点mm分',\n            l: 'YYYY/M/D',\n            ll: 'YYYY年M月D日',\n            lll: 'YYYY年M月D日 HH:mm',\n            llll: 'YYYY年M月D日dddd HH:mm',\n        },\n        meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,\n        meridiemHour: function (hour, meridiem) {\n            if (hour === 12) {\n                hour = 0;\n            }\n            if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {\n                return hour;\n            } else if (meridiem === '下午' || meridiem === '晚上') {\n                return hour + 12;\n            } else {\n                // '中午'\n                return hour >= 11 ? hour : hour + 12;\n            }\n        },\n        meridiem: function (hour, minute, isLower) {\n            var hm = hour * 100 + minute;\n            if (hm < 600) {\n                return '凌晨';\n            } else if (hm < 900) {\n                return '早上';\n            } else if (hm < 1130) {\n                return '上午';\n            } else if (hm < 1230) {\n                return '中午';\n            } else if (hm < 1800) {\n                return '下午';\n            } else {\n                return '晚上';\n            }\n        },\n        calendar: {\n            sameDay: '[今天]LT',\n            nextDay: '[明天]LT',\n            nextWeek: function (now) {\n                if (now.week() !== this.week()) {\n                    return '[下]dddLT';\n                } else {\n                    return '[本]dddLT';\n                }\n            },\n            lastDay: '[昨天]LT',\n            lastWeek: function (now) {\n                if (this.week() !== now.week()) {\n                    return '[上]dddLT';\n                } else {\n                    return '[本]dddLT';\n                }\n            },\n            sameElse: 'L',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(日|月|周)/,\n        ordinal: function (number, period) {\n            switch (period) {\n                case 'd':\n                case 'D':\n                case 'DDD':\n                    return number + '日';\n                case 'M':\n                    return number + '月';\n                case 'w':\n                case 'W':\n                    return number + '周';\n                default:\n                    return number;\n            }\n        },\n        relativeTime: {\n            future: '%s后',\n            past: '%s前',\n            s: '几秒',\n            ss: '%d 秒',\n            m: '1 分钟',\n            mm: '%d 分钟',\n            h: '1 小时',\n            hh: '%d 小时',\n            d: '1 天',\n            dd: '%d 天',\n            w: '1 周',\n            ww: '%d 周',\n            M: '1 个月',\n            MM: '%d 个月',\n            y: '1 年',\n            yy: '%d 年',\n        },\n        week: {\n            // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return zhCn;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/zh-cn.js\n// module id = 609\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Chinese (Hong Kong) [zh-hk]\n//! author : Ben : https://github.com/ben-lin\n//! author : Chris Lam : https://github.com/hehachris\n//! author : Konstantin : https://github.com/skfd\n//! author : Anthony : https://github.com/anthonylau\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var zhHk = moment.defineLocale('zh-hk', {\n        months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(\n            '_'\n        ),\n        monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(\n            '_'\n        ),\n        weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),\n        weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),\n        weekdaysMin: '日_一_二_三_四_五_六'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'YYYY/MM/DD',\n            LL: 'YYYY年M月D日',\n            LLL: 'YYYY年M月D日 HH:mm',\n            LLLL: 'YYYY年M月D日dddd HH:mm',\n            l: 'YYYY/M/D',\n            ll: 'YYYY年M月D日',\n            lll: 'YYYY年M月D日 HH:mm',\n            llll: 'YYYY年M月D日dddd HH:mm',\n        },\n        meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,\n        meridiemHour: function (hour, meridiem) {\n            if (hour === 12) {\n                hour = 0;\n            }\n            if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {\n                return hour;\n            } else if (meridiem === '中午') {\n                return hour >= 11 ? hour : hour + 12;\n            } else if (meridiem === '下午' || meridiem === '晚上') {\n                return hour + 12;\n            }\n        },\n        meridiem: function (hour, minute, isLower) {\n            var hm = hour * 100 + minute;\n            if (hm < 600) {\n                return '凌晨';\n            } else if (hm < 900) {\n                return '早上';\n            } else if (hm < 1200) {\n                return '上午';\n            } else if (hm === 1200) {\n                return '中午';\n            } else if (hm < 1800) {\n                return '下午';\n            } else {\n                return '晚上';\n            }\n        },\n        calendar: {\n            sameDay: '[今天]LT',\n            nextDay: '[明天]LT',\n            nextWeek: '[下]ddddLT',\n            lastDay: '[昨天]LT',\n            lastWeek: '[上]ddddLT',\n            sameElse: 'L',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(日|月|週)/,\n        ordinal: function (number, period) {\n            switch (period) {\n                case 'd':\n                case 'D':\n                case 'DDD':\n                    return number + '日';\n                case 'M':\n                    return number + '月';\n                case 'w':\n                case 'W':\n                    return number + '週';\n                default:\n                    return number;\n            }\n        },\n        relativeTime: {\n            future: '%s後',\n            past: '%s前',\n            s: '幾秒',\n            ss: '%d 秒',\n            m: '1 分鐘',\n            mm: '%d 分鐘',\n            h: '1 小時',\n            hh: '%d 小時',\n            d: '1 天',\n            dd: '%d 天',\n            M: '1 個月',\n            MM: '%d 個月',\n            y: '1 年',\n            yy: '%d 年',\n        },\n    });\n\n    return zhHk;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/zh-hk.js\n// module id = 610\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Chinese (Macau) [zh-mo]\n//! author : Ben : https://github.com/ben-lin\n//! author : Chris Lam : https://github.com/hehachris\n//! author : Tan Yuanhong : https://github.com/le0tan\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var zhMo = moment.defineLocale('zh-mo', {\n        months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(\n            '_'\n        ),\n        monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(\n            '_'\n        ),\n        weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),\n        weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),\n        weekdaysMin: '日_一_二_三_四_五_六'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'YYYY年M月D日',\n            LLL: 'YYYY年M月D日 HH:mm',\n            LLLL: 'YYYY年M月D日dddd HH:mm',\n            l: 'D/M/YYYY',\n            ll: 'YYYY年M月D日',\n            lll: 'YYYY年M月D日 HH:mm',\n            llll: 'YYYY年M月D日dddd HH:mm',\n        },\n        meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,\n        meridiemHour: function (hour, meridiem) {\n            if (hour === 12) {\n                hour = 0;\n            }\n            if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {\n                return hour;\n            } else if (meridiem === '中午') {\n                return hour >= 11 ? hour : hour + 12;\n            } else if (meridiem === '下午' || meridiem === '晚上') {\n                return hour + 12;\n            }\n        },\n        meridiem: function (hour, minute, isLower) {\n            var hm = hour * 100 + minute;\n            if (hm < 600) {\n                return '凌晨';\n            } else if (hm < 900) {\n                return '早上';\n            } else if (hm < 1130) {\n                return '上午';\n            } else if (hm < 1230) {\n                return '中午';\n            } else if (hm < 1800) {\n                return '下午';\n            } else {\n                return '晚上';\n            }\n        },\n        calendar: {\n            sameDay: '[今天] LT',\n            nextDay: '[明天] LT',\n            nextWeek: '[下]dddd LT',\n            lastDay: '[昨天] LT',\n            lastWeek: '[上]dddd LT',\n            sameElse: 'L',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(日|月|週)/,\n        ordinal: function (number, period) {\n            switch (period) {\n                case 'd':\n                case 'D':\n                case 'DDD':\n                    return number + '日';\n                case 'M':\n                    return number + '月';\n                case 'w':\n                case 'W':\n                    return number + '週';\n                default:\n                    return number;\n            }\n        },\n        relativeTime: {\n            future: '%s內',\n            past: '%s前',\n            s: '幾秒',\n            ss: '%d 秒',\n            m: '1 分鐘',\n            mm: '%d 分鐘',\n            h: '1 小時',\n            hh: '%d 小時',\n            d: '1 天',\n            dd: '%d 天',\n            M: '1 個月',\n            MM: '%d 個月',\n            y: '1 年',\n            yy: '%d 年',\n        },\n    });\n\n    return zhMo;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/zh-mo.js\n// module id = 611\n// module chunks = 0","//! moment.js locale configuration\n//! locale : Chinese (Taiwan) [zh-tw]\n//! author : Ben : https://github.com/ben-lin\n//! author : Chris Lam : https://github.com/hehachris\n\n;(function (global, factory) {\n   typeof exports === 'object' && typeof module !== 'undefined'\n       && typeof require === 'function' ? factory(require('../moment')) :\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n   factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var zhTw = moment.defineLocale('zh-tw', {\n        months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(\n            '_'\n        ),\n        monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(\n            '_'\n        ),\n        weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),\n        weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),\n        weekdaysMin: '日_一_二_三_四_五_六'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'YYYY/MM/DD',\n            LL: 'YYYY年M月D日',\n            LLL: 'YYYY年M月D日 HH:mm',\n            LLLL: 'YYYY年M月D日dddd HH:mm',\n            l: 'YYYY/M/D',\n            ll: 'YYYY年M月D日',\n            lll: 'YYYY年M月D日 HH:mm',\n            llll: 'YYYY年M月D日dddd HH:mm',\n        },\n        meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,\n        meridiemHour: function (hour, meridiem) {\n            if (hour === 12) {\n                hour = 0;\n            }\n            if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {\n                return hour;\n            } else if (meridiem === '中午') {\n                return hour >= 11 ? hour : hour + 12;\n            } else if (meridiem === '下午' || meridiem === '晚上') {\n                return hour + 12;\n            }\n        },\n        meridiem: function (hour, minute, isLower) {\n            var hm = hour * 100 + minute;\n            if (hm < 600) {\n                return '凌晨';\n            } else if (hm < 900) {\n                return '早上';\n            } else if (hm < 1130) {\n                return '上午';\n            } else if (hm < 1230) {\n                return '中午';\n            } else if (hm < 1800) {\n                return '下午';\n            } else {\n                return '晚上';\n            }\n        },\n        calendar: {\n            sameDay: '[今天] LT',\n            nextDay: '[明天] LT',\n            nextWeek: '[下]dddd LT',\n            lastDay: '[昨天] LT',\n            lastWeek: '[上]dddd LT',\n            sameElse: 'L',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(日|月|週)/,\n        ordinal: function (number, period) {\n            switch (period) {\n                case 'd':\n                case 'D':\n                case 'DDD':\n                    return number + '日';\n                case 'M':\n                    return number + '月';\n                case 'w':\n                case 'W':\n                    return number + '週';\n                default:\n                    return number;\n            }\n        },\n        relativeTime: {\n            future: '%s後',\n            past: '%s前',\n            s: '幾秒',\n            ss: '%d 秒',\n            m: '1 分鐘',\n            mm: '%d 分鐘',\n            h: '1 小時',\n            hh: '%d 小時',\n            d: '1 天',\n            dd: '%d 天',\n            M: '1 個月',\n            MM: '%d 個月',\n            y: '1 年',\n            yy: '%d 年',\n        },\n    });\n\n    return zhTw;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/zh-tw.js\n// module id = 612\n// module chunks = 0","\"use strict\";\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nvar core_1 = require('@angular/core');\nvar modal_1 = require('./modal');\nvar ModalBodyComponent = (function () {\n    function ModalBodyComponent(modal) {\n        this.modal = modal;\n    }\n    ModalBodyComponent = __decorate([\n        core_1.Component({\n            selector: 'modal-body',\n            template: \"\\n        <div class=\\\"modal-body\\\">\\n            <ng-content></ng-content>\\n        </div>\\n    \"\n        }), \n        __metadata('design:paramtypes', [modal_1.ModalComponent])\n    ], ModalBodyComponent);\n    return ModalBodyComponent;\n}());\nexports.ModalBodyComponent = ModalBodyComponent;\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kYWwtYm9keS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9uZzItYnM0LW1vZGFsL2NvbXBvbmVudHMvbW9kYWwtYm9keS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQUEscUJBQTBCLGVBQWUsQ0FBQyxDQUFBO0FBQzFDLHNCQUErQixTQUFTLENBQUMsQ0FBQTtBQVV6QztJQUNJLDRCQUFvQixLQUFxQjtRQUFyQixVQUFLLEdBQUwsS0FBSyxDQUFnQjtJQUFJLENBQUM7SUFUbEQ7UUFBQyxnQkFBUyxDQUFDO1lBQ1AsUUFBUSxFQUFFLFlBQVk7WUFDdEIsUUFBUSxFQUFFLG1HQUlUO1NBQ0osQ0FBQzs7MEJBQUE7SUFHRix5QkFBQztBQUFELENBQUMsQUFGRCxJQUVDO0FBRlksMEJBQWtCLHFCQUU5QixDQUFBIn0=\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ng2-bs4-modal/components/modal-body.js\n// module id = 613\n// module chunks = 0","\"use strict\";\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nvar core_1 = require('@angular/core');\nvar modal_1 = require('./modal');\nvar ModalFooterComponent = (function () {\n    function ModalFooterComponent(modal) {\n        this.modal = modal;\n        this.showDefaultButtons = false;\n    }\n    __decorate([\n        core_1.Input('show-default-buttons'), \n        __metadata('design:type', Boolean)\n    ], ModalFooterComponent.prototype, \"showDefaultButtons\", void 0);\n    ModalFooterComponent = __decorate([\n        core_1.Component({\n            selector: 'modal-footer',\n            template: \"\\n        <div class=\\\"modal-footer\\\">\\n            <ng-content></ng-content>\\n            <button *ngIf=\\\"showDefaultButtons\\\" type=\\\"button\\\" class=\\\"btn btn-default\\\" data-dismiss=\\\"modal\\\" (click)=\\\"modal.dismiss()\\\">Close</button>\\n            <button *ngIf=\\\"showDefaultButtons\\\" type=\\\"button\\\" class=\\\"btn btn-primary\\\" (click)=\\\"modal.close()\\\">Save</button>\\n        </div>\\n    \"\n        }), \n        __metadata('design:paramtypes', [modal_1.ModalComponent])\n    ], ModalFooterComponent);\n    return ModalFooterComponent;\n}());\nexports.ModalFooterComponent = ModalFooterComponent;\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kYWwtZm9vdGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL25nMi1iczQtbW9kYWwvY29tcG9uZW50cy9tb2RhbC1mb290ZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFBLHFCQUFpQyxlQUFlLENBQUMsQ0FBQTtBQUNqRCxzQkFBK0IsU0FBUyxDQUFDLENBQUE7QUFZekM7SUFFSSw4QkFBb0IsS0FBcUI7UUFBckIsVUFBSyxHQUFMLEtBQUssQ0FBZ0I7UUFEVix1QkFBa0IsR0FBWSxLQUFLLENBQUM7SUFDdEIsQ0FBQztJQUQ5QztRQUFDLFlBQUssQ0FBQyxzQkFBc0IsQ0FBQzs7b0VBQUE7SUFYbEM7UUFBQyxnQkFBUyxDQUFDO1lBQ1AsUUFBUSxFQUFFLGNBQWM7WUFDeEIsUUFBUSxFQUFFLHVZQU1UO1NBQ0osQ0FBQzs7NEJBQUE7SUFJRiwyQkFBQztBQUFELENBQUMsQUFIRCxJQUdDO0FBSFksNEJBQW9CLHVCQUdoQyxDQUFBIn0=\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ng2-bs4-modal/components/modal-footer.js\n// module id = 614\n// module chunks = 0","\"use strict\";\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nvar core_1 = require('@angular/core');\nvar modal_1 = require('./modal');\nvar ModalHeaderComponent = (function () {\n    function ModalHeaderComponent(modal) {\n        this.modal = modal;\n        this.showClose = false;\n        this.headerClasses = {};\n    }\n    __decorate([\n        core_1.Input('show-close'), \n        __metadata('design:type', Boolean)\n    ], ModalHeaderComponent.prototype, \"showClose\", void 0);\n    __decorate([\n        core_1.Input('header-classes'), \n        __metadata('design:type', Object)\n    ], ModalHeaderComponent.prototype, \"headerClasses\", void 0);\n    ModalHeaderComponent = __decorate([\n        core_1.Component({\n            selector: 'modal-header',\n            template: \"\\n        <div class=\\\"modal-header\\\" [ngClass]=\\\"headerClasses\\\">\\n            <ng-content></ng-content>\\n            <button *ngIf=\\\"showClose\\\" type=\\\"button\\\" class=\\\"close\\\" data-dismiss=\\\"modal\\\" aria-label=\\\"Close\\\" (click)=\\\"modal.dismiss()\\\">\\n                <span aria-hidden=\\\"true\\\">&times;</span>\\n            </button>\\n        </div>\\n    \"\n        }), \n        __metadata('design:paramtypes', [modal_1.ModalComponent])\n    ], ModalHeaderComponent);\n    return ModalHeaderComponent;\n}());\nexports.ModalHeaderComponent = ModalHeaderComponent;\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kYWwtaGVhZGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL25nMi1iczQtbW9kYWwvY29tcG9uZW50cy9tb2RhbC1oZWFkZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFBLHFCQUFpQyxlQUFlLENBQUMsQ0FBQTtBQUNqRCxzQkFBK0IsU0FBUyxDQUFDLENBQUE7QUFhekM7SUFHSSw4QkFBb0IsS0FBcUI7UUFBckIsVUFBSyxHQUFMLEtBQUssQ0FBZ0I7UUFGcEIsY0FBUyxHQUFZLEtBQUssQ0FBQztRQUN2QixrQkFBYSxHQUE0QixFQUFFLENBQUM7SUFDeEIsQ0FBQztJQUY5QztRQUFDLFlBQUssQ0FBQyxZQUFZLENBQUM7OzJEQUFBO0lBQ3BCO1FBQUMsWUFBSyxDQUFDLGdCQUFnQixDQUFDOzsrREFBQTtJQWI1QjtRQUFDLGdCQUFTLENBQUM7WUFDUCxRQUFRLEVBQUUsY0FBYztZQUN4QixRQUFRLEVBQUUscVdBT1Q7U0FDSixDQUFDOzs0QkFBQTtJQUtGLDJCQUFDO0FBQUQsQ0FBQyxBQUpELElBSUM7QUFKWSw0QkFBb0IsdUJBSWhDLENBQUEifQ==\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ng2-bs4-modal/components/modal-header.js\n// module id = 615\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('rxjs/Observable');\nrequire('rxjs/add/operator/map');\nrequire('rxjs/add/observable/fromEvent');\nvar ModalInstance = (function () {\n    function ModalInstance(element) {\n        this.element = element;\n        this.suffix = '.ng2-bs4-modal';\n        this.shownEventName = 'shown.bs.modal' + this.suffix;\n        this.hiddenEventName = 'hidden.bs.modal' + this.suffix;\n        this.visible = false;\n        this.init();\n    }\n    ModalInstance.prototype.open = function () {\n        return this.show();\n    };\n    ModalInstance.prototype.close = function () {\n        this.result = ModalResult.Close;\n        return this.hide();\n    };\n    ModalInstance.prototype.dismiss = function () {\n        this.result = ModalResult.Dismiss;\n        return this.hide();\n    };\n    ModalInstance.prototype.destroy = function () {\n        var _this = this;\n        return this.hide().then(function () {\n            if (_this.$modal) {\n                _this.$modal.data('bs.modal', null);\n                _this.$modal.remove();\n            }\n        });\n    };\n    ModalInstance.prototype.show = function () {\n        var promise = toPromise(this.shown);\n        this.resetData();\n        this.$modal.modal();\n        return promise;\n    };\n    ModalInstance.prototype.hide = function () {\n        if (this.$modal && this.visible) {\n            var promise = toPromise(this.hidden);\n            this.$modal.modal('hide');\n            return promise;\n        }\n        return Promise.resolve(this.result);\n    };\n    ModalInstance.prototype.init = function () {\n        var _this = this;\n        this.$modal = jQuery(this.element.nativeElement);\n        this.$modal.appendTo('body');\n        this.shown = Observable_1.Observable.fromEvent(this.$modal, this.shownEventName)\n            .map(function () {\n            _this.visible = true;\n        });\n        this.hidden = Observable_1.Observable.fromEvent(this.$modal, this.hiddenEventName)\n            .map(function () {\n            var result = (!_this.result || _this.result.valueOf() === ModalResult.None.valueOf())\n                ? ModalResult.Dismiss : _this.result;\n            _this.result = ModalResult.None;\n            _this.visible = false;\n            return result;\n        });\n    };\n    ModalInstance.prototype.resetData = function () {\n        this.$modal.removeData();\n        this.$modal.data('backdrop', booleanOrValue(this.$modal.attr('data-backdrop')));\n        this.$modal.data('keyboard', booleanOrValue(this.$modal.attr('data-keyboard')));\n    };\n    return ModalInstance;\n}());\nexports.ModalInstance = ModalInstance;\nfunction booleanOrValue(value) {\n    if (value === 'true')\n        return true;\n    else if (value === 'false')\n        return false;\n    return value;\n}\nfunction toPromise(observable) {\n    return new Promise(function (resolve, reject) {\n        observable.subscribe(function (next) {\n            resolve(next);\n        });\n    });\n}\n(function (ModalResult) {\n    ModalResult[ModalResult[\"None\"] = 0] = \"None\";\n    ModalResult[ModalResult[\"Close\"] = 1] = \"Close\";\n    ModalResult[ModalResult[\"Dismiss\"] = 2] = \"Dismiss\";\n})(exports.ModalResult || (exports.ModalResult = {}));\nvar ModalResult = exports.ModalResult;\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kYWwtaW5zdGFuY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvbmcyLWJzNC1tb2RhbC9jb21wb25lbnRzL21vZGFsLWluc3RhbmNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFDQSwyQkFBMkIsaUJBQWlCLENBQUMsQ0FBQTtBQUM3QyxRQUFPLHVCQUF1QixDQUFDLENBQUE7QUFDL0IsUUFBTywrQkFBK0IsQ0FBQyxDQUFBO0FBSXZDO0lBWUksdUJBQW9CLE9BQW1CO1FBQW5CLFlBQU8sR0FBUCxPQUFPLENBQVk7UUFWL0IsV0FBTSxHQUFXLGdCQUFnQixDQUFDO1FBQ2xDLG1CQUFjLEdBQVcsZ0JBQWdCLEdBQUcsSUFBSSxDQUFDLE1BQU0sQ0FBQztRQUN4RCxvQkFBZSxHQUFXLGlCQUFpQixHQUFHLElBQUksQ0FBQyxNQUFNLENBQUM7UUFNbEUsWUFBTyxHQUFZLEtBQUssQ0FBQztRQUdyQixJQUFJLENBQUMsSUFBSSxFQUFFLENBQUM7SUFDaEIsQ0FBQztJQUVELDRCQUFJLEdBQUo7UUFDSSxNQUFNLENBQUMsSUFBSSxDQUFDLElBQUksRUFBRSxDQUFDO0lBQ3ZCLENBQUM7SUFFRCw2QkFBSyxHQUFMO1FBQ0ksSUFBSSxDQUFDLE1BQU0sR0FBRyxXQUFXLENBQUMsS0FBSyxDQUFDO1FBQ2hDLE1BQU0sQ0FBQyxJQUFJLENBQUMsSUFBSSxFQUFFLENBQUM7SUFDdkIsQ0FBQztJQUVELCtCQUFPLEdBQVA7UUFDSSxJQUFJLENBQUMsTUFBTSxHQUFHLFdBQVcsQ0FBQyxPQUFPLENBQUM7UUFDbEMsTUFBTSxDQUFDLElBQUksQ0FBQyxJQUFJLEVBQUUsQ0FBQztJQUN2QixDQUFDO0lBRUQsK0JBQU8sR0FBUDtRQUFBLGlCQU9DO1FBTkcsTUFBTSxDQUFDLElBQUksQ0FBQyxJQUFJLEVBQUUsQ0FBQyxJQUFJLENBQUM7WUFDcEIsRUFBRSxDQUFDLENBQUMsS0FBSSxDQUFDLE1BQU0sQ0FBQyxDQUFDLENBQUM7Z0JBQ2QsS0FBSSxDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUMsVUFBVSxFQUFFLElBQUksQ0FBQyxDQUFDO2dCQUNuQyxLQUFJLENBQUMsTUFBTSxDQUFDLE1BQU0sRUFBRSxDQUFDO1lBQ3pCLENBQUM7UUFDTCxDQUFDLENBQUMsQ0FBQztJQUNQLENBQUM7SUFFTyw0QkFBSSxHQUFaO1FBQ0ksSUFBSSxPQUFPLEdBQUcsU0FBUyxDQUFDLElBQUksQ0FBQyxLQUFLLENBQUMsQ0FBQztRQUNwQyxJQUFJLENBQUMsU0FBUyxFQUFFLENBQUM7UUFDakIsSUFBSSxDQUFDLE1BQU0sQ0FBQyxLQUFLLEVBQUUsQ0FBQztRQUNwQixNQUFNLENBQUMsT0FBTyxDQUFDO0lBQ25CLENBQUM7SUFFTyw0QkFBSSxHQUFaO1FBQ0ksRUFBRSxDQUFDLENBQUMsSUFBSSxDQUFDLE1BQU0sSUFBSSxJQUFJLENBQUMsT0FBTyxDQUFDLENBQUMsQ0FBQztZQUM5QixJQUFJLE9BQU8sR0FBRyxTQUFTLENBQUMsSUFBSSxDQUFDLE1BQU0sQ0FBQyxDQUFDO1lBQ3JDLElBQUksQ0FBQyxNQUFNLENBQUMsS0FBSyxDQUFDLE1BQU0sQ0FBQyxDQUFDO1lBQzFCLE1BQU0sQ0FBQyxPQUFPLENBQUM7UUFDbkIsQ0FBQztRQUNELE1BQU0sQ0FBQyxPQUFPLENBQUMsT0FBTyxDQUFDLElBQUksQ0FBQyxNQUFNLENBQUMsQ0FBQztJQUN4QyxDQUFDO0lBRU8sNEJBQUksR0FBWjtRQUFBLGlCQW1CQztRQWxCRyxJQUFJLENBQUMsTUFBTSxHQUFHLE1BQU0sQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDLGFBQWEsQ0FBQyxDQUFDO1FBQ2pELElBQUksQ0FBQyxNQUFNLENBQUMsUUFBUSxDQUFDLE1BQU0sQ0FBQyxDQUFDO1FBRTdCLElBQUksQ0FBQyxLQUFLLEdBQUcsdUJBQVUsQ0FBQyxTQUFTLENBQUMsSUFBSSxDQUFDLE1BQU0sRUFBRSxJQUFJLENBQUMsY0FBYyxDQUFDO2FBQzlELEdBQUcsQ0FBQztZQUNELEtBQUksQ0FBQyxPQUFPLEdBQUcsSUFBSSxDQUFDO1FBQ3hCLENBQUMsQ0FBQyxDQUFDO1FBRVAsSUFBSSxDQUFDLE1BQU0sR0FBRyx1QkFBVSxDQUFDLFNBQVMsQ0FBQyxJQUFJLENBQUMsTUFBTSxFQUFFLElBQUksQ0FBQyxlQUFlLENBQUM7YUFDaEUsR0FBRyxDQUFDO1lBQ0QsSUFBSSxNQUFNLEdBQUcsQ0FBQyxDQUFDLEtBQUksQ0FBQyxNQUFNLElBQUksS0FBSSxDQUFDLE1BQU0sQ0FBQyxPQUFPLEVBQUUsS0FBSyxXQUFXLENBQUMsSUFBSSxDQUFDLE9BQU8sRUFBRSxDQUFDO2tCQUM3RSxXQUFXLENBQUMsT0FBTyxHQUFHLEtBQUksQ0FBQyxNQUFNLENBQUM7WUFFeEMsS0FBSSxDQUFDLE1BQU0sR0FBRyxXQUFXLENBQUMsSUFBSSxDQUFDO1lBQy9CLEtBQUksQ0FBQyxPQUFPLEdBQUcsS0FBSyxDQUFDO1lBRXJCLE1BQU0sQ0FBQyxNQUFNLENBQUM7UUFDbEIsQ0FBQyxDQUFDLENBQUM7SUFDWCxDQUFDO0lBRU8saUNBQVMsR0FBakI7UUFDSSxJQUFJLENBQUMsTUFBTSxDQUFDLFVBQVUsRUFBRSxDQUFDO1FBQ3pCLElBQUksQ0FBQyxNQUFNLENBQUMsSUFBSSxDQUFDLFVBQVUsRUFBRSxjQUFjLENBQUMsSUFBSSxDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUMsZUFBZSxDQUFDLENBQUMsQ0FBQyxDQUFDO1FBQ2hGLElBQUksQ0FBQyxNQUFNLENBQUMsSUFBSSxDQUFDLFVBQVUsRUFBRSxjQUFjLENBQUMsSUFBSSxDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUMsZUFBZSxDQUFDLENBQUMsQ0FBQyxDQUFDO0lBQ3BGLENBQUM7SUFDTCxvQkFBQztBQUFELENBQUMsQUFqRkQsSUFpRkM7QUFqRlkscUJBQWEsZ0JBaUZ6QixDQUFBO0FBRUQsd0JBQXdCLEtBQUs7SUFDekIsRUFBRSxDQUFDLENBQUMsS0FBSyxLQUFLLE1BQU0sQ0FBQztRQUNqQixNQUFNLENBQUMsSUFBSSxDQUFDO0lBQ2hCLElBQUksQ0FBQyxFQUFFLENBQUMsQ0FBQyxLQUFLLEtBQUssT0FBTyxDQUFDO1FBQ3ZCLE1BQU0sQ0FBQyxLQUFLLENBQUM7SUFDakIsTUFBTSxDQUFDLEtBQUssQ0FBQztBQUNqQixDQUFDO0FBRUQsbUJBQXNCLFVBQXlCO0lBQzNDLE1BQU0sQ0FBQyxJQUFJLE9BQU8sQ0FBQyxVQUFDLE9BQU8sRUFBRSxNQUFNO1FBQy9CLFVBQVUsQ0FBQyxTQUFTLENBQUMsVUFBQSxJQUFJO1lBQ3JCLE9BQU8sQ0FBQyxJQUFJLENBQUMsQ0FBQztRQUNsQixDQUFDLENBQUMsQ0FBQztJQUNQLENBQUMsQ0FBQyxDQUFDO0FBQ1AsQ0FBQztBQUVELFdBQVksV0FBVztJQUNuQiw2Q0FBSSxDQUFBO0lBQ0osK0NBQUssQ0FBQTtJQUNMLG1EQUFPLENBQUE7QUFDWCxDQUFDLEVBSlcsbUJBQVcsS0FBWCxtQkFBVyxRQUl0QjtBQUpELElBQVksV0FBVyxHQUFYLG1CQUlYLENBQUEifQ==\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ng2-bs4-modal/components/modal-instance.js\n// module id = 616\n// module chunks = 0","\"use strict\";\nvar core_1 = require('@angular/core');\nvar FileDropDirective = (function () {\n    function FileDropDirective(element) {\n        this.fileOver = new core_1.EventEmitter();\n        this.onFileDrop = new core_1.EventEmitter();\n        this.element = element;\n    }\n    FileDropDirective.prototype.getOptions = function () {\n        return this.uploader.options;\n    };\n    FileDropDirective.prototype.getFilters = function () {\n        return {};\n    };\n    FileDropDirective.prototype.onDrop = function (event) {\n        var transfer = this._getTransfer(event);\n        if (!transfer) {\n            return;\n        }\n        var options = this.getOptions();\n        var filters = this.getFilters();\n        this._preventAndStop(event);\n        this.uploader.addToQueue(transfer.files, options, filters);\n        this.fileOver.emit(false);\n        this.onFileDrop.emit(transfer.files);\n    };\n    FileDropDirective.prototype.onDragOver = function (event) {\n        var transfer = this._getTransfer(event);\n        if (!this._haveFiles(transfer.types)) {\n            return;\n        }\n        transfer.dropEffect = 'copy';\n        this._preventAndStop(event);\n        this.fileOver.emit(true);\n    };\n    FileDropDirective.prototype.onDragLeave = function (event) {\n        if (this.element) {\n            if (event.currentTarget === this.element[0]) {\n                return;\n            }\n        }\n        this._preventAndStop(event);\n        this.fileOver.emit(false);\n    };\n    FileDropDirective.prototype._getTransfer = function (event) {\n        return event.dataTransfer ? event.dataTransfer : event.originalEvent.dataTransfer; // jQuery fix;\n    };\n    FileDropDirective.prototype._preventAndStop = function (event) {\n        event.preventDefault();\n        event.stopPropagation();\n    };\n    FileDropDirective.prototype._haveFiles = function (types) {\n        if (!types) {\n            return false;\n        }\n        if (types.indexOf) {\n            return types.indexOf('Files') !== -1;\n        }\n        else if (types.contains) {\n            return types.contains('Files');\n        }\n        else {\n            return false;\n        }\n    };\n    /*\n     _addOverClass(item:any):any {\n     item.addOverClass();\n     }\n  \n     _removeOverClass(item:any):any {\n     item.removeOverClass();\n     }*/\n    FileDropDirective.decorators = [\n        { type: core_1.Directive, args: [{ selector: '[ng2FileDrop]' },] },\n    ];\n    /** @nocollapse */\n    FileDropDirective.ctorParameters = function () { return [\n        { type: core_1.ElementRef, },\n    ]; };\n    FileDropDirective.propDecorators = {\n        'uploader': [{ type: core_1.Input },],\n        'fileOver': [{ type: core_1.Output },],\n        'onFileDrop': [{ type: core_1.Output },],\n        'onDrop': [{ type: core_1.HostListener, args: ['drop', ['$event'],] },],\n        'onDragOver': [{ type: core_1.HostListener, args: ['dragover', ['$event'],] },],\n        'onDragLeave': [{ type: core_1.HostListener, args: ['dragleave', ['$event'],] },],\n    };\n    return FileDropDirective;\n}());\nexports.FileDropDirective = FileDropDirective;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ng2-file-upload/file-upload/file-drop.directive.js\n// module id = 617\n// module chunks = 0","\"use strict\";\nvar file_like_object_class_1 = require('./file-like-object.class');\nvar FileItem = (function () {\n    function FileItem(uploader, some, options) {\n        this.url = '/';\n        this.headers = [];\n        this.withCredentials = true;\n        this.formData = [];\n        this.isReady = false;\n        this.isUploading = false;\n        this.isUploaded = false;\n        this.isSuccess = false;\n        this.isCancel = false;\n        this.isError = false;\n        this.progress = 0;\n        this.index = void 0;\n        this.uploader = uploader;\n        this.some = some;\n        this.options = options;\n        this.file = new file_like_object_class_1.FileLikeObject(some);\n        this._file = some;\n        if (uploader.options) {\n            this.method = uploader.options.method || 'POST';\n            this.alias = uploader.options.itemAlias || 'file';\n        }\n        this.url = uploader.options.url;\n    }\n    FileItem.prototype.upload = function () {\n        try {\n            this.uploader.uploadItem(this);\n        }\n        catch (e) {\n            this.uploader._onCompleteItem(this, '', 0, {});\n            this.uploader._onErrorItem(this, '', 0, {});\n        }\n    };\n    FileItem.prototype.cancel = function () {\n        this.uploader.cancelItem(this);\n    };\n    FileItem.prototype.remove = function () {\n        this.uploader.removeFromQueue(this);\n    };\n    FileItem.prototype.onBeforeUpload = function () {\n        return void 0;\n    };\n    FileItem.prototype.onBuildForm = function (form) {\n        return { form: form };\n    };\n    FileItem.prototype.onProgress = function (progress) {\n        return { progress: progress };\n    };\n    FileItem.prototype.onSuccess = function (response, status, headers) {\n        return { response: response, status: status, headers: headers };\n    };\n    FileItem.prototype.onError = function (response, status, headers) {\n        return { response: response, status: status, headers: headers };\n    };\n    FileItem.prototype.onCancel = function (response, status, headers) {\n        return { response: response, status: status, headers: headers };\n    };\n    FileItem.prototype.onComplete = function (response, status, headers) {\n        return { response: response, status: status, headers: headers };\n    };\n    FileItem.prototype._onBeforeUpload = function () {\n        this.isReady = true;\n        this.isUploading = true;\n        this.isUploaded = false;\n        this.isSuccess = false;\n        this.isCancel = false;\n        this.isError = false;\n        this.progress = 0;\n        this.onBeforeUpload();\n    };\n    FileItem.prototype._onBuildForm = function (form) {\n        this.onBuildForm(form);\n    };\n    FileItem.prototype._onProgress = function (progress) {\n        this.progress = progress;\n        this.onProgress(progress);\n    };\n    FileItem.prototype._onSuccess = function (response, status, headers) {\n        this.isReady = false;\n        this.isUploading = false;\n        this.isUploaded = true;\n        this.isSuccess = true;\n        this.isCancel = false;\n        this.isError = false;\n        this.progress = 100;\n        this.index = void 0;\n        this.onSuccess(response, status, headers);\n    };\n    FileItem.prototype._onError = function (response, status, headers) {\n        this.isReady = false;\n        this.isUploading = false;\n        this.isUploaded = true;\n        this.isSuccess = false;\n        this.isCancel = false;\n        this.isError = true;\n        this.progress = 0;\n        this.index = void 0;\n        this.onError(response, status, headers);\n    };\n    FileItem.prototype._onCancel = function (response, status, headers) {\n        this.isReady = false;\n        this.isUploading = false;\n        this.isUploaded = false;\n        this.isSuccess = false;\n        this.isCancel = true;\n        this.isError = false;\n        this.progress = 0;\n        this.index = void 0;\n        this.onCancel(response, status, headers);\n    };\n    FileItem.prototype._onComplete = function (response, status, headers) {\n        this.onComplete(response, status, headers);\n        if (this.uploader.options.removeAfterUpload) {\n            this.remove();\n        }\n    };\n    FileItem.prototype._prepareToUploading = function () {\n        this.index = this.index || ++this.uploader._nextIndex;\n        this.isReady = true;\n    };\n    return FileItem;\n}());\nexports.FileItem = FileItem;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ng2-file-upload/file-upload/file-item.class.js\n// module id = 618\n// module chunks = 0","\"use strict\";\nfunction isElement(node) {\n    return !!(node && (node.nodeName || node.prop && node.attr && node.find));\n}\nvar FileLikeObject = (function () {\n    function FileLikeObject(fileOrInput) {\n        var isInput = isElement(fileOrInput);\n        var fakePathOrObject = isInput ? fileOrInput.value : fileOrInput;\n        var postfix = typeof fakePathOrObject === 'string' ? 'FakePath' : 'Object';\n        var method = '_createFrom' + postfix;\n        this[method](fakePathOrObject);\n    }\n    FileLikeObject.prototype._createFromFakePath = function (path) {\n        this.lastModifiedDate = void 0;\n        this.size = void 0;\n        this.type = 'like/' + path.slice(path.lastIndexOf('.') + 1).toLowerCase();\n        this.name = path.slice(path.lastIndexOf('/') + path.lastIndexOf('\\\\') + 2);\n    };\n    FileLikeObject.prototype._createFromObject = function (object) {\n        // this.lastModifiedDate = copy(object.lastModifiedDate);\n        this.size = object.size;\n        this.type = object.type;\n        this.name = object.name;\n    };\n    return FileLikeObject;\n}());\nexports.FileLikeObject = FileLikeObject;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ng2-file-upload/file-upload/file-like-object.class.js\n// module id = 619\n// module chunks = 0","\"use strict\";\nvar core_1 = require('@angular/core');\n// todo: filters\nvar FileSelectDirective = (function () {\n    function FileSelectDirective(element) {\n        this.element = element;\n    }\n    FileSelectDirective.prototype.getOptions = function () {\n        return this.uploader.options;\n    };\n    FileSelectDirective.prototype.getFilters = function () {\n        return void 0;\n    };\n    FileSelectDirective.prototype.isEmptyAfterSelection = function () {\n        return !!this.element.nativeElement.attributes.multiple;\n    };\n    FileSelectDirective.prototype.onChange = function () {\n        // let files = this.uploader.isHTML5 ? this.element.nativeElement[0].files : this.element.nativeElement[0];\n        var files = this.element.nativeElement.files;\n        var options = this.getOptions();\n        var filters = this.getFilters();\n        // if(!this.uploader.isHTML5) this.destroy();\n        this.uploader.addToQueue(files, options, filters);\n        if (this.isEmptyAfterSelection()) {\n            // todo\n            this.element.nativeElement.value = '';\n        }\n    };\n    FileSelectDirective.decorators = [\n        { type: core_1.Directive, args: [{ selector: '[ng2FileSelect]' },] },\n    ];\n    /** @nocollapse */\n    FileSelectDirective.ctorParameters = function () { return [\n        { type: core_1.ElementRef, },\n    ]; };\n    FileSelectDirective.propDecorators = {\n        'uploader': [{ type: core_1.Input },],\n        'onChange': [{ type: core_1.HostListener, args: ['change',] },],\n    };\n    return FileSelectDirective;\n}());\nexports.FileSelectDirective = FileSelectDirective;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ng2-file-upload/file-upload/file-select.directive.js\n// module id = 620\n// module chunks = 0","\"use strict\";\nfunction __export(m) {\n    for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\n}\n__export(require('./file-upload/file-select.directive'));\n__export(require('./file-upload/file-drop.directive'));\n__export(require('./file-upload/file-uploader.class'));\n__export(require('./file-upload/file-item.class'));\nvar file_upload_module_1 = require('./file-upload/file-upload.module');\nexports.FileUploadModule = file_upload_module_1.FileUploadModule;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ng2-file-upload/index.js\n// module id = 621\n// module chunks = 0","export * from './keyStorage';\r\nexport * from './storageObserver';\r\nexport * from './webStorage';\r\n//# sourceMappingURL=index.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ng2-webstorage/dist/helpers/index.js\n// module id = 622\n// module chunks = 0","import { EventEmitter } from '@angular/core';\r\nexport var StorageObserverHelper = (function () {\r\n    function StorageObserverHelper() {\r\n    }\r\n    StorageObserverHelper.observe = function (sType, sKey) {\r\n        var oKey = this.genObserverKey(sType, sKey);\r\n        if (oKey in this.observers)\r\n            return this.observers[oKey];\r\n        return this.observers[oKey] = new EventEmitter();\r\n    };\r\n    StorageObserverHelper.emit = function (sType, sKey, value) {\r\n        var oKey = this.genObserverKey(sType, sKey);\r\n        if (oKey in this.observers)\r\n            this.observers[oKey].emit(value);\r\n    };\r\n    StorageObserverHelper.genObserverKey = function (sType, sKey) {\r\n        return sType + \"|\" + sKey;\r\n    };\r\n    StorageObserverHelper.observers = {};\r\n    return StorageObserverHelper;\r\n}());\r\n//# sourceMappingURL=storageObserver.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ng2-webstorage/dist/helpers/storageObserver.js\n// module id = 623\n// module chunks = 0","import { STORAGE } from '../enums/storage';\r\nimport { StorageObserverHelper } from './storageObserver';\r\nimport { KeyStorageHelper } from './keyStorage';\r\nimport { MockStorageHelper } from './mockStorage';\r\nimport { STORAGE_NAMES } from '../constants/lib';\r\nexport var WebStorageHelper = (function () {\r\n    function WebStorageHelper() {\r\n    }\r\n    WebStorageHelper.store = function (sType, sKey, value) {\r\n        this.getStorage(sType).setItem(sKey, JSON.stringify(value));\r\n        this.cached[sType][sKey] = value;\r\n        StorageObserverHelper.emit(sType, sKey, value);\r\n    };\r\n    WebStorageHelper.retrieve = function (sType, sKey) {\r\n        if (this.cached[sType][sKey])\r\n            return this.cached[sType][sKey];\r\n        return this.cached[sType][sKey] = WebStorageHelper.retrieveFromStorage(sType, sKey);\r\n    };\r\n    WebStorageHelper.retrieveFromStorage = function (sType, sKey) {\r\n        var data = null;\r\n        try {\r\n            data = JSON.parse(this.getStorage(sType).getItem(sKey));\r\n        }\r\n        catch (err) {\r\n            console.warn(\"invalid value for \" + sKey);\r\n        }\r\n        return data;\r\n    };\r\n    WebStorageHelper.refresh = function (sType, sKey) {\r\n        if (!KeyStorageHelper.isManagedKey(sKey))\r\n            return;\r\n        var value = WebStorageHelper.retrieveFromStorage(sType, sKey);\r\n        if (value != null && value !== this.cached[sType][sKey]) {\r\n            this.cached[sType][sKey] = value;\r\n            StorageObserverHelper.emit(sType, sKey, value);\r\n        }\r\n    };\r\n    WebStorageHelper.clearAll = function (sType) {\r\n        var _this = this;\r\n        var storage = this.getStorage(sType);\r\n        KeyStorageHelper.retrieveKeysFromStorage(storage)\r\n            .forEach(function (sKey) {\r\n            storage.removeItem(sKey);\r\n            delete _this.cached[sType][sKey];\r\n            StorageObserverHelper.emit(sType, sKey, null);\r\n        });\r\n    };\r\n    WebStorageHelper.clear = function (sType, sKey) {\r\n        this.getStorage(sType).removeItem(sKey);\r\n        delete this.cached[sType][sKey];\r\n        StorageObserverHelper.emit(sType, sKey, null);\r\n    };\r\n    WebStorageHelper.getStorage = function (sType) {\r\n        return this.isStorageAvailable(sType) ? this.getWStorage(sType) : MockStorageHelper.getStorage(sType);\r\n    };\r\n    WebStorageHelper.getWStorage = function (sType) {\r\n        var storage;\r\n        switch (sType) {\r\n            case STORAGE.local:\r\n                storage = localStorage;\r\n                break;\r\n            case STORAGE.session:\r\n                storage = sessionStorage;\r\n                break;\r\n            default:\r\n                throw Error('invalid storage type');\r\n        }\r\n        return storage;\r\n    };\r\n    WebStorageHelper.isStorageAvailable = function (sType) {\r\n        if (typeof this.storageAvailability[sType] === 'boolean')\r\n            return this.storageAvailability[sType];\r\n        var isAvailable = true, storage = this.getWStorage(sType);\r\n        if (typeof storage === 'object') {\r\n            try {\r\n                storage.setItem('test-storage', 'foobar');\r\n                storage.removeItem('test-storage');\r\n            }\r\n            catch (e) {\r\n                isAvailable = false;\r\n            }\r\n        }\r\n        else\r\n            isAvailable = false;\r\n        if (!isAvailable)\r\n            console.warn(STORAGE_NAMES[sType] + \" storage unavailable, Ng2Webstorage will use a fallback strategy instead\");\r\n        return this.storageAvailability[sType] = isAvailable;\r\n    };\r\n    WebStorageHelper.cached = (_a = {}, _a[STORAGE.local] = {}, _a[STORAGE.session] = {}, _a);\r\n    WebStorageHelper.storageAvailability = (_b = {}, _b[STORAGE.local] = null, _b[STORAGE.session] = null, _b);\r\n    return WebStorageHelper;\r\n    var _a, _b;\r\n}());\r\n//# sourceMappingURL=webStorage.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ng2-webstorage/dist/helpers/webStorage.js\n// module id = 624\n// module chunks = 0","import { LIB_KEY, LIB_KEY_SEPARATOR } from '../constants/lib';\r\nexport var WebstorageConfig = (function () {\r\n    function WebstorageConfig(config) {\r\n        this.prefix = LIB_KEY;\r\n        this.separator = LIB_KEY_SEPARATOR;\r\n        if (config && config.prefix !== undefined) {\r\n            this.prefix = config.prefix;\r\n        }\r\n        if (config && config.separator !== undefined) {\r\n            this.separator = config.separator;\r\n        }\r\n    }\r\n    return WebstorageConfig;\r\n}());\r\n//# sourceMappingURL=config.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ng2-webstorage/dist/interfaces/config.js\n// module id = 625\n// module chunks = 0","export * from './webStorage';\r\nexport * from './localStorage';\r\nexport * from './sessionStorage';\r\n//# sourceMappingURL=index.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ng2-webstorage/dist/services/index.js\n// module id = 626\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar defer_1 = require('../../observable/defer');\nObservable_1.Observable.defer = defer_1.defer;\n//# sourceMappingURL=defer.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/observable/defer.js\n// module id = 629\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar fromPromise_1 = require('../../observable/fromPromise');\nObservable_1.Observable.fromPromise = fromPromise_1.fromPromise;\n//# sourceMappingURL=fromPromise.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/observable/fromPromise.js\n// module id = 630\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar timer_1 = require('../../observable/timer');\nObservable_1.Observable.timer = timer_1.timer;\n//# sourceMappingURL=timer.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/observable/timer.js\n// module id = 631\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar debounce_1 = require('../../operator/debounce');\nObservable_1.Observable.prototype.debounce = debounce_1.debounce;\n//# sourceMappingURL=debounce.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/debounce.js\n// module id = 632\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar filter_1 = require('../../operator/filter');\nObservable_1.Observable.prototype.filter = filter_1.filter;\n//# sourceMappingURL=filter.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/filter.js\n// module id = 633\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar throttle_1 = require('../../operator/throttle');\nObservable_1.Observable.prototype.throttle = throttle_1.throttle;\n//# sourceMappingURL=throttle.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/throttle.js\n// module id = 634\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar toPromise_1 = require('../../operator/toPromise');\nObservable_1.Observable.prototype.toPromise = toPromise_1.toPromise;\n//# sourceMappingURL=toPromise.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/toPromise.js\n// module id = 635\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subject_1 = require('../Subject');\nvar Observable_1 = require('../Observable');\nvar Subscriber_1 = require('../Subscriber');\nvar Subscription_1 = require('../Subscription');\n/**\n * @class ConnectableObservable<T>\n */\nvar ConnectableObservable = (function (_super) {\n    __extends(ConnectableObservable, _super);\n    function ConnectableObservable(source, subjectFactory) {\n        _super.call(this);\n        this.source = source;\n        this.subjectFactory = subjectFactory;\n        this._refCount = 0;\n    }\n    ConnectableObservable.prototype._subscribe = function (subscriber) {\n        return this.getSubject().subscribe(subscriber);\n    };\n    ConnectableObservable.prototype.getSubject = function () {\n        var subject = this._subject;\n        if (!subject || subject.isStopped) {\n            this._subject = this.subjectFactory();\n        }\n        return this._subject;\n    };\n    ConnectableObservable.prototype.connect = function () {\n        var connection = this._connection;\n        if (!connection) {\n            connection = this._connection = new Subscription_1.Subscription();\n            connection.add(this.source\n                .subscribe(new ConnectableSubscriber(this.getSubject(), this)));\n            if (connection.closed) {\n                this._connection = null;\n                connection = Subscription_1.Subscription.EMPTY;\n            }\n            else {\n                this._connection = connection;\n            }\n        }\n        return connection;\n    };\n    ConnectableObservable.prototype.refCount = function () {\n        return this.lift(new RefCountOperator(this));\n    };\n    return ConnectableObservable;\n}(Observable_1.Observable));\nexports.ConnectableObservable = ConnectableObservable;\nexports.connectableObservableDescriptor = {\n    operator: { value: null },\n    _refCount: { value: 0, writable: true },\n    _subscribe: { value: ConnectableObservable.prototype._subscribe },\n    getSubject: { value: ConnectableObservable.prototype.getSubject },\n    connect: { value: ConnectableObservable.prototype.connect },\n    refCount: { value: ConnectableObservable.prototype.refCount }\n};\nvar ConnectableSubscriber = (function (_super) {\n    __extends(ConnectableSubscriber, _super);\n    function ConnectableSubscriber(destination, connectable) {\n        _super.call(this, destination);\n        this.connectable = connectable;\n    }\n    ConnectableSubscriber.prototype._error = function (err) {\n        this._unsubscribe();\n        _super.prototype._error.call(this, err);\n    };\n    ConnectableSubscriber.prototype._complete = function () {\n        this._unsubscribe();\n        _super.prototype._complete.call(this);\n    };\n    ConnectableSubscriber.prototype._unsubscribe = function () {\n        var connectable = this.connectable;\n        if (connectable) {\n            this.connectable = null;\n            var connection = connectable._connection;\n            connectable._refCount = 0;\n            connectable._subject = null;\n            connectable._connection = null;\n            if (connection) {\n                connection.unsubscribe();\n            }\n        }\n    };\n    return ConnectableSubscriber;\n}(Subject_1.SubjectSubscriber));\nvar RefCountOperator = (function () {\n    function RefCountOperator(connectable) {\n        this.connectable = connectable;\n    }\n    RefCountOperator.prototype.call = function (subscriber, source) {\n        var connectable = this.connectable;\n        connectable._refCount++;\n        var refCounter = new RefCountSubscriber(subscriber, connectable);\n        var subscription = source.subscribe(refCounter);\n        if (!refCounter.closed) {\n            refCounter.connection = connectable.connect();\n        }\n        return subscription;\n    };\n    return RefCountOperator;\n}());\nvar RefCountSubscriber = (function (_super) {\n    __extends(RefCountSubscriber, _super);\n    function RefCountSubscriber(destination, connectable) {\n        _super.call(this, destination);\n        this.connectable = connectable;\n    }\n    RefCountSubscriber.prototype._unsubscribe = function () {\n        var connectable = this.connectable;\n        if (!connectable) {\n            this.connection = null;\n            return;\n        }\n        this.connectable = null;\n        var refCount = connectable._refCount;\n        if (refCount <= 0) {\n            this.connection = null;\n            return;\n        }\n        connectable._refCount = refCount - 1;\n        if (refCount > 1) {\n            this.connection = null;\n            return;\n        }\n        ///\n        // Compare the local RefCountSubscriber's connection Subscription to the\n        // connection Subscription on the shared ConnectableObservable. In cases\n        // where the ConnectableObservable source synchronously emits values, and\n        // the RefCountSubscriber's downstream Observers synchronously unsubscribe,\n        // execution continues to here before the RefCountOperator has a chance to\n        // supply the RefCountSubscriber with the shared connection Subscription.\n        // For example:\n        // ```\n        // Observable.range(0, 10)\n        //   .publish()\n        //   .refCount()\n        //   .take(5)\n        //   .subscribe();\n        // ```\n        // In order to account for this case, RefCountSubscriber should only dispose\n        // the ConnectableObservable's shared connection Subscription if the\n        // connection Subscription exists, *and* either:\n        //   a. RefCountSubscriber doesn't have a reference to the shared connection\n        //      Subscription yet, or,\n        //   b. RefCountSubscriber's connection Subscription reference is identical\n        //      to the shared connection Subscription\n        ///\n        var connection = this.connection;\n        var sharedConnection = connectable._connection;\n        this.connection = null;\n        if (sharedConnection && (!connection || sharedConnection === connection)) {\n            sharedConnection.unsubscribe();\n        }\n    };\n    return RefCountSubscriber;\n}(Subscriber_1.Subscriber));\n//# sourceMappingURL=ConnectableObservable.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/observable/ConnectableObservable.js\n// module id = 636\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar root_1 = require('../../util/root');\nvar tryCatch_1 = require('../../util/tryCatch');\nvar errorObject_1 = require('../../util/errorObject');\nvar Observable_1 = require('../../Observable');\nvar Subscriber_1 = require('../../Subscriber');\nvar map_1 = require('../../operator/map');\nfunction getCORSRequest() {\n    if (root_1.root.XMLHttpRequest) {\n        var xhr = new root_1.root.XMLHttpRequest();\n        if ('withCredentials' in xhr) {\n            xhr.withCredentials = !!this.withCredentials;\n        }\n        return xhr;\n    }\n    else if (!!root_1.root.XDomainRequest) {\n        return new root_1.root.XDomainRequest();\n    }\n    else {\n        throw new Error('CORS is not supported by your browser');\n    }\n}\nfunction getXMLHttpRequest() {\n    if (root_1.root.XMLHttpRequest) {\n        return new root_1.root.XMLHttpRequest();\n    }\n    else {\n        var progId = void 0;\n        try {\n            var progIds = ['Msxml2.XMLHTTP', 'Microsoft.XMLHTTP', 'Msxml2.XMLHTTP.4.0'];\n            for (var i = 0; i < 3; i++) {\n                try {\n                    progId = progIds[i];\n                    if (new root_1.root.ActiveXObject(progId)) {\n                        break;\n                    }\n                }\n                catch (e) {\n                }\n            }\n            return new root_1.root.ActiveXObject(progId);\n        }\n        catch (e) {\n            throw new Error('XMLHttpRequest is not supported by your browser');\n        }\n    }\n}\nfunction ajaxGet(url, headers) {\n    if (headers === void 0) { headers = null; }\n    return new AjaxObservable({ method: 'GET', url: url, headers: headers });\n}\nexports.ajaxGet = ajaxGet;\n;\nfunction ajaxPost(url, body, headers) {\n    return new AjaxObservable({ method: 'POST', url: url, body: body, headers: headers });\n}\nexports.ajaxPost = ajaxPost;\n;\nfunction ajaxDelete(url, headers) {\n    return new AjaxObservable({ method: 'DELETE', url: url, headers: headers });\n}\nexports.ajaxDelete = ajaxDelete;\n;\nfunction ajaxPut(url, body, headers) {\n    return new AjaxObservable({ method: 'PUT', url: url, body: body, headers: headers });\n}\nexports.ajaxPut = ajaxPut;\n;\nfunction ajaxGetJSON(url, headers) {\n    return new AjaxObservable({ method: 'GET', url: url, responseType: 'json', headers: headers })\n        .lift(new map_1.MapOperator(function (x, index) { return x.response; }, null));\n}\nexports.ajaxGetJSON = ajaxGetJSON;\n;\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @extends {Ignored}\n * @hide true\n */\nvar AjaxObservable = (function (_super) {\n    __extends(AjaxObservable, _super);\n    function AjaxObservable(urlOrRequest) {\n        _super.call(this);\n        var request = {\n            async: true,\n            createXHR: function () {\n                return this.crossDomain ? getCORSRequest.call(this) : getXMLHttpRequest();\n            },\n            crossDomain: false,\n            withCredentials: false,\n            headers: {},\n            method: 'GET',\n            responseType: 'json',\n            timeout: 0\n        };\n        if (typeof urlOrRequest === 'string') {\n            request.url = urlOrRequest;\n        }\n        else {\n            for (var prop in urlOrRequest) {\n                if (urlOrRequest.hasOwnProperty(prop)) {\n                    request[prop] = urlOrRequest[prop];\n                }\n            }\n        }\n        this.request = request;\n    }\n    AjaxObservable.prototype._subscribe = function (subscriber) {\n        return new AjaxSubscriber(subscriber, this.request);\n    };\n    /**\n     * Creates an observable for an Ajax request with either a request object with\n     * url, headers, etc or a string for a URL.\n     *\n     * @example\n     * source = Rx.Observable.ajax('/products');\n     * source = Rx.Observable.ajax({ url: 'products', method: 'GET' });\n     *\n     * @param {string|Object} request Can be one of the following:\n     *   A string of the URL to make the Ajax call.\n     *   An object with the following properties\n     *   - url: URL of the request\n     *   - body: The body of the request\n     *   - method: Method of the request, such as GET, POST, PUT, PATCH, DELETE\n     *   - async: Whether the request is async\n     *   - headers: Optional headers\n     *   - crossDomain: true if a cross domain request, else false\n     *   - createXHR: a function to override if you need to use an alternate\n     *   XMLHttpRequest implementation.\n     *   - resultSelector: a function to use to alter the output value type of\n     *   the Observable. Gets {@link AjaxResponse} as an argument.\n     * @return {Observable} An observable sequence containing the XMLHttpRequest.\n     * @static true\n     * @name ajax\n     * @owner Observable\n    */\n    AjaxObservable.create = (function () {\n        var create = function (urlOrRequest) {\n            return new AjaxObservable(urlOrRequest);\n        };\n        create.get = ajaxGet;\n        create.post = ajaxPost;\n        create.delete = ajaxDelete;\n        create.put = ajaxPut;\n        create.getJSON = ajaxGetJSON;\n        return create;\n    })();\n    return AjaxObservable;\n}(Observable_1.Observable));\nexports.AjaxObservable = AjaxObservable;\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar AjaxSubscriber = (function (_super) {\n    __extends(AjaxSubscriber, _super);\n    function AjaxSubscriber(destination, request) {\n        _super.call(this, destination);\n        this.request = request;\n        this.done = false;\n        var headers = request.headers = request.headers || {};\n        // force CORS if requested\n        if (!request.crossDomain && !headers['X-Requested-With']) {\n            headers['X-Requested-With'] = 'XMLHttpRequest';\n        }\n        // ensure content type is set\n        if (!('Content-Type' in headers) && !(root_1.root.FormData && request.body instanceof root_1.root.FormData) && typeof request.body !== 'undefined') {\n            headers['Content-Type'] = 'application/x-www-form-urlencoded; charset=UTF-8';\n        }\n        // properly serialize body\n        request.body = this.serializeBody(request.body, request.headers['Content-Type']);\n        this.send();\n    }\n    AjaxSubscriber.prototype.next = function (e) {\n        this.done = true;\n        var _a = this, xhr = _a.xhr, request = _a.request, destination = _a.destination;\n        var response = new AjaxResponse(e, xhr, request);\n        destination.next(response);\n    };\n    AjaxSubscriber.prototype.send = function () {\n        var _a = this, request = _a.request, _b = _a.request, user = _b.user, method = _b.method, url = _b.url, async = _b.async, password = _b.password, headers = _b.headers, body = _b.body;\n        var createXHR = request.createXHR;\n        var xhr = tryCatch_1.tryCatch(createXHR).call(request);\n        if (xhr === errorObject_1.errorObject) {\n            this.error(errorObject_1.errorObject.e);\n        }\n        else {\n            this.xhr = xhr;\n            // set up the events before open XHR\n            // https://developer.mozilla.org/en/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest\n            // You need to add the event listeners before calling open() on the request.\n            // Otherwise the progress events will not fire.\n            this.setupEvents(xhr, request);\n            // open XHR\n            var result = void 0;\n            if (user) {\n                result = tryCatch_1.tryCatch(xhr.open).call(xhr, method, url, async, user, password);\n            }\n            else {\n                result = tryCatch_1.tryCatch(xhr.open).call(xhr, method, url, async);\n            }\n            if (result === errorObject_1.errorObject) {\n                this.error(errorObject_1.errorObject.e);\n                return null;\n            }\n            // timeout and responseType can be set once the XHR is open\n            xhr.timeout = request.timeout;\n            xhr.responseType = request.responseType;\n            // set headers\n            this.setHeaders(xhr, headers);\n            // finally send the request\n            result = body ? tryCatch_1.tryCatch(xhr.send).call(xhr, body) : tryCatch_1.tryCatch(xhr.send).call(xhr);\n            if (result === errorObject_1.errorObject) {\n                this.error(errorObject_1.errorObject.e);\n                return null;\n            }\n        }\n        return xhr;\n    };\n    AjaxSubscriber.prototype.serializeBody = function (body, contentType) {\n        if (!body || typeof body === 'string') {\n            return body;\n        }\n        else if (root_1.root.FormData && body instanceof root_1.root.FormData) {\n            return body;\n        }\n        if (contentType) {\n            var splitIndex = contentType.indexOf(';');\n            if (splitIndex !== -1) {\n                contentType = contentType.substring(0, splitIndex);\n            }\n        }\n        switch (contentType) {\n            case 'application/x-www-form-urlencoded':\n                return Object.keys(body).map(function (key) { return (encodeURI(key) + \"=\" + encodeURI(body[key])); }).join('&');\n            case 'application/json':\n                return JSON.stringify(body);\n            default:\n                return body;\n        }\n    };\n    AjaxSubscriber.prototype.setHeaders = function (xhr, headers) {\n        for (var key in headers) {\n            if (headers.hasOwnProperty(key)) {\n                xhr.setRequestHeader(key, headers[key]);\n            }\n        }\n    };\n    AjaxSubscriber.prototype.setupEvents = function (xhr, request) {\n        var progressSubscriber = request.progressSubscriber;\n        function xhrTimeout(e) {\n            var _a = xhrTimeout, subscriber = _a.subscriber, progressSubscriber = _a.progressSubscriber, request = _a.request;\n            if (progressSubscriber) {\n                progressSubscriber.error(e);\n            }\n            subscriber.error(new AjaxTimeoutError(this, request)); //TODO: Make betterer.\n        }\n        ;\n        xhr.ontimeout = xhrTimeout;\n        xhrTimeout.request = request;\n        xhrTimeout.subscriber = this;\n        xhrTimeout.progressSubscriber = progressSubscriber;\n        if (xhr.upload && 'withCredentials' in xhr) {\n            if (progressSubscriber) {\n                var xhrProgress_1;\n                xhrProgress_1 = function (e) {\n                    var progressSubscriber = xhrProgress_1.progressSubscriber;\n                    progressSubscriber.next(e);\n                };\n                if (root_1.root.XDomainRequest) {\n                    xhr.onprogress = xhrProgress_1;\n                }\n                else {\n                    xhr.upload.onprogress = xhrProgress_1;\n                }\n                xhrProgress_1.progressSubscriber = progressSubscriber;\n            }\n            var xhrError_1;\n            xhrError_1 = function (e) {\n                var _a = xhrError_1, progressSubscriber = _a.progressSubscriber, subscriber = _a.subscriber, request = _a.request;\n                if (progressSubscriber) {\n                    progressSubscriber.error(e);\n                }\n                subscriber.error(new AjaxError('ajax error', this, request));\n            };\n            xhr.onerror = xhrError_1;\n            xhrError_1.request = request;\n            xhrError_1.subscriber = this;\n            xhrError_1.progressSubscriber = progressSubscriber;\n        }\n        function xhrReadyStateChange(e) {\n            var _a = xhrReadyStateChange, subscriber = _a.subscriber, progressSubscriber = _a.progressSubscriber, request = _a.request;\n            if (this.readyState === 4) {\n                // normalize IE9 bug (http://bugs.jquery.com/ticket/1450)\n                var status_1 = this.status === 1223 ? 204 : this.status;\n                var response = (this.responseType === 'text' ? (this.response || this.responseText) : this.response);\n                // fix status code when it is 0 (0 status is undocumented).\n                // Occurs when accessing file resources or on Android 4.1 stock browser\n                // while retrieving files from application cache.\n                if (status_1 === 0) {\n                    status_1 = response ? 200 : 0;\n                }\n                if (200 <= status_1 && status_1 < 300) {\n                    if (progressSubscriber) {\n                        progressSubscriber.complete();\n                    }\n                    subscriber.next(e);\n                    subscriber.complete();\n                }\n                else {\n                    if (progressSubscriber) {\n                        progressSubscriber.error(e);\n                    }\n                    subscriber.error(new AjaxError('ajax error ' + status_1, this, request));\n                }\n            }\n        }\n        ;\n        xhr.onreadystatechange = xhrReadyStateChange;\n        xhrReadyStateChange.subscriber = this;\n        xhrReadyStateChange.progressSubscriber = progressSubscriber;\n        xhrReadyStateChange.request = request;\n    };\n    AjaxSubscriber.prototype.unsubscribe = function () {\n        var _a = this, done = _a.done, xhr = _a.xhr;\n        if (!done && xhr && xhr.readyState !== 4 && typeof xhr.abort === 'function') {\n            xhr.abort();\n        }\n        _super.prototype.unsubscribe.call(this);\n    };\n    return AjaxSubscriber;\n}(Subscriber_1.Subscriber));\nexports.AjaxSubscriber = AjaxSubscriber;\n/**\n * A normalized AJAX response.\n *\n * @see {@link ajax}\n *\n * @class AjaxResponse\n */\nvar AjaxResponse = (function () {\n    function AjaxResponse(originalEvent, xhr, request) {\n        this.originalEvent = originalEvent;\n        this.xhr = xhr;\n        this.request = request;\n        this.status = xhr.status;\n        this.responseType = xhr.responseType || request.responseType;\n        switch (this.responseType) {\n            case 'json':\n                if ('response' in xhr) {\n                    //IE does not support json as responseType, parse it internally\n                    this.response = xhr.responseType ? xhr.response : JSON.parse(xhr.response || xhr.responseText || 'null');\n                }\n                else {\n                    this.response = JSON.parse(xhr.responseText || 'null');\n                }\n                break;\n            case 'xml':\n                this.response = xhr.responseXML;\n                break;\n            case 'text':\n            default:\n                this.response = ('response' in xhr) ? xhr.response : xhr.responseText;\n                break;\n        }\n    }\n    return AjaxResponse;\n}());\nexports.AjaxResponse = AjaxResponse;\n/**\n * A normalized AJAX error.\n *\n * @see {@link ajax}\n *\n * @class AjaxError\n */\nvar AjaxError = (function (_super) {\n    __extends(AjaxError, _super);\n    function AjaxError(message, xhr, request) {\n        _super.call(this, message);\n        this.message = message;\n        this.xhr = xhr;\n        this.request = request;\n        this.status = xhr.status;\n    }\n    return AjaxError;\n}(Error));\nexports.AjaxError = AjaxError;\n/**\n * @see {@link ajax}\n *\n * @class AjaxTimeoutError\n */\nvar AjaxTimeoutError = (function (_super) {\n    __extends(AjaxTimeoutError, _super);\n    function AjaxTimeoutError(xhr, request) {\n        _super.call(this, 'ajax timeout', xhr, request);\n    }\n    return AjaxTimeoutError;\n}(AjaxError));\nexports.AjaxTimeoutError = AjaxTimeoutError;\n//# sourceMappingURL=AjaxObservable.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/observable/dom/AjaxObservable.js\n// module id = 639\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = require('../Subscriber');\nvar tryCatch_1 = require('../util/tryCatch');\nvar errorObject_1 = require('../util/errorObject');\n/* tslint:disable:max-line-length */\n/**\n * Returns an Observable that emits all items emitted by the source Observable that are distinct by comparison from the previous item.\n * If a comparator function is provided, then it will be called for each item to test for whether or not that value should be emitted.\n * If a comparator function is not provided, an equality check is used by default.\n * @param {function} [compare] optional comparison function called to test if an item is distinct from the previous item in the source.\n * @return {Observable} an Observable that emits items from the source Observable with distinct values.\n * @method distinctUntilChanged\n * @owner Observable\n */\nfunction distinctUntilChanged(compare, keySelector) {\n    return this.lift(new DistinctUntilChangedOperator(compare, keySelector));\n}\nexports.distinctUntilChanged = distinctUntilChanged;\nvar DistinctUntilChangedOperator = (function () {\n    function DistinctUntilChangedOperator(compare, keySelector) {\n        this.compare = compare;\n        this.keySelector = keySelector;\n    }\n    DistinctUntilChangedOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new DistinctUntilChangedSubscriber(subscriber, this.compare, this.keySelector));\n    };\n    return DistinctUntilChangedOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar DistinctUntilChangedSubscriber = (function (_super) {\n    __extends(DistinctUntilChangedSubscriber, _super);\n    function DistinctUntilChangedSubscriber(destination, compare, keySelector) {\n        _super.call(this, destination);\n        this.keySelector = keySelector;\n        this.hasKey = false;\n        if (typeof compare === 'function') {\n            this.compare = compare;\n        }\n    }\n    DistinctUntilChangedSubscriber.prototype.compare = function (x, y) {\n        return x === y;\n    };\n    DistinctUntilChangedSubscriber.prototype._next = function (value) {\n        var keySelector = this.keySelector;\n        var key = value;\n        if (keySelector) {\n            key = tryCatch_1.tryCatch(this.keySelector)(value);\n            if (key === errorObject_1.errorObject) {\n                return this.destination.error(errorObject_1.errorObject.e);\n            }\n        }\n        var result = false;\n        if (this.hasKey) {\n            result = tryCatch_1.tryCatch(this.compare)(this.key, key);\n            if (result === errorObject_1.errorObject) {\n                return this.destination.error(errorObject_1.errorObject.e);\n            }\n        }\n        else {\n            this.hasKey = true;\n        }\n        if (Boolean(result) === false) {\n            this.key = key;\n            this.destination.next(value);\n        }\n    };\n    return DistinctUntilChangedSubscriber;\n}(Subscriber_1.Subscriber));\n//# sourceMappingURL=distinctUntilChanged.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/distinctUntilChanged.js\n// module id = 640\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = require('../Subscriber');\n/* tslint:disable:max-line-length */\n/**\n * Emits only the first value emitted by the source Observable that meets some\n * condition.\n *\n * <span class=\"informal\">Finds the first value that passes some test and emits\n * that.</span>\n *\n * <img src=\"./img/find.png\" width=\"100%\">\n *\n * `find` searches for the first item in the source Observable that matches the\n * specified condition embodied by the `predicate`, and returns the first\n * occurrence in the source. Unlike {@link first}, the `predicate` is required\n * in `find`, and does not emit an error if a valid value is not found.\n *\n * @example <caption>Find and emit the first click that happens on a DIV element</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.find(ev => ev.target.tagName === 'DIV');\n * result.subscribe(x => console.log(x));\n *\n * @see {@link filter}\n * @see {@link first}\n * @see {@link findIndex}\n * @see {@link take}\n *\n * @param {function(value: T, index: number, source: Observable<T>): boolean} predicate\n * A function called with each item to test for condition matching.\n * @param {any} [thisArg] An optional argument to determine the value of `this`\n * in the `predicate` function.\n * @return {Observable<T>} An Observable of the first item that matches the\n * condition.\n * @method find\n * @owner Observable\n */\nfunction find(predicate, thisArg) {\n    if (typeof predicate !== 'function') {\n        throw new TypeError('predicate is not a function');\n    }\n    return this.lift(new FindValueOperator(predicate, this, false, thisArg));\n}\nexports.find = find;\nvar FindValueOperator = (function () {\n    function FindValueOperator(predicate, source, yieldIndex, thisArg) {\n        this.predicate = predicate;\n        this.source = source;\n        this.yieldIndex = yieldIndex;\n        this.thisArg = thisArg;\n    }\n    FindValueOperator.prototype.call = function (observer, source) {\n        return source.subscribe(new FindValueSubscriber(observer, this.predicate, this.source, this.yieldIndex, this.thisArg));\n    };\n    return FindValueOperator;\n}());\nexports.FindValueOperator = FindValueOperator;\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar FindValueSubscriber = (function (_super) {\n    __extends(FindValueSubscriber, _super);\n    function FindValueSubscriber(destination, predicate, source, yieldIndex, thisArg) {\n        _super.call(this, destination);\n        this.predicate = predicate;\n        this.source = source;\n        this.yieldIndex = yieldIndex;\n        this.thisArg = thisArg;\n        this.index = 0;\n    }\n    FindValueSubscriber.prototype.notifyComplete = function (value) {\n        var destination = this.destination;\n        destination.next(value);\n        destination.complete();\n    };\n    FindValueSubscriber.prototype._next = function (value) {\n        var _a = this, predicate = _a.predicate, thisArg = _a.thisArg;\n        var index = this.index++;\n        try {\n            var result = predicate.call(thisArg || this, value, index, this.source);\n            if (result) {\n                this.notifyComplete(this.yieldIndex ? index : value);\n            }\n        }\n        catch (err) {\n            this.destination.error(err);\n        }\n    };\n    FindValueSubscriber.prototype._complete = function () {\n        this.notifyComplete(this.yieldIndex ? -1 : undefined);\n    };\n    return FindValueSubscriber;\n}(Subscriber_1.Subscriber));\nexports.FindValueSubscriber = FindValueSubscriber;\n//# sourceMappingURL=find.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/find.js\n// module id = 641\n// module chunks = 0","\"use strict\";\nvar ArrayObservable_1 = require('../observable/ArrayObservable');\nvar mergeAll_1 = require('./mergeAll');\nvar isScheduler_1 = require('../util/isScheduler');\n/* tslint:disable:max-line-length */\n/**\n * Creates an output Observable which concurrently emits all values from every\n * given input Observable.\n *\n * <span class=\"informal\">Flattens multiple Observables together by blending\n * their values into one Observable.</span>\n *\n * <img src=\"./img/merge.png\" width=\"100%\">\n *\n * `merge` subscribes to each given input Observable (either the source or an\n * Observable given as argument), and simply forwards (without doing any\n * transformation) all the values from all the input Observables to the output\n * Observable. The output Observable only completes once all input Observables\n * have completed. Any error delivered by an input Observable will be immediately\n * emitted on the output Observable.\n *\n * @example <caption>Merge together two Observables: 1s interval and clicks</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var timer = Rx.Observable.interval(1000);\n * var clicksOrTimer = clicks.merge(timer);\n * clicksOrTimer.subscribe(x => console.log(x));\n *\n * @example <caption>Merge together 3 Observables, but only 2 run concurrently</caption>\n * var timer1 = Rx.Observable.interval(1000).take(10);\n * var timer2 = Rx.Observable.interval(2000).take(6);\n * var timer3 = Rx.Observable.interval(500).take(10);\n * var concurrent = 2; // the argument\n * var merged = timer1.merge(timer2, timer3, concurrent);\n * merged.subscribe(x => console.log(x));\n *\n * @see {@link mergeAll}\n * @see {@link mergeMap}\n * @see {@link mergeMapTo}\n * @see {@link mergeScan}\n *\n * @param {Observable} other An input Observable to merge with the source\n * Observable. More than one input Observables may be given as argument.\n * @param {number} [concurrent=Number.POSITIVE_INFINITY] Maximum number of input\n * Observables being subscribed to concurrently.\n * @param {Scheduler} [scheduler=null] The Scheduler to use for managing\n * concurrency of input Observables.\n * @return {Observable} an Observable that emits items that are the result of\n * every input Observable.\n * @method merge\n * @owner Observable\n */\nfunction merge() {\n    var observables = [];\n    for (var _i = 0; _i < arguments.length; _i++) {\n        observables[_i - 0] = arguments[_i];\n    }\n    return this.lift.call(mergeStatic.apply(void 0, [this].concat(observables)));\n}\nexports.merge = merge;\n/* tslint:enable:max-line-length */\n/**\n * Creates an output Observable which concurrently emits all values from every\n * given input Observable.\n *\n * <span class=\"informal\">Flattens multiple Observables together by blending\n * their values into one Observable.</span>\n *\n * <img src=\"./img/merge.png\" width=\"100%\">\n *\n * `merge` subscribes to each given input Observable (as arguments), and simply\n * forwards (without doing any transformation) all the values from all the input\n * Observables to the output Observable. The output Observable only completes\n * once all input Observables have completed. Any error delivered by an input\n * Observable will be immediately emitted on the output Observable.\n *\n * @example <caption>Merge together two Observables: 1s interval and clicks</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var timer = Rx.Observable.interval(1000);\n * var clicksOrTimer = Rx.Observable.merge(clicks, timer);\n * clicksOrTimer.subscribe(x => console.log(x));\n *\n * // Results in the following:\n * // timer will emit ascending values, one every second(1000ms) to console\n * // clicks logs MouseEvents to console everytime the \"document\" is clicked\n * // Since the two streams are merged you see these happening\n * // as they occur.\n *\n * @example <caption>Merge together 3 Observables, but only 2 run concurrently</caption>\n * var timer1 = Rx.Observable.interval(1000).take(10);\n * var timer2 = Rx.Observable.interval(2000).take(6);\n * var timer3 = Rx.Observable.interval(500).take(10);\n * var concurrent = 2; // the argument\n * var merged = Rx.Observable.merge(timer1, timer2, timer3, concurrent);\n * merged.subscribe(x => console.log(x));\n *\n * // Results in the following:\n * // - First timer1 and timer2 will run concurrently\n * // - timer1 will emit a value every 1000ms for 10 iterations\n * // - timer2 will emit a value every 2000ms for 6 iterations\n * // - after timer1 hits it's max iteration, timer2 will\n * //   continue, and timer3 will start to run concurrently with timer2\n * // - when timer2 hits it's max iteration it terminates, and\n * //   timer3 will continue to emit a value every 500ms until it is complete\n *\n * @see {@link mergeAll}\n * @see {@link mergeMap}\n * @see {@link mergeMapTo}\n * @see {@link mergeScan}\n *\n * @param {...Observable} observables Input Observables to merge together.\n * @param {number} [concurrent=Number.POSITIVE_INFINITY] Maximum number of input\n * Observables being subscribed to concurrently.\n * @param {Scheduler} [scheduler=null] The Scheduler to use for managing\n * concurrency of input Observables.\n * @return {Observable} an Observable that emits items that are the result of\n * every input Observable.\n * @static true\n * @name merge\n * @owner Observable\n */\nfunction mergeStatic() {\n    var observables = [];\n    for (var _i = 0; _i < arguments.length; _i++) {\n        observables[_i - 0] = arguments[_i];\n    }\n    var concurrent = Number.POSITIVE_INFINITY;\n    var scheduler = null;\n    var last = observables[observables.length - 1];\n    if (isScheduler_1.isScheduler(last)) {\n        scheduler = observables.pop();\n        if (observables.length > 1 && typeof observables[observables.length - 1] === 'number') {\n            concurrent = observables.pop();\n        }\n    }\n    else if (typeof last === 'number') {\n        concurrent = observables.pop();\n    }\n    if (scheduler === null && observables.length === 1) {\n        return observables[0];\n    }\n    return new ArrayObservable_1.ArrayObservable(observables, scheduler).lift(new mergeAll_1.MergeAllOperator(concurrent));\n}\nexports.mergeStatic = mergeStatic;\n//# sourceMappingURL=merge.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/merge.js\n// module id = 643\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar OuterSubscriber_1 = require('../OuterSubscriber');\nvar subscribeToResult_1 = require('../util/subscribeToResult');\n/* tslint:disable:max-line-length */\n/**\n * Projects each source value to the same Observable which is merged multiple\n * times in the output Observable.\n *\n * <span class=\"informal\">It's like {@link mergeMap}, but maps each value always\n * to the same inner Observable.</span>\n *\n * <img src=\"./img/mergeMapTo.png\" width=\"100%\">\n *\n * Maps each source value to the given Observable `innerObservable` regardless\n * of the source value, and then merges those resulting Observables into one\n * single Observable, which is the output Observable.\n *\n * @example <caption>For each click event, start an interval Observable ticking every 1 second</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.mergeMapTo(Rx.Observable.interval(1000));\n * result.subscribe(x => console.log(x));\n *\n * @see {@link concatMapTo}\n * @see {@link merge}\n * @see {@link mergeAll}\n * @see {@link mergeMap}\n * @see {@link mergeScan}\n * @see {@link switchMapTo}\n *\n * @param {Observable} innerObservable An Observable to replace each value from\n * the source Observable.\n * @param {function(outerValue: T, innerValue: I, outerIndex: number, innerIndex: number): any} [resultSelector]\n * A function to produce the value on the output Observable based on the values\n * and the indices of the source (outer) emission and the inner Observable\n * emission. The arguments passed to this function are:\n * - `outerValue`: the value that came from the source\n * - `innerValue`: the value that came from the projected Observable\n * - `outerIndex`: the \"index\" of the value that came from the source\n * - `innerIndex`: the \"index\" of the value from the projected Observable\n * @param {number} [concurrent=Number.POSITIVE_INFINITY] Maximum number of input\n * Observables being subscribed to concurrently.\n * @return {Observable} An Observable that emits items from the given\n * `innerObservable` (and optionally transformed through `resultSelector`) every\n * time a value is emitted on the source Observable.\n * @method mergeMapTo\n * @owner Observable\n */\nfunction mergeMapTo(innerObservable, resultSelector, concurrent) {\n    if (concurrent === void 0) { concurrent = Number.POSITIVE_INFINITY; }\n    if (typeof resultSelector === 'number') {\n        concurrent = resultSelector;\n        resultSelector = null;\n    }\n    return this.lift(new MergeMapToOperator(innerObservable, resultSelector, concurrent));\n}\nexports.mergeMapTo = mergeMapTo;\n// TODO: Figure out correct signature here: an Operator<Observable<T>, R>\n//       needs to implement call(observer: Subscriber<R>): Subscriber<Observable<T>>\nvar MergeMapToOperator = (function () {\n    function MergeMapToOperator(ish, resultSelector, concurrent) {\n        if (concurrent === void 0) { concurrent = Number.POSITIVE_INFINITY; }\n        this.ish = ish;\n        this.resultSelector = resultSelector;\n        this.concurrent = concurrent;\n    }\n    MergeMapToOperator.prototype.call = function (observer, source) {\n        return source.subscribe(new MergeMapToSubscriber(observer, this.ish, this.resultSelector, this.concurrent));\n    };\n    return MergeMapToOperator;\n}());\nexports.MergeMapToOperator = MergeMapToOperator;\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar MergeMapToSubscriber = (function (_super) {\n    __extends(MergeMapToSubscriber, _super);\n    function MergeMapToSubscriber(destination, ish, resultSelector, concurrent) {\n        if (concurrent === void 0) { concurrent = Number.POSITIVE_INFINITY; }\n        _super.call(this, destination);\n        this.ish = ish;\n        this.resultSelector = resultSelector;\n        this.concurrent = concurrent;\n        this.hasCompleted = false;\n        this.buffer = [];\n        this.active = 0;\n        this.index = 0;\n    }\n    MergeMapToSubscriber.prototype._next = function (value) {\n        if (this.active < this.concurrent) {\n            var resultSelector = this.resultSelector;\n            var index = this.index++;\n            var ish = this.ish;\n            var destination = this.destination;\n            this.active++;\n            this._innerSub(ish, destination, resultSelector, value, index);\n        }\n        else {\n            this.buffer.push(value);\n        }\n    };\n    MergeMapToSubscriber.prototype._innerSub = function (ish, destination, resultSelector, value, index) {\n        this.add(subscribeToResult_1.subscribeToResult(this, ish, value, index));\n    };\n    MergeMapToSubscriber.prototype._complete = function () {\n        this.hasCompleted = true;\n        if (this.active === 0 && this.buffer.length === 0) {\n            this.destination.complete();\n        }\n    };\n    MergeMapToSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n        var _a = this, resultSelector = _a.resultSelector, destination = _a.destination;\n        if (resultSelector) {\n            this.trySelectResult(outerValue, innerValue, outerIndex, innerIndex);\n        }\n        else {\n            destination.next(innerValue);\n        }\n    };\n    MergeMapToSubscriber.prototype.trySelectResult = function (outerValue, innerValue, outerIndex, innerIndex) {\n        var _a = this, resultSelector = _a.resultSelector, destination = _a.destination;\n        var result;\n        try {\n            result = resultSelector(outerValue, innerValue, outerIndex, innerIndex);\n        }\n        catch (err) {\n            destination.error(err);\n            return;\n        }\n        destination.next(result);\n    };\n    MergeMapToSubscriber.prototype.notifyError = function (err) {\n        this.destination.error(err);\n    };\n    MergeMapToSubscriber.prototype.notifyComplete = function (innerSub) {\n        var buffer = this.buffer;\n        this.remove(innerSub);\n        this.active--;\n        if (buffer.length > 0) {\n            this._next(buffer.shift());\n        }\n        else if (this.active === 0 && this.hasCompleted) {\n            this.destination.complete();\n        }\n    };\n    return MergeMapToSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\nexports.MergeMapToSubscriber = MergeMapToSubscriber;\n//# sourceMappingURL=mergeMapTo.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/mergeMapTo.js\n// module id = 644\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar FromObservable_1 = require('../observable/FromObservable');\nvar isArray_1 = require('../util/isArray');\nvar OuterSubscriber_1 = require('../OuterSubscriber');\nvar subscribeToResult_1 = require('../util/subscribeToResult');\n/* tslint:disable:max-line-length */\nfunction onErrorResumeNext() {\n    var nextSources = [];\n    for (var _i = 0; _i < arguments.length; _i++) {\n        nextSources[_i - 0] = arguments[_i];\n    }\n    if (nextSources.length === 1 && isArray_1.isArray(nextSources[0])) {\n        nextSources = nextSources[0];\n    }\n    return this.lift(new OnErrorResumeNextOperator(nextSources));\n}\nexports.onErrorResumeNext = onErrorResumeNext;\n/* tslint:enable:max-line-length */\nfunction onErrorResumeNextStatic() {\n    var nextSources = [];\n    for (var _i = 0; _i < arguments.length; _i++) {\n        nextSources[_i - 0] = arguments[_i];\n    }\n    var source = null;\n    if (nextSources.length === 1 && isArray_1.isArray(nextSources[0])) {\n        nextSources = nextSources[0];\n    }\n    source = nextSources.shift();\n    return new FromObservable_1.FromObservable(source, null).lift(new OnErrorResumeNextOperator(nextSources));\n}\nexports.onErrorResumeNextStatic = onErrorResumeNextStatic;\nvar OnErrorResumeNextOperator = (function () {\n    function OnErrorResumeNextOperator(nextSources) {\n        this.nextSources = nextSources;\n    }\n    OnErrorResumeNextOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new OnErrorResumeNextSubscriber(subscriber, this.nextSources));\n    };\n    return OnErrorResumeNextOperator;\n}());\nvar OnErrorResumeNextSubscriber = (function (_super) {\n    __extends(OnErrorResumeNextSubscriber, _super);\n    function OnErrorResumeNextSubscriber(destination, nextSources) {\n        _super.call(this, destination);\n        this.destination = destination;\n        this.nextSources = nextSources;\n    }\n    OnErrorResumeNextSubscriber.prototype.notifyError = function (error, innerSub) {\n        this.subscribeToNextSource();\n    };\n    OnErrorResumeNextSubscriber.prototype.notifyComplete = function (innerSub) {\n        this.subscribeToNextSource();\n    };\n    OnErrorResumeNextSubscriber.prototype._error = function (err) {\n        this.subscribeToNextSource();\n    };\n    OnErrorResumeNextSubscriber.prototype._complete = function () {\n        this.subscribeToNextSource();\n    };\n    OnErrorResumeNextSubscriber.prototype.subscribeToNextSource = function () {\n        var next = this.nextSources.shift();\n        if (next) {\n            this.add(subscribeToResult_1.subscribeToResult(this, next));\n        }\n        else {\n            this.destination.complete();\n        }\n    };\n    return OnErrorResumeNextSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\n//# sourceMappingURL=onErrorResumeNext.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/onErrorResumeNext.js\n// module id = 645\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar isArray_1 = require('../util/isArray');\nvar ArrayObservable_1 = require('../observable/ArrayObservable');\nvar OuterSubscriber_1 = require('../OuterSubscriber');\nvar subscribeToResult_1 = require('../util/subscribeToResult');\n/* tslint:disable:max-line-length */\n/**\n * Returns an Observable that mirrors the first source Observable to emit an item\n * from the combination of this Observable and supplied Observables\n * @param {...Observables} ...observables sources used to race for which Observable emits first.\n * @return {Observable} an Observable that mirrors the output of the first Observable to emit an item.\n * @method race\n * @owner Observable\n */\nfunction race() {\n    var observables = [];\n    for (var _i = 0; _i < arguments.length; _i++) {\n        observables[_i - 0] = arguments[_i];\n    }\n    // if the only argument is an array, it was most likely called with\n    // `pair([obs1, obs2, ...])`\n    if (observables.length === 1 && isArray_1.isArray(observables[0])) {\n        observables = observables[0];\n    }\n    return this.lift.call(raceStatic.apply(void 0, [this].concat(observables)));\n}\nexports.race = race;\nfunction raceStatic() {\n    var observables = [];\n    for (var _i = 0; _i < arguments.length; _i++) {\n        observables[_i - 0] = arguments[_i];\n    }\n    // if the only argument is an array, it was most likely called with\n    // `pair([obs1, obs2, ...])`\n    if (observables.length === 1) {\n        if (isArray_1.isArray(observables[0])) {\n            observables = observables[0];\n        }\n        else {\n            return observables[0];\n        }\n    }\n    return new ArrayObservable_1.ArrayObservable(observables).lift(new RaceOperator());\n}\nexports.raceStatic = raceStatic;\nvar RaceOperator = (function () {\n    function RaceOperator() {\n    }\n    RaceOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new RaceSubscriber(subscriber));\n    };\n    return RaceOperator;\n}());\nexports.RaceOperator = RaceOperator;\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar RaceSubscriber = (function (_super) {\n    __extends(RaceSubscriber, _super);\n    function RaceSubscriber(destination) {\n        _super.call(this, destination);\n        this.hasFirst = false;\n        this.observables = [];\n        this.subscriptions = [];\n    }\n    RaceSubscriber.prototype._next = function (observable) {\n        this.observables.push(observable);\n    };\n    RaceSubscriber.prototype._complete = function () {\n        var observables = this.observables;\n        var len = observables.length;\n        if (len === 0) {\n            this.destination.complete();\n        }\n        else {\n            for (var i = 0; i < len && !this.hasFirst; i++) {\n                var observable = observables[i];\n                var subscription = subscribeToResult_1.subscribeToResult(this, observable, observable, i);\n                if (this.subscriptions) {\n                    this.subscriptions.push(subscription);\n                }\n                this.add(subscription);\n            }\n            this.observables = null;\n        }\n    };\n    RaceSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n        if (!this.hasFirst) {\n            this.hasFirst = true;\n            for (var i = 0; i < this.subscriptions.length; i++) {\n                if (i !== outerIndex) {\n                    var subscription = this.subscriptions[i];\n                    subscription.unsubscribe();\n                    this.remove(subscription);\n                }\n            }\n            this.subscriptions = null;\n        }\n        this.destination.next(innerValue);\n    };\n    return RaceSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\nexports.RaceSubscriber = RaceSubscriber;\n//# sourceMappingURL=race.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/race.js\n// module id = 646\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = require('../Subscriber');\nvar async_1 = require('../scheduler/async');\n/**\n * @param scheduler\n * @return {Observable<TimeInterval<any>>|WebSocketSubject<T>|Observable<T>}\n * @method timeInterval\n * @owner Observable\n */\nfunction timeInterval(scheduler) {\n    if (scheduler === void 0) { scheduler = async_1.async; }\n    return this.lift(new TimeIntervalOperator(scheduler));\n}\nexports.timeInterval = timeInterval;\nvar TimeInterval = (function () {\n    function TimeInterval(value, interval) {\n        this.value = value;\n        this.interval = interval;\n    }\n    return TimeInterval;\n}());\nexports.TimeInterval = TimeInterval;\n;\nvar TimeIntervalOperator = (function () {\n    function TimeIntervalOperator(scheduler) {\n        this.scheduler = scheduler;\n    }\n    TimeIntervalOperator.prototype.call = function (observer, source) {\n        return source.subscribe(new TimeIntervalSubscriber(observer, this.scheduler));\n    };\n    return TimeIntervalOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar TimeIntervalSubscriber = (function (_super) {\n    __extends(TimeIntervalSubscriber, _super);\n    function TimeIntervalSubscriber(destination, scheduler) {\n        _super.call(this, destination);\n        this.scheduler = scheduler;\n        this.lastTime = 0;\n        this.lastTime = scheduler.now();\n    }\n    TimeIntervalSubscriber.prototype._next = function (value) {\n        var now = this.scheduler.now();\n        var span = now - this.lastTime;\n        this.lastTime = now;\n        this.destination.next(new TimeInterval(value, span));\n    };\n    return TimeIntervalSubscriber;\n}(Subscriber_1.Subscriber));\n//# sourceMappingURL=timeInterval.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/timeInterval.js\n// module id = 647\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = require('../Subscriber');\nvar async_1 = require('../scheduler/async');\n/**\n * @param scheduler\n * @return {Observable<Timestamp<any>>|WebSocketSubject<T>|Observable<T>}\n * @method timestamp\n * @owner Observable\n */\nfunction timestamp(scheduler) {\n    if (scheduler === void 0) { scheduler = async_1.async; }\n    return this.lift(new TimestampOperator(scheduler));\n}\nexports.timestamp = timestamp;\nvar Timestamp = (function () {\n    function Timestamp(value, timestamp) {\n        this.value = value;\n        this.timestamp = timestamp;\n    }\n    return Timestamp;\n}());\nexports.Timestamp = Timestamp;\n;\nvar TimestampOperator = (function () {\n    function TimestampOperator(scheduler) {\n        this.scheduler = scheduler;\n    }\n    TimestampOperator.prototype.call = function (observer, source) {\n        return source.subscribe(new TimestampSubscriber(observer, this.scheduler));\n    };\n    return TimestampOperator;\n}());\nvar TimestampSubscriber = (function (_super) {\n    __extends(TimestampSubscriber, _super);\n    function TimestampSubscriber(destination, scheduler) {\n        _super.call(this, destination);\n        this.scheduler = scheduler;\n    }\n    TimestampSubscriber.prototype._next = function (value) {\n        var now = this.scheduler.now();\n        this.destination.next(new Timestamp(value, now));\n    };\n    return TimestampSubscriber;\n}(Subscriber_1.Subscriber));\n//# sourceMappingURL=timestamp.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/timestamp.js\n// module id = 648\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar AsyncAction_1 = require('./AsyncAction');\nvar AsyncScheduler_1 = require('./AsyncScheduler');\nvar VirtualTimeScheduler = (function (_super) {\n    __extends(VirtualTimeScheduler, _super);\n    function VirtualTimeScheduler(SchedulerAction, maxFrames) {\n        var _this = this;\n        if (SchedulerAction === void 0) { SchedulerAction = VirtualAction; }\n        if (maxFrames === void 0) { maxFrames = Number.POSITIVE_INFINITY; }\n        _super.call(this, SchedulerAction, function () { return _this.frame; });\n        this.maxFrames = maxFrames;\n        this.frame = 0;\n        this.index = -1;\n    }\n    /**\n     * Prompt the Scheduler to execute all of its queued actions, therefore\n     * clearing its queue.\n     * @return {void}\n     */\n    VirtualTimeScheduler.prototype.flush = function () {\n        var _a = this, actions = _a.actions, maxFrames = _a.maxFrames;\n        var error, action;\n        while ((action = actions.shift()) && (this.frame = action.delay) <= maxFrames) {\n            if (error = action.execute(action.state, action.delay)) {\n                break;\n            }\n        }\n        if (error) {\n            while (action = actions.shift()) {\n                action.unsubscribe();\n            }\n            throw error;\n        }\n    };\n    VirtualTimeScheduler.frameTimeFactor = 10;\n    return VirtualTimeScheduler;\n}(AsyncScheduler_1.AsyncScheduler));\nexports.VirtualTimeScheduler = VirtualTimeScheduler;\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar VirtualAction = (function (_super) {\n    __extends(VirtualAction, _super);\n    function VirtualAction(scheduler, work, index) {\n        if (index === void 0) { index = scheduler.index += 1; }\n        _super.call(this, scheduler, work);\n        this.scheduler = scheduler;\n        this.work = work;\n        this.index = index;\n        this.index = scheduler.index = index;\n    }\n    VirtualAction.prototype.schedule = function (state, delay) {\n        if (delay === void 0) { delay = 0; }\n        return !this.id ?\n            _super.prototype.schedule.call(this, state, delay) : this.add(new VirtualAction(this.scheduler, this.work)).schedule(state, delay);\n    };\n    VirtualAction.prototype.requestAsyncId = function (scheduler, id, delay) {\n        if (delay === void 0) { delay = 0; }\n        this.delay = scheduler.frame + delay;\n        var actions = scheduler.actions;\n        actions.push(this);\n        actions.sort(VirtualAction.sortActions);\n        return true;\n    };\n    VirtualAction.prototype.recycleAsyncId = function (scheduler, id, delay) {\n        if (delay === void 0) { delay = 0; }\n        return undefined;\n    };\n    VirtualAction.sortActions = function (a, b) {\n        if (a.delay === b.delay) {\n            if (a.index === b.index) {\n                return 0;\n            }\n            else if (a.index > b.index) {\n                return 1;\n            }\n            else {\n                return -1;\n            }\n        }\n        else if (a.delay > b.delay) {\n            return 1;\n        }\n        else {\n            return -1;\n        }\n    };\n    return VirtualAction;\n}(AsyncAction_1.AsyncAction));\nexports.VirtualAction = VirtualAction;\n//# sourceMappingURL=VirtualTimeScheduler.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/scheduler/VirtualTimeScheduler.js\n// module id = 650\n// module chunks = 0","\"use strict\";\nvar AsapAction_1 = require('./AsapAction');\nvar AsapScheduler_1 = require('./AsapScheduler');\nexports.asap = new AsapScheduler_1.AsapScheduler(AsapAction_1.AsapAction);\n//# sourceMappingURL=asap.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/scheduler/asap.js\n// module id = 651\n// module chunks = 0","\"use strict\";\nvar QueueAction_1 = require('./QueueAction');\nvar QueueScheduler_1 = require('./QueueScheduler');\nexports.queue = new QueueScheduler_1.QueueScheduler(QueueAction_1.QueueAction);\n//# sourceMappingURL=queue.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/scheduler/queue.js\n// module id = 652\n// module chunks = 0","\"use strict\";\nvar SubscriptionLog = (function () {\n    function SubscriptionLog(subscribedFrame, unsubscribedFrame) {\n        if (unsubscribedFrame === void 0) { unsubscribedFrame = Number.POSITIVE_INFINITY; }\n        this.subscribedFrame = subscribedFrame;\n        this.unsubscribedFrame = unsubscribedFrame;\n    }\n    return SubscriptionLog;\n}());\nexports.SubscriptionLog = SubscriptionLog;\n//# sourceMappingURL=SubscriptionLog.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/testing/SubscriptionLog.js\n// module id = 653\n// module chunks = 0","\"use strict\";\nvar SubscriptionLog_1 = require('./SubscriptionLog');\nvar SubscriptionLoggable = (function () {\n    function SubscriptionLoggable() {\n        this.subscriptions = [];\n    }\n    SubscriptionLoggable.prototype.logSubscribedFrame = function () {\n        this.subscriptions.push(new SubscriptionLog_1.SubscriptionLog(this.scheduler.now()));\n        return this.subscriptions.length - 1;\n    };\n    SubscriptionLoggable.prototype.logUnsubscribedFrame = function (index) {\n        var subscriptionLogs = this.subscriptions;\n        var oldSubscriptionLog = subscriptionLogs[index];\n        subscriptionLogs[index] = new SubscriptionLog_1.SubscriptionLog(oldSubscriptionLog.subscribedFrame, this.scheduler.now());\n    };\n    return SubscriptionLoggable;\n}());\nexports.SubscriptionLoggable = SubscriptionLoggable;\n//# sourceMappingURL=SubscriptionLoggable.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/testing/SubscriptionLoggable.js\n// module id = 654\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\n/**\n * An error thrown when duetime elapses.\n *\n * @see {@link timeout}\n *\n * @class TimeoutError\n */\nvar TimeoutError = (function (_super) {\n    __extends(TimeoutError, _super);\n    function TimeoutError() {\n        var err = _super.call(this, 'Timeout has occurred');\n        this.name = err.name = 'TimeoutError';\n        this.stack = err.stack;\n        this.message = err.message;\n    }\n    return TimeoutError;\n}(Error));\nexports.TimeoutError = TimeoutError;\n//# sourceMappingURL=TimeoutError.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/util/TimeoutError.js\n// module id = 655\n// module chunks = 0","\"use strict\";\nfunction applyMixins(derivedCtor, baseCtors) {\n    for (var i = 0, len = baseCtors.length; i < len; i++) {\n        var baseCtor = baseCtors[i];\n        var propertyKeys = Object.getOwnPropertyNames(baseCtor.prototype);\n        for (var j = 0, len2 = propertyKeys.length; j < len2; j++) {\n            var name_1 = propertyKeys[j];\n            derivedCtor.prototype[name_1] = baseCtor.prototype[name_1];\n        }\n    }\n}\nexports.applyMixins = applyMixins;\n//# sourceMappingURL=applyMixins.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/util/applyMixins.js\n// module id = 657\n// module chunks = 0","\"use strict\";\n/* tslint:disable:no-empty */\nfunction noop() { }\nexports.noop = noop;\n//# sourceMappingURL=noop.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/util/noop.js\n// module id = 660\n// module chunks = 0","// App\nexport * from './app.module';\n\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/index.ts","/*\n * Angular 2 decorators and services\n */\nimport { Component, ViewEncapsulation, OnInit, ViewChild } from '@angular/core';\n\nimport { HttpService } from './services/http';\nimport { ActivityService } from './services/activity';\nimport { SupportIssueService } from './services/support';\nimport { AccountsService } from './services/accounts';\nimport { LocalStorageService } from 'ng2-webstorage';\nimport { CreateActivityModal } from './components/createactivitymodal';\n\nimport { DomainInfo }\t\t\t\tfrom './components/domaininfo';\nimport { AccountInfoModal }\t\t\t\tfrom './components/accountinfo';\n\nimport { EventsService }           from './services/event';\nimport { ErrorsService }           from './services/errors';\n\nimport { ModalComponent } from 'ng2-bs4-modal/ng2-bs4-modal';\nimport { Router, NavigationEnd, NavigationStart }            from '@angular/router';\nimport { SearchSidebar } from './components/searchsidebar';\n\nfunction _window() : any {\n   // return the global native browser window object\n   return window;\n}\n\n/*\n * App Component\n * Top Level Component\n */\n@Component({\n  selector: 'app',\n  encapsulation: ViewEncapsulation.None,\n  template: require('./app.component.html')\n})\n\nexport class AppComponent implements OnInit { \n\n\t@ViewChild('searchSideBar')\n  searchSideBar: SearchSidebar;\t\n\n\t@ViewChild('createActivityModal')\n  createActivityModal: CreateActivityModal;\n\n\t@ViewChild('accountInfoModal')\n  accountInfoModal: AccountInfoModal;\n\n\t@ViewChild('loginModal')\n  loginModal: ModalComponent;\n  \n\t@ViewChild('errorModal')\n  errorModal: ModalComponent;\n\t\n\t@ViewChild('domainInfo')\n  domainInfo: DomainInfo;\n\n\tisSignedIn : boolean;\n  username : string;\n  password : string;\n  loginErrorMessage : string;\n  user : any;\n\tisLoggingIn : boolean;\n\tmySupportIssueCount : Number;\n\tmyPrivateSupportIssueCount : Number;\n\tmyActivityCount : Number;\n\tweekActivityCount : Number;\n\tallSupportIssueCount : Number;\n\terrorMessage: string;\n\tshowMenu : boolean;\n\tdomainsSubmenuVisible : boolean;\n\tstorageSubmenuVisible : boolean;\n\tsupportQuota : any;\n\tmyQuota : any;\n\tinhouseActivityCount : Number;\n\n\tsearchPhrase : String;\n\n\tsearchIsVisible : boolean;\n\n  constructor(\n\t\tprivate httpService: HttpService,\n\t\tprivate activityService: ActivityService,\n\t\tprivate supportService: SupportIssueService,\n\t\tprivate accountsService : AccountsService,\n\t\tprivate eventsService: EventsService,\n\t\tprivate errorsService: ErrorsService,\n    private router: Router,\n\t\tprivate localStorageService : LocalStorageService\n\t) {\n\t  this.username = '';\n\t  this.password = '';\n\t\tthis.searchPhrase = '';\n\t\tthis.user = this.httpService.getUser();\n\t\tconsole.log('user', this.user);\n\t\tthis.eventsService.on('supportissue-updated', () => {\n\t\t\tthis.loadNumbers(true, false);\n\t\t});\n\t\tthis.eventsService.on('activity-updated', () => {\n\t\t\tthis.loadNumbers(false, true);\n\t\t});\n\t\tthis.eventsService.on('new-supportissue', () => {\n\t\t\tthis.loadNumbers(true, false);\n\t\t});\n\t\tthis.eventsService.on('supportissue-assigned', () => {\n\t\t\tthis.loadNumbers(true, false);\n\t\t})\n\t\tthis.eventsService.on('support-filter-changed', () => {\n\t\t\tthis.loadNumbers(true, false);\t\t\t\n\t\t})\n\t\tthis.eventsService.on('activity-filter-changed', () => {\n\t\t\tthis.loadNumbers(false, true);\t\t\t\n\t\t})\n\t\tthis.eventsService.on('activity:create', (data) => {\n\t\t\tthis.createActivityModal.open(data).then(() => {\n\t\t\t\tthis.eventsService.broadcast('activity:created', data);\n\t\t\t})\n\t\t})\n\t\tthis.errorsService.on('error', (msg) => {\n\t\t\tconsole.log(\"Got error\", msg);\n\t\t\tthis.showErrorMessage(msg);\n\t\t})\n\t\tthis.router.events.subscribe((event) => { \n\t\t\tif(event instanceof NavigationStart) {\t\n\t\t\t\tthis.showMenu = false;\n\t\t\t}\n\t\t});\n\t\tsetInterval(() => {\n\t\t\tthis.loadNumbers(true, true);\n\t\t\tthis.loadQuota();\n\t\t}, 1000 * 60);\n\t\tsetInterval(() => {\n\t\t\tvar reminders = JSON.parse(localStorage.getItem('owe-reminders') || '[]');\n\t\t\tvar now = new Date();\n\t\t\treminders.forEach((r) => {\n\t\t\t\tvar startDate = new Date(r.startDate);\n\t\t\t\tvar endDate = new Date(r.endDate);\n\t\t\t\tvar diff = parseInt(((startDate.getTime() - now.getTime()) / 1000 / 60).toFixed());\n\t\t\t\tif(diff > 0 && diff < 15 && !r.visible) {\n\t\t\t\t\tr.visible = true;\n\t\t\t\t\tvar msg = 'Idag, kl ' + startDate.toLocaleTimeString().substr(0, 5) + ' till ' + endDate.toLocaleTimeString().substr(0, 5);\n\t\t\t\t\tconsole.log(_window().showNotification(r.id, '<h4><i class=\"fa fa-bell\"></i> ' + r.title + '</h4>', msg, 'fa fa-bell', (id) => {\n\t\t\t\t\t\tconsole.log('id ' + id + ' was closed');\n\t\t\t\t\t\t//this.activityService.deleteReminder(id);\n\t\t\t\t\t}));\n\t\t\t\t}\n\t\t\t})\n\t\t\tlocalStorage.setItem('owe-reminders', JSON.stringify(reminders));\n\t\t}, 1000 * 60);\n\t\tthis.router.events.subscribe((event) => { \n\t\t\tif(event instanceof NavigationEnd) {\t\n\t\t\t\tswitch(this.router.url) {\n\t\t\t\t\tcase \"/domains/all\":\n\t\t\t\t\tcase \"/domains/archived\":\n\t\t\t\t\tcase \"/domains/expired\":\n\t\t\t\t\tcase \"/domains/expires\":\n\t\t\t\t\t\tthis.domainsSubmenuVisible = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"/storage/hsd-synology-backup\":\n\t\t\t\t\tcase \"/storage/hsd-sites\":\n\t\t\t\t\tcase \"/storage/hsd-sites-glacier\":\n\t\t\t\t\tcase \"/storage/hsd-public\":\n\t\t\t\t\tcase \"/storage/hsd-public-glacier\":\n\t\t\t\t\tcase \"/storage/hsd-mailstore\":\n\t\t\t\t\tcase \"/storage/hsd-mamba-sync\":\n\t\t\t\t\tcase \"/storage/hsd-incoming-bucket\":\n\t\t\t\t\t\tthis.storageSubmenuVisible = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n\n\tngAfterViewInit() {\n\t\tthis.loadNumbers(true, true);\n\t\tthis.loadQuota();\n\t\tthis.searchSideBar.onVisibilityChanged = (isVisible) => {\n\t\t\tthis.searchIsVisible = isVisible;\n\t\t\tif(!this.searchIsVisible) {\n\t\t\t\tthis.searchPhrase = '';\n\t\t\t}\n\t\t}\n\t}\n\n\topenSearch(event, el) {\n\t\tthis.searchSideBar.visible = true;\n\t\tthis.searchSideBar.initialPhrase = this.searchPhrase;\t\t\n\t}\n\n\tshowAccountInfo(account) {\n\t\tthis.accountInfoModal.open(account.accountId).then(() => {\n\t\t})\n\t}\n\n\tshowDomainInfo(domain) {\n\t\tthis.domainInfo.open(domain).then((closedResult) => {\n\t\t\t\n\t\t})\n\t}\n\n\tloadQuota() {\n\t\tthis.accountsService.getQuota(\"support@hemsidadirekt.se\").then((data) => {\n\t\t\tthis.supportQuota = data;\n\t\t})\n\t\tthis.accountsService.getQuota(this.user.email).then((data) => {\n\t\t\tthis.myQuota = data;\n\t\t\tconsole.log(data);\n\t\t})\n\t}\n\n\tloadNumbers(support : boolean, activites : boolean) : void {\n\t\tif(this.user && this.user.userId) {\n\t\t\tif(support) {\n\t\t  \tvar allFilter = this.localStorageService.retrieve('filter-support-all') || { status : ['open' ] }; \n\t\t\t\tthis.supportService.getAllIssues(allFilter, 0, 1).then((supporIssueList) => {\n\t\t\t\t\tthis.allSupportIssueCount = supporIssueList.totalIssues;\t\n\t\t\t\t});\n\t\t  \tvar myFilter = this.localStorageService.retrieve('filter-support-mine') || { userId : this.user.userId, status : ['open', 'pending' ]}; \n\t\t\t\tthis.supportService.getAllIssues(myFilter, 0, 1).then((supporIssueList) => {\n\t\t\t\t\tthis.mySupportIssueCount = supporIssueList.totalIssues;\t\n\t\t\t\t});\n\t\t  \tvar privateFilter = this.localStorageService.retrieve('filter-support-private') || { to : this.user.email.substr(0, this.user.email.indexOf('@')), status : ['open', 'pending' ]}; \n\t\t\t\tthis.supportService.getAllIssues(privateFilter, 0, 1).then((supporIssueList) => {\n\t\t\t\t\tthis.myPrivateSupportIssueCount = supporIssueList.totalIssues;\t\n\t\t\t\t});\n\t\t\t}\n\t\t\tif(activites) {\n\t\t\t\tvar myFilter = this.localStorageService.retrieve('filter-activities-mine') || { statusId : [2, 3, 7], userId : this.user.userId, phrase : '' };\n\t\t\t\tthis.activityService.getActivities(myFilter, 0, 1).then((activityList) => {\n\t\t\t\t\tthis.myActivityCount = activityList.total;\n\t\t\t\t});\n\t\t\t\tvar weekFilter = this.localStorageService.retrieve('filter-activities-week') || { statusId : [2], phrase : '' };\n\t\t\t\tthis.activityService.getActivities(weekFilter, 0, 1).then((activityList) => {\n\t\t\t\t\tthis.weekActivityCount = activityList.total;\n\t\t\t\t});\n\t\t\t\tthis.activityService.getActivities({ statusId : [2, 3, 7], userId : 30697, phrase : '' }, 0, 1).then((activityList) => {\n\t\t\t\t\tthis.inhouseActivityCount = activityList.total;\n\t\t\t\t});\n\t\t\t}\n\t\t}\n  }\n  \n\tcheckEnter($event) {\n\t\tif($event.key && $event.key.toLowerCase() == 'enter') {\n\t\t\tthis.performLogin();\n\t\t}\n\t\telse if($event.keyCode && $event.keyCode == 13) {\n\t\t\tthis.performLogin();\n\t\t}\n\t}\n\n  performLogin() {\n\t\tthis.isLoggingIn = true;\n\t  this.httpService.performLogin(this.username, this.password).then((r) => {\n\t\t  if(r.success) {\n\t\t\t\tthis.loginModal.close();\n\t\t\t\tthis.user = this.httpService.getUser();\t\t\t\t\n\t\t\t} else {\n\t\t\t\tthis.isLoggingIn = false;\n\t\t\t\tthis.loginErrorMessage = r.message;\n\t\t\t}\n\t\t\tthis.isSignedIn = this.httpService.isLoggedIn();\n\t  });\n  }\n  \n\tshowErrorMessage(msg : string) : Promise<void> {\n\t\treturn new Promise<void>((done) => {\n\t\t\t//console.log('showing error dialog', msg)\n\t\t\t/*\n\t\t\tconsole.log(_window().showNotification('', '<h4><i class=\"fa fa-exclamation-triangle\"></i> Fel' + '</h4>', msg, 'fa fa-exclamation-triangle', (id) => {\n\t\t\t\tconsole.log('id ' + id + ' was closed');\n\t\t\t}, 'danger'));\t\t\t\n\t\t\t*/\n\t\t\tdone();\n\t\t});\n\t}\n\n  login() {\n\t  this.httpService.login();\n  }\n  \n  logout() {\n\t  this.httpService.logout();\n\t\tdocument.location.href = '/';\n  }\n\n\tsupportSubmenuVisible : boolean;\n\t\n\tngOnInit(): void {\n\t  this.httpService.setLoginModal(this.loginModal);\n\t  this.isSignedIn = this.httpService.isLoggedIn();\n\t}\n\t\n}\n\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/app.component.ts","import { NgModule, ApplicationRef } from '@angular/core';\nimport { BrowserModule } from '@angular/platform-browser';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { HttpModule } from '@angular/http';\nimport { RouterModule, PreloadAllModules } from '@angular/router';\nimport { removeNgStyles, createNewHosts, createInputTransfer } from '@angularclass/hmr';\nimport { Header } from './components/header'\nimport { ChartsModule } from 'ng2-charts';\n\n/*\n * Platform and Environment providers/directives/pipes\n */\nimport { ENV_PROVIDERS } from './environment';\nimport { ROUTES } from './app.routes';\n// App is our top level component\nimport { AppComponent } from './app.component';\nimport { APP_RESOLVER_PROVIDERS } from './app.resolver';\nimport { AppState, InternalStateType } from './app.service';\nimport { NoContentComponent } from './no-content';\n\nimport { InfiniteScrollModule } from 'angular2-infinite-scroll/angular2-infinite-scroll';\nimport { ModalModule } from 'ng2-bs4-modal/ng2-bs4-modal';\n\nimport { FileDropDirective } from 'ng2-file-upload';\n\nimport { Truncate } from './pipes/truncate';\nimport { Nl2Br } from './pipes/nl2br';\n\nimport { StorageService } from './services/storage';\nimport { SupportIssueService } from './services/support';\nimport { CompanyService } from './services/company';\nimport { ActivityService } from './services/activity';\nimport { DomainService } from './services/domain';\nimport { HttpService } from './services/http';\nimport { AccountsService } from './services/accounts';\nimport { ImapService } from './services/imap';\nimport { ErrorsService } from './services/errors';\nimport { EventsService } from './services/event';\n\nimport { DashboardView }      from './views/dashboard';\nimport { ActivitiesView }      from './views/activities';\nimport { SupportView }      from './views/support';\nimport { DomainsView }      from './views/domains';\nimport { CompaniesView }      from './views/companies';\nimport { ImapSyncView }      from './views/imapsync';\nimport { StorageView }      from './views/storage';\nimport { LayoutsView }      from './views/layouts';\nimport { OrdersView }      from './views/orders';\nimport { InvoicesView }      from './views/invoices';\nimport { SubscriptionsView }      from './views/subscriptions';\nimport { ActivityLogView }      from './views/activitylog';\nimport { SalesReportView }      from './views/salesreport';\nimport { ProspectsView }\t\t\t\tfrom './views/prospects';\n\nimport { ActivityList }      from './components/activitylist';\nimport { ActivityLog }      from './components/activitylog';\nimport { CreateActivityModal }      from './components/createactivitymodal';\nimport { CreateAccountModal }      from './components/createaccountmodal';\nimport { SupportList }      from './components/supportlist';\nimport { OrderList }      from './components/orderlist';\nimport { DomainList }      from './components/domainlist';\nimport { CompanyList }      from './components/companylist';\nimport { SusbcriptionList }      from './components/subscriptionlist';\nimport { InvoiceList }      from './components/invoicelist';\nimport { StorageList }      from './components/storagelist';\nimport { LineChartComponent }      from './components/linechartcomponent';\nimport { ActivityDetails }      from './components/activitydetails';\nimport { CommunicationHistory }      from './components/communicationhistory';\nimport { DateFormatter }      from './components/dateformatter';\nimport { DatePicker }      from './components/datepicker';\nimport { CustomerInfo }      from './components/customerinfo';\nimport { SupportDetails }      from './components/supportdetails';\nimport { ProspectDetails } from './components/prospectdetails';\n\nimport { MxInfo }      from './components/mxinfo';\nimport { DomainInfo }      from './components/domaininfo';\nimport { CustomerFullInfo }      from './components/customerfullinfo';\nimport { FileUpload }      from './components/fileupload';\nimport { HtmlSource }      from './components/htmlsource';\nimport { AccountInfo, AccountInfoModal }      from './components/accountinfo';\nimport { InvoiceInfo }      from './components/invoiceinfo';\nimport { AddressInfo }      from './components/addressinfo';\nimport { PhoneInfo }      from './components/phoneinfo';\nimport { MailComposer }      from './components/mailcomposer';\nimport { SmsComposer }      from './components/smscomposer';\nimport { OrderInfo }      from './components/orderinfo';\nimport { SubscriptionInfo }      from './components/subscriptioninfo';\nimport { EmailUtils }      from './components/emailutils';\nimport { SearchSidebar }      from './components/searchsidebar';\n\nimport { Ng2Webstorage, LocalStorageService} from 'ng2-webstorage';\nimport { PhonesView } from './views/phones';\nimport { NumberFormatter } from './components/numberformatter';\n\n// Application wide providers\nconst APP_PROVIDERS = [\n  ...APP_RESOLVER_PROVIDERS,\n  AppState,\n  SupportIssueService, \n  CompanyService, \n  HttpService, \n  ActivityService, \n  DomainService, \n  EventsService, \n  StorageService, \n  ImapService, \n  AccountsService,\n  LocalStorageService,\n\tErrorsService,\n  Ng2Webstorage\n];\n\ntype StoreType = {\n  state: InternalStateType,\n  restoreInputValues: () => void,\n  disposeOldHosts: () => void\n};\n\n/**\n * `AppModule` is the main entry point into Angular2's bootstraping process\n */\n@NgModule({\n  bootstrap: [ AppComponent ],\n  declarations: [\n    AppComponent,\n    NoContentComponent,\n    Header,\n    Truncate,\n    Nl2Br,\n    DashboardView, ActivitiesView, SupportView, DomainsView, CompaniesView, StorageView, ImapSyncView, LayoutsView, OrdersView, InvoicesView, SubscriptionsView, ActivityLogView, PhonesView, SalesReportView, ProspectsView,\n    ActivityList, ActivityLog, CreateActivityModal, CreateAccountModal,\n\t\tSupportList, DomainList, OrderList, InvoiceList, SusbcriptionList,\n    CompanyList,\n    StorageList,\n    ActivityDetails,\n    CommunicationHistory,\n    DateFormatter,\n\t\tNumberFormatter,\n    CustomerInfo,\n    DatePicker,\n    SupportDetails,\n\t\tProspectDetails,\n    MxInfo,\n    DomainInfo,\n    CustomerFullInfo,\n    FileUpload,\n    HtmlSource,\n    AccountInfo,\n    HtmlSource,\n    InvoiceInfo,\n    FileDropDirective,\n\t\tMailComposer,\n\t\tSmsComposer,\n\t\tLineChartComponent,\n\t\tOrderInfo, AccountInfoModal, SubscriptionInfo, PhoneInfo, AddressInfo, EmailUtils, SearchSidebar\n  ],\n  imports: [ // import Angular's modules\n    BrowserModule,\n    FormsModule, ReactiveFormsModule,\n    HttpModule,\n    InfiniteScrollModule,\n\t\tChartsModule,\n\t\tModalModule,\n    RouterModule.forRoot(ROUTES, { useHash: true, preloadingStrategy: PreloadAllModules })\n  ],\n  providers: [ // expose our Services and Providers into Angular's dependency injection\n    ENV_PROVIDERS,\n    APP_PROVIDERS\n  ]\n})\nexport class AppModule {\n  constructor(public appRef: ApplicationRef, public appState: AppState) {}\n\n  hmrOnInit(store: StoreType) {\n    if (!store || !store.state) return;\n    console.log('HMR store', JSON.stringify(store, null, 2));\n    // set state\n    this.appState._state = store.state;\n    // set input values\n    if ('restoreInputValues' in store) {\n      let restoreInputValues = store.restoreInputValues;\n      setTimeout(restoreInputValues);\n    }\n\n    this.appRef.tick();\n    delete store.state;\n    delete store.restoreInputValues;\n  }\n\n  hmrOnDestroy(store: StoreType) {\n    const cmpLocation = this.appRef.components.map(cmp => cmp.location.nativeElement);\n    // save state\n    const state = this.appState._state;\n    store.state = state;\n    // recreate root elements\n    store.disposeOldHosts = createNewHosts(cmpLocation);\n    // save input values\n    store.restoreInputValues  = createInputTransfer();\n    // remove styles\n    removeNgStyles();\n  }\n\n  hmrAfterDestroy(store: StoreType) {\n    // display new elements\n    store.disposeOldHosts();\n    delete store.disposeOldHosts;\n  }\n\n}\n\n\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/app.module.ts","import { Resolve, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';\nimport { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs/Observable';\nimport 'rxjs/add/observable/of';\n\n@Injectable()\nexport class DataResolver implements Resolve<any> {\n  constructor() {\n\n  }\n  resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot) {\n    return Observable.of({ res: 'I am data'});\n  }\n}\n\n// an array of services to resolve routes with data\nexport const APP_RESOLVER_PROVIDERS = [\n  DataResolver\n];\n\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/app.resolver.ts","import { Routes, RouterModule } from '@angular/router';\nimport { NoContentComponent } from './no-content';\n\nimport { DataResolver } from './app.resolver';\n\nimport { CustomerFullInfo }      from './components/customerfullinfo';\nimport { ActivityDetails }      from './components/activitydetails';\nimport { SupportDetails }      from './components/supportdetails';\nimport { DomainInfo }      from './components/domaininfo';\nimport { ProspectDetails } from './components/prospectdetails';\n\nimport { SupportView }      from './views/support';\nimport { ActivitiesView }      from './views/activities';\nimport { DashboardView }      from './views/dashboard';\nimport { DomainsView }      from './views/domains';\nimport { CompaniesView }      from './views/companies';\nimport { StorageView }      from './views/storage';\nimport { ImapSyncView }\t\t  from './views/imapsync';\nimport { LayoutsView }\t\t  from './views/layouts';\nimport { OrdersView }\t\t  from './views/orders';\nimport { InvoicesView }\t\t  from './views/invoices';\nimport { ActivityLogView }\t\t  from './views/activitylog';\nimport { PhonesView }\t\t  from './views/phones';\nimport { SubscriptionsView } from './views/subscriptions';\nimport { SalesReportView } from './views/salesreport';\nimport { ProspectsView } from './views/prospects';\n\nexport const ROUTES: Routes = [\n  {\n\t\tpath: '',\n\t  redirectTo: 'dashboard',\n\t  pathMatch: 'full'\n\t},\n  {\n    path: 'dashboard',\n    component: DashboardView\n\t},\n\t{\n    path: 'phones/agents',\n    component: PhonesView\n  },\n\t{\n    path: 'phones/queues',\n    component: PhonesView\n  },\n\t{\n    path: 'phones/events',\n    component: PhonesView\n  },\n\t{\n    path: 'phones/log',\n    component: PhonesView\n  },\n\t{\n    path: 'reports/sales',\n    component: SalesReportView\n  },\n\t{\n    path: 'prospects',\n    component: ProspectsView,\n\t\tchildren : [\n\t\t\t{\n\t\t    path: ':id',\n\t\t    component: ProspectDetails\n\t\t  }\n\t\t]\n\t},\n  {\n    path: 'activitylog',\n    component: ActivityLogView\n\t},\n\t{\n    path: 'email/imap-sync',\n    component: ImapSyncView\n  },\n\t{\n    path: 'storage/:bucket',\n    component: StorageView\n  },\n  {\n    path: 'companies',\n    component: CompaniesView,\n\t\tchildren : [\n\t\t\t{\n\t\t    path: ':id',\n\t\t    component: CustomerFullInfo\n\t\t  },\n\t\t  {\n\t\t    path: ':id/:view',\n\t\t    component: CustomerFullInfo\n\t\t  },\n\t\t  {\n\t\t    path: ':id/:view/:reference',\n\t\t    component: CustomerFullInfo\n\t\t  }\n\t\t]\n  },\n\t{\n    path: 'orders',\n    component: OrdersView,\t\t\n  },\n\t{\n    path: 'orders/:id',\n    component: OrdersView,\t\t\n  },\n\t{\n    path: 'invoices',\n    component: InvoicesView,\t\t\n  },\n\t{\n    path: 'invoices/:id',\n    component: InvoicesView,\t\t\n  },\n\t{\n    path: 'subscriptions',\n    component: SubscriptionsView,\t\t\n  },\n\t{\n    path: 'subscriptions/:id',\n    component: SubscriptionsView,\t\t\n  },\n  {\n    path: 'activities/:type',\n    component: ActivitiesView,\n\t\tchildren : [\n\t\t\t{\n\t\t\t\tpath: ':id',\n\t\t\t\tcomponent: ActivityDetails\n\t\t\t},\n\t\t\t{\n\t\t\t\tpath: ':id/:reference',\n\t\t\t\tcomponent: ActivityDetails\n\t\t\t},\t\t\t\n\t\t]\n  },\n  {\n    path: 'support/:type',\n    component: SupportView,\n\t\tchildren : [\n\t\t\t{\n\t\t    path: ':id',\n\t\t    component: SupportDetails\n\t\t  },  \n\t\t\t{\n\t\t    path: ':id/:action',\n\t\t    component: SupportDetails\n\t\t  },\n\t\t\t{\n\t\t    path: ':id/:action/:reference',\n\t\t    component: SupportDetails\n\t\t  }\n\t\t]\n  },  \n  {\n    path: 'layouts',\n    component: LayoutsView\n  },\n  {\n    path: 'domains/:type',\n    component: DomainsView,\n\t\tchildren : [\n\t\t\t{\n\t\t    path: ':domain',\n\t\t    component: DomainInfo\n\t\t  }\n\t\t],\n  },  \n  { path: '**',    component: NoContentComponent },\n];\n\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/app.routes.ts","import { Injectable } from '@angular/core';\n\nexport type InternalStateType = {\n  [key: string]: any\n};\n\n@Injectable()\nexport class AppState {\n  _state: InternalStateType = { };\n\n  constructor() {\n\n  }\n\n  // already return a clone of the current state\n  get state() {\n    return this._state = this._clone(this._state);\n  }\n  // never allow mutation\n  set state(value) {\n    throw new Error('do not mutate the `.state` directly');\n  }\n\n\n  get(prop?: any) {\n    // use our state getter for the clone\n    const state = this.state;\n    return state.hasOwnProperty(prop) ? state[prop] : state;\n  }\n\n  set(prop: string, value: any) {\n    // internally mutate our state\n    return this._state[prop] = value;\n  }\n\n\n  private _clone(object: InternalStateType) {\n    // simple object clone\n    return JSON.parse(JSON.stringify( object ));\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/app.service.ts","import { Component, OnInit, OnDestroy, ViewChild, ElementRef, AfterViewInit } from '@angular/core';\nimport { Router, ActivatedRoute, Params, NavigationStart, NavigationEnd, Event }            from '@angular/router';\nimport { Observable }        from 'rxjs/Observable';\nimport { ModalModule, ModalComponent } from 'ng2-bs4-modal/ng2-bs4-modal';\n\nimport { ActivityService } from '../services/activity';\nimport { HttpService } from '../services/http';\nimport { CompanyService } from '../services/company';\nimport { LocalStorageService } from 'ng2-webstorage';\nimport { ErrorsService } from '../services/errors';\nimport { EventsService } from '../services/event';\n\nimport { Activity }           from '../models/activity';\nimport { DatePicker }           from './datepicker';\nimport { CustomerInfo }           from './customerinfo';\nimport { CreateActivityModal }           from './createactivitymodal';\n\n@Component({\n\tselector : 'activity-list',\n  template: require('./templates/activitylist.html')\n})\n\nexport class ActivityList implements OnInit, OnDestroy, AfterViewInit {\n\n\t@ViewChild('createActivityModal')\n  createActivityModal: CreateActivityModal;\n\n\t@ViewChild('loadingModal')\n  loadingModal: ModalComponent;\n\t\n\tactivities : Activity[];\n\tshowActivityInfo : boolean;\n\tnumSelected;\n\thasSelectedActivities : boolean;\n\ttoday : number;\n\ttomorrow : number;\n\t\n\tcurrentStart;\n\tnumActivitiesPerLoad : Number;\n\thasMore : boolean;\n\ttotalIssues : string;\n\t\n\tfilter : { statusId : Array<number>, notUserId : number, userId : number, phrase : string, endDate : number, startDate : number, orderBy : string };\n\tfilterButtons : any[];\n\tactivityStatus : string[];\n\t\n\tloading : boolean;\n\tuser : { userId : number, scope : string };\n\tavailableUsers : Array<any>;\n\tisMine : boolean;\n\tactivityTypes : any[];\n\tlistType : string;\n\n\tsearchTimeout : any;\n\tfilterThisWeek : boolean;\n\tactivityInfoSubscriber: any;\n\tnavigationSubscriber : any;\n\tactivitySetStatusSubscriber : any;\n\tactivitySetUserSubscriber : any;\n\tactivityCloneSubscriber : any;\n\tactivityCloseSubscriber : any;\n\torderBy : string;\n\n  constructor(\n    private activityService: ActivityService,\n    private companyService: CompanyService,\n    private httpService: HttpService,\n    private router: Router,\n\t\tprivate route: ActivatedRoute,\n\t\tprivate myElement: ElementRef,\n\t\tprivate localStorage: LocalStorageService,\n\t\tprivate errorService : ErrorsService,\n\t\tprivate eventsService : EventsService,\n  ) {\n\t  \n\t\tthis.currentStart = 0;\n\t\tthis.numActivitiesPerLoad = 50;\n\t\tthis.activities = [];\n\t\tthis.filter = { notUserId : 0, statusId : [], userId : 0, phrase : '', endDate : 0, startDate : 0, orderBy : 'endDate' };\n\n\t\tvar d = new Date();\n\n\t\td.setHours(0);\n\t\td.setMinutes(0);\n\t\td.setSeconds(0);\n\t\td.setMilliseconds(0);\n\t  \n\t\tthis.today = Number(d.getTime() / 1000);\n\t\tthis.tomorrow = this.today + (60 * 60 * 24);\n\n\t  this.user = this.httpService.getUser();\n\t\t\t\t\n\t  this.activityStatus = ['',\n\t\t  'Ej startad',\n\t\t  'Startklar',\n\t\t  'Startad',\n\t\t  'Avstannad',\n\t\t  'Lansering',\n\t\t  'Avslutad',\n\t\t  'Väntar',\n\t  ]; \n\n \t  this.availableUsers = [];\n\n\t\tthis.activityTypes = this.activityService.types;\n\t\n\t}\n\n\tngAfterViewInit() {\n\t\tthis.httpService.getAllUsers().then((users) => {\n\t\t\tusers.forEach((u) => {\n\t\t\t\tif(u.userId == 26) return;\n\t\t\t\tthis.availableUsers.push(u);\n\t\t\t})\n\t\t});\n\t}\n\t\n\tngOnInit(): void {\n\t\tthis.currentStart = 0;\n\t\tthis.numActivitiesPerLoad = 50;\n\t\tthis.activityInfoSubscriber = this.eventsService.on('activityinfo-loading', () => {\n\t\t\tthis.openActivity();\n\t\t});\n\t\tthis.activitySetStatusSubscriber = this.eventsService.on('activity-set-status', (data) => {\n\t\t\tthis.setActivityStatus(data.activity, data.statusId, true);\n\t\t});\n\t\tthis.activitySetUserSubscriber = this.eventsService.on('activity-set-user', (data) => {\n\t\t\tthis.setActivityUser(data.activity, data.user, true);\n\t\t});\n\t\tthis.activityCloneSubscriber = this.eventsService.on('activity-clone', (data) => {\n\t\t\tvar aData = JSON.parse(JSON.stringify(data.activity));\n\t\t\taData.startDate = aData.startDate * 1000;\n\t\t\taData.endDate = aData.endDate * 1000;\n\t\t\tthis.createActivity(aData);\n\t\t});\n\t\tthis.activityCloseSubscriber = this.eventsService.on('activity-close', (data) => {\n\t\t\tthis.closeSelectedActivity();\n\t\t});\n\t\tthis.navigationSubscriber = this.router.events.subscribe((event) => { this.navigationEnd(event); });\n  }\n\n\tngOnDestroy() {\n\t\tthis.activityInfoSubscriber.unsubscribe();\n\t\tthis.navigationSubscriber.unsubscribe();\n\t\tthis.activitySetStatusSubscriber.unsubscribe();\n\t\tthis.activitySetUserSubscriber.unsubscribe();\n\t\tthis.activityCloneSubscriber.unsubscribe();\n\t\tthis.activityCloseSubscriber.unsubscribe();\n\t}\n  \n\tnavigationEnd(event) : void {\n\t\tif(event instanceof NavigationEnd) {\t\n\t\t\tthis.showActivityInfo = false;\n\t\t\tvar url = (event as NavigationEnd).url;\n\t\t\tthis.updateFilters().then((info) => {\n\t\t\t\tif(info.typeChanged)\n\t\t\t\t\tthis.reload();\n\t\t\t})\t\t\t\n\t\t}\n\t}\n\n\tgetActivityById(taskId) : Promise<Activity> {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tthis.activities.forEach((a) => {\n\t\t\t\tif(a.taskId == taskId)\n\t\t\t\t\tresolve(a)\n\t\t\t});\n\t\t\treject('no such activity');\n\t\t});\n\t}\n\n\tupdateFilters() : Promise<any> {\n\t\treturn new Promise((resolve) => {\n\t\t\tvar newType = this.route.snapshot.params['type'];\n\t\t\tvar resolveInfo = { typeChanged : (newType != this.listType), oldType : this.listType, newType : newType }\n\t\t\tthis.listType = newType;\n\t\t\tthis.filter = this.localStorage.retrieve('filter-activities-' + this.listType) || { statusId : [2, 3, 7], userId : 0, phrase : '' };\n\t\t\tthis.filterButtons = [\n\t\t\t\t{ name : this.activityStatus[2], id : 2, checked : this.filter.statusId.indexOf(2) !== -1 },\n\t\t\t\t{ name : this.activityStatus[3], id : 3, checked : this.filter.statusId.indexOf(3) !== -1  },\n\t\t\t\t{ name : this.activityStatus[4], id : 4, checked : this.filter.statusId.indexOf(4) !== -1  },\n\t\t\t\t{ name : this.activityStatus[5], id : 5, checked : this.filter.statusId.indexOf(5) !== -1  },\n\t\t\t\t{ name : this.activityStatus[6], id : 6, checked : this.filter.statusId.indexOf(6) !== -1  },\n\t\t\t\t{ name : this.activityStatus[7], id : 7, checked : this.filter.statusId.indexOf(7) !== -1  }\n\t\t\t];\n\t\t\tif(this.listType == \"mine\") {\n\t\t\t\tthis.isMine = true;\n\t\t\t\tthis.filter.userId = this.user.userId;\n\t\t\t\tthis.filter.notUserId = 0;\n\t\t\t\tresolve(resolveInfo);\n\t\t\t} else if(this.listType == \"week\") {\n\t\t\t\tvar maxDaysFromNow = 6 - new Date().getDay()\n\t\t\t\tthis.filter.endDate = new Date(new Date().getTime() + (60 * 60 * 1000 * 24 * maxDaysFromNow)).getTime() / 1000;\n\t\t\t\tthis.filter.notUserId = 30697;\n\t\t\t\tresolve(resolveInfo);\n\t\t\t} else if(this.listType == \"all\") {\n\t\t\t\tthis.isMine = false;\n\t\t\t\tthis.filter.userId = 0;\n\t\t\t\tthis.filter.notUserId = 30697;\n\t\t\t\tresolve(resolveInfo);\n\t\t\t} else if(this.listType == \"inhouse\") {\n\t\t\t\tthis.isMine = false;\n\t\t\t\tthis.filter.userId = 30697;\n\t\t\t\tthis.filter.notUserId = 0;\n\t\t\t\tresolve(resolveInfo);\n\t\t\t}\n\t\t});\n\t}\n\n\topenActivity() {\n\t\tthis.showActivityInfo = true;\n\t}\n\n\tcloseSelectedActivity() {\n\t\tthis.showActivityInfo = false;\n\t\tif(this.route.children.length > 0) {\n\t\t\tvar ref = this.route.children[0].snapshot.params['reference'];\n\t\t\tif(ref) {\n\t\t\t\tvar url = \"/\" + ref.replace(/:/g, \"/\");\n\t\t\t\tthis.router.navigateByUrl(url);\n\t\t\t} else {\n\t\t\t\tthis.router.navigateByUrl(\"/activities/\" + this.listType);\t\n\t\t\t}\n\t\t} else {\n\t\t\tthis.router.navigateByUrl(\"/activities/\" + this.listType);\t\n\t\t}\n\t}\n\n\tcreateActivity(activityData) : void {\n\t\tthis.createActivityModal.open(activityData).then((result) => {\n\t\t\tthis.reload();\n\t\t});\n\t}\n\n\tsetOrder(orderBy) {\n\t\tthis.filter.orderBy = orderBy;\n\t\tthis.reload();\n\t}\n\n  setFilterAssignedTo(user) {\n\t  if(user) {\n\t\t  this.filter.userId = user.userId;\n\t  } else {\n\t\t  delete this.filter.userId;\n\t  }\n\t  this.searchActivities();\n  }  \n  \n\tsetStatus(statusId) {\n\t\tthis.loadingModal.open().then(() => {\n\t\t\tvar promises = [];\n\t\t  this.activities.forEach((a) => {\n\t\t\t  if(a.selected) {\n\t\t\t\t\tpromises.push(this.doSetStatus(a, statusId));\n\t\t\t\t}\n\t\t\t});\n\t\t\tPromise.all(promises).then(() => {\n\t\t\t\tthis.loadingModal.close();\n\t\t\t\tthis.toggleActivityToolbar();\n\t\t\t})\n\t\t})\n\t}\n\t\t\n\tsetActivityStatus(activity, statusId, showModal) {\n\t\tif(showModal) {\n\t\t\tthis.loadingModal.open().then(() => {\n\t\t\t\tthis.doSetStatus(activity, statusId).then(() => {\n\t\t\t\t\tthis.loadingModal.close();\n\t\t\t\t\tthis.toggleActivityToolbar();\n\t\t\t\t}).catch((e) => {\n\t\t\t\t\tthis.loadingModal.close();\n\t\t\t\t\tthis.errorService.broadcast('error', e.errorMessage || e.message);\n\t\t\t\t})\n\t\t\t})\n\t\t} else {\n\t\t\tthis.doSetStatus(activity, statusId).then(() => {\n\t\t\t\tthis.toggleActivityToolbar();\n\t\t\t}).catch((e) => {\n\t\t\t\tthis.errorService.broadcast('error', e.errorMessage || e.message);\n\t\t\t})\n\t\t}\n\t}\n\n\tdoSetStatus(activity, statusId) : Promise<any> {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tthis.activityService.setStatus(activity.taskId, statusId).then((res) => {\n\t\t\t\tactivity.selected = false;\n\t\t\t\tactivity.statusId = statusId;\n\t\t\t\tactivity.hidden = (this.filter.statusId.indexOf(statusId) == -1);\n\t\t\t\tthis.getActivityById(activity.taskId).then((localActivity) => {\n\t\t\t\t\tlocalActivity.hidden = activity.hidden;\n\t\t\t\t\tlocalActivity.selected = false;\n\t\t\t\t\tlocalActivity.statusId = statusId;\n\t\t\t\t\tif(localActivity.hidden) {\n\t\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\t\tthis.activities.splice(this.activities.indexOf(localActivity), 1);\n\t\t\t\t\t\t}, 1000);\n\t\t\t\t\t}\n\t\t\t\t\tresolve();\n\t\t\t\t}).catch((e) => {\n\t\t\t\t\tconsole.log(e);\n\t\t\t\t\tconsole.log('adding');\n\t\t\t\t\tthis.activities.push(activity);\n\t\t\t\t\t//this.sort();\n\t\t\t\t\tresolve();\n\t\t\t\t});\n\t\t\t}).catch((e) => {\n\t\t\t\treject(e);\n\t\t\t})\n\t\t})\n\t}\n\n  assignTo(user) {\n\t\tthis.loadingModal.open().then(() => {\n\t\t\tvar promises = [];\n\t\t  this.activities.forEach((a) => {\t\t\t\t\n\t\t  \tif(a.selected) {\n\t\t\t\t\tpromises.push(this.doSetActivityUser(a, user));\n\t\t\t\t}\n\t  \t});\n\t\t\tPromise.all(promises).then(() => {\n\t\t\t\tthis.loadingModal.close();\n\t\t\t\tthis.toggleActivityToolbar();\n\t\t\t})\n\t\t})\n\t}\n\n\tsetActivityUser(activity, user, showModal) {\n\t\tif(showModal) {\n\t\t\tthis.loadingModal.open().then(() => {\n\t\t\t\tthis.doSetActivityUser(activity, user).then(() => {\n\t\t\t\t\tthis.loadingModal.close();\n\t\t\t\t\tthis.toggleActivityToolbar();\n\t\t\t\t}).catch((e) => {\n\t\t\t\t\tthis.loadingModal.close();\n\t\t\t\t\tthis.errorService.broadcast('error', e.errorMessage || e.message);\n\t\t\t\t})\n\t\t\t})\n\t\t} else {\n\t\t\tthis.doSetActivityUser(activity, user).then(() => {\n\t\t\t\tthis.toggleActivityToolbar();\n\t\t\t}).catch((e) => {\n\t\t\t\tthis.errorService.broadcast('error', e.errorMessage || e.message);\n\t\t\t})\n\t\t}\n\t}\n\n\tdoSetActivityUser(activity, user) : Promise<any> {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tthis.activityService.assignUser(activity.taskId, user.userId).then((res) => {\n\t\t\t\tthis.getActivityById(activity.taskId).then((localActivity) => {\n\t\t\t\t\tactivity.selected = false;\n\t\t\t\t\tactivity.userId = user.userId;\n\t\t\t\t\tactivity.firstName = user.firstName;\n\t\t\t\t\tactivity.lastName = user.lastName;\n\t\t\t\t}).catch((e) => {\n\t\t\t\t\tconsole.log(e);\n\t\t\t\t})\n\t\t\t\tresolve();\n\t\t\t}).catch((e) => {\n\t\t\t\treject(e);\n\t\t\t});\n\t\t});\n\t}\n\t\n\tsetAllSelected() {\n\t  this.activities.forEach((a) => {\n\t  \ta.selected = !a.selected;\n\t  });\n\t  this.toggleActivityToolbar();\n  }\n\n\ttoggleFilterButton(btn) {\n\t\tbtn.checked = !btn.checked;\n\t\tthis.toggleStatusId(btn.id);\n\t}\n\n  toggleStatusId(id) {\n\t  if(this.filter.statusId.indexOf(id) != -1)\n\t  \tthis.filter.statusId.splice(this.filter.statusId.indexOf(id), 1);\n\t  else\n\t  \tthis.filter.statusId.push(id);\n\t\tthis.eventsService.broadcast('activity-filter-changed', { listType : this.listType })\n\t\tif(this.filter.statusId.indexOf(6) == -1 && this.filter.orderBy == 'stopDate') {\n\t\t\tthis.filter.orderBy = 'endDate';\n\t\t}\n\t\tthis.searchActivities();\n  }\n    \n  reload() {\n\t  this.currentStart = 0;\n\t  this.activities = [];\n\t  this.toggleActivityToolbar();\n\t  this.getActivities(this.currentStart, this.numActivitiesPerLoad);\n  }\n    \n  getActivities(start, size) {\n\t  this.loading = true;\n\t\tthis.localStorage.store('filter-activities-' + this.listType, this.filter);\n\t\tif(this.filterThisWeek) {\n\t\t\tvar maxDaysFromNow = 6 - new Date().getDay();\n\t\t\tthis.filter.endDate = new Date(new Date().getTime() + (60 * 60 * 24 * 1000 * maxDaysFromNow)).getTime() / 1000;\n\t\t}\n\t  this.activityService.getActivities(this.filter, start, size).then((activityList) => {\n\t\t  activityList.list.forEach((a) => {\n\t\t\t  this.activities.push(a as Activity);\n\t\t  });\n\t\t  this.totalIssues = activityList.total.toString();\n\t\t  this.hasMore = (activityList.list.length == this.numActivitiesPerLoad);\n\t\t\tthis.loading = false;\n\t\t\t//this.sort();\n\t\t}).catch((e) => {\n\t\t\tthis.errorService.broadcast('error', e.errorMessage || e.message);\n\t\t});\n  }\n\n\tsort() {\n\t\tthis.activities.sort((a, b) => {\n\t\t\tvar asort = parseInt(a.statusId + '' + a.endDate);\n\t\t\tvar bsort = parseInt(b.statusId + '' + b.endDate);\n\t\t\treturn asort - bsort;\n\t\t});\n\t}\n  \n  searchActivities() {\n\t\tif(this.searchTimeout)\n\t\t\tclearTimeout(this.searchTimeout);\n\t\tthis.searchTimeout = setTimeout(() => {\n\t\t\tthis.reload();\n\t\t}, 750);\n  }\n  \n  onScroll () {\n\t  if(!this.hasMore) return;\n\t  this.currentStart = (this.currentStart + this.numActivitiesPerLoad);\n    this.getActivities(this.currentStart, this.numActivitiesPerLoad);\n  }\n\n\ttoggleActivityToolbar() {\n\t  var setSelectedBool = false;\n\t  var numSelected = 0;\n\t  this.activities.forEach((a) => {\n\t  \tif(a.selected) {\n\t\t  \tsetSelectedBool = true;\n\t\t  \tnumSelected++;\n\t\t  }\n\t  });\n\t  this.numSelected = numSelected;\n\t  this.hasSelectedActivities = setSelectedBool;\n  }\n\n\tprevActivity(activity) {\n\t\t/*\n\t  for(var i = 0; i < this.activities.length; i++) {\n\t  \tif(this.activities[i] == this.selectedActivity && i > 0) {\n\t  \t\tthis.selectedActivity = this.activities[i - 1];\n\t  \t\treturn;\n\t  \t}\n\t  }*/\n  }\n\n  nextActivity(activity) {\n\t\t/*\n\t\tfor(var i = 0; i < this.activities.length; i++) {\n\t  \tif(this.activities[i] == this.selectedActivity && i < (this.activities.length - 1)) {\n\t  \t\tthis.selectedActivity = this.activities[i + 1];\n\t  \t\treturn;\n\t  \t}\n\t  }*/\n  }\n\n}\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/components/activitylist.ts","import { Component, Input, Output, EventEmitter, ViewChild, AfterViewInit } from '@angular/core';\nimport { ActivatedRoute } from '@angular/router';\nimport { CompanyService } from '../services/company';\nimport { SupportIssueService } from '../services/support';\nimport { AccountsService } from '../services/accounts';\nimport { HttpService } from '../services/http';\nimport { ActivityService } from '../services/activity';\nimport { ModalModule, ModalComponent } from 'ng2-bs4-modal/ng2-bs4-modal';\n\nimport { Company }           from '../models/company';\nimport { SupportIssue }           from '../models/supportissue';\nimport { DomainInfo }\tfrom './domaininfo';\nimport { InvoiceInfo }\tfrom './invoiceinfo';\n\n@Component({\n  selector: 'activity-log',\n  template: require('./templates/activitylog.html')\n})\n\nexport class ActivityLog implements AfterViewInit { \n\t\n\t@ViewChild('savingModal')\n  savingModal: ModalComponent;\n\n\t@ViewChild('newCorrModal')\n  newCorrModal: ModalComponent;\n\t\n\tprivate filter : {  userId : number, companyId : number, accountId : number };\n\n\tprivate history : any[];\n\tprivate _loadingCompanies : boolean;\n\tprivate _loadingAccounts : boolean;\n\tprivate _loading : boolean;\n\tprivate filteredHistory : any[];\n\tprivate _showSupport : boolean;\n\tprivate _showActivities : boolean;\n\tprivate _showEvents : boolean;\n\tprivate searchKeyword : string;\n\tprivate accountsMap : any;\n\tprivate newCommunicationText : string;\n\tprivate _autoRefresh : boolean;\n\tprivate _returnPath ; string;\n\tprivate availableUsers : Array<any>;\n\tprivate companies : any[];\n\tprivate accounts : any[];\n\tprivate companyMap : any;\n\n\tconstructor(\n    private companyService: CompanyService,\n    private supportIssueService: SupportIssueService,\n    private accountsService: AccountsService,\n    private activityService: ActivityService,\n    private httpService: HttpService,\n\t\tprivate route: ActivatedRoute\n  ) {\n\t\tthis._showSupport = this._showActivities = this._showEvents = true;\n\t\tthis.accountsMap = {};\n\t\tthis._returnPath = this.route.parent ? (this.route.parent.snapshot.url[0] + ':')  : '';\n\t\tthis.route.snapshot.url.forEach((u, i) => {\n\t\t\tthis._returnPath += (i > 0 ? ':' : '') + u;\n\t\t})\n \t  this.availableUsers = [];\n\t\tthis.companies = [];\n\t\tthis.accounts = [];\n\t\tthis.filter = {  userId : 0, companyId : 0, accountId : 0 };\n\t}\n\n\tngAfterViewInit() {\n\t\tthis.httpService.getAllUsers().then((users) => {\n\t\t\tusers.forEach((u) => {\n\t\t\t\tif(u.userId == 26) return;\n\t\t\t\tthis.availableUsers.push(u);\n\t\t\t})\n\t\t});\n\t}\n\t\n  setFilterUser(user) {\n\t  if(user) {\n\t\t  this.filter.userId = user.userId;\n\t\t\tthis.filter.companyId = 0;\n\t  } else {\n\t\t  this.filter.userId = 0;\n\t  }\n\t  this.loadCompanies().then(() => {\n\t\t\tthis.refresh();\n\t\t})\n  } \n\n  setFilterCompany(company) {\n\t  if(company) {\n\t\t  this.filter.companyId = company.companyId;\n\t\t  this.loadAccounts().then(() => {\n\t\t  \tthis.refresh();\n\t\t\t})\n\t  } else {\n\t\t  this.filter.companyId = 0;\n\t\t\tthis.loadCompanies().then(() => {\n\t\t\t\tthis.refresh();\n\t\t\t})\n\t  }\n  } \n\n\tsetFilterAccount(account) {\n\t  if(account) {\n\t\t  this.accounts.forEach((account) => {\n\t\t\t\taccount.includeInHistory = false;\n\t\t\t})\n\t\t\taccount.includeInHistory = true;\n\t\t\tthis.filter.accountId = account.accountId;\n\t  } else {\n\t\t  this.accounts.forEach((account) => {\n\t\t\t\taccount.includeInHistory = true;\n\t\t\t})\n\t\t\tthis.filter.accountId = 0;\n\t  }\n\t\tthis.searchHistory();\n  } \n\n\tprivate loadCompanies() {\n\t\treturn new Promise((done) => {\n\t\t\tthis._loadingCompanies = true;\n\t\t\tthis.companies = [];\n\t\t\tthis.companyMap = {}\n\t\t\tthis.accounts = [];\n\t\t\tthis.accountsMap = {};\n\t\t\tthis.activityService.getUserActivity(this.filter.userId).then((rows) => {\n\t\t\t\tvar promises = [];\n\t\t\t\trows.forEach((row) => {\n\t\t\t\t\tthis.companies.push(row);\n\t\t\t\t\tthis.companyMap[row.companyId] = row;\n\t\t\t\t\tif(this.companies.length <= 5) {\n\t\t\t\t\t\tpromises.push(new Promise((dd) => {\n\t\t\t\t\t\t\tthis.companyService.getById(row.companyId).then((company) => {\n\t\t\t\t\t\t\t\trow.accounts = company.accounts;\n\t\t\t\t\t\t\t\tcompany.accounts.forEach((account) => {\n\t\t\t\t\t\t\t\t\taccount.includeInHistory = true;\n\t\t\t\t\t\t\t\t\tthis.accountsMap[account.accountId] = account;\n\t\t\t\t\t\t\t\t\tthis.accounts.push(account);\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\tdd();\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}))\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tPromise.all(promises).then(() => {\n\t\t\t\t\tthis._loadingCompanies = false;\n\t\t\t\t\tdone();\n\t\t\t\t})\n\t\t\t})\n\t\t});\n\t}\n\n\tprivate loadAccounts() {\n\t\treturn new Promise((done) => {\n\t\t\tthis._loadingAccounts = true;\n\t\t\tthis.accounts = [];\n\t\t\tthis.accountsMap = {};\n\t\t\tthis.companyService.getById(this.filter.companyId).then((company) => {\n\t\t\t\tcompany.accounts.forEach((account) => {\n\t\t\t\t\taccount.includeInHistory = true;\n\t\t\t\t\tthis.accountsMap[account.accountId] = account;\n\t\t\t\t\tthis.accounts.push(account);\n\t\t\t\t})\n\t\t\t\tdone();\n\t\t\t})\n\t\t})\n\t}\n\n\t@Input()\n\tget showSupport() {\n\t\treturn this._showSupport;\n\t}\n\n\tset showSupport(val: boolean) {\n\t\tthis._showSupport = val;\n\t}\n\n\t@Input()\n\tget showActivities() {\n\t\treturn this._showActivities;\n\t}\n\n\tset showActivities(val: boolean) {\n\t\tthis._showActivities = val;\n\t}\n\n\t@Input()\n\tget showEvents() {\n\t\treturn this._showEvents;\n\t}\n\n\tset showEvents(val: boolean) {\n\t\tthis._showEvents = val;\n\t}\n\n\t@Input()\n\tget loading() : boolean {\n\t\treturn this._loading;\n\t}\n\n\t@Input()\n\tget length() : number {\n\t\treturn this.history ? this.history.length : 0;\n\t}\n\n\tpublic refresh() {\n\t\tthis.loadHistory();\n\t}\n\n\tloadHistory(): void {\n\t\tthis.history = [];\n\t\tthis.filteredHistory = [];\n\t\tvar companiesToGet = [];\n\t\tvar promises = [];\n\t\tthis._loading = true;\n\t\tvar numCompaniesLoaded = 0;\n\t\tthis.companies.forEach((company) => {\n\t\t\tif((this.filter.companyId == 0 || this.filter.companyId == company.companyId) && numCompaniesLoaded < 5) {\n\t\t\t\tnumCompaniesLoaded++;\n\t\t\t\tpromises.push(new Promise((supportDone) => {\n\t\t\t\t\tthis.supportIssueService.getAllIssues({ companyId : company.companyId }, 0, 100).then((supportList) => {\n\t\t\t\t\t\tsupportList.issues.forEach((i) => {\n\t\t\t\t\t\t\ti.cType = 'Support';\n\t\t\t\t\t\t\tthis.history.push(i);\n\t\t\t\t\t\t\tif(i._source.replies) {\n\t\t\t\t\t\t\t\ti._source.replies.forEach((r) => {\n\t\t\t\t\t\t\t\t\tr.isReply = r;\n\t\t\t\t\t\t\t\t\tr._id = i._id;\n\t\t\t\t\t\t\t\t\tr.inReplyTo = i;\n\t\t\t\t\t\t\t\t\tr.cType = 'Support';\n\t\t\t\t\t\t\t\t\tthis.history.push(r);\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t\tsupportDone();\n\t\t\t\t\t});\n\t\t\t\t}))\n\t\t\t\tpromises.push(new Promise((supportHistoryDone) => {\n\t\t\t\t\tthis.companyService.getSupportHistory(company.companyId).then((history) => {\n\t\t\t\t\t\thistory.support.forEach((s) => {\n\t\t\t\t\t\t\ts.cType = 'Support';\n\t\t\t\t\t\t\tthis.history.push(s);\n\t\t\t\t\t\t});\n\t\t\t\t\t\thistory.communications.forEach((c) => {\n\t\t\t\t\t\t\tif(c.typeId != 20) {\n\t\t\t\t\t\t\t\tthis.history.push(c);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t\tsupportHistoryDone();\n\t\t\t\t\t});\n\t\t\t\t}));\n\t\t\t\tif(company.accounts) {\n\t\t\t\t\tcompany.accounts.forEach((account) => {\n\t\t\t\t\t\tpromises.push(new Promise((accountDone) => {\n\t\t\t\t\t\t\tthis.activityService.getActivities({ accountId : account.accountId }, 0, 500).then((activityList) => {\n\t\t\t\t\t\t\t\tactivityList.list.forEach((a) => {\n\t\t\t\t\t\t\t\t\ta.cType = 'Aktivitet';\n\t\t\t\t\t\t\t\t\tthis.history.push(a);\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\taccountDone();\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}));\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tPromise.all(promises).then(() => {\n\t\t\tthis.history.sort((a : any, b : any) => {\n\t\t\t\tvar d1 = a.startDate || (a.createdDate || (a._source ? (new Date(a._source.date).getTime() / 1000) : a.date));\n\t\t\t\tvar d2 = b.startDate || (b.createdDate || (b._source ? (new Date(b._source.date).getTime() / 1000) : b.date));\n\t\t\t\treturn d2 - d1;\n\t\t\t});\n\t\t\tthis.searchHistory();\n\t\t\tthis._loading = false;\n\t\t});\n  }\n\n\tsearchHistory() : void {\n\t\tthis.filteredHistory = [];\n\t\tvar phrase = (this.searchKeyword || '').toLowerCase();\n\t\tthis.history.forEach((h) => {\n\t\t\tif(!this._showSupport && (h._source || h.supportId || h.isReply)) return;\n\t\t\tif(!this._showActivities && (h.taskId && !h.communicationId)) return;\n\t\t\tif(!this._showEvents && h.communicationId) return;\n\t\t\tif(h._source) {\n\t\t\t\tif(phrase != '' && \n\t\t\t\t\t(h._source.headers.subject || '').toLowerCase().indexOf(phrase) == -1 &&\n\t\t\t\t\t((h._source.html || h._source.text) || '').toLowerCase().indexOf(phrase) == -1\n\t\t\t\t) return;\n\t\t\t\tif(this.filter.accountId > 0) return;\n\t\t\t\tif(!h._source.user) return;\n\t\t\t\tif(h._source.user.userId != this.filter.userId) return;\n\t\t\t\th.companyName = h._source.company.name;\n\t\t\t\tthis.filteredHistory.push(h);\n\t\t\t}\n\t\t\tif(h.isReply) {\n\t\t\t\tif(phrase != '' &&\n\t\t\t\t\th.subject.toLowerCase().indexOf(phrase) == -1 &&\n\t\t\t\t\th.content.toLowerCase().indexOf(phrase) == -1 &&\n\t\t\t\t\th.from.email.toLowerCase().indexOf(phrase) == -1\n\t\t\t\t) return;\n\t\t\t\tif(this.filter.accountId > 0) return;\n\t\t\t\tif(h.from.userId != this.filter.userId) return;\n\t\t\t\th.companyName = h.inReplyTo._source.company.name;\n\t\t\t\tthis.filteredHistory.push(h);\n\t\t\t}\n\t\t\tif(h.communicationId) {\n\t\t\t\tif(this.accountsMap[h.id] && !this.accountsMap[h.id].includeInHistory) return;\n\t\t\t\tif(h.userId != this.filter.userId) return;\n\t\t\t\tif(phrase != '' && (h.note || '').toLowerCase().indexOf(phrase) == -1) return;\n\t\t\t\th.companyName = this.companyMap[h.companyId].name;\n\t\t\t\tif(this.filter.accountId > 0 && h.id != this.filter.accountId) return;\n\t\t\t\tif(h.id && this.accountsMap[h.id])\n\t\t\t\t\th.prefix = '- #' + this.accountsMap[h.id].prefix;\n\t\t\t\tthis.filteredHistory.push(h);\n\t\t\t}\n\t\t\tif(h.supportId) {\n\t\t\t\tif(phrase != '' &&\n\t\t\t\t\t(h.subject || '').toLowerCase().indexOf(phrase) == -1 &&\n\t\t\t\t\t(h.body || '').toLowerCase().indexOf(phrase) == -1\n\t\t\t\t) return;\n\t\t\t\tif(this.filter.accountId > 0) return;\n\t\t\t\th.companyName = this.companyMap[h.companyId].name;\n\t\t\t\tthis.filteredHistory.push(h);\n\t\t\t}\n\t\t\tif(h.taskId && !h.communicationId) {\n\t\t\t\tif(!this.accountsMap[h.accountId]) return;\n\t\t\t\tif(this.accountsMap[h.accountId] && !this.accountsMap[h.accountId].includeInHistory) return;\n\t\t\t\tif(phrase != '' &&\n\t\t\t\t\t(h.description || '').toLowerCase().indexOf(phrase) == -1\n\t\t\t\t) return;\n\t\t\t\tif(h.userId != this.filter.userId) return;\n\t\t\t\th.companyName = this.companyMap[h.companyId].name;\n\t\t\t\th.prefix = '- #' + this.accountsMap[h.accountId].prefix;\n\t\t\t\tthis.filteredHistory.push(h);\n\t\t\t}\t\t\t\n\t\t});\n\t\tconsole.log(this.filteredHistory);\n\t\tvar lastDateStr = '';\n\t\tthis.filteredHistory.forEach((h) => {\n\t\t\tvar date = h.startDate || (h.createdDate || (h._source ? h._source.date : h.date));\n\t\t\tvar _date;\n\t\t\tif(typeof(date) == \"number\" || parseInt(date) > 1400000000)\n\t\t    _date = new Date(Number(date) * 1000);\n\t\t\telse\n\t  \t  _date = new Date(date);\n\t\t\tvar dateStr = _date.getFullYear() + '-' + _date.getMonth() + '-' + _date.getDate();\n\t\t\tif(dateStr != lastDateStr) {\n\t\t\t\tlastDateStr = dateStr;\n\t\t\t\th.hasDivider = true;\n\t\t\t\th.dividerDate = date;\n\t\t\t}\n\t\t});\n\t}\n\n}\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/components/activitylog.ts","import { Component, OnInit, ViewChild, ElementRef, OnDestroy } from '@angular/core';\nimport { Router, ActivatedRoute, Params, NavigationEnd}            from '@angular/router';\nimport { Observable }        from 'rxjs/Observable';\nimport { ModalModule, ModalComponent } from 'ng2-bs4-modal/ng2-bs4-modal';\n\nimport { CompanyService } from '../services/company';\nimport { HttpService } from '../services/http';\nimport { LocalStorageService } from 'ng2-webstorage';\nimport { EventsService } from '../services/event';\n\nimport { CustomerFullInfo } from './customerfullinfo';\n\nimport { Company }           from '../models/company';\n\n@Component({\n\tselector : 'company-list',\n  template: require('./templates/companylist.html')\n})\n\n\nexport class CompanyList implements OnInit, OnDestroy {\n\n\t//@ViewChild('companyInfo')\n  //companyInfo: CustomerFullInfo;\n\n  companies : Company[];\n  totalCompanies : number;\n  loading : boolean;\n  numCompaniesPerLoad : number;\n  currentStart : number;\n  hasMore : boolean;\n  numSelected : number;\n  hasSelectedCompanies : boolean;\n  refreshTimer : any;\n  filter : { phrase : string, statusId : number[], needsToHaveActiveSubscription : boolean, accountStatusId : number };\n  filterButtons : any[];\n\tshowCompanyInfo : boolean;\n  path : string;\n  show : string;\n\tcompanyInfoSubscriber : any;\n\n\taccountStatuses : any[];\n\t_accountStatuses = {\n\t\t'-1' : 'Alla',\n\t\t0 : 'Inväntar material',\n\t\t1 : 'Material väntar godkännande',\n\t\t5 : 'Material ej godkänt',\n\t\t4 : 'Material godkänt',\n\t\t6 : 'Förslag under produktion',\n\t\t2 : 'Förslag skapat',\n\t\t8 : 'Förslag ej godkänt',\n\t\t7 : 'Förslag godkänt',\n\t\t9 : 'Hemsida under produktion',\n\t\t10 : 'Hemsida klar för godkännande',\n\t\t11 : 'Hemsida ej godkänd',\n\t\t3 : 'Hemsida godkänd',\n\t\t12 : 'Uppsagd',\n\t\t13 : 'Hemsida publicerad'\n\t}\n\n  constructor(\n    private companyService: CompanyService,\n\t\tprivate localStorage: LocalStorageService,\n    public router: Router,\n\t\tpublic route: ActivatedRoute,\n\t\tprivate eventsService : EventsService\n  ) {\n\t\tthis.path = this.route.snapshot.url[0].path;\n\t\tthis.companies = [];\n\t\tthis.filter = this.localStorage.retrieve('filter-' + this.path) || { phrase : '', statusId : [0, 1, 2, 3], needsToHaveActiveSubscription : false, accountStatusId : -1 };\n\t\tthis.currentStart = 0;\n\t\tthis.numCompaniesPerLoad = 100;\n\t\tthis.filterButtons = [\n\t\t\t{ checked : true, name : 'Ingen', id : 0},\n\t\t\t{ checked : true, name : 'A-kund', id : 1},\n\t\t\t{ checked : true, name : 'B-kund', id : 2},\n\t\t\t{ checked : true, name : 'C-kund', id : 3}\n\t\t]\n\t\tif(typeof(this.filter.accountStatusId) == \"undefined\") \n\t\t\tthis.filter.accountStatusId = -1;\n\t\tthis.accountStatuses = [];\n\t\tthis.accountStatuses.push({ statusId : -1, name : 'Alla' });\n\t\tthis.accountStatuses.push({ statusId : 0, name : this._accountStatuses[0] });\n\t\tthis.accountStatuses.push({ statusId : 1, name : this._accountStatuses[1] });\n\t\tthis.accountStatuses.push({ statusId : 5, name : this._accountStatuses[5] });\n\t\tthis.accountStatuses.push({ statusId : 4, name : this._accountStatuses[4] });\n\t\tthis.accountStatuses.push({ statusId : 6, name : this._accountStatuses[6] });\n\t\tthis.accountStatuses.push({ statusId : 2, name : this._accountStatuses[2] });\n\t\tthis.accountStatuses.push({ statusId : 8, name : this._accountStatuses[8] });\n\t\tthis.accountStatuses.push({ statusId : 7, name : this._accountStatuses[7] });\n\t\tthis.accountStatuses.push({ statusId : 9, name : this._accountStatuses[9] });\n\t\tthis.accountStatuses.push({ statusId : 10, name : this._accountStatuses[10] });\n\t\tthis.accountStatuses.push({ statusId : 11, name : this._accountStatuses[11] });\n\t\tthis.accountStatuses.push({ statusId : 3, name : this._accountStatuses[3] });\n\t\tthis.accountStatuses.push({ statusId : 13, name : this._accountStatuses[13] });\n\t\tthis.accountStatuses.push({ statusId : 12, name : this._accountStatuses[12] });\n  }\n\n\tngOnInit() : void {\n\t\tif(this.route.snapshot.children.length > 0) {\n\t\t\tif(this.route.snapshot.children[0].params['id']) {\n\t\t\t\tconsole.log('load just this one company');\n\t\t\t}\n\t\t} else {\n\t\t\tthis.reload();\n\t\t}\n\t\tthis.companyInfoSubscriber = this.eventsService.on('companyinfo-loading', () => {\n\t\t\tthis.openCompany();\n\t\t});\n\t}\n\n\tngOnDestroy() : void {\n\t\tthis.companyInfoSubscriber.unsubscribe();\n\t}\n\t\n\topenCompany() {\t\t\n\t\tthis.showCompanyInfo = true;\n\t}\n\n\tcloseSelectedCompany() {\n\t\tthis.showCompanyInfo = false;\n\t\tif(this.route.children.length > 0) {\n\t\t\tvar ref = this.route.children[0].snapshot.params['reference'];\n\t\t\tif(ref) {\n\t\t\t\tvar url = \"/\" + ref.replace(/:/g, \"/\");\n\t\t\t\tthis.router.navigateByUrl(url);\n\t\t\t} else {\n\t\t\t\tthis.router.navigateByUrl(\"/companies\");\t\n\t\t\t}\n\t\t} else {\n\t\t\tthis.router.navigateByUrl(\"/companies\");\n\t\t}\n\t}\n\n  toggleFilterButton(btn) {\n    btn.checked = !btn.checked;\n    this.filter.statusId = [];\n    this.filterButtons.forEach((b) => {\n      if(b.checked)\n        this.filter.statusId.push(b.id);\n    })\n    this.searchCompanies();\n  }\n\n\tsetStatusFilter(accountStatusId) {\n\t\tconsole.log(accountStatusId);\n\t\tthis.filter.accountStatusId = accountStatusId;\n\t\tthis.reload();\n\t}\n\n  searchCompanies() {\n\t\tif(this.refreshTimer)\n\t  \tclearTimeout(this.refreshTimer);\n\t  this.refreshTimer = setTimeout(() => {\n\t\t  this.reload();\n\t  }, 750);\n\t}\n\n  reload() : void {\n    this.currentStart = 0;\n    this.companies = [];\n    this.getCompanies(this.currentStart, this.numCompaniesPerLoad);\n  }\n\n  getCompanies(start, size) {\n    if(this.loading) return;\n    this.loading = true;\n\t\tthis.localStorage.store('filter-' + this.path, this.filter);\n    this.companyService.getCompanies(this.filter, start, size).then((companyList) => {\n    this.hasMore = (companyList.list.length == this.numCompaniesPerLoad);\n      companyList.list.forEach((c) => {\n        this.companies.push(c);\n      })\n      this.totalCompanies = companyList.total;\n      this.loading = false;\n    })\n  }\n\n  toggleCompanyToolbar() {\n\t  var setSelectedBool = false;\n\t  var numSelected = 0;\n\t  this.companies.forEach((c) => {\n\t  \tif(c.selected) {\n\t\t  \tsetSelectedBool = true;\n\t\t  \tnumSelected++;\n\t\t  }\n\t  });\n\t  this.numSelected = numSelected;\n\t  this.hasSelectedCompanies = setSelectedBool;\n  }\n\n  prevCompany(company) {\n\t\t/*\n\t  for(var i = 0; i < this.companies.length; i++) {\n\t  \tif(this.companies[i] == this.selectedCompany && i > 0) {\n\t\t\t\tthis.selectCompany(this.companies[i - 1]);\n\t  \t\treturn;\n\t  \t}\n\t  }*/\n  }\n\n  nextCompany(company) {\n\t\t/*\n\t\tfor(var i = 0; i < this.companies.length; i++) {\n\t  \tif(this.companies[i] == this.selectedCompany && i < (this.companies.length - 1)) {\n\t\t\t\tthis.selectCompany(this.companies[i + 1]);\n\t  \t\treturn;\n\t  \t}\n\t  }*/\n  }\n\n  setAllSelected() {\n\t  this.companies.forEach((c) => {\n\t  \tc.selected = !c.selected;\n\t  });\n\t  this.toggleCompanyToolbar();\n  }\n\n  onScroll () {\n\t  if(!this.hasMore) return;\n\t  this.currentStart = (this.currentStart + this.numCompaniesPerLoad);\n    this.getCompanies(this.currentStart, this.numCompaniesPerLoad);\n  }\n\n}\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/components/companylist.ts","import { Component, OnInit, OnDestroy, ViewChild, ElementRef } from '@angular/core';\nimport { Router, ActivatedRoute, Params, NavigationEnd }            from '@angular/router';\nimport { Observable }        from 'rxjs/Observable';\nimport { ModalModule, ModalComponent } from 'ng2-bs4-modal/ng2-bs4-modal';\n\nimport { DomainService } from '../services/domain';\nimport { LocalStorageService } from 'ng2-webstorage';\nimport { EventsService } from '../services/event';\nimport { ErrorsService } from '../services/errors';\n\nimport { Company }           from '../models/company';\nimport { SupportIssue }           from '../models/supportissue';\nimport { Domain }           from '../models/domain';\n\nimport { AccountInfoModal }\tfrom './accountinfo';\nimport { MxInfo }\tfrom './mxinfo';\n\nfunction _window() : any {\n   // return the global native browser window object\n   return window;\n}\n\n@Component({\n\tselector : 'domain-list',\n  template: require('./templates/domainlist.html')\n})\n\nexport class DomainList implements OnInit, OnDestroy {\n\n\t@ViewChild('whoisModal')\n\twhoisModal : ModalComponent;\n\n  @ViewChild('searchFilter') searchFilter;\n\n\t@ViewChild('accountInfoModal')\n  accountInfoModal: AccountInfoModal;\n\n\tdomains : Domain[];\n  filter : { statusId : Array<number>, domain : string, archivedOnly : boolean, expiresOnly : boolean, expiredOnly : boolean };\n  domainStatus : any[];\n  filterButtons : any[];\n\n  currentStart;\n\tnumDomainsPerLoad : Number;\n\thasMore : boolean;\n\ttotalDomains : string;\n  loading : boolean;\n\tsearchTimer : any;\n\twhoisTimer : any;\n\twhois : { domain : string, data : any };\n\tloadingWhois : boolean;\n\tshowDomainInfo : boolean;\n\tnavigationSubscriber : any;\n\tlistType : string;\n\t\n\t_accountStatuses = {\n\t\t0 : 'Inväntar material',\n\t\t1 : 'Material väntar godkännande',\n\t\t5 : 'Material ej godkänt',\n\t\t4 : 'Material godkänt',\n\t\t6 : 'Förslag under produktion',\n\t\t2 : 'Förslag skapat',\n\t\t8 : 'Förslag ej godkänt',\n\t\t7 : 'Förslag godkänt',\n\t\t9 : 'Hemsida under produktion',\n\t\t10 : 'Hemsida klar för godkännande',\n\t\t11 : 'Hemsida ej godkänd',\n\t\t3 : 'Hemsida godkänd',\n\t\t12 : 'Uppsagd',\n\t\t13 : 'Hemsida publicerad'\n\t}\n\n  constructor(\n    private domainService: DomainService,\n    private localStorage: LocalStorageService,\n    private router: Router,\n\t\tprivate route: ActivatedRoute,\n\t\tprivate eventsService : EventsService,\n\t\tprivate errorsService: ErrorsService,\n  ) {\n\t\t\n\t\tthis.whois = { domain: '', data : '' }\n\n\t\tthis.currentStart = 0;\n\t\tthis.numDomainsPerLoad = 200;\n\t\t\n    this.domains = [];\n\t\t\n \t  this.filter = { statusId : [0, 1, 2, 3, 5], domain : '', archivedOnly : false, expiresOnly : false, expiredOnly : false };\n \n    this.domainStatus = [\n\t\t  'Väntar',\n\t\t  'Ompekning',\n\t\t  'Skickat info',\n\t\t  'Pågående',\n\t\t  'Klar',\n\t\t  'Nyregistrering',\n\t\t  'Uppsagd',\n\t\t  'Inaktiv'\n\t  ]; \n\n\t\tthis.eventsService.on('domain:updated', (data) => {\n\t\t\tthis.getDomainByName(data.domain.domain).then((domain) => {\n\t\t\t\tdomain.statusId = data.domain.statusId;\n\t\t\t\tdomain.mail = data.domain.mail;\n\t\t\t\tdomain.updateDate = data.domain.updateDate;\n\t\t\t});\n\t\t})\n\n\t\tthis.eventsService.on('domain:autorenew:updated', (data) => {\n\t\t\tthis.getDomainByName(data.domain.domain).then((domain) => {\n\t\t\t\tif(domain.nameISPInfo) {\n\t\t\t\t\tdomain.nameISPInfo.autorenew = data.autorenew;\n\t\t\t\t}\n\t\t\t})\n\t\t})\n\t\t \n  }\n\n\tngOnInit() {\n\t\tthis.navigationSubscriber = this.router.events.subscribe((event) => { this.navigationEnd(event); });\n\t}\n\n\tngOnDestroy() {\n\t\tthis.navigationSubscriber.unsubscribe();\n\t}\n\n\tnavigationEnd(event) {\n\t\tif(event instanceof NavigationEnd) {\t\n\t\t\tvar url = (event as NavigationEnd).url;\n\t\t\tthis.updateFilters().then((info) => {\n\t\t\t\tif(info.typeChanged) {\n\t\t\t\t\tthis.reload();\n\t\t\t\t}\n\t\t\t})\t\t\t\n\t\t}\n\t}\n\n\tgetDomainByName(name : string) : Promise<any> {\n\t\treturn new Promise((resolve) => {\n\t\t\tthis.domains.forEach((d) => {\n\t\t\t\tif(d.domain == name)\n\t\t\t\t\tresolve(d);\n\t\t\t})\n\t\t})\n\t}\n\n\tupdateFilters() : Promise<any> {\n\t\treturn new Promise((resolve) => {\n\t\t\tvar newType = this.route.snapshot.params['type'];\n\t\t\tvar resolveInfo = { typeChanged : (newType != this.listType), oldType : this.listType, newType : newType }\n\t\t\tthis.listType = newType;\t\t\t\n\t\t  this.filter = this.localStorage.retrieve('filter-domains-' + this.listType) || { statusId : [0, 1, 2, 3, 5], domain : '', archivedOnly : false, expiresOnly : false, expiredOnly : false }; \n\t\t\tthis.filter.domain = '';\t\n\t\t\tthis.filterButtons = [\n\t\t\t  { name : this.domainStatus[0], id : 0, checked : this.filter.statusId.indexOf(0) !== -1 },\n\t\t\t  { name : this.domainStatus[1], id : 1, checked : this.filter.statusId.indexOf(1) !== -1 },\n\t\t\t  { name : this.domainStatus[2], id : 2, checked : this.filter.statusId.indexOf(2) !== -1 },\n\t\t\t  { name : this.domainStatus[3], id : 3, checked : this.filter.statusId.indexOf(3) !== -1 },\n\t\t\t  { name : this.domainStatus[4], id : 4, checked : this.filter.statusId.indexOf(4) !== -1 },\n\t\t\t  { name : this.domainStatus[5], id : 5, checked : this.filter.statusId.indexOf(5) !== -1 },\n\t\t\t  { name : this.domainStatus[6], id : 6, checked : this.filter.statusId.indexOf(6) !== -1 },\n\t\t\t  { name : this.domainStatus[7], id : 7, checked : this.filter.statusId.indexOf(7) !== -1 }\n\t\t\t ];\n\t\t\tthis.filter.archivedOnly = this.listType == 'archived';\n\t\t\tthis.filter.expiresOnly = this.listType == 'expires';\n\t\t\tthis.filter.expiredOnly = this.listType == 'expired';\n\t\t\tresolve(resolveInfo);\n\t\t});\n\t}\n\n\tshowAccountInfo(accountId) {\n\t\tthis.accountInfoModal.open(accountId);\n\t}\n\n\tshowWhois() {\n\t\tthis.whoisModal.open()\n\t}\n\n\treloadWhois() {\n\t\tclearInterval(this.whoisTimer);\n\t\tthis.whoisTimer = setTimeout(() => {\n\t\t\tthis.loadingWhois = true;\n\t\t\tthis.domainService.whois(this.whois.domain).then((whois) => {\n\t\t\t\tthis.whois.data = whois.content;\n\t\t\t\tthis.loadingWhois = false;\n\t\t\t});\n\t\t}, 750);\n\t}\n\n\ttoggleFilterButton(btn) {\n\t\tbtn.checked = !btn.checked;\n\t\tthis.toggleStatusId(btn.id);\n\t}\n\n\ttoggleStatusId(id) {\n\t  if(this.filter.statusId.indexOf(id) != -1)\n\t  \tthis.filter.statusId.splice(this.filter.statusId.indexOf(id), 1);\n\t  else\n\t  \tthis.filter.statusId.push(id);\n\t\tthis.search();\n  }\n\n  getDomains(start, size) {\n    this.loading = true;\n\t\tthis.localStorage.store('filter-domains-' + this.listType, this.filter);\n\t  this.domainService.getDomains(this.filter, start, size).then((domainList) => {\n\t\t\tconsole.log(domainList);\n\t\t  domainList.list.forEach((d) => {\n\t\t\t  this.domains.push(d as Domain);\n\t\t  });\n\t\t  this.totalDomains = domainList.total.toString();\n\t\t  this.hasMore = ((this.domains.length + domainList.list.length) < domainList.total);\n\t\t\tthis.loading = false;\n\t  }).catch((e) => {\n\t\t\tconsole.log(e);\n\t\t\tthis.loading = false;\n\t\t\tthis.errorsService.broadcast('error', e.errorMessage || e.error );\n\t\t});\n  }\n\n\treload() {\n\t\tthis.domains = [];\n\t\tthis.loading = true;\n\t\tvar searchFilterValue = this.searchFilter.nativeElement.value.toLowerCase();\n\t\tthis.filter.domain = searchFilterValue;\n\t\tthis.currentStart = 0;\n\t\tthis.numDomainsPerLoad = 200;\n\t\tthis.getDomains(this.currentStart, this.numDomainsPerLoad);\n\t}\n\n\tsearch() {\n\t\tif(this.searchTimer)\n\t\t\tclearTimeout(this.searchTimer);\n\t\tthis.searchTimer = setTimeout(() => {\n\t\t\tthis.reload();\n\t\t}, 750);\n\t}\n\n\ttoggleDomainToolbar() {\n\t\t\n\t}\n\n  onScroll () {\n\t  if(!this.hasMore) return;\n\t  this.currentStart = (this.currentStart + this.numDomainsPerLoad);\n    this.getDomains(this.currentStart, this.numDomainsPerLoad);\n  }\n\n}\n\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/components/domainlist.ts","import { Component, ChangeDetectorRef } from '@angular/core';\n\nimport { HttpService } from '../services/http';\nimport { EventsService } from '../services/event';\n\nimport { Router, ActivatedRoute, Params }            from '@angular/router';\n\nfunction _window() : any {\n   // return the global native browser window object\n   return window;\n}\n\n@Component({\n\tselector : 'owe-header',\n  template: require('./templates/header.html')\n})\n\nexport class Header  {\n\n  notificationList : string[];\n  user : any;\n\n  constructor(\n    private changeRef : ChangeDetectorRef,\n    private httpService : HttpService,\n    private eventsService : EventsService,\n\t\t\n    private router: Router\n  ) {\n    this.notificationList = [];\n    this.user = this.httpService.getUser();\n    _window().onNotification = (channel, message) => { this.onMessage(channel, message); }\n  }\n\n  onMessage(channel : string, message : string) : void {\n    try {  \n      var msg = JSON.parse(message);\n      if(channel == 'storage') {\n\t\t\t\tconsole.log(msg);\n\t\t\t}\n      if(channel == 'incoming') {\n        console.log(msg);\n        var id = msg.messageId;\n        if(this.notificationList.indexOf(id) != -1) return;\n        var name = msg.source.from[0].name || msg.source.from[0].address;\n        var to = msg.source.to[0].address;\n        var myAddress = this.user.email;\n        if(to.indexOf('support@') != -1 || \n           to.indexOf('domain@')  != -1 || \n           to.indexOf('info@')  != -1 || \n           to.indexOf('produktion@') != -1 || \n           to.indexOf('material@') != -1 || \n           to.indexOf(myAddress) != -1) {\n          if(msg.eventName == 'new-message') {\n\t\t\t\t\t\t_window().sendNotification('Nytt supportärende: ' + msg.source.headers.subject, () => {\n\t\t\t\t\t\t\tthis.router.navigateByUrl(\"/support/\" + id);\n\t\t\t\t\t\t});\n\t\t\t\t\t\tthis.notificationList.push(id, msg);\n            this.eventsService.broadcast('new-supportissue', id, msg.source);\n          } else if(msg.eventName == 'message-assigned') {\n            this.eventsService.broadcast('supportissue-assigned', id, msg.source);\n          } else if(msg.eventName == 'message-answered') {\n            this.eventsService.broadcast('supportissue-answered', id, msg.source);\n          } else if(msg.eventName == 'message-status') {\n            this.eventsService.broadcast('supportissue-updated', id, msg.source);\n          }\n        }\n      }\n    } catch(e) {\n      console.log(e);\n    }\n  }\n\n\tsearch($event) {\n\t\t\n\t}\n\n\n}\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/components/header.ts","import { Component, OnInit, ViewChild,  OnDestroy } from '@angular/core';\nimport { Router, ActivatedRoute }            from '@angular/router';\nimport { ModalComponent } from 'ng2-bs4-modal/ng2-bs4-modal';\n\nimport { CompanyService } from '../services/company';\nimport { LocalStorageService } from 'ng2-webstorage';\n\nimport { OrderInfo } from './orderinfo';\nimport { InvoiceInfo } from './invoiceinfo';\n\nvar promiseWaterfall = require('promise.waterfall')\n\nfunction _window() : any {\n\t// return the global native browser window object\n\treturn window;\n}\n\n@Component({\n\tselector : 'invoice-list',\n  template: require('./templates/invoicelist.html')\n})\n\nexport class InvoiceList implements OnInit, OnDestroy {\n\n\t@ViewChild('loadingModal')\n  loadingModal: ModalComponent;\n\n\t@ViewChild('confirmSendModal')\n  confirmSendModal: ModalComponent;\n\n\t@ViewChild('confirmRollbackModal')\n  confirmRollbackModal: ModalComponent;\n\t\n\t@ViewChild('confirmMarkAsSentModal')\n  confirmMarkAsSentModal: ModalComponent;\n\t\n\t@ViewChild('confirmCreateInvoiceModal')\n  confirmCreateInvoiceModal: ModalComponent;\n\n\t@ViewChild('editEfakturaModal')\n  editEfakturaModal: ModalComponent;\n\n\t@ViewChild('confirmUpdateInvoiceEmailModal')\n  confirmUpdateInvoiceEmailModal: ModalComponent;\n\t\n\t@ViewChild('confirmDeleteModal')\n  confirmDeleteModal: ModalComponent;\n\n\t@ViewChild('confirmCreditModal')\n  confirmCreditModal: ModalComponent;\n\n\t@ViewChild('invoiceInfo')\n  invoiceInfo: InvoiceInfo;\n\n\t@ViewChild('orderInfo')\n  orderInfo: OrderInfo;\n\n\tprivate invoices : any[];\n\tprivate filterButtons : any[];\n\tprivate filter : any;\n\tprivate path : string;\n\tprivate loading : boolean;\n\tprivate totalInvoices : number;\n\tprivate currentStart : number;\n\tprivate numInvoicesPerLoad : number;\n\tprivate hasMore : boolean;\n\tprivate refreshTimer : any;\n\tprivate numSelectedInvoices : number;\n\tprivate hasSelectedInvoices : boolean;\n\tprivate invoiceSystem : string;\n\tprivate editedInvoice : any;\n\tprivate previewedInvoice : any;\n\tprivate invoicePreviewUrl : string;\n\n\tconstructor(\n    private companyService: CompanyService,\n\t\tprivate localStorage: LocalStorageService,\n    public router: Router,\n\t\tpublic route: ActivatedRoute\n  ) {\n\t\tthis.path = this.route.snapshot.url[0].path + '-v2';\n\t\tthis.filter = this.localStorage.retrieve('filter-' + this.path) || { phrase : '', showSent : false, showUnsent : false, showUnmanaged : true };\n\t\tthis.filterButtons = [\n\t\t\t{ checked : this.filter.showSent, name : 'Skickade' },\n\t\t\t{ checked : this.filter.showUnsent, name : 'Ej skickade' },\n\t\t\t{ checked : this.filter.showUnmanaged, name : 'Ej skapade' }\n\t\t]\n\t\tthis.currentStart = 0;\n\t\tthis.numInvoicesPerLoad = 50;\n\t\tthis.invoices = [];\n\t\tthis.invoiceSystem = 'fortnox';\n\t\tthis.editedInvoice = {}\n\t}\n\t\n\tngOnInit() : void {\n\t\tthis.reload();\n\t\tif(this.route.snapshot.params.id) {\n\t\t\tthis.companyService.getInvoiceById(this.route.snapshot.params.id).then((invoice) => {\n\t\t\t\tthis.openInvoice(invoice);\n\t\t\t})\n\t\t}\n\t}\n\n\tngOnDestroy() : void {\n\t}\n\n\tshowError(msg) {\n\t\tconsole.log('showerror', msg)\n\t\t_window().showNotification('', '<h4><i class=\"fa fa-exclamation-triangle\"></i> Fel' + '</h4>', msg, 'fa fa-exclamation-triangle', (id) => {\n\t\t\tconsole.log('id ' + id + ' was closed');\n\t\t}, 'danger')\n\t}\n\n\tupdateEfaktura(invoice) : void {\n\t\tthis.editedInvoice = { ...invoice };\n\t\tthis.editEfakturaModal.open();\n\t}\n\n\tconfirmEditEfaktura() : void {\n\t\tthis.editEfakturaModal.close().then(() => {\n\t\t\t//this.confirmUpdateInvoiceEmailModal.open();\n\t\t\tthis.loadingModal.open().then(() => {\n\t\t\t\tthis.companyService.updateSystemInvoiceEmail(this.editedInvoice.companyId, this.editedInvoice.efaktura).then((updateResult) => {\n\t\t\t\t\tconsole.log('updateResult', updateResult)\n\t\t\t\t\tthis.companyService.updateCompanyInvoiceEmail(this.editedInvoice.companyId, this.editedInvoice.efaktura || null).then(() => {\n\t\t\t\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\t\t\t\tthis.invoices.filter(i => i.invoiceId == this.editedInvoice.invoiceId)[0].efaktura = this.editedInvoice.efaktura;\n\t\t\t\t\t\t})\n\t\t\t\t\t}).catch((error) => {\n\t\t\t\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\t\t\t\tthis.showError(error.errorMessage || error);\n\t\t\t\t\t\t})\n\t\t\t\t\t})\t\n\t\t\t\t}).catch((error) => {\n\t\t\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\t\t\tthis.showError(error.errorMessage || error);\n\t\t\t\t\t})\n\t\t\t\t})\t\n\t\t\t})\n\t\t})\n\t}\n\n\tshowRollbackModal() : void {\n\t\tthis.confirmRollbackModal.open();\n\t}\n\n\trollbackSelectedInvoices() : void {\n\t\tthis.confirmRollbackModal.close().then(() => {\n\t\t\tthis.loadingModal.open().then(() => {\n\t\t\t\tlet tasks = this.invoices.filter(i => i.selected).map((invoice) => {\n\t\t\t\t\tlet rollbackSystemInvoice = (invoice) => {\n\t\t\t\t\t\treturn this.companyService.rollbackInvoice(invoice.invoiceId).then((response) => {\n\t\t\t\t\t\t\tconsole.log('remove invoice result', response);\t\t\n\t\t\t\t\t\t\tinvoice.isSent = false;\n\t\t\t\t\t\t\tinvoice.fortnoxFileDate = invoice.sveaFileDate = null;\n\t\t\t\t\t\t})\n\t\t\t\t\t}\n\t\t\t\t\tlet showError = this.showError;\n\t\t\t\t\treturn function() {\n\t\t\t\t\t\treturn rollbackSystemInvoice(invoice)\n\t\t\t\t\t\t.catch((err) => {\n\t\t\t\t\t\t\tconsole.log('error sending invoice', invoice, err)\n\t\t\t\t\t\t\tshowError(err);\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\tpromiseWaterfall(tasks)\n\t\t\t\t.catch((error) => {\n\t\t\t\t\tconsole.log('error when removing invoices', error);\n\t\t\t\t\tthis.showError('error removing invoices: ' + JSON.stringify(error))\n\t\t\t\t})\n\t\t\t\t.then(() => {\n\t\t\t\t\treturn this.loadingModal.close()\n\t\t\t\t}).then(() => {\n\t\t\t\t\tthis.invoices = this.invoices.filter(i => (!i.isSent && (i.fortnoxFileDate || i.sveaFileDate)));\n\t\t\t\t\tthis.toggleInvoicesToolbar();\n\t\t\t\t})\n\t\t\t})\n\t\t})\n\t}\n\n\tshowConfirmSendModal() : void {\n\t\tthis.confirmSendModal.open();\n\t}\n\n\tsendSelectedInvoices() : void {\n\t\tthis.confirmSendModal.close().then(() => {\n\t\t\tthis.loadingModal.open().then(() => {\n\t\t\t\tlet tasks = this.invoices.filter(i => i.selected).map((invoice) => {\n\t\t\t\t\tlet showError = this.showError;\n\t\t\t\t\tlet sendInvoice = (invoice) => {\n\t\t\t\t\t\treturn this.companyService.sendInvoice(invoice.invoiceId).then((response) => {\n\t\t\t\t\t\t\tconsole.log('send invoice result', response);\t\t\n\t\t\t\t\t\t\tinvoice.isSent = true;\n\t\t\t\t\t\t\tif(response.sveaInvoice)\n\t\t\t\t\t\t\t\tinvoice.sveaFileDate = new Date().valueOf() / 1000;\n\t\t\t\t\t\t\telse \n\t\t\t\t\t\t\t\tinvoice.fortnoxFileDate = new Date().valueOf() / 1000;\n\t\t\t\t\t\t}).catch((err) => {\n\t\t\t\t\t\t\tconsole.log('error sending invoice', invoice, err)\n\t\t\t\t\t\t\tshowError(err);\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\treturn function() {\n\t\t\t\t\t\treturn sendInvoice(invoice);\n\t\t\t\t\t}\n\t\t\t\t})\t\t\t\n\t\t\t\tpromiseWaterfall(tasks)\n\t\t\t\t.catch((error) => {\n\t\t\t\t\tconsole.log('error when sending invoices', error);\n\t\t\t\t\tthis.showError('error when sending invoices: ' + error)\n\t\t\t\t})\n\t\t\t\t.then(() => {\n\t\t\t\t\treturn this.loadingModal.close()\n\t\t\t\t}).then(() => {\n\t\t\t\t\tthis.invoices = this.invoices.filter(i => !i.isSent);\n\t\t\t\t\tthis.toggleInvoicesToolbar();\n\t\t\t\t})\n\t\t\t})\n\t\t})\n\t}\t\n\n\tshowMarkAsSentModal() : void {\n\t\tthis.confirmMarkAsSentModal.open();\n\t}\n\t\n\tmarkSelectedInvoicesAsSent() : void {\n\t\tthis.confirmMarkAsSentModal.close().then(() => {\n\t\t\tthis.loadingModal.open().then(() => {\n\t\t\t\tPromise.all(\n\t\t\t\t\tthis.invoices.filter(i => i.selected).map((invoice) => {\n\t\t\t\t\t\treturn this.companyService.markInvoiceAsSent(invoice.invoiceId).then((response) => {\n\t\t\t\t\t\t\tconsole.log('mark invoice result', response);\t\t\n\t\t\t\t\t\t\tinvoice.isSent = true;\n\t\t\t\t\t\t\tinvoice.fortnoxFileDate =  invoice.sveaFileDate = new Date().valueOf() / 1000;\n\t\t\t\t\t\t})\t\t\t\t\t\t\n\t\t\t\t\t})\n\t\t\t\t)\n\t\t\t\t.catch((error) => {\n\t\t\t\t\tconsole.log('error when marking invoices', error);\n\t\t\t\t})\n\t\t\t\t.then(() => {\n\t\t\t\t\treturn this.loadingModal.close()\n\t\t\t\t})\n\t\t\t\t.then(() => {\n\t\t\t\t\tthis.invoices = this.invoices.filter(i => (!i.isSent));\n\t\t\t\t\tthis.toggleInvoicesToolbar();\n\t\t\t\t})\n\t\t\t})\n\t\t})\n\t}\n\n\tcreateSelected() : void {\n\t\tthis.confirmCreateInvoiceModal.open();\n\t}\n\n\tshowDeleteModal() : void {\n\t\tthis.confirmDeleteModal.open()\n\t}\n\n\tdeleteSelectedInvoices() : void {\n\t\tthis.confirmDeleteModal.close().then(() => {\n\t\t\tthis.loadingModal.open().then(() => {\n\t\t\t\tPromise.all(\n\t\t\t\t\tthis.invoices.filter(i => i.selected).map((invoice) => {\n\t\t\t\t\t\treturn this.companyService.cancelInvoice(invoice.invoiceId, invoice.invoiceNr, invoice.companyId)\n\t\t\t\t\t\t.then((response) => {\n\t\t\t\t\t\t\tconsole.log('delete invoice result', response);\t\t\n\t\t\t\t\t\t})\n\t\t\t\t\t\t.catch((err) => {\n\t\t\t\t\t\t\tconsole.log('error deleting invoice', invoice, err)\n\t\t\t\t\t\t\tthis.showError(err.errorMessage || err);\n\t\t\t\t\t\t});\n\t\t\t\t\t})\n\t\t\t\t)\n\t\t\t\t.catch((error) => {\n\t\t\t\t\tconsole.log('error when deleting invoices', error);\n\t\t\t\t})\n\t\t\t\t.then(() => {\n\t\t\t\t\treturn this.loadingModal.close();\n\t\t\t\t})\n\t\t\t\t.then(() => {\n\t\t\t\t\tthis.reload();\n\t\t\t\t})\n\t\t\t})\n\t\t})\n\t}\n\n\tshowCreditModal() : void {\n\t\tthis.confirmCreditModal.open()\n\t}\n\n\tcreditSelectedInvoices() : void {\n\t\tthis.confirmCreditModal.close().then(() => {\n\t\t\tthis.loadingModal.open().then(() => {\n\t\t\t\tlet tasks = this.invoices.filter(i => i.selected).map((invoice) => {\n\t\t\t\t\tlet creditInvoice = (invoice) => {\n\t\t\t\t\t\treturn this.companyService.getInvoiceById(invoice.invoiceId)\n\t\t\t\t\t\t.then((invoice) => {\n\t\t\t\t\t\t\treturn(invoice.items.map((item) => {\n\t\t\t\t\t\t\t\treturn({ productId : item.productId })\n\t\t\t\t\t\t\t}))\n\t\t\t\t\t\t})\n\t\t\t\t\t\t.then((products) => {\n\t\t\t\t\t\t\treturn this.companyService.creditInvoice(invoice.invoiceId, products).then((response) => {\n\t\t\t\t\t\t\t\tconsole.log('credit invoice result', response);\t\t\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t})\n\t\t\t\t\t}\n\t\t\t\t\tlet showError = this.showError;\n\t\t\t\t\treturn function() {\n\t\t\t\t\t\treturn creditInvoice(invoice)\n\t\t\t\t\t\t.catch((err) => {\n\t\t\t\t\t\t\tconsole.log('error crediting invoice', invoice, err)\n\t\t\t\t\t\t\tshowError(err.errorMessage || err);\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\tpromiseWaterfall(tasks)\n\t\t\t\t.catch((error) => {\n\t\t\t\t\tconsole.log('error when crediting invoices', error);\n\t\t\t\t\tthis.showError('error crediting invoices: ' + JSON.stringify(error))\n\t\t\t\t})\n\t\t\t\t.then(() => {\n\t\t\t\t\treturn this.loadingModal.close()\n\t\t\t\t})\n\t\t\t\t.then(() => {\n\t\t\t\t\tthis.reload();\n\t\t\t\t})\n\t\t\t})\n\t\t})\n\t}\n\n\tconfirmCreateSystemInvoices() : void {\n\t\tthis.loadingModal.open().then(() => {\n\t\t\tlet tasks = this.invoices.filter(i => i.selected).map((invoice) => {\n\t\t\t\tlet createSystemInvoice = (invoice) => {\n\t\t\t\t\treturn this.companyService.createSystemInvoice(invoice.invoiceId, this.invoiceSystem).then((response) => {\n\t\t\t\t\t\tconsole.log('create invoice result', response);\n\t\t\t\t\t\tinvoice.fortnoxFileDate = invoice.sveaFileDate = new Date().valueOf() / 1000;\t\n\t\t\t\t\t})\t\t\t\t\n\t\t\t\t}\n\t\t\t\tlet showError = this.showError;\n\t\t\t\treturn function() {\n\t\t\t\t\treturn createSystemInvoice(invoice)\n\t\t\t\t\t.catch((err) => {\n\t\t\t\t\t\tconsole.log('error creating invoice', invoice, err)\n\t\t\t\t\t\tshowError(err);\n\t\t\t\t\t});\t\n\t\t\t\t}\n\t\t\t})\n\t\t\tpromiseWaterfall(tasks)\n\t\t\t.catch((error) => {\n\t\t\t\tconsole.log('error when creating invoices', error);\n\t\t\t\tthis.showError('error when creating invoices: ' + error)\n\t\t\t})\n\t\t\t.then(() => {\n\t\t\t\treturn this.loadingModal.close()\n\t\t\t})\n\t\t\t.then(() => {\n\t\t\t\treturn this.confirmCreateInvoiceModal.close();\n\t\t\t})\n\t\t\t.then(() => {\n\t\t\t\tthis.invoices = this.invoices.filter(i => (!i.sveaFileDate && !i.fortnoxFileDate));\n\t\t\t\tthis.toggleInvoicesToolbar();\n\t\t\t})\n\t\t})\n\t}\n\n  searchInvoices() : void {\n\t\tif(this.refreshTimer)\n\t  \tclearTimeout(this.refreshTimer);\n\t  this.refreshTimer = setTimeout(() => {\n\t\t  this.reload();\n\t  }, 750);\n\t}\n\n\ttoggleFilterButton(btn) {\n\t\tthis.filterButtons.forEach((btn) => { btn.checked = false; })\n\t\tbtn.checked = true;\n\t\tthis.filter.showSent = this.filterButtons[0].checked;\n\t\tthis.filter.showUnsent = this.filterButtons[1].checked;\n\t\tthis.filter.showUnmanaged = this.filterButtons[2].checked;\n    this.reload();\n  }\n\n\ttoggleInvoicesToolbar() : void {\n\t  var numSelected = this.invoices.filter(i => i.selected).length;\t  \n\t  this.numSelectedInvoices = numSelected;\n\t  this.hasSelectedInvoices = numSelected > 0;\n\t}\n\n\topenInvoice(invoiceId) : void {\n\t\tthis.invoiceInfo.open(invoiceId);\n\t}\n\n\topenOrder(invoice) : void {\n\t\tthis.loadingModal.open().then(() => {\n\t\t\tthis.companyService.getById(invoice.companyId).then((company) => {\n\t\t\t\tcompany.orders.forEach((o) => {\n\t\t\t\t\tif(o.orderId == invoice.orderId) {\n\t\t\t\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\t\t\t\tthis.orderInfo.open(o);\n\t\t\t\t\t\t})\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t})\n\t\t});\n\t}\n\t\n\trefreshPaymentStatus(invoiceId) : void {\n\t\tlet invoice = this.invoices.filter(i => i.invoiceId == invoiceId)[0];\n\t\tinvoice.refreshing = true;\n\t\tthis.companyService.updateInvoicePaymentState(invoiceId)\n\t\t.then((refreshResult) => {\n\t\t\tconsole.log('refreshResult', refreshResult)\n\t\t\tthis.companyService.getInvoiceById(invoiceId).then((updatedInvoice) => {\n\t\t\t\tlet idx = this.invoices.indexOf(invoice);\n\t\t\t\tthis.invoices[idx] = { ...updatedInvoice };\n\t\t\t})\n\t\t}).catch((err) => {\n\t\t\tconsole.log('err', err);\n\t\t\tthis.showError(err);\n\t\t\tinvoice.refreshing = false;\n\t\t})\n\t}\n\n\treload() : void {\n\t\tthis.invoices = [];\n\t\tthis.currentStart = 0;\n\t\tthis.loadMore(this.currentStart, this.numInvoicesPerLoad);\n\t\tthis.toggleInvoicesToolbar();\n\t}\n\n\tloadMore(start, length) : void {\n\t\tthis.loading = true;\n\t\tthis.localStorage.store('filter-' + this.path, this.filter);\n\t\tconsole.log(this.filter);\n\t\tthis.companyService.getInvoices(this.filter, start, length).then((invoiceList) => {\n\t\t\tthis.totalInvoices = invoiceList.total;\n\t\t\tthis.invoices = [ ...this.invoices, ...invoiceList.list ];\n\t\t\tthis.loading = false;\n\t\t\tthis.hasMore = invoiceList.list.length == this.numInvoicesPerLoad;\n\t\t\tconsole.log(invoiceList);\n\t\t});\n\t}\n\t\n\tsetAllSelected() {\n\t  this.invoices.forEach((c) => {\n\t  \tc.selected = !c.selected;\n\t  });\n\t  this.toggleInvoicesToolbar();\n  }\n\n  onScroll () {\n\t  if(!this.hasMore) return;\n\t  this.currentStart = (this.currentStart + this.numInvoicesPerLoad);\n    this.loadMore(this.currentStart, this.numInvoicesPerLoad);\n  }\n\n}\n\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/components/invoicelist.ts","import { Component, Input, ViewChild } from '@angular/core';\nimport { ModalModule, ModalComponent } from 'ng2-bs4-modal/ng2-bs4-modal';\n\nimport { DomainService } from '../services/domain';\nimport { CustomerInfo } from './customerinfo';\n\n@Component({\n\tselector : 'mxinfo',\n  template: require('./templates/mxinfo.html')\n})\n\nexport class MxInfo {\n\n\tloading : boolean;\n\tshowWarning : boolean;\n\tmxTitle : string;\n\tshowLookupError : boolean;\n\t\n\tconstructor(\n\t\tprivate domainService: DomainService\n  ) {\n\n\t}\n\n\t@Input()\n\tset domain(domainName : string) {\n\t\tthis.loading = true;\n\t\tthis.domainService.getMX(domainName).then((result) => {\n\t\t\tthis.loading = false;\n\t\t\tif(result.mx) {\n\t\t\t\tresult.mx.forEach((mx) => {\n\t\t\t\t\tif(mx.exchange != 'mail.hemsidadirekt.se') {\n\t\t\t\t\t\tthis.showWarning = true;\n\t\t\t\t\t\tthis.mxTitle = mx.exchange;\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\tthis.showLookupError = true;\n\t\t\t}\n\t\t});\n\t}\n\n}\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/components/mxinfo.ts","import { Component, Input } from '@angular/core';\n\n@Component({\n\tselector : 'number-formatter',\n  template: '{{formattedString}}'\n})\n\nexport class NumberFormatter {\n\t\n\t_number: number;\n\tformattedString : string;\n\tformatter : Intl.NumberFormat;\n\t\n  constructor() {\n\t\tthis.formatter = new Intl.NumberFormat('SE-sv');\n  }\n\t\t\n\t@Input()\t\n\tset number(value: number) {\n\t\tthis._number = value;\n\t\tthis.formattedString = this.formatter.format(value);\n  }\n\n  get date() { return this._number; }\n\n }\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/components/numberformatter.ts","import { Component, OnInit, ViewChild, ElementRef, OnDestroy } from '@angular/core';\nimport { Router, ActivatedRoute, Params, NavigationEnd}            from '@angular/router';\nimport { Observable }        from 'rxjs/Observable';\nimport { ModalModule, ModalComponent } from 'ng2-bs4-modal/ng2-bs4-modal';\n\nimport { CompanyService } from '../services/company';\nimport { HttpService } from '../services/http';\nimport { LocalStorageService } from 'ng2-webstorage';\nimport { EventsService } from '../services/event';\n\nimport { OrderInfo } from './orderinfo';\n\nimport { Company }           from '../models/company';\n\n@Component({\n\tselector : 'order-list',\n  template: require('./templates/orderlist.html')\n})\n\n\nexport class OrderList implements OnInit, OnDestroy {\n\n\t@ViewChild('loadingModal')\n  loadingModal: ModalComponent;\n\n\t@ViewChild('orderInfo')\n  orderInfo: OrderInfo;\n\t\n\tprivate orders : any[];\n\tprivate filterButtons : any[];\n\tprivate filter : any;\n\tprivate path : string;\n\tprivate loading : boolean;\n\tprivate totalOrders : number;\n\tprivate currentStart : number;\n\tprivate numOrdersPerLoad : number;\n\tprivate hasMore : boolean;\n\tprivate refreshTimer : any;\n\t\n\tconstructor(\n    private companyService: CompanyService,\n\t\tprivate localStorage: LocalStorageService,\n    public router: Router,\n\t\tpublic route: ActivatedRoute,\n\t\tprivate eventsService : EventsService\n  ) {\n\t\tthis.path = this.route.snapshot.url[0].path;\n\t\tthis.filter = this.localStorage.retrieve('filter-' + this.path) || { phrase : '', statusId : [1] };\n\t\tthis.filterButtons = [\n\t\t\t{ checked : this.filter.statusId.indexOf(1) != -1, name : 'Väntar bekräftelse', id : 1},\n\t\t\t{ checked : this.filter.statusId.indexOf(2) != -1, name : 'Bekräftad', id : 2},\n\t\t\t{ checked : this.filter.statusId.indexOf(3) != -1, name : 'Avslutad', id : 3},\n\t\t\t{ checked : this.filter.statusId.indexOf(4) != -1, name : 'Makulerad', id : 4},\n\t\t\t{ checked : this.filter.statusId.indexOf(5) != -1, name : 'Offert', id : 5},\n\t\t]\n\t\tthis.currentStart = 0;\n\t\tthis.numOrdersPerLoad = 50;\n\t\tthis.orders = [];\n\t}\n\t\n\tngOnInit() : void {\n\t\tthis.reload();\n\t\tif(this.route.snapshot.params.id) {\n\t\t\tthis.companyService.getOrders({ orderId : this.route.snapshot.params.id},0, 1).then((orderList) => {\n\t\t\t\tthis.openOrder(orderList.list[0]);\n\t\t\t})\n\t\t}\n\t}\n\n\tngOnDestroy() : void {\n\t}\n\t\n  searchOrders() {\n\t\tif(this.refreshTimer)\n\t  \tclearTimeout(this.refreshTimer);\n\t  this.refreshTimer = setTimeout(() => {\n\t\t  this.reload();\n\t  }, 750);\n\t}\n\n\ttoggleFilterButton(btn) {\n    btn.checked = !btn.checked;\n    this.filter.statusId = [];\n    this.filterButtons.forEach((b) => {\n      if(b.checked)\n        this.filter.statusId.push(b.id);\n    })\n\t\tconsole.log(this.filter);\n    this.reload();\n  }\n\n\ttoggleOrdersToolbar() : void {\n\n\t}\n\n\topenOrder(order) : void {\n\t\tthis.loadingModal.open().then(() => {\n\t\t\tthis.companyService.getById(order.companyId).then((company) => {\n\t\t\t\tcompany.orders.forEach((o) => {\n\t\t\t\t\tif(o.orderId == order.orderId) {\n\t\t\t\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\t\t\t\tthis.orderInfo.open(o);\n\t\t\t\t\t\t})\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t})\n\t\t});\n\t}\n\n\treload() : void {\n\t\tthis.orders = [];\n\t\tthis.currentStart = 0;\n\t\tthis.loadMore(this.currentStart, this.numOrdersPerLoad);\n\t}\n\n\tloadMore(start, length) : void {\n\t\tthis.loading = true;\n\t\tthis.localStorage.store('filter-' + this.path, this.filter);\n\t\tthis.companyService.getOrders(this.filter, start, length).then((orderList) => {\n\t\t\tthis.totalOrders = orderList.total;\n\t\t\torderList.list.forEach((o) => {\n\t\t\t\tthis.orders.push(o);\t\n\t\t\t})\n\t\t\tthis.loading = false;\n\t\t\tthis.hasMore = orderList.list.length == this.numOrdersPerLoad;\n\t\t\tconsole.log(orderList);\n\t\t});\n\t}\n\t\n\tsetAllSelected() {\n\t  this.orders.forEach((c) => {\n\t  \tc.selected = !c.selected;\n\t  });\n\t  this.toggleOrdersToolbar();\n  }\n\n  onScroll () {\n\t  if(!this.hasMore) return;\n\t  this.currentStart = (this.currentStart + this.numOrdersPerLoad);\n    this.loadMore(this.currentStart, this.numOrdersPerLoad);\n  }\n\n}\n\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/components/orderlist.ts","import { Component, OnInit, ViewChild, ElementRef, ChangeDetectorRef, OnDestroy, EventEmitter } from '@angular/core';\nimport { Router, NavigationEnd, ActivatedRoute, Params}            from '@angular/router';\nimport { Observable }        from 'rxjs/Observable';\nimport { ModalModule, ModalComponent } from 'ng2-bs4-modal/ng2-bs4-modal';\nimport { SupportDetails }           from './supportdetails';\nimport { FileUpload } from './fileupload';\n\nimport { HttpService } from '../services/http';\nimport { LocalStorageService } from 'ng2-webstorage';\nimport { StorageService } from '../services/storage';\n\nimport { Company }           from '../models/company';\nimport { SupportIssue }           from '../models/supportissue';\n\nfunction _window() : any {\n   // return the global native browser window object\n   return window;\n}\n\n@Component({\n\tselector : 'storage-list',\n  template: require('./templates/storagelist.html')\n})\n\nexport class StorageList implements OnInit {\n\t\n\t@ViewChild('fileUpload')\n  fileUpload: FileUpload;\n\n\t@ViewChild('loadingModal')\n  loadingModal: ModalComponent;\n\n\t@ViewChild('deleteModal')\n  deleteModal: ModalComponent;\n\n\t@ViewChild('newFolderModal')\n  newFolderModal: ModalComponent;\n\n\tbucket : string;\n\tmarker : string;\n\tprefix : string;\n\tphrase : string;\n\tloading : boolean;\n\tfiles : any[];\n\tpathElements : any[];\n\tlastLoadWasTruncated : boolean;\n\tnumSelected : number;\n\thasSelectedFiles: boolean;\n\tallSelectedCanBeCopied : boolean;\n\thasRestorableFiles : boolean;\n\thasDownloadableFiles : boolean;\n\tlastClickedFile : any;\n\tnewFolderName : string;\n\tsearchTimer : any;\n\n\tonDeleteModalClose = new EventEmitter();\n\tonNewFolderModalClose = new EventEmitter();\n\n\tconstructor(\n    private storageService: StorageService,\n    private router: Router,\n\t\tprivate localStorage: LocalStorageService,\n\t\tprivate route: ActivatedRoute\n\t) {\n\t\tthis.router.events.subscribe((val) => {\n\t\t\tif(val instanceof NavigationEnd) {\n\t\t\t\tthis.files = [];\n\t\t\t\tif(this.route.snapshot.params['bucket']) {\n\t\t\t\t\tthis.bucket = this.route.snapshot.params['bucket'];\n\t\t\t\t\tvar lastPrefix = this.localStorage.retrieve('last-prefix-' + this.bucket);\n\t\t\t\t\tthis.loadFiles(null, lastPrefix || null, false);\n\t\t\t\t}\t\t\n\t\t\t}\n\t\t});\n\t\tthis.phrase = '';\n\t}\n\n\tngOnInit() {\n\t\tconsole.log('init');\n\t}\n\n\tsearchFiles() {\n\t\tif(this.searchTimer)\n\t\t\tclearTimeout(this.searchTimer)\n\t\tthis.searchTimer = setTimeout(() => {\n\t\t\tthis.refresh();\n\t\t}, 750);\n\t}\n\n\tupload() {\n\t\tthis.fileUpload.open(this.bucket, this.prefix, 'private').then((success) => {\n\t\t\tif(success)\n\t\t\t\tthis.refresh();\n\t\t})\n\t}\n\n\tinWatchList(key) {\n\t\tvar watchList = this.localStorage.retrieve(\"object-watch-list\") || [];\n\t\treturn watchList.indexOf(key) != -1;\n\t}\n\n\taddToWatchList(key) {\n\t\tvar watchList = this.localStorage.retrieve(\"object-watch-list\") || [];\n\t\twatchList.push(key);\n\t\tthis.localStorage.store(\"object-watch-list\", watchList);\n\t}\n\n\tremoveFromWatchList(key) {\n\t\tvar watchList = this.localStorage.retrieve(\"object-watch-list\") || [];\n\t\tvar idx = watchList.indexOf(key);\n\t\tif(idx == -1) return;\n\t\twatchList.splice(idx);\n\t\tthis.localStorage.store(\"object-watch-list\", watchList);\n\t}\n\n\trefresh() {\n\t\tthis.loadFiles(null, this.prefix, false);\n\t}\n\n\tloadFiles(marker, prefix, keepLoadedFiles) {\n\t\tthis.loading = true;\n\t\tthis.marker = marker;\n\t\tif(!keepLoadedFiles) {\n\t\t\tthis.files = [];\n\t\t\tthis.toggleStorageToolbar();\n\t\t}\n\t\tthis.prefix = prefix;\n\t\tthis.pathElements = [\n\t\t\t{ name : this.bucket, prefix : null }\n\t\t];\n\t\tvar sumPrefix = '';\n\t\tif(this.prefix) {\n\t\t\tthis.prefix.split('/').forEach((p) => {\n\t\t\t\tsumPrefix = sumPrefix + p + '/';\n\t\t\t\tthis.pathElements.push({\n\t\t\t\t\tname : p,\n\t\t\t\t\tprefix : sumPrefix\n\t\t\t\t})\n\t\t\t})\n\t\t}\n\t\tthis.localStorage.store('last-prefix-' + this.bucket, this.prefix);\n\t\tvar p = this.prefix;\n\t\tif(this.phrase != '' && prefix != null)\n\t\t\t p = prefix + this.phrase;\n\t\telse if(this.phrase != '' && prefix == null)\n\t\t\tp = this.phrase;\n\t\tthis.storageService.listFiles(this.bucket, this.marker, p).then((data) => {\n\t\t\tthis.loading = false;\n\t\t\tthis.lastLoadWasTruncated = data.IsTruncated;\n\t\t\tthis.marker = data.NextMarker;\n\t\t\tdata.CommonPrefixes.forEach((p) => {\n\t\t\t\tthis.files.push({\n\t\t\t\t\tname : p.Prefix.substring(0, p.Prefix.length - 1).replace(this.prefix, ''),\n\t\t\t\t\tisDir : true,\n\t\t\t\t\tprefix : p.Prefix,\n\t\t\t\t\tcanBeCopied : true,\n\t\t\t\t})\n\t\t\t});\n\t\t\tdata.Contents.forEach((f) => {\n\t\t\t\tif(f.Key == this.prefix) return;\n\t\t\t\tvar file = {\n\t\t\t\t\tname : f.Key.replace(this.prefix, ''),\n\t\t\t\t\tstorageClass : f.StorageClass,\n\t\t\t\t\tsize : (f.Size / 1000),\n\t\t\t\t\tkey : f.Key,\n\t\t\t\t\tisBeeingRestored : false,\n\t\t\t\t\tcanBeCopied : f.StorageClass != 'GLACIER',\n\t\t\t\t\texpireDate : null\n\t\t\t\t};\n\t\t\t\tif(this.inWatchList(f.Key)) {\n\t\t\t\t\tthis.storageService.getObjectInfo(this.bucket, f.Key).then((info) => {\n\t\t\t\t\t\tvar restoreInfo = info.Restore.match(/ongoing-request=\\\"(.*?)\\\"/);\n\t\t\t\t\t\tvar restoreExpire = info.Restore.match(/expiry-date=\\\"(.*?)\\\"/);\n\t\t\t\t\t\tif(restoreInfo[1] == \"true\") {\n\t\t\t\t\t\t\tfile.isBeeingRestored = true;\n\t\t\t\t\t\t} else if(restoreInfo[1] == \"false\") {\n\t\t\t\t\t\t\tfile.isBeeingRestored = false;\n\t\t\t\t\t\t\tfile.expireDate = new Date(restoreExpire[1]);\n\t\t\t\t\t\t\tfile.canBeCopied = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t\tthis.files.push(file)\n\t\t\t});\n\t\t})\n\t}\n\n\tsync() {\n\t\tthis.loadingModal.open();\n\t\tvar objects = [];\n\t\tthis.files.forEach((f) => {\n\t\t\tif(f.selected && f.canBeCopied) {\n\t\t\t\tif(f.isDir)\n\t\t\t\t\tobjects.push({ dir : true, prefix : f.prefix });\n\t\t\t\telse\n\t\t\t\t\tobjects.push({ dir : false, key : f.key });\n\t\t\t}\n\t\t});\n\t\tthis.storageService.syncObjects(this.bucket, objects).then((response) => {\n\t\t\tresponse.forEach((f) => {\n\t\t\t});\n\t\t\tthis.files.forEach((f) => {\n\t\t\t\tf.selected = false;\n\t\t\t});\n\t\t\tthis.toggleStorageToolbar();\n\t\t\tthis.loadingModal.close();\n\t\t});\n\t}\n\n\trestore() {\n\t\tthis.loadingModal.open();\n\t\tvar objects = [];\n\t\tthis.files.forEach((f) => {\n\t\t\tif(f.selected) {\n\t\t\t\tobjects.push(f.key);\n\t\t\t}\n\t\t});\n\t\tthis.storageService.restoreObjects(this.bucket, objects).then((response) => {\n\t\t\tresponse.forEach((f) => {\n\t\t\t\tif(f.success) {\n\t\t\t\t\tthis.files.forEach((file) => {\n\t\t\t\t\t\tif(file.key == f.key) {\n\t\t\t\t\t\t\tfile.isBeeingRestored = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\tthis.addToWatchList(f.key);\n\t\t\t})\n\t\t\tthis.files.forEach((f) => {\n\t\t\t\tf.selected = false;\n\t\t\t});\n\t\t\tthis.toggleStorageToolbar();\n\t\t\tthis.loadingModal.close();\n\t\t});\n\t}\n\n\tconfirmDelete() {\n\t\tthis.deleteModal.open().then(() => { // this is no good! need to remove the listener when done or just have one listener\n\t\t\tthis.onDeleteModalClose = new EventEmitter();\n\t\t\tthis.onDeleteModalClose.subscribe((reason : string) => {\n\t\t\t\tif(reason == 'delete') {\n\t\t\t\t\tthis.delete();\n\t\t\t\t}\n\t\t\t})\n\t\t})\n\t}\n\n\tcloseDeleteModal(reason : string) {\n\t\tthis.deleteModal.close().then(() => {\n\t\t\tthis.onDeleteModalClose.next(reason);\n\t\t})\n\t}\n\n\tdelete() {\n\t\tthis.loadingModal.open().then(() => {\n\t\t\tvar objects = [];\n\t\t\tthis.files.forEach((f) => {\n\t\t\t\tif(f.selected) {\n\t\t\t\t\tif(f.isDir)\n\t\t\t\t\t\tobjects.push({ dir : true, prefix : f.prefix });\n\t\t\t\t\telse\n\t\t\t\t\t\tobjects.push({ dir : false, key : f.key });\n\t\t\t\t}\n\t\t\t});\n\t\t\tthis.storageService.deleteObjects(this.bucket, objects).then((response) => {\n\t\t\t\tconsole.log(response);\n\t\t\t\tresponse.forEach((deletedFile) => {\n\t\t\t\t\tthis.files.forEach((f) => {\n\t\t\t\t\t\tif((f.key == deletedFile.key || f.prefix == deletedFile.key) && this.files.indexOf(f) != -1 && deletedFile.success) {\n\t\t\t\t\t\t\tthis.files.splice(this.files.indexOf(f), 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\t\tthis.toggleStorageToolbar();\n\t\t\t\t});\t\t\n\t\t\t});\n\t\t});\n\t}\n\n\tnewFolder() {\n\t\tthis.newFolderModal.open().then(() => {\n\t\t\tthis.onNewFolderModalClose = new EventEmitter();\n\t\t\tthis.onNewFolderModalClose.subscribe((reason : string) => {\n\t\t\t\tif(reason == 'create') {\n\t\t\t\t\tthis.storageService.createFolder(this.bucket, this.newFolderName).then((response) => {\n\t\t\t\t\t\tthis.refresh();\t\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t})\n\t\t});\n\t}\n\n\tcloseNewFolderModal(reason : string) {\n\t\tthis.newFolderModal.close().then(() => {\n\t\t\tthis.onNewFolderModalClose.next(reason);\n\t\t})\n\t}\n\n\tdownload() {\n\t\tthis.loadingModal.open();\n\t\tvar objects = [];\n\t\tthis.files.forEach((f) => {\n\t\t\tif(f.selected && f.canBeCopied) {\n\t\t\t\tif(f.isDir)\n\t\t\t\t\tobjects.push({ dir : true, prefix : f.prefix });\n\t\t\t\telse\n\t\t\t\t\tobjects.push({ dir : false, key : f.key });\n\t\t\t}\n\t\t});\n\t\tthis.storageService.downloadObjects(this.bucket, objects).then((response) => {\n\t\t\tif(response.success) {\n\t\t\t\twindow.open(response.url);\n\t\t\t} else {\n\t\t\t\talert('fel, ' + response.err);\n\t\t\t}\n\t\t\tthis.loadingModal.close();\n\t\t});\n\t}\n\n\tgetSignedUrl(key) {\n\t\tthis.storageService.getSignedUrl(this.bucket, key).then((response) => {\n\t\t\twindow.open(response.url)\n\t\t})\n\t}\n\n\tonScroll() {\n\t\tif(this.lastLoadWasTruncated && !this.loading) {\n\t\t\tconsole.log('load more');\n\t\t\tthis.loadFiles(this.marker, this.prefix, true);\n\t\t}\n\t}\n\n\ttoggleStorageToolbar() {\n\t\tvar setSelectedBool = false;\n\t\tvar numSelected = 0;\n\t\tthis.allSelectedCanBeCopied = this.bucket == 'hsd-synology-backup';\n\t\tthis.hasRestorableFiles = false;\n\t\tthis.hasDownloadableFiles = false;\n\t\tthis.files.forEach((i) => {\n\t\t\tif(i.selected) {\n\t\t\t\tsetSelectedBool = true;\n\t\t\t\tnumSelected++;\n\t\t\t\tif(!i.canBeCopied) {\n\t\t\t\t\tthis.hasRestorableFiles = true; \n\t\t\t\t\tthis.allSelectedCanBeCopied = false;\n\t\t\t\t} else {\n\t\t\t\t\tthis.hasDownloadableFiles = true;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tthis.numSelected = numSelected;\n\t\tthis.hasSelectedFiles = setSelectedBool;\n\t}\n\n  setAllSelected() {\n\t  this.files.forEach((i) => {\n\t  \ti.selected = !i.selected;\n\t  });\n\t  this.toggleStorageToolbar();\n  }\n\n\ttoggleSelected(file, event) {\n\t\tif(event.shiftKey && this.lastClickedFile) {\t\t\t\n\t\t\tvar startIndex = Math.min(this.files.indexOf(this.lastClickedFile), this.files.indexOf(file));\n\t\t\tvar clickedIndex = Math.max(this.files.indexOf(file), this.files.indexOf(this.lastClickedFile));\n\t\t\tthis.files.forEach((i, idx) => {\n\t\t\t\tif(idx > startIndex && idx <= clickedIndex) {\n\t\t\t\t\ti.selected = !i.selected;\n\t\t\t\t}\n\t\t\t});\n\t\t\tthis.lastClickedFile = file;\n\t\t} else {\n\t\t\tfile.selected = !file.selected;\n\t\t}\n\t\tthis.lastClickedFile = file;\n\t}\n\n}\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/components/storagelist.ts","import { Component, OnInit, ViewChild, OnDestroy } from '@angular/core';\nimport { Router, ActivatedRoute }            from '@angular/router';\nimport { ModalComponent } from 'ng2-bs4-modal/ng2-bs4-modal';\n\nimport { CompanyService } from '../services/company';\nimport { LocalStorageService } from 'ng2-webstorage';\nimport { ErrorsService } from '../services/errors';\n\nimport { OrderInfo } from './orderinfo';\nimport { InvoiceInfo } from './invoiceinfo';\n\nimport { DatePicker }           from './datepicker';\n\nvar promiseWaterfall = require('promise.waterfall')\n\n@Component({\n\tselector : 'subscription-list',\n  template: require('./templates/subscriptionlist.html')\n})\n\nexport class SusbcriptionList implements OnInit, OnDestroy {\n\n\t@ViewChild('loadingModal')\n  loadingModal: ModalComponent;\n\n\t@ViewChild('invoiceInfo')\n  invoiceInfo: InvoiceInfo;\n\n\t@ViewChild('orderInfo')\n  orderInfo: OrderInfo;\n\t\n\t@ViewChild('renewalDate')\n  renewalDate: DatePicker;\n\n\tprivate subscriptions : any[];\n\tprivate loading : boolean;\n\tprivate totalSubscriptions : number;\n\tprivate filter : any;\n\tprivate path : string;\n\tprivate currentStart : number;\n\tprivate numSubscriptionsPerLoad : number;\n\tprivate hasMore : boolean;\n\tprivate refreshTimer : any;\n\tprivate numSelected : number;\n\tprivate hasSelectedSubscriptions : boolean;\n\t\n\tconstructor(\n    private companyService: CompanyService,\n\t\tprivate localStorage: LocalStorageService,\n    public router: Router,\n\t\tpublic route: ActivatedRoute,\n\t\tprivate errorsService: ErrorsService,\n  ) {\n\t\tthis.path = this.route.snapshot.url[0].path;\n\t\tthis.filter = { phrase : '', renewalDateValue : new Date().valueOf(), renewalDate : new Date().toISOString().split('T')[0] };\n\t\tthis.currentStart = 0;\n\t\tthis.numSubscriptionsPerLoad = 50;\n\t\tthis.subscriptions = [];\n\t}\n\t\n\tngOnInit() : void {\n\t\tthis.reload();\n\t}\n\n\tngOnDestroy() : void {\n\t}\n\t\n  searchInvoices() {\n\t\tif(this.refreshTimer)\n\t  \tclearTimeout(this.refreshTimer);\n\t  this.refreshTimer = setTimeout(() => {\n\t\t  this.reload();\n\t  }, 750);\n\t}\n\n\ttoggleSubscriptionsToolbar() : void {\n\t\tvar setSelectedBool = false;\n\t  var numSelected = 0;\n\t  this.subscriptions.forEach((i) => {\n\t  \tif(i.selected) {\n\t\t  \tsetSelectedBool = true;\n\t\t  \tnumSelected++;\n\t\t  }\n\t  });\n\t  this.numSelected = numSelected;\n\t  this.hasSelectedSubscriptions = setSelectedBool;\n\t}\n\n\trenewSelected(status) {\n\t\tthis.loadingModal.open().then(() => {\n\t\t\tlet tasks = this.subscriptions.filter(s => s.selected).map((subscription) => {\n\t\t\t\tlet renewSubscription = (subscriptionId) => {\n\t\t\t\t\treturn this.companyService.renewSubscription(subscriptionId).then((renewResult) => {\n\t\t\t\t\t\tconsole.log('renewResult', renewResult);\n\t\t\t\t\t\treturn this.companyService.createInvoice(renewResult.orderId, 0, new Date().valueOf() / 1000, 30)\n\t\t\t\t\t\t.then((createInvoiceResult) => {\n\t\t\t\t\t\t\tconsole.log('createInvoiceResult', createInvoiceResult);\n\t\t\t\t\t\t\treturn(renewResult);\n\t\t\t\t\t\t});\t\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t\tlet errorsService = this.errorsService;\n\t\t\t\treturn function(done) {\n\t\t\t\t\treturn renewSubscription(subscription.subscriptionId)\n\t\t\t\t\t.then((result) => {\t\t\t\t\t\t\n\t\t\t\t\t\tsubscription.renewalDate = result.renewalDate;\n\t\t\t\t\t})\n\t\t\t\t\t.catch((e) => {\t\t\t\t\t\t\n\t\t\t\t\t\terrorsService.broadcast('error', e.errorMessage || e.message);\n\t\t\t\t\t\tdone();\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t});\n\t\t\tpromiseWaterfall(tasks).then(() => {\n\t\t\t\t\tthis.subscriptions = this.subscriptions.filter(s => !s.selected);\n\t\t\t\t\tthis.loadingModal.close();\n\t\t\t\t\tthis.toggleSubscriptionsToolbar();\n\t\t\t\t}\n\t\t\t);\n\t\t})\n  }\n\n\t\n\n\tupdateDate(date) : void {\t\t\n    var str =  + date.getFullYear() + '-' + ( (date.getMonth() + 1) < 10 ? ('0' + (date.getMonth() + 1)) : (date.getMonth() + 1)) + '-'+ (date.getDate() < 10 ? ('0' + date.getDate()) : date.getDate());\n\t\tthis.filter.renewalDate = str;\n\t\tthis.reload();\n\t}\n\n\tshowOrderInfo(companyId, orderId) : void {\n\t\tthis.loadingModal.open().then(() => {\n\t\t\tthis.companyService.getById(companyId).then((company) => {\n\t\t\t\tcompany.orders.forEach((o) => {\n\t\t\t\t\tif(o.orderId == orderId) {\n\t\t\t\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\t\t\t\tthis.orderInfo.open(o);\n\t\t\t\t\t\t})\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t})\n\t\t});\n\t}\n\n\treload() : void {\n\t\tthis.subscriptions = [];\n\t\tthis.currentStart = 0;\n\t\tthis.loadMore(this.currentStart, this.numSubscriptionsPerLoad);\n\t\tthis.toggleSubscriptionsToolbar();\n\t}\n\n\tloadMore(start, length) : void {\n\t\tthis.loading = true;\n\t\tthis.localStorage.store('filter-' + this.path, this.filter);\n\t\tthis.companyService.getExpiredSubscriptions(this.filter, start, length).then((subscriptionList) => {\n\t\t\tthis.totalSubscriptions = subscriptionList.total;\n\t\t\tsubscriptionList.list.forEach((o) => {\n\t\t\t\tthis.subscriptions.push(o);\t\n\t\t\t})\n\t\t\tthis.loading = false;\n\t\t\tthis.hasMore = subscriptionList.list.length == this.numSubscriptionsPerLoad;\n\t\t\tconsole.log(subscriptionList);\n\t\t});\n\t}\n\t\n\tsetAllSelected() {\n\t  this.subscriptions.forEach((c) => {\n\t  \tc.selected = !c.selected;\n\t  });\n\t  this.toggleSubscriptionsToolbar();\n  }\n\n  onScroll() {\n\t  if(!this.hasMore) return;\n\t  this.currentStart = (this.currentStart + this.numSubscriptionsPerLoad);\n    this.loadMore(this.currentStart, this.numSubscriptionsPerLoad);\n  }\n\n}\n\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/components/subscriptionlist.ts","import { Component, OnInit, ViewChild, ElementRef, ChangeDetectorRef, OnDestroy, EventEmitter } from '@angular/core';\nimport { Router, ActivatedRoute, NavigationEnd}            from '@angular/router';\nimport {  ModalComponent } from 'ng2-bs4-modal/ng2-bs4-modal';\nimport { SupportDetails }           from './supportdetails';\n\nimport { SupportIssueService } from '../services/support';\nimport { HttpService } from '../services/http';\nimport { LocalStorageService } from 'ng2-webstorage';\nimport { ErrorsService } from '../services/errors';\nimport { EventsService } from '../services/event';\n\nimport { SupportIssue }           from '../models/supportissue';\n\n@Component({\n\tselector : 'support-list',\n  template: require('./templates/supportlist.html')\n})\n\nexport class SupportList implements OnInit, OnDestroy {\n\t\n\t@ViewChild('supportDetails')\n  supportDetails: SupportDetails;\n\t\n\t@ViewChild('loadingModal')\n  loadingModal: ModalComponent;\n\n  @ViewChild('searchFilter') searchFilter;\n  \n\t@ViewChild('assignToAllUnassignedModal')\n  assignToAllUnassignedModal: ModalComponent;\n\tassignAllUnassignedCallback : Function;\n\t\n\t@ViewChild('unassignedWarning')\n  unassignedWarning: ModalComponent;\n  \t\n  issues: SupportIssue[];\n  //selectedIssue : SupportIssue;\n  \n\tcurrentStart : number;\n\tnumIssuesPerLoad : number;\n  hasMore : boolean;\n  \n  hasSelectedIssues : boolean;\n  filter : { to : string, status : Array<string>, userId : number, phrase : string };\n  loading : boolean;\n  numSelected : number;\n  unassignedEmail : string;\n  numUnAssigned : number;\n  totalIssues : number;\n\tlastClickedIssue : SupportIssue;\n\n\tavailableUsers : Array<any>;\n\tuser : { userId : number, email : string };\n\tisMine : boolean;\n\tisPrivate : boolean;\n\trefreshTimer : any;\n\tfilterButtons : [any];\n\n\tonUnassignedWarningClosed = new EventEmitter();\n\toncloseSupportInfo = new EventEmitter();\n\n\tlistType : string;\n\tnewSupportIssueSubscriber : any;\n\tsupportIssueAssignedSubscriber : any;\n\tsupportIssueUpdatedSubscriber : any;\n\tnavigationSubscriber : any;\n\tshowSupportInfo : boolean;\n\tsupportIssueLoadedSubscriber : any;\n\tsupportIssueOpenSubscriber : any;\n\tsupportIssueCompanyAssignedSubscriber : any;\n\tsupportIssueUserAssignedSubscriber : any;\n\tsupportIssueDeleteSubscriber : any;\n\tsupportIssueCloseSubscriber : any;\n\tsupportIssueSpamSubscriber : any;\n\tsupportIssueCompanyUnAssignedSubscriber : any;\n\tsupportIssueClosedSubscriber : any;\n\n  constructor(\n    private supportIssueService: SupportIssueService,\n    private httpService: HttpService,\n    private router: Router,\n\t\tprivate route: ActivatedRoute,\n\t\tprivate myElement: ElementRef,\n\t\tprivate localStorage: LocalStorageService,\n\t\tprivate errorsService: ErrorsService,\n\t\tprivate eventsService: EventsService,\n\t\tprivate changeDetectorRef : ChangeDetectorRef\n  ){\n\n\t\tthis.filter = { to : null, status : ['open', 'pending'], userId : -1, phrase : ''};\n\t\tthis.issues = [];\n\t\tthis.user = this.httpService.getUser();\t\n\n\t\tthis.availableUsers = [];\n\n\t  this.httpService.getAllUsers().then((users) => {\n  \t  users.forEach((u) => {\n\t  \t  if(u.userId == 26) return;\n\t  \t  this.availableUsers.push(u);\n  \t  })\n\t  });\n\n\t\tthis.newSupportIssueSubscriber = this.eventsService.on('new-supportissue', (id, issue) => {\n\t\t\tthis.supportIssueService.getIssueById(id).then((supportIssue) => {\n\t\t\t\tsupportIssue.isNew = true;\n\t\t\t\tif(this.isPrivate) {\n\t\t\t\t\tif(supportIssue._source.headers.to.indexOf(this.user.email) == -1 && \n\t\t\t\t\t\t\t(supportIssue._source.headers.cc && supportIssue._source.headers.cc.indexOf(this.user.email) == -1))\n\t\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(this.filter.status.indexOf(supportIssue._source.status) == -1)\n\t\t\t\t\treturn;\n\t\t\t\tthis.issues.push(supportIssue);\n\t\t\t\tthis.indexIssues();\n\t\t\t}).catch((e) => {\n\t\t\t\tconsole.log('could not get supportissue');\n\t\t\t\tconsole.log(e);\n\t\t\t});\n\t\t});\n\n\t\tthis.supportIssueAssignedSubscriber = this.eventsService.on('supportissue-assigned', (id, supportIssue) => {\n\t\t\tif(supportIssue.user && supportIssue.user.userId == this.user.userId && this.isMine) {\n\t\t\t\tthis.supportIssueService.getIssueById(id).then((issue) => {\n\t\t\t\t\tif(this.filter.status.indexOf(issue._source.status) == -1)\n\t\t\t\t\t\treturn;\n\t\t\t\t\tthis.issues.push(issue);\n\t\t\t\t\tthis.indexIssues();\n\t\t\t\t\tthis.changeDetectorRef.detectChanges();\n\t\t\t\t});\t\n\t\t\t} else if(supportIssue.user && supportIssue.user.userId != this.user.userId && this.isMine) {\n\t\t\t\tvar matchingIssue = null;\n\t\t\t\tthis.issues.forEach((i) => {\n\t\t\t\t\tif(i._id == id) {\n\t\t\t\t\t\tmatchingIssue = i;\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tthis.removeIssue(matchingIssue);\n\t\t\t\tthis.changeDetectorRef.detectChanges();\n\t\t\t}\n\t\t});\n\n\t\tthis.supportIssueUpdatedSubscriber = this.eventsService.on('supportissue-updated', (id, issue) => {\n\t\t\tvar matchingIssue = <SupportIssue>null;\n\t\t\tthis.issues.forEach((i) => {\n\t\t\t\tif(i._id == id) {\n\t\t\t\t\ti._source.status = issue.status;\n\t\t\t\t\tthis.changeDetectorRef.detectChanges();\n\t\t\t\t\tmatchingIssue = i;\n\t\t\t\t}\n\t\t\t});\n\t\t\tif(matchingIssue && this.filter.status.indexOf(matchingIssue._source.status) == -1) {\n\t\t\t\tthis.removeIssue(matchingIssue);\n\t\t\t}\n  \t});\n\n\t}\n\n  ngOnInit(): void {\n\t\tthis.navigationSubscriber = this.router.events.subscribe((event) => { this.navigationEnd(event); });\n\t\tthis.supportIssueLoadedSubscriber = this.eventsService.on('supportdetails-loading', (data) => {\n\t\t\tthis.showSupportInfo = true;\n\t\t})\n\t\tthis.supportIssueCompanyAssignedSubscriber = this.eventsService.on('supportissue-company-assigned', (data) => {\n\t\t\tthis.handleOnCompanyAssigned(data);\n\t\t})\n\t\tthis.supportIssueCompanyUnAssignedSubscriber = this.eventsService.on('supportissue-company-unassigned', (data) => {\n\t\t\tthis.handleOnCompanyUnAssigned(data);\n\t\t})\n\t\tthis.supportIssueUserAssignedSubscriber = this.eventsService.on('supportissue-user-assigned', (data) => {\n\t\t\tthis.handleOnUserAssigned(data);\n\t\t})\n\t\tthis.supportIssueDeleteSubscriber = this.eventsService.on('supportissue-delete', (data) => {\n\t\t\tthis.handleOnDeleteIssue(data);\n\t\t})\n\t\tthis.supportIssueCloseSubscriber = this.eventsService.on('supportissue-close', (data) => {\n\t\t\tthis.handleOnCloseIssue(data);\n\t\t})\n\t\tthis.supportIssueClosedSubscriber = this.eventsService.on('supportissue-closed', (data) => {\n\t\t\tthis.closeSupportInfo();\n\t\t})\n\t\tthis.supportIssueOpenSubscriber = this.eventsService.on('supportissue-open', (data) => {\n\t\t\tthis.handleOnOpenIssue(data);\n\t\t})\n\t\tthis.supportIssueSpamSubscriber = this.eventsService.on('supportissue-spam', (data) => {\n\t\t\tthis.handleOnSpamIssue(data);\n\t\t})\t\t\n\t}\n\n\tngOnDestroy() {\n\t\tthis.supportIssueLoadedSubscriber.unsubscribe();\n\t\tthis.newSupportIssueSubscriber.unsubscribe();\n\t\tthis.supportIssueAssignedSubscriber.unsubscribe();\n\t\tthis.supportIssueUpdatedSubscriber.unsubscribe();\n\t\tthis.navigationSubscriber.unsubscribe();\n\t\tthis.supportIssueCompanyUnAssignedSubscriber.unsubscribe();\n\t\tthis.supportIssueCompanyAssignedSubscriber.unsubscribe();\n\t\tthis.supportIssueUserAssignedSubscriber.unsubscribe();\n\t\tthis.supportIssueDeleteSubscriber.unsubscribe();\n\t\tthis.supportIssueCloseSubscriber.unsubscribe();\n\t\tthis.supportIssueOpenSubscriber.unsubscribe();\n\t\tthis.supportIssueClosedSubscriber.unsubscribe();\n\t\tthis.supportIssueSpamSubscriber.unsubscribe();\n\t}\n\n\tnavigationEnd(event) {\n\t\tif(event instanceof NavigationEnd) {\t\n\t\t\tthis.showSupportInfo = false;\n\t\t\tvar url = (event as NavigationEnd).url;\n\t\t\tthis.updateFilters().then((info) => {\n\t\t\t\tif(info.typeChanged)\n\t\t\t\t\tthis.reload();\n\t\t\t})\t\t\t\n\t\t}\n\t}\n\n\tupdateFilters() : Promise<any> {\n\t\treturn new Promise((resolve) => {\n\t\t\tvar newType = this.route.snapshot.params['type'];\n\t\t\tvar resolveInfo = { typeChanged : (newType != this.listType), oldType : this.listType, newType : newType }\n\t\t\tthis.listType = newType;\t\t\t\n\t\t  this.filter = this.localStorage.retrieve('filter-support-' + this.listType) || { to : null, status : ['open', 'pending'], userId : -1, phrase : ''}; \n\t\t\tthis.filter.phrase = '';\t\n\t\t  this.filterButtons = [\n\t\t\t  { name : 'Öppna', status : 'open', checked : this.filter.status.indexOf('open') !== -1 },\n\t\t\t  { name : 'Väntande', status : 'pending', checked : this.filter.status.indexOf('pending') !== -1 },\n\t\t\t  { name : 'Stängda', status : 'closed', checked : this.filter.status.indexOf('closed') !== -1 },\n\t\t\t  { name : 'Spam', status : 'spam', checked : this.filter.status.indexOf('spam') !== -1 },\n\t\t\t  { name : 'Borttagna', status : 'deleted', checked : this.filter.status.indexOf('deleted') !== -1 },\n\t\t\t ];\t\n\t\t\tif(this.listType == 'mine') {\n\t\t\t\tthis.filter.userId = this.user.userId;\n\t\t\t\tthis.isMine = true;\n\t\t\t\tresolve(resolveInfo);\n\t\t\t}\t\t\t\n\t\t\telse if(this.listType == 'private') {\n\t\t\t\tthis.filter.to = this.user.email.substr(0, this.user.email.indexOf('@'));\n\t\t\t\tthis.isMine = this.isPrivate = true;\n\t\t\t\tresolve(resolveInfo);\n\t\t\t} else {\n\t\t\t\tresolve(resolveInfo);\n\t\t\t}\n\t\t});\n\t}\n\n\tcloseSupportInfo(): Promise<boolean> {\n\t\treturn new Promise((resolver) => {\t\t\n\t\t\tthis.oncloseSupportInfo.next();\n\t\t\tthis.showSupportInfo = false;\n\t\t\tif(this.route.children.length > 0) {\n\t\t\t\tvar ref = this.route.children[0].snapshot.params['reference'];\n\t\t\t\tif(ref) {\n\t\t\t\t\tvar url = \"/\" + ref.replace(/:/g, \"/\");\n\t\t\t\t\tthis.router.navigateByUrl(url);\n\t\t\t\t} else {\n\t\t\t\t\tthis.router.navigateByUrl(\"/support/\" + this.listType);\t\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tthis.router.navigateByUrl(\"/support/\" + this.listType);\t\n\t\t\t}\n\t\t\tresolver(true);\n\t\t})\n\t}\n\n\tcloseUnassignedWarning(result : boolean) : void {\n\t\tthis.unassignedWarning.close().then(() => {\n\t\t\tthis.onUnassignedWarningClosed.next(result);\n\t\t})\n\t}\n\n\tremoveIssue(issue) {\n\t\tthis.getById(issue._id).then((localIssue) => {\n\t\t\tvar idx = this.issues.indexOf(localIssue);\n\t\t\tif(idx != -1) {\n\t\t\t\tthis.issues.splice(idx, 1);\n\t\t\t}\t\n\t\t})\n\t}\n\n\tsetToFilter(to) : void {\n\t\tthis.filter.to = to;\n\t\tthis.reload();\n\t}\n\n\ttoggleSelected(issue, event) : void {\n\t\tif(event.shiftKey && this.lastClickedIssue) {\t\t\t\n\t\t\tvar startIndex = Math.min(this.issues.indexOf(this.lastClickedIssue), this.issues.indexOf(issue));\n\t\t\tvar clickedIndex = Math.max(this.issues.indexOf(issue), this.issues.indexOf(this.lastClickedIssue));\n\t\t\tthis.issues.forEach((i, idx) => {\n\t\t\t\tif(idx > startIndex && idx <= clickedIndex) {\n\t\t\t\t\ti.selected = !i.selected;\n\t\t\t\t}\n\t\t\t});\n\t\t\tthis.lastClickedIssue = issue;\n\t\t} else {\n\t\t\tissue.selected = !issue.selected;\n\t\t}\n\t\tthis.lastClickedIssue = issue;\n\t}\n\n  toggleFilterButton(btn) {\n\t  btn.checked = !btn.checked;\n\t  this.filter.status = new Array<string>();\n\t  this.filterButtons.forEach((b) => {\n\t\t  if(b.checked)\n\t\t\t  this.filter.status.push(b.status);\n\t  });\n\t  if(this.refreshTimer)\n\t  \tclearTimeout(this.refreshTimer);\n\t  this.refreshTimer = setTimeout(() => {\n\t\t\tthis.eventsService.broadcast('support-filter-changed', { listType : this.listType })\n\t\t  this.reload();\n\t  }, 750);\n  }\n  \n  setFilterAssignedTo(user) {\n\t  var oldUserId = this.filter.userId;\n\t  if(user) {\t\t  \n\t\t  this.filter.userId = user.userId;\n\t\t\tthis.reload();\n\t  } else {\n\t\t  this.filter.userId = -1;\n\t\t\tthis.reload();\n\t  }\n  }\n    \n  getIssues(append): void {\n\t  this.loading = true;\n\t\tthis.localStorage.store('filter-support-' + this.listType, this.filter);\n\t  var issueList = append ? this.issues : [];\t  \t  \n\t\tlet processFields = [\n\t\t\t{\n\t\t\t\t\"name\" : \"text\",\n\t\t\t\t\"type\" : \"truncate\",\n\t\t\t\t\"params\" : [\n\t\t\t\t\t0, \n\t\t\t\t\t100\n\t\t\t\t]\n\t\t\t}\n\t\t]\n\t\tlet includeFields = [\"company\", \"text\", \"user\", \"subject\", \"messageId\", \"from\", \"to\", \"date\", \"receivedDate\", \"status\", \"headers.cc\", \"headers.to\", \"headers.from\", \"headers.subject\", \"headers.x-spam-result\", \"headers.references\", \"headers.date\"];\n\t  this.supportIssueService.getAllIssues({ ...this.filter, includeFields, processFields }, this.currentStart, this.numIssuesPerLoad).then((supportIssueList) => {\n    \tthis.hasMore = supportIssueList.issues.length == this.numIssuesPerLoad;\n\t    supportIssueList.issues.forEach((i) => {\n\t\t\t\tif(i._source.to[0].group) {\n\t\t\t\t\tconsole.info('i', i)\n\t\t\t\t}\n\t\t\t\ti._source.toPrefix = ((i._source && i._source.to && i._source.to.length > 0) ? (i._source.to[0].group ? i._source.to[0].group[0].address : i._source.to[0].address) : '').toLowerCase();\n\t\t\t\ti._source.toPrefix = i._source.toPrefix.substr(0, i._source.toPrefix.indexOf('@'))\n\t\t\t\ti._source.ccPrefix = ((i._source && i._source.cc && i._source.cc.length > 0) ? (i._source.cc[0].group ? i._source.cc[0].group[0].address : i._source.cc[0].address) : '').toLowerCase();\n\t\t\t\ti._source.ccPrefix = i._source.ccPrefix.substr(0, i._source.ccPrefix.indexOf('@'))\n\t    \tissueList.push(i);\n\t    });\n\t    this.issues = issueList;\n\t\t\tthis.totalIssues = supportIssueList.totalIssues;\n\t    this.indexIssues();\n\t\t\tthis.loading = false;\n\t  }); \n  }\n  \n\tsearchIssues() {\n\t\tif(this.refreshTimer)\n\t  \tclearTimeout(this.refreshTimer);\n\t  this.refreshTimer = setTimeout(() => {\n\t\t  this.reload();\n\t  }, 750);\n\t}\n  \n  indexIssues(): void {\n\t  this.issues.forEach((issue) => {\n\t\t  issue.referencedIssues = [];\n\t\t\t/* referenced header lookup */\n\t\t  if(issue._source.headers.references) {\n\t\t\t  var references = issue._source.headers.references.match(/\\<(.*?)\\>/g);\n\t\t\t  if(references) {\n\t\t\t\t  references.forEach((ref) => {\n\t\t\t\t\t\tthis.issues.forEach((subIssue) => {\n\t\t\t\t\t\t\tif(subIssue._source.headers['message-id'] == ref) {\n\t\t\t\t\t\t\t\tissue.referencedIssues.push(subIssue);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t  })\n\t\t\t  }\n\t\t\t}\n\t\t\t/* sort referenced */\n\t\t\tissue.referencedIssues.sort((a, b) => {\n\t\t\t\treturn new Date(b._source.date).getTime() - new Date(a._source.date).getTime();\n\t\t\t});\n\t  });\n\t  this.issues.sort((a, b) => {\n\t\t  return new Date(b._source.date.toString()).getTime() - new Date(a._source.date.toString()).getTime();\n\t  });\n  }\n  \t\n\treload() {\n\t  this.hasMore = false;\n\t  this.issues = this.issues = [];\n\t\tthis.toggleIssueToolbar();\n\t  this.currentStart = 0;\n\t  this.numIssuesPerLoad = 100;\n    this.getIssues(false);\n  }\n  \n  onScroll () {\n\t  if(!this.hasMore) return;\n\t  this.currentStart += this.numIssuesPerLoad;\n    this.getIssues(true);\n  }\n  \n  setAllSelected() {\n\t  this.issues.forEach((i) => {\n\t  \ti.selected = !i.selected;\n\t  });\n\t  this.toggleIssueToolbar();\n  }\n  \n  toggleIssueToolbar() {\n\t  var setSelectedBool = false;\n\t  var numSelected = 0;\n\t  this.issues.forEach((i) => {\n\t  \tif(i.selected) {\n\t\t  \tsetSelectedBool = true;\n\t\t  \tnumSelected++;\n\t\t  }\n\t  });\n\t  this.numSelected = numSelected;\n\t  this.hasSelectedIssues = setSelectedBool;\n  }\n    \n\tassignSelected(user) {\n\t\tthis.loadingModal.open().then(() => {\n\t\t\tvar promises = [];\n\t\t\tthis.issues.forEach((i) => {\n\t\t\t\tif(i.selected) {\n\t\t\t\t\tpromises.push(this.supportIssueService.setUser(user, i._id).then(() => {\n\t\t\t\t\t\ti.selected = false;\n\t\t\t\t\t\ti._source.user = user;\n\t\t\t\t\t\tthis.toggleIssueToolbar();\n\t\t\t\t\t}));\n\t\t\t\t}\n\t\t\t});\n\t\t\tPromise.all(promises).then(() => {\n\t\t\t\tthis.loadingModal.close();\n\t\t\t}).catch((e) => {\n\t\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\t\tthis.errorsService.broadcast('error', e.errorMessage || e.message);\n\t\t\t\t})\n\t\t\t})\n\t\t})\n\t}\n  \n  publicSelected() {\n\t\tvar queue = [];\n\t\tthis.loadingModal.open().then(() => {\n\t\t\tthis.issues.forEach((i) => {\n\t\t\t\tif(i.selected) {\n\t\t\t\t\tqueue.push(this.public(i)); \n\t\t\t\t}\n\t\t\t});\n\t\t\tPromise.all(queue).then(() => {\n\t\t\t\tthis.loadingModal.close();\n\t\t\t\tthis.indexIssues();\n\t\t\t\tthis.toggleIssueToolbar();\n\t\t\t}).catch((e) => {\n\t\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\t\tthis.errorsService.broadcast('error', e.errorMessage || e.message);\n\t\t\t\t})\n\t\t\t})\n\t\t});\n  }\n\n  public(issue) {\n\t  return this.supportIssueService.makePublic(issue._id).then(() => {\n\t\t\tissue.selected = false;\n\t\t\tthis.removeIssue(issue);\n\t \t}); \n  }\n\n\tprivateSelected() {\n\t\tvar queue = [];\n\t\tthis.loadingModal.open().then(() => {\n\t\t\tthis.issues.forEach((i) => {\n\t\t\t\tif(i.selected) {\n\t\t\t\t\tqueue.push(this.private(i)); \n\t\t\t\t}\n\t\t\t});\n\t\t\tPromise.all(queue).then(() => {\n\t\t\t\tthis.loadingModal.close();\n\t\t\t\tthis.indexIssues();\n\t\t\t\tthis.toggleIssueToolbar();\n\t\t\t}).catch((e) => {\n\t\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\t\tthis.errorsService.broadcast('error', e.errorMessage || e.message);\n\t\t\t\t})\n\t\t\t})\n\t\t})\n  }\n\n  private(issue) {\n\t  return this.supportIssueService.makePrivate(issue._id).then(() => {\n\t\t\tissue.selected = false;\n\t\t\tthis.removeIssue(issue);\n\t \t}); \n  }\n\n  markSelected(status) {\n\t\tvar batch = [];\n\t\tthis.loadingModal.open().then(() => {\n\t\t  this.issues.forEach((i) => {\n\t\t\t  if(i.selected)\n\t\t\t\t\tbatch.push(i)\n\t\t  });\n\t\t\tthis.markBatch(batch, status, false).then((result) => {\n\t\t\t\tconsole.log(result);\n\t\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\t\tthis.indexIssues();\n\t\t\t\t\tthis.toggleIssueToolbar();\n\t\t\t\t});\n\t\t\t}).catch((e) => {\n\t\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\t\tthis.errorsService.broadcast('error', e.errorMessage || e.message);\n\t\t\t\t});\n\t\t\t});;\n\t\t})\n  }\n  \n\tmarkOne(issue, status, force) {\n\t\tthis.loadingModal.open().then(() => {\n\t\t\tthis.mark(issue, status, force).then((marked) => {\n\t\t\t\tthis.loadingModal.close();\n\t\t\t}).catch((e) => {\n\t\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\t\tthis.errorsService.broadcast('error', e.errorMessage || e.message);\n\t\t\t\t});\n\t\t\t});\n\t\t}) \n\t}\n\n\tmarkBatch(issues, status, force) : Promise<any> {\n\t\tvar batch = [];\n\t\tissues.forEach((i) => { batch.push(i._id); });\n\t\treturn this.supportIssueService.markIssuesAs(status, batch).then((result) => {\n\t\t\tissues.forEach((issue) => {\n\t\t\t\tissue._source.status = status;\n\t\t\t\tissue.selected = false;\n\t\t\t\tif(this.filter.status.indexOf(status) == -1) {\n\t\t\t\t\tthis.removeIssue(issue);\n\t\t\t\t}\n\t\t\t\treturn(result);\n\t\t\t});\n\t\t});\n\t}\n\n  mark(issue, status, force) : Promise<any> {\n\t\tif(status == 'closed' && !issue._source.company && !force) {\n\t\t\treturn new Promise<any>((resolver, reject) => {\n\t\t\t\tthis.unassignedWarning.open().then(() => {\n\t\t\t\t\tthis.onUnassignedWarningClosed.subscribe((markAnyWay) => {\n\t\t\t\t\t\tif(markAnyWay) {\n\t\t\t\t\t\t\tthis.mark(issue, status, markAnyWay).then((result) => {\n\t\t\t\t\t\t\t\tresolver(result);\n\t\t\t\t\t\t\t}).catch((e) => {\n\t\t\t\t\t\t\t\treject(e);\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tresolver(markAnyWay);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t\t});\n\t\t} else {\n\t\t  return this.supportIssueService.markIssueAs(status, issue._id).then((result) => {\n\t\t\t\tthis.getById(issue._id).then((issue) => {\n\t\t\t\t\tissue._source.status = status;\n\t\t\t\t\tissue.selected = false;\n\t\t\t\t});\t\t\t\n\t\t\t\tissue._source.status = status;\n\t\t\t\tif(this.filter.status.indexOf(status) == -1) {\n\t\t\t\t\tthis.removeIssue(issue);\n\t\t\t\t}\n\t\t\t\treturn(true);\n\t\t \t});\n\t\t}\n  }  \n  \n  prevIssue(issue) {\n\t\t/*\n\t  for(var i = 0; i < this.issues.length; i++) {\n\t  \tif(this.issues[i] == this.selectedIssue && i > 0) {\n\t  \t\tthis.selectedIssue = this.issues[i - 1];\n\t  \t\treturn;\n\t  \t}\n\t  }*/\n  }\n\n  nextIssue(issue) {\n\t\t/*\n\t\tfor(var i = 0; i < this.issues.length; i++) {\n\t  \tif(this.issues[i] == this.selectedIssue && i < (this.issues.length - 1)) {\n\t  \t\tthis.selectedIssue = this.issues[i + 1];\n\t  \t\treturn;\n\t  \t}\n\t  }*/\n  }\n  \n\tgetById(id) : Promise<any> {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tthis.issues.forEach((i) => {\n\t\t\t\tif(i._id == id) resolve(i);\n\t\t\t})\n\t\t});\n\t}\n\n  assignAllUnassigned() {\n\t  this.assignAllUnassignedCallback();\n  }\n  \n\thandleOnIssueLoaded(issue) {\n\t\tif(this.route.snapshot.params['action']) {\n\t\t\tvar action = this.route.snapshot.params['action'];\n\t\t\tif(action == \"reply\") {\n\t\t\t\tthis.supportDetails.reply(false).then((data) => {\n\t\t\t\t\tif(data.status != 'failed') {\n\t\t\t\t\t\tvar ref = this.route.snapshot.params['reference'];\n\t\t\t\t\t\tif(ref) {\n\t\t\t\t\t\t\tthis.router.navigateByUrl(\"/\" + ref.replace(/\\:/g, \"/\"));\n\t\t\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\tthis.oncloseSupportInfo.subscribe(() => {\n\t\t\t\t\tvar ref = this.route.snapshot.params['reference'];\n\t\t\t\t\tif(ref) {\n\t\t\t\t\t\tthis.router.navigateByUrl(\"/\" + ref.replace(/\\:/g, \"/\"));\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t}\n\n\thandleOnSpamIssue(data) {\n\t\tthis.loadingModal.open().then(() => {\n\t\t\tthis.mark(data.issue, 'spam', false).then(() => {\n\t\t\t\tthis.loadingModal.close();\n\t\t\t}).catch((e) => {\n\t\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\t\tthis.errorsService.broadcast('error', e.errorMessage || e.message);\n\t\t\t\t})\n\t\t\t});\n\t\t});\n\t}\n\n\thandleOnOpenIssue(data) {\n\t\tthis.loadingModal.open().then(() => {\n\t\t\tthis.mark(data.issue, 'open', false).then(() => {\n\t\t\t\tthis.loadingModal.close();\n\t\t\t}).catch((e) => {\n\t\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\t\tthis.errorsService.broadcast('error', e.errorMessage || e.message);\n\t\t\t\t})\n\t\t\t});\n\t\t});\n\t}\n\n  handleOnCloseIssue(data) {\n\t\tthis.loadingModal.open().then(() => {\n\t\t\tthis.mark(data.issue, 'closed', false).then((marked) => {\n\t\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\t\tif(marked) {\n\t\t\t\t\t\tthis.closeSupportInfo();\n\t\t\t\t\t\tthis.indexIssues();\n\t\t\t\t\t\tthis.toggleIssueToolbar();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}).catch((e) => {\n\t\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\t\tthis.errorsService.broadcast('error', e.errorMessage || e.message);\n\t\t\t\t})\n\t\t\t});\n\t\t});\n  }\n\n  handleOnDeleteIssue(data) {\n\t\tthis.loadingModal.open().then(() => {\n\t\t\tthis.mark(data.issue, 'deleted', false).then(() => {\n\t\t\t\tthis.loadingModal.close();\n\t\t\t\tthis.closeSupportInfo();\n\t\t\t\tthis.toggleIssueToolbar();\n\t\t\t}).catch((e) => {\n\t\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\t\tthis.errorsService.broadcast('error', e.errorMessage || e.message);\n\t\t\t\t})\n\t\t\t});\t\n\t\t});\n  }\n  \n  handleOnUserAssigned(data) {\n\t\tthis.loadingModal.open().then(() => {\n\t\t  this.supportIssueService.setUser(data.user, data.issue._id).then(() => {\n\t\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\t\tthis.getById(data.issue._id).then((issue) => {\n\t\t\t\t\t\tissue._source.user = data.user;\n\t\t\t\t\t});\n\t\t\t\t\tdata.issue._source.user = data.user;\n\t\t\t\t})\t\t\t\t\n\t\t\t}).catch((e) => {\n\t\t\t\tthis.loadingModal.close().then(() => {\n\t\t\t\t\tthis.errorsService.broadcast('error', e.errorMessage || e.message);\n\t\t\t\t})\n\t\t\t});\n\t\t})\n  }\n  \n\thandleOnCompanyUnAssigned(data) {\n\t\tthis.getById(data.issue._id).then((issue) => {\n\t\t\tconsole.log(issue)\n\t\t\tdelete issue._source.company;\n\t\t})\n\t}\n\n  handleOnCompanyAssigned($event) {\n\t  var hasUnassigned = false;\n\t\tthis.numUnAssigned = 0;\n\t  this.issues.forEach((i, index) => {\n\t\t\tif(i._id == $event.issue._id) {\n\t\t\t\ti._source.company = $event.company;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif(this.hasSelectedIssues && !i.selected)\n\t\t\t\treturn;\n\t\t  if(i._source.from[0].address == $event.issue._source.from[0].address && !i._source.company) {\n\t\t\t  hasUnassigned = true;\n\t\t\t  this.numUnAssigned += 1;\n\t\t  }\n\t  });\n\t  if(hasUnassigned) {\n\t\t\tthis.assignToAllUnassignedModal.open().then(() => {\n\t\t\t\tthis.unassignedEmail = $event.issue._source.from[0].address;\n\t\t\t\tthis.assignAllUnassignedCallback = () => {\n\t\t\t\t  this.issues.forEach((i, index) => {\n\t\t\t\t\t\tif(this.hasSelectedIssues && !i.selected)\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t  if(i._source.from[0].address == $event.issue._source.from[0].address && !i._source.company) {\n\t\t\t\t\t\t\tthis.supportIssueService.setCompany($event.company, i._id).then(() => {\n\t\t\t\t\t\t\t\ti._source.company = $event.company;\n\t\t\t\t\t\t\t}).catch((e) => {\n\t\t\t\t\t\t\t\tthis.errorsService.broadcast('error', e.errorMessage || e.message);\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tthis.assignToAllUnassignedModal.dismiss();\n\t\t\t\t\tthis.toggleIssueToolbar();\n\t\t\t\t};\n\t\t\t});\n\t\t}\n  }\n  \n}\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/components/supportlist.ts","\n\nexport class Account {\n\t\n\taccountId : number;\n\tprefix : string;\n\tstatus : number;\n\tcanPublish : number;\n\tactive : number;\n\temail : string;\n\ttype : string;\n\thasDomain : boolean;\n\tdomain : string;\n\tdomainType : number;\n\tcompanyId : number;\n\thasMaterial : boolean;\n\thasSSL : boolean;\n\tskipAccount : boolean;\n\tmaterialDomain : string;\n\n\tconstructor() {\n\t\tthis.prefix = '';\n\t\tthis.status = 0;\n\t\tthis.canPublish = 1;\n\t\tthis.active = 1;\n\t\tthis.email = '';\n\t\tthis.type = 'wphost';\n\t\tthis.domainType = 5;\n\t\tthis.domain = '';\n\t\tthis.hasSSL = false;\n\t\tthis.hasDomain = false;\n\t\tthis.skipAccount = false;\n\t}\n\n}\n\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/models/account.ts","export class Activity {\n\ttaskId: number;\n\tname: string;\n\tdescription: string;\n\tstartDate: number;\n\tendDate: number;\n\tuserId: number;\n\tstatusId: number;\n\tnote: string;\n\tprojectId: number;\n\tpriorityId: number;\n\taccountId: number;\n\tselected: boolean;\n\tfirstName: string;\n\tlastName : string;\n\tcompanyId : number;\n\tcompanyName : string;\n\tprefix : string;\n\tattributes : any[];\n\tcType : string;\n\thidden: boolean;\n\taccount : any;\n}\n\nexport class ActivityList {\n\tlist : Activity[];\n\ttotal : Number;\n}\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/models/activity.ts","export class Domain {\n\tdomain : string;\n  statusId : number;\n\tdomainId : number;\n\tupdateDate : number;\n  company : { name : string, companyId : number };\n\tcompanyId : number;\n\thosting : string; // internal or external (internal = Route53)\n\tmail : string; // remote or local\n\tid : string; \n\tnameISPInfo : any;\n}\n\nexport class DomainRegisterParams {\n\tshieldWhois : boolean;\n\tautoRenew : boolean;\n\tperiod : number;\n\tcomments : string;\n}\n\nexport class DomainList {\n\tlist : Domain[];\n\ttotal : Number;\n}\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/models/domain.ts","import { Company }           from './company';\n\nexport class SupportIssue {\n\t_index : string;\n\t_id : string;\n\turl: String;\n\theaders : any[];\n\tselected : boolean;\n\tisReferenced : boolean;\n\thidden : boolean;\n\treferencedIssues : any[];\n\t_source: {\n\t\theaders : {\n\t\t\treferences : string,\n\t\t\tsubject : string,\n\t\t\t'in-reply-to' : string,\n\t\t\tto : string,\n\t\t\tcc : string,\n\t\t\t'reply-to' : string,\n\t\t\t'replyto' : string\n\t\t},\n\t\thtml : string,\n\t\ttext : string,\n\t\tattachments : any[],\n\t\tstatus : string,\n\t\tdate : Date,\n\t\tfrom : any[],\n\t\tto : any[],\n\t\tcc : any[],\n\t\tcompany : Company,\n\t\tuser : {},\n\t\treplies : any[],\n\t\tcomments : any[],\n\t};\t\n\tactivities : any[];\n\tisNew : boolean;\n}\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/models/supportissue.ts","import { Component } from '@angular/core';\n\n@Component({\n  selector: 'no-content',\n  template: `\n    <div>\n      <h1>404: page missing</h1>\n    </div>\n  `\n})\nexport class NoContentComponent {\n\n}\n\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/no-content/no-content.component.ts","// truncate.ts\nimport {Pipe, PipeTransform} from '@angular/core';\n\n@Pipe({\n  name: 'nl2br'\n})\n\nexport class Nl2Br implements PipeTransform {\n  transform(value: string, args: string[]) : string {\n\t\tif (!value) {\n\t  \treturn(\"\");\n\t  }\n    return value.replace(/\\n/g, '<br />')\n  }\n}\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/pipes/nl2br.ts","// truncate.ts\nimport {Pipe, PipeTransform} from '@angular/core';\n\n@Pipe({\n  name: 'truncate'\n})\n\nexport class Truncate implements PipeTransform {\n  transform(value: string, args: string[]) : string {\n\t\tif (!value) {\n\t  \treturn(\"\");\n\t  }\n    let limit = (args && args.length > 0) ? parseInt(args[0], 10) : 10;\n    let trail = (args && args.length > 1) ? args[1] : '...';\n    return value.length > limit ? value.substring(0, limit) + trail : value;\n  }\n}\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/app/pipes/truncate.ts","\"use strict\";\nvar infinite_scroll_1 = require('./src/infinite-scroll');\nvar position_resolver_1 = require('./src/position-resolver');\nvar axis_resolver_1 = require('./src/axis-resolver');\nvar infinite_scroll_2 = require('./src/infinite-scroll');\nexports.InfiniteScroll = infinite_scroll_2.InfiniteScroll;\nvar position_resolver_2 = require('./src/position-resolver');\nexports.PositionResolver = position_resolver_2.PositionResolver;\nexports.PositionResolverFactory = position_resolver_2.PositionResolverFactory;\nvar axis_resolver_2 = require('./src/axis-resolver');\nexports.AxisResolver = axis_resolver_2.AxisResolver;\nexports.AxisResolverFactory = axis_resolver_2.AxisResolverFactory;\nvar index_1 = require('./src/index');\nexports.InfiniteScrollModule = index_1.InfiniteScrollModule;\nvar scroll_register_1 = require('./src/scroll-register');\nexports.ScrollRegister = scroll_register_1.ScrollRegister;\nvar scroll_resolver_1 = require('./src/scroll-resolver');\nexports.ScrollResolver = scroll_resolver_1.ScrollResolver;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.default = {\n    directives: [infinite_scroll_1.InfiniteScroll, axis_resolver_1.AxisResolver, position_resolver_1.PositionResolver]\n};\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW5ndWxhcjItaW5maW5pdGUtc2Nyb2xsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiYW5ndWxhcjItaW5maW5pdGUtc2Nyb2xsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxnQ0FBK0IsdUJBQXVCLENBQUMsQ0FBQTtBQUN2RCxrQ0FBaUMseUJBQXlCLENBQUMsQ0FBQTtBQUMzRCw4QkFBNkIscUJBQXFCLENBQUMsQ0FBQTtBQUluRCxnQ0FBK0IsdUJBQXVCLENBQUM7QUFBOUMsMERBQThDO0FBQ3ZELGtDQUEwRCx5QkFBeUIsQ0FBQztBQUEzRSxnRUFBZ0I7QUFBRSw4RUFBeUQ7QUFDcEYsOEJBQWtELHFCQUFxQixDQUFDO0FBQS9ELG9EQUFZO0FBQUUsa0VBQWlEO0FBQ3hFLHNCQUFxQyxhQUFhLENBQUM7QUFBMUMsNERBQTBDO0FBQ25ELGdDQUErQix1QkFBdUIsQ0FBQztBQUE5QywwREFBOEM7QUFDdkQsZ0NBQStCLHVCQUF1QixDQUFDO0FBQTlDLDBEQUE4QztBQUd2RDtrQkFBZTtJQUNkLFVBQVUsRUFBRSxDQUFFLGdDQUFjLEVBQUUsNEJBQVksRUFBRSxvQ0FBZ0IsQ0FBRTtDQUM5RCxDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgSW5maW5pdGVTY3JvbGwgfSBmcm9tICcuL3NyYy9pbmZpbml0ZS1zY3JvbGwnO1xuaW1wb3J0IHsgUG9zaXRpb25SZXNvbHZlciB9IGZyb20gJy4vc3JjL3Bvc2l0aW9uLXJlc29sdmVyJztcbmltcG9ydCB7IEF4aXNSZXNvbHZlciB9IGZyb20gJy4vc3JjL2F4aXMtcmVzb2x2ZXInO1xuaW1wb3J0IHsgU2Nyb2xsUmVnaXN0ZXIgfSBmcm9tICcuL3NyYy9zY3JvbGwtcmVnaXN0ZXInO1xuaW1wb3J0IHsgU2Nyb2xsUmVzb2x2ZXIgfSBmcm9tICcuL3NyYy9zY3JvbGwtcmVzb2x2ZXInO1xuXG5leHBvcnQgeyBJbmZpbml0ZVNjcm9sbCB9IGZyb20gJy4vc3JjL2luZmluaXRlLXNjcm9sbCc7XG5leHBvcnQgeyBQb3NpdGlvblJlc29sdmVyLCBQb3NpdGlvblJlc29sdmVyRmFjdG9yeSB9IGZyb20gJy4vc3JjL3Bvc2l0aW9uLXJlc29sdmVyJztcbmV4cG9ydCB7IEF4aXNSZXNvbHZlciwgQXhpc1Jlc29sdmVyRmFjdG9yeSB9IGZyb20gJy4vc3JjL2F4aXMtcmVzb2x2ZXInO1xuZXhwb3J0IHsgSW5maW5pdGVTY3JvbGxNb2R1bGUgfSBmcm9tICcuL3NyYy9pbmRleCc7XG5leHBvcnQgeyBTY3JvbGxSZWdpc3RlciB9IGZyb20gJy4vc3JjL3Njcm9sbC1yZWdpc3Rlcic7XG5leHBvcnQgeyBTY3JvbGxSZXNvbHZlciB9IGZyb20gJy4vc3JjL3Njcm9sbC1yZXNvbHZlcic7XG5leHBvcnQgKiBmcm9tICcuL3NyYy9tb2RlbHMnO1xuXG5leHBvcnQgZGVmYXVsdCB7XG5cdGRpcmVjdGl2ZXM6IFsgSW5maW5pdGVTY3JvbGwsIEF4aXNSZXNvbHZlciwgUG9zaXRpb25SZXNvbHZlciBdXG59XG5pbnRlcmZhY2UgRGVjb3JhdG9ySW52b2NhdGlvbiB7XG4gIHR5cGU6IEZ1bmN0aW9uO1xuICBhcmdzPzogYW55W107XG59XG4iXX0=\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/angular2-infinite-scroll/angular2-infinite-scroll.js\n// module id = 816\n// module chunks = 0","\"use strict\";\nvar core_1 = require('@angular/core');\nvar infinite_scroll_1 = require('./infinite-scroll');\nvar axis_resolver_1 = require('./axis-resolver');\nvar position_resolver_1 = require('./position-resolver');\nvar scroll_register_1 = require('./scroll-register');\nvar scroll_resolver_1 = require('./scroll-resolver');\nvar InfiniteScrollModule = (function () {\n    function InfiniteScrollModule() {\n    }\n    InfiniteScrollModule.decorators = [\n        { type: core_1.NgModule, args: [{\n                    imports: [],\n                    declarations: [infinite_scroll_1.InfiniteScroll],\n                    exports: [infinite_scroll_1.InfiniteScroll],\n                    providers: [\n                        axis_resolver_1.AxisResolverFactory,\n                        position_resolver_1.PositionResolverFactory,\n                        scroll_register_1.ScrollRegister,\n                        scroll_resolver_1.ScrollResolver\n                    ]\n                },] },\n    ];\n    /** @nocollapse */\n    InfiniteScrollModule.ctorParameters = function () { return []; };\n    return InfiniteScrollModule;\n}());\nexports.InfiniteScrollModule = InfiniteScrollModule;\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEscUJBQXlCLGVBQWUsQ0FBQyxDQUFBO0FBRXpDLGdDQUErQixtQkFBbUIsQ0FBQyxDQUFBO0FBQ25ELDhCQUFvQyxpQkFBaUIsQ0FBQyxDQUFBO0FBQ3RELGtDQUF3QyxxQkFBcUIsQ0FBQyxDQUFBO0FBQzlELGdDQUErQixtQkFBbUIsQ0FBQyxDQUFBO0FBQ25ELGdDQUErQixtQkFBbUIsQ0FBQyxDQUFBO0FBR25EO0lBQUE7SUFnQkEsQ0FBQztJQWhCMEMsK0JBQVUsR0FBMEI7UUFDL0UsRUFBRSxJQUFJLEVBQUUsZUFBUSxFQUFFLElBQUksRUFBRSxDQUFDO29CQUN2QixPQUFPLEVBQUUsRUFBRTtvQkFDWCxZQUFZLEVBQUUsQ0FBQyxnQ0FBYyxDQUFDO29CQUM5QixPQUFPLEVBQUUsQ0FBQyxnQ0FBYyxDQUFDO29CQUN6QixTQUFTLEVBQUU7d0JBQ1QsbUNBQW1CO3dCQUNuQiwyQ0FBdUI7d0JBQ3ZCLGdDQUFjO3dCQUNkLGdDQUFjO3FCQUNmO2lCQUNGLEVBQUcsRUFBRTtLQUNMLENBQUM7SUFDRixrQkFBa0I7SUFDWCxtQ0FBYyxHQUFtRSxjQUFNLE9BQUEsRUFDN0YsRUFENkYsQ0FDN0YsQ0FBQztJQUNGLDJCQUFDO0FBQUQsQ0FBQyxBQWhCRCxJQWdCQztBQWhCWSw0QkFBb0IsdUJBZ0JoQyxDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgTmdNb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuaW1wb3J0IHsgSW5maW5pdGVTY3JvbGwgfSBmcm9tICcuL2luZmluaXRlLXNjcm9sbCc7XG5pbXBvcnQgeyBBeGlzUmVzb2x2ZXJGYWN0b3J5IH0gZnJvbSAnLi9heGlzLXJlc29sdmVyJztcbmltcG9ydCB7IFBvc2l0aW9uUmVzb2x2ZXJGYWN0b3J5IH0gZnJvbSAnLi9wb3NpdGlvbi1yZXNvbHZlcic7XG5pbXBvcnQgeyBTY3JvbGxSZWdpc3RlciB9IGZyb20gJy4vc2Nyb2xsLXJlZ2lzdGVyJztcbmltcG9ydCB7IFNjcm9sbFJlc29sdmVyIH0gZnJvbSAnLi9zY3JvbGwtcmVzb2x2ZXInO1xuXG5cbmV4cG9ydCBjbGFzcyBJbmZpbml0ZVNjcm9sbE1vZHVsZSB7IHN0YXRpYyBkZWNvcmF0b3JzOiBEZWNvcmF0b3JJbnZvY2F0aW9uW10gPSBbXG57IHR5cGU6IE5nTW9kdWxlLCBhcmdzOiBbe1xuICBpbXBvcnRzOiBbXSxcbiAgZGVjbGFyYXRpb25zOiBbSW5maW5pdGVTY3JvbGxdLFxuICBleHBvcnRzOiBbSW5maW5pdGVTY3JvbGxdLFxuICBwcm92aWRlcnM6IFtcbiAgICBBeGlzUmVzb2x2ZXJGYWN0b3J5LFxuICAgIFBvc2l0aW9uUmVzb2x2ZXJGYWN0b3J5LFxuICAgIFNjcm9sbFJlZ2lzdGVyLFxuICAgIFNjcm9sbFJlc29sdmVyXG4gIF1cbn0sIF0gfSxcbl07XG4vKiogQG5vY29sbGFwc2UgKi9cbnN0YXRpYyBjdG9yUGFyYW1ldGVyczogKCkgPT4gKHt0eXBlOiBhbnksIGRlY29yYXRvcnM/OiBEZWNvcmF0b3JJbnZvY2F0aW9uW119fG51bGwpW10gPSAoKSA9PiBbXG5dO1xufVxuXG5pbnRlcmZhY2UgRGVjb3JhdG9ySW52b2NhdGlvbiB7XG4gIHR5cGU6IEZ1bmN0aW9uO1xuICBhcmdzPzogYW55W107XG59XG4iXX0=\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/angular2-infinite-scroll/src/index.js\n// module id = 817\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nvar __param = (this && this.__param) || function (paramIndex, decorator) {\n    return function (target, key) { decorator(target, key, paramIndex); }\n};\nvar http_1 = require(\"@angular/http\");\nvar core_1 = require(\"@angular/core\");\nvar Observable_1 = require(\"rxjs/Observable\");\nrequire(\"rxjs/add/observable/fromPromise\");\nrequire(\"rxjs/add/observable/defer\");\nrequire(\"rxjs/add/operator/mergeMap\");\nvar AuthConfigConsts = (function () {\n    function AuthConfigConsts() {\n    }\n    return AuthConfigConsts;\n}());\nAuthConfigConsts.DEFAULT_TOKEN_NAME = 'token';\nAuthConfigConsts.DEFAULT_HEADER_NAME = 'Authorization';\nAuthConfigConsts.HEADER_PREFIX_BEARER = 'Bearer ';\nexports.AuthConfigConsts = AuthConfigConsts;\nvar AuthConfigDefaults = {\n    headerName: AuthConfigConsts.DEFAULT_HEADER_NAME,\n    headerPrefix: null,\n    tokenName: AuthConfigConsts.DEFAULT_TOKEN_NAME,\n    tokenGetter: function () { return localStorage.getItem(AuthConfigDefaults.tokenName); },\n    noJwtError: false,\n    noClientCheck: false,\n    globalHeaders: [],\n    noTokenScheme: false\n};\n/**\n * Sets up the authentication configuration.\n */\nvar AuthConfig = (function () {\n    function AuthConfig(config) {\n        config = config || {};\n        this._config = objectAssign({}, AuthConfigDefaults, config);\n        if (this._config.headerPrefix) {\n            this._config.headerPrefix += ' ';\n        }\n        else if (this._config.noTokenScheme) {\n            this._config.headerPrefix = '';\n        }\n        else {\n            this._config.headerPrefix = AuthConfigConsts.HEADER_PREFIX_BEARER;\n        }\n        if (config.tokenName && !config.tokenGetter) {\n            this._config.tokenGetter = function () { return localStorage.getItem(config.tokenName); };\n        }\n    }\n    AuthConfig.prototype.getConfig = function () {\n        return this._config;\n    };\n    return AuthConfig;\n}());\nexports.AuthConfig = AuthConfig;\nvar AuthHttpError = (function (_super) {\n    __extends(AuthHttpError, _super);\n    function AuthHttpError() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    return AuthHttpError;\n}(Error));\nexports.AuthHttpError = AuthHttpError;\n/**\n * Allows for explicit authenticated HTTP requests.\n */\nvar AuthHttp = (function () {\n    function AuthHttp(options, http, defOpts) {\n        var _this = this;\n        this.http = http;\n        this.defOpts = defOpts;\n        this.config = options.getConfig();\n        this.tokenStream = new Observable_1.Observable(function (obs) {\n            obs.next(_this.config.tokenGetter());\n        });\n    }\n    AuthHttp.prototype.mergeOptions = function (providedOpts, defaultOpts) {\n        var newOptions = defaultOpts || new http_1.RequestOptions();\n        if (this.config.globalHeaders) {\n            this.setGlobalHeaders(this.config.globalHeaders, providedOpts);\n        }\n        newOptions = newOptions.merge(new http_1.RequestOptions(providedOpts));\n        return newOptions;\n    };\n    AuthHttp.prototype.requestHelper = function (requestArgs, additionalOptions) {\n        var options = new http_1.RequestOptions(requestArgs);\n        if (additionalOptions) {\n            options = options.merge(additionalOptions);\n        }\n        return this.request(new http_1.Request(this.mergeOptions(options, this.defOpts)));\n    };\n    AuthHttp.prototype.requestWithToken = function (req, token) {\n        if (!this.config.noClientCheck && !tokenNotExpired(undefined, token)) {\n            if (!this.config.noJwtError) {\n                return new Observable_1.Observable(function (obs) {\n                    obs.error(new AuthHttpError('No JWT present or has expired'));\n                });\n            }\n        }\n        else {\n            req.headers.set(this.config.headerName, this.config.headerPrefix + token);\n        }\n        return this.http.request(req);\n    };\n    AuthHttp.prototype.setGlobalHeaders = function (headers, request) {\n        if (!request.headers) {\n            request.headers = new http_1.Headers();\n        }\n        headers.forEach(function (header) {\n            var key = Object.keys(header)[0];\n            var headerValue = header[key];\n            request.headers.set(key, headerValue);\n        });\n    };\n    AuthHttp.prototype.request = function (url, options) {\n        var _this = this;\n        if (typeof url === 'string') {\n            return this.get(url, options); // Recursion: transform url from String to Request\n        }\n        // else if ( ! url instanceof Request ) {\n        //   throw new Error('First argument must be a url string or Request instance.');\n        // }\n        // from this point url is always an instance of Request;\n        var req = url;\n        // Create a cold observable and load the token just in time\n        return Observable_1.Observable.defer(function () {\n            var token = _this.config.tokenGetter();\n            if (token instanceof Promise) {\n                return Observable_1.Observable.fromPromise(token).mergeMap(function (jwtToken) { return _this.requestWithToken(req, jwtToken); });\n            }\n            else {\n                return _this.requestWithToken(req, token);\n            }\n        });\n    };\n    AuthHttp.prototype.get = function (url, options) {\n        return this.requestHelper({ body: '', method: http_1.RequestMethod.Get, url: url }, options);\n    };\n    AuthHttp.prototype.post = function (url, body, options) {\n        return this.requestHelper({ body: body, method: http_1.RequestMethod.Post, url: url }, options);\n    };\n    AuthHttp.prototype.put = function (url, body, options) {\n        return this.requestHelper({ body: body, method: http_1.RequestMethod.Put, url: url }, options);\n    };\n    AuthHttp.prototype.delete = function (url, options) {\n        return this.requestHelper({ body: '', method: http_1.RequestMethod.Delete, url: url }, options);\n    };\n    AuthHttp.prototype.patch = function (url, body, options) {\n        return this.requestHelper({ body: body, method: http_1.RequestMethod.Patch, url: url }, options);\n    };\n    AuthHttp.prototype.head = function (url, options) {\n        return this.requestHelper({ body: '', method: http_1.RequestMethod.Head, url: url }, options);\n    };\n    AuthHttp.prototype.options = function (url, options) {\n        return this.requestHelper({ body: '', method: http_1.RequestMethod.Options, url: url }, options);\n    };\n    return AuthHttp;\n}());\nAuthHttp = __decorate([\n    core_1.Injectable(),\n    __metadata(\"design:paramtypes\", [AuthConfig, http_1.Http, http_1.RequestOptions])\n], AuthHttp);\nexports.AuthHttp = AuthHttp;\n/**\n * Helper class to decode and find JWT expiration.\n */\nvar JwtHelper = (function () {\n    function JwtHelper() {\n    }\n    JwtHelper.prototype.urlBase64Decode = function (str) {\n        var output = str.replace(/-/g, '+').replace(/_/g, '/');\n        switch (output.length % 4) {\n            case 0: {\n                break;\n            }\n            case 2: {\n                output += '==';\n                break;\n            }\n            case 3: {\n                output += '=';\n                break;\n            }\n            default: {\n                throw 'Illegal base64url string!';\n            }\n        }\n        return this.b64DecodeUnicode(output);\n    };\n    // credits for decoder goes to https://github.com/atk\n    JwtHelper.prototype.b64decode = function (str) {\n        var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';\n        var output = '';\n        str = String(str).replace(/=+$/, '');\n        if (str.length % 4 == 1) {\n            throw new Error(\"'atob' failed: The string to be decoded is not correctly encoded.\");\n        }\n        for (\n        // initialize result and counters\n        var bc = 0, bs = void 0, buffer = void 0, idx = 0; \n        // get next character\n        buffer = str.charAt(idx++); \n        // character found in table? initialize bit storage and add its ascii value;\n        ~buffer && (bs = bc % 4 ? bs * 64 + buffer : buffer,\n            // and if not first of each 4 characters,\n            // convert the first 8 bits to one ascii character\n            bc++ % 4) ? output += String.fromCharCode(255 & bs >> (-2 * bc & 6)) : 0) {\n            // try to find character in table (0-63, not found => -1)\n            buffer = chars.indexOf(buffer);\n        }\n        return output;\n    };\n    // https://developer.mozilla.org/en/docs/Web/API/WindowBase64/Base64_encoding_and_decoding#The_Unicode_Problem\n    JwtHelper.prototype.b64DecodeUnicode = function (str) {\n        return decodeURIComponent(Array.prototype.map.call(this.b64decode(str), function (c) {\n            return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);\n        }).join(''));\n    };\n    JwtHelper.prototype.decodeToken = function (token) {\n        var parts = token.split('.');\n        if (parts.length !== 3) {\n            throw new Error('JWT must have 3 parts');\n        }\n        var decoded = this.urlBase64Decode(parts[1]);\n        if (!decoded) {\n            throw new Error('Cannot decode the token');\n        }\n        return JSON.parse(decoded);\n    };\n    JwtHelper.prototype.getTokenExpirationDate = function (token) {\n        var decoded;\n        decoded = this.decodeToken(token);\n        if (!decoded.hasOwnProperty('exp')) {\n            return null;\n        }\n        var date = new Date(0); // The 0 here is the key, which sets the date to the epoch\n        date.setUTCSeconds(decoded.exp);\n        return date;\n    };\n    JwtHelper.prototype.isTokenExpired = function (token, offsetSeconds) {\n        var date = this.getTokenExpirationDate(token);\n        offsetSeconds = offsetSeconds || 0;\n        if (date == null) {\n            return false;\n        }\n        // Token expired?\n        return !(date.valueOf() > (new Date().valueOf() + (offsetSeconds * 1000)));\n    };\n    return JwtHelper;\n}());\nexports.JwtHelper = JwtHelper;\n/**\n * Checks for presence of token and that token hasn't expired.\n * For use with the @CanActivate router decorator and NgIf\n */\nfunction tokenNotExpired(tokenName, jwt) {\n    if (tokenName === void 0) { tokenName = AuthConfigConsts.DEFAULT_TOKEN_NAME; }\n    var token = jwt || localStorage.getItem(tokenName);\n    var jwtHelper = new JwtHelper();\n    return token != null && !jwtHelper.isTokenExpired(token);\n}\nexports.tokenNotExpired = tokenNotExpired;\nexports.AUTH_PROVIDERS = [\n    {\n        provide: AuthHttp,\n        deps: [http_1.Http, http_1.RequestOptions],\n        useFactory: function (http, options) {\n            return new AuthHttp(new AuthConfig(), http, options);\n        }\n    }\n];\nfunction provideAuth(config) {\n    return [\n        {\n            provide: AuthHttp,\n            deps: [http_1.Http, http_1.RequestOptions],\n            useFactory: function (http, options) {\n                return new AuthHttp(new AuthConfig(config), http, options);\n            }\n        }\n    ];\n}\nexports.provideAuth = provideAuth;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\nfunction toObject(val) {\n    if (val === null || val === undefined) {\n        throw new TypeError('Object.assign cannot be called with null or undefined');\n    }\n    return Object(val);\n}\nfunction objectAssign(target) {\n    var source = [];\n    for (var _i = 1; _i < arguments.length; _i++) {\n        source[_i - 1] = arguments[_i];\n    }\n    var from;\n    var to = toObject(target);\n    var symbols;\n    for (var s = 1; s < arguments.length; s++) {\n        from = Object(arguments[s]);\n        for (var key in from) {\n            if (hasOwnProperty.call(from, key)) {\n                to[key] = from[key];\n            }\n        }\n        if (Object.getOwnPropertySymbols) {\n            symbols = Object.getOwnPropertySymbols(from);\n            for (var i = 0; i < symbols.length; i++) {\n                if (propIsEnumerable.call(from, symbols[i])) {\n                    to[symbols[i]] = from[symbols[i]];\n                }\n            }\n        }\n    }\n    return to;\n}\n/**\n * Module for angular2-jwt\n * @experimental\n */\nvar AuthModule = AuthModule_1 = (function () {\n    function AuthModule(parentModule) {\n        if (parentModule) {\n            throw new Error('AuthModule is already loaded. Import it in the AppModule only');\n        }\n    }\n    AuthModule.forRoot = function (config) {\n        return {\n            ngModule: AuthModule_1,\n            providers: [\n                { provide: AuthConfig, useValue: config }\n            ]\n        };\n    };\n    return AuthModule;\n}());\nAuthModule = AuthModule_1 = __decorate([\n    core_1.NgModule({\n        imports: [http_1.HttpModule],\n        providers: [AuthHttp, JwtHelper]\n    }),\n    __param(0, core_1.Optional()), __param(0, core_1.SkipSelf()),\n    __metadata(\"design:paramtypes\", [AuthModule])\n], AuthModule);\nexports.AuthModule = AuthModule;\nvar AuthModule_1;\n//# sourceMappingURL=angular2-jwt.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/angular2-jwt/angular2-jwt.js\n// module id = 818\n// module chunks = 0","'use strict'\n\nexports.byteLength = byteLength\nexports.toByteArray = toByteArray\nexports.fromByteArray = fromByteArray\n\nvar lookup = []\nvar revLookup = []\nvar Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array\n\nvar code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'\nfor (var i = 0, len = code.length; i < len; ++i) {\n  lookup[i] = code[i]\n  revLookup[code.charCodeAt(i)] = i\n}\n\n// Support decoding URL-safe base64 strings, as Node.js does.\n// See: https://en.wikipedia.org/wiki/Base64#URL_applications\nrevLookup['-'.charCodeAt(0)] = 62\nrevLookup['_'.charCodeAt(0)] = 63\n\nfunction getLens (b64) {\n  var len = b64.length\n\n  if (len % 4 > 0) {\n    throw new Error('Invalid string. Length must be a multiple of 4')\n  }\n\n  // Trim off extra bytes after placeholder bytes are found\n  // See: https://github.com/beatgammit/base64-js/issues/42\n  var validLen = b64.indexOf('=')\n  if (validLen === -1) validLen = len\n\n  var placeHoldersLen = validLen === len\n    ? 0\n    : 4 - (validLen % 4)\n\n  return [validLen, placeHoldersLen]\n}\n\n// base64 is 4/3 + up to two characters of the original data\nfunction byteLength (b64) {\n  var lens = getLens(b64)\n  var validLen = lens[0]\n  var placeHoldersLen = lens[1]\n  return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction _byteLength (b64, validLen, placeHoldersLen) {\n  return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction toByteArray (b64) {\n  var tmp\n  var lens = getLens(b64)\n  var validLen = lens[0]\n  var placeHoldersLen = lens[1]\n\n  var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))\n\n  var curByte = 0\n\n  // if there are placeholders, only get up to the last complete 4 chars\n  var len = placeHoldersLen > 0\n    ? validLen - 4\n    : validLen\n\n  var i\n  for (i = 0; i < len; i += 4) {\n    tmp =\n      (revLookup[b64.charCodeAt(i)] << 18) |\n      (revLookup[b64.charCodeAt(i + 1)] << 12) |\n      (revLookup[b64.charCodeAt(i + 2)] << 6) |\n      revLookup[b64.charCodeAt(i + 3)]\n    arr[curByte++] = (tmp >> 16) & 0xFF\n    arr[curByte++] = (tmp >> 8) & 0xFF\n    arr[curByte++] = tmp & 0xFF\n  }\n\n  if (placeHoldersLen === 2) {\n    tmp =\n      (revLookup[b64.charCodeAt(i)] << 2) |\n      (revLookup[b64.charCodeAt(i + 1)] >> 4)\n    arr[curByte++] = tmp & 0xFF\n  }\n\n  if (placeHoldersLen === 1) {\n    tmp =\n      (revLookup[b64.charCodeAt(i)] << 10) |\n      (revLookup[b64.charCodeAt(i + 1)] << 4) |\n      (revLookup[b64.charCodeAt(i + 2)] >> 2)\n    arr[curByte++] = (tmp >> 8) & 0xFF\n    arr[curByte++] = tmp & 0xFF\n  }\n\n  return arr\n}\n\nfunction tripletToBase64 (num) {\n  return lookup[num >> 18 & 0x3F] +\n    lookup[num >> 12 & 0x3F] +\n    lookup[num >> 6 & 0x3F] +\n    lookup[num & 0x3F]\n}\n\nfunction encodeChunk (uint8, start, end) {\n  var tmp\n  var output = []\n  for (var i = start; i < end; i += 3) {\n    tmp =\n      ((uint8[i] << 16) & 0xFF0000) +\n      ((uint8[i + 1] << 8) & 0xFF00) +\n      (uint8[i + 2] & 0xFF)\n    output.push(tripletToBase64(tmp))\n  }\n  return output.join('')\n}\n\nfunction fromByteArray (uint8) {\n  var tmp\n  var len = uint8.length\n  var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes\n  var parts = []\n  var maxChunkLength = 16383 // must be multiple of 3\n\n  // go through the array every three bytes, we'll deal with trailing stuff later\n  for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {\n    parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))\n  }\n\n  // pad the end with zeros, but make sure to not forget the extra bytes\n  if (extraBytes === 1) {\n    tmp = uint8[len - 1]\n    parts.push(\n      lookup[tmp >> 2] +\n      lookup[(tmp << 4) & 0x3F] +\n      '=='\n    )\n  } else if (extraBytes === 2) {\n    tmp = (uint8[len - 2] << 8) + uint8[len - 1]\n    parts.push(\n      lookup[tmp >> 10] +\n      lookup[(tmp >> 4) & 0x3F] +\n      lookup[(tmp << 2) & 0x3F] +\n      '='\n    )\n  }\n\n  return parts.join('')\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/base64-js/index.js\n// module id = 819\n// module chunks = 0","/*!\n * Chart.js v2.9.4\n * https://www.chartjs.org\n * (c) 2020 Chart.js Contributors\n * Released under the MIT License\n */\n(function (global, factory) {\ntypeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(function() { try { return require('moment'); } catch(e) { } }()) :\ntypeof define === 'function' && define.amd ? define(['require'], function(require) { return factory(function() { try { return require('moment'); } catch(e) { } }()); }) :\n(global = global || self, global.Chart = factory(global.moment));\n}(this, (function (moment) { 'use strict';\n\nmoment = moment && moment.hasOwnProperty('default') ? moment['default'] : moment;\n\nfunction createCommonjsModule(fn, module) {\n\treturn module = { exports: {} }, fn(module, module.exports), module.exports;\n}\n\nfunction getCjsExportFromNamespace (n) {\n\treturn n && n['default'] || n;\n}\n\nvar colorName = {\r\n\t\"aliceblue\": [240, 248, 255],\r\n\t\"antiquewhite\": [250, 235, 215],\r\n\t\"aqua\": [0, 255, 255],\r\n\t\"aquamarine\": [127, 255, 212],\r\n\t\"azure\": [240, 255, 255],\r\n\t\"beige\": [245, 245, 220],\r\n\t\"bisque\": [255, 228, 196],\r\n\t\"black\": [0, 0, 0],\r\n\t\"blanchedalmond\": [255, 235, 205],\r\n\t\"blue\": [0, 0, 255],\r\n\t\"blueviolet\": [138, 43, 226],\r\n\t\"brown\": [165, 42, 42],\r\n\t\"burlywood\": [222, 184, 135],\r\n\t\"cadetblue\": [95, 158, 160],\r\n\t\"chartreuse\": [127, 255, 0],\r\n\t\"chocolate\": [210, 105, 30],\r\n\t\"coral\": [255, 127, 80],\r\n\t\"cornflowerblue\": [100, 149, 237],\r\n\t\"cornsilk\": [255, 248, 220],\r\n\t\"crimson\": [220, 20, 60],\r\n\t\"cyan\": [0, 255, 255],\r\n\t\"darkblue\": [0, 0, 139],\r\n\t\"darkcyan\": [0, 139, 139],\r\n\t\"darkgoldenrod\": [184, 134, 11],\r\n\t\"darkgray\": [169, 169, 169],\r\n\t\"darkgreen\": [0, 100, 0],\r\n\t\"darkgrey\": [169, 169, 169],\r\n\t\"darkkhaki\": [189, 183, 107],\r\n\t\"darkmagenta\": [139, 0, 139],\r\n\t\"darkolivegreen\": [85, 107, 47],\r\n\t\"darkorange\": [255, 140, 0],\r\n\t\"darkorchid\": [153, 50, 204],\r\n\t\"darkred\": [139, 0, 0],\r\n\t\"darksalmon\": [233, 150, 122],\r\n\t\"darkseagreen\": [143, 188, 143],\r\n\t\"darkslateblue\": [72, 61, 139],\r\n\t\"darkslategray\": [47, 79, 79],\r\n\t\"darkslategrey\": [47, 79, 79],\r\n\t\"darkturquoise\": [0, 206, 209],\r\n\t\"darkviolet\": [148, 0, 211],\r\n\t\"deeppink\": [255, 20, 147],\r\n\t\"deepskyblue\": [0, 191, 255],\r\n\t\"dimgray\": [105, 105, 105],\r\n\t\"dimgrey\": [105, 105, 105],\r\n\t\"dodgerblue\": [30, 144, 255],\r\n\t\"firebrick\": [178, 34, 34],\r\n\t\"floralwhite\": [255, 250, 240],\r\n\t\"forestgreen\": [34, 139, 34],\r\n\t\"fuchsia\": [255, 0, 255],\r\n\t\"gainsboro\": [220, 220, 220],\r\n\t\"ghostwhite\": [248, 248, 255],\r\n\t\"gold\": [255, 215, 0],\r\n\t\"goldenrod\": [218, 165, 32],\r\n\t\"gray\": [128, 128, 128],\r\n\t\"green\": [0, 128, 0],\r\n\t\"greenyellow\": [173, 255, 47],\r\n\t\"grey\": [128, 128, 128],\r\n\t\"honeydew\": [240, 255, 240],\r\n\t\"hotpink\": [255, 105, 180],\r\n\t\"indianred\": [205, 92, 92],\r\n\t\"indigo\": [75, 0, 130],\r\n\t\"ivory\": [255, 255, 240],\r\n\t\"khaki\": [240, 230, 140],\r\n\t\"lavender\": [230, 230, 250],\r\n\t\"lavenderblush\": [255, 240, 245],\r\n\t\"lawngreen\": [124, 252, 0],\r\n\t\"lemonchiffon\": [255, 250, 205],\r\n\t\"lightblue\": [173, 216, 230],\r\n\t\"lightcoral\": [240, 128, 128],\r\n\t\"lightcyan\": [224, 255, 255],\r\n\t\"lightgoldenrodyellow\": [250, 250, 210],\r\n\t\"lightgray\": [211, 211, 211],\r\n\t\"lightgreen\": [144, 238, 144],\r\n\t\"lightgrey\": [211, 211, 211],\r\n\t\"lightpink\": [255, 182, 193],\r\n\t\"lightsalmon\": [255, 160, 122],\r\n\t\"lightseagreen\": [32, 178, 170],\r\n\t\"lightskyblue\": [135, 206, 250],\r\n\t\"lightslategray\": [119, 136, 153],\r\n\t\"lightslategrey\": [119, 136, 153],\r\n\t\"lightsteelblue\": [176, 196, 222],\r\n\t\"lightyellow\": [255, 255, 224],\r\n\t\"lime\": [0, 255, 0],\r\n\t\"limegreen\": [50, 205, 50],\r\n\t\"linen\": [250, 240, 230],\r\n\t\"magenta\": [255, 0, 255],\r\n\t\"maroon\": [128, 0, 0],\r\n\t\"mediumaquamarine\": [102, 205, 170],\r\n\t\"mediumblue\": [0, 0, 205],\r\n\t\"mediumorchid\": [186, 85, 211],\r\n\t\"mediumpurple\": [147, 112, 219],\r\n\t\"mediumseagreen\": [60, 179, 113],\r\n\t\"mediumslateblue\": [123, 104, 238],\r\n\t\"mediumspringgreen\": [0, 250, 154],\r\n\t\"mediumturquoise\": [72, 209, 204],\r\n\t\"mediumvioletred\": [199, 21, 133],\r\n\t\"midnightblue\": [25, 25, 112],\r\n\t\"mintcream\": [245, 255, 250],\r\n\t\"mistyrose\": [255, 228, 225],\r\n\t\"moccasin\": [255, 228, 181],\r\n\t\"navajowhite\": [255, 222, 173],\r\n\t\"navy\": [0, 0, 128],\r\n\t\"oldlace\": [253, 245, 230],\r\n\t\"olive\": [128, 128, 0],\r\n\t\"olivedrab\": [107, 142, 35],\r\n\t\"orange\": [255, 165, 0],\r\n\t\"orangered\": [255, 69, 0],\r\n\t\"orchid\": [218, 112, 214],\r\n\t\"palegoldenrod\": [238, 232, 170],\r\n\t\"palegreen\": [152, 251, 152],\r\n\t\"paleturquoise\": [175, 238, 238],\r\n\t\"palevioletred\": [219, 112, 147],\r\n\t\"papayawhip\": [255, 239, 213],\r\n\t\"peachpuff\": [255, 218, 185],\r\n\t\"peru\": [205, 133, 63],\r\n\t\"pink\": [255, 192, 203],\r\n\t\"plum\": [221, 160, 221],\r\n\t\"powderblue\": [176, 224, 230],\r\n\t\"purple\": [128, 0, 128],\r\n\t\"rebeccapurple\": [102, 51, 153],\r\n\t\"red\": [255, 0, 0],\r\n\t\"rosybrown\": [188, 143, 143],\r\n\t\"royalblue\": [65, 105, 225],\r\n\t\"saddlebrown\": [139, 69, 19],\r\n\t\"salmon\": [250, 128, 114],\r\n\t\"sandybrown\": [244, 164, 96],\r\n\t\"seagreen\": [46, 139, 87],\r\n\t\"seashell\": [255, 245, 238],\r\n\t\"sienna\": [160, 82, 45],\r\n\t\"silver\": [192, 192, 192],\r\n\t\"skyblue\": [135, 206, 235],\r\n\t\"slateblue\": [106, 90, 205],\r\n\t\"slategray\": [112, 128, 144],\r\n\t\"slategrey\": [112, 128, 144],\r\n\t\"snow\": [255, 250, 250],\r\n\t\"springgreen\": [0, 255, 127],\r\n\t\"steelblue\": [70, 130, 180],\r\n\t\"tan\": [210, 180, 140],\r\n\t\"teal\": [0, 128, 128],\r\n\t\"thistle\": [216, 191, 216],\r\n\t\"tomato\": [255, 99, 71],\r\n\t\"turquoise\": [64, 224, 208],\r\n\t\"violet\": [238, 130, 238],\r\n\t\"wheat\": [245, 222, 179],\r\n\t\"white\": [255, 255, 255],\r\n\t\"whitesmoke\": [245, 245, 245],\r\n\t\"yellow\": [255, 255, 0],\r\n\t\"yellowgreen\": [154, 205, 50]\r\n};\n\nvar conversions = createCommonjsModule(function (module) {\n/* MIT license */\n\n\n// NOTE: conversions should only return primitive values (i.e. arrays, or\n//       values that give correct `typeof` results).\n//       do not use box values types (i.e. Number(), String(), etc.)\n\nvar reverseKeywords = {};\nfor (var key in colorName) {\n\tif (colorName.hasOwnProperty(key)) {\n\t\treverseKeywords[colorName[key]] = key;\n\t}\n}\n\nvar convert = module.exports = {\n\trgb: {channels: 3, labels: 'rgb'},\n\thsl: {channels: 3, labels: 'hsl'},\n\thsv: {channels: 3, labels: 'hsv'},\n\thwb: {channels: 3, labels: 'hwb'},\n\tcmyk: {channels: 4, labels: 'cmyk'},\n\txyz: {channels: 3, labels: 'xyz'},\n\tlab: {channels: 3, labels: 'lab'},\n\tlch: {channels: 3, labels: 'lch'},\n\thex: {channels: 1, labels: ['hex']},\n\tkeyword: {channels: 1, labels: ['keyword']},\n\tansi16: {channels: 1, labels: ['ansi16']},\n\tansi256: {channels: 1, labels: ['ansi256']},\n\thcg: {channels: 3, labels: ['h', 'c', 'g']},\n\tapple: {channels: 3, labels: ['r16', 'g16', 'b16']},\n\tgray: {channels: 1, labels: ['gray']}\n};\n\n// hide .channels and .labels properties\nfor (var model in convert) {\n\tif (convert.hasOwnProperty(model)) {\n\t\tif (!('channels' in convert[model])) {\n\t\t\tthrow new Error('missing channels property: ' + model);\n\t\t}\n\n\t\tif (!('labels' in convert[model])) {\n\t\t\tthrow new Error('missing channel labels property: ' + model);\n\t\t}\n\n\t\tif (convert[model].labels.length !== convert[model].channels) {\n\t\t\tthrow new Error('channel and label counts mismatch: ' + model);\n\t\t}\n\n\t\tvar channels = convert[model].channels;\n\t\tvar labels = convert[model].labels;\n\t\tdelete convert[model].channels;\n\t\tdelete convert[model].labels;\n\t\tObject.defineProperty(convert[model], 'channels', {value: channels});\n\t\tObject.defineProperty(convert[model], 'labels', {value: labels});\n\t}\n}\n\nconvert.rgb.hsl = function (rgb) {\n\tvar r = rgb[0] / 255;\n\tvar g = rgb[1] / 255;\n\tvar b = rgb[2] / 255;\n\tvar min = Math.min(r, g, b);\n\tvar max = Math.max(r, g, b);\n\tvar delta = max - min;\n\tvar h;\n\tvar s;\n\tvar l;\n\n\tif (max === min) {\n\t\th = 0;\n\t} else if (r === max) {\n\t\th = (g - b) / delta;\n\t} else if (g === max) {\n\t\th = 2 + (b - r) / delta;\n\t} else if (b === max) {\n\t\th = 4 + (r - g) / delta;\n\t}\n\n\th = Math.min(h * 60, 360);\n\n\tif (h < 0) {\n\t\th += 360;\n\t}\n\n\tl = (min + max) / 2;\n\n\tif (max === min) {\n\t\ts = 0;\n\t} else if (l <= 0.5) {\n\t\ts = delta / (max + min);\n\t} else {\n\t\ts = delta / (2 - max - min);\n\t}\n\n\treturn [h, s * 100, l * 100];\n};\n\nconvert.rgb.hsv = function (rgb) {\n\tvar rdif;\n\tvar gdif;\n\tvar bdif;\n\tvar h;\n\tvar s;\n\n\tvar r = rgb[0] / 255;\n\tvar g = rgb[1] / 255;\n\tvar b = rgb[2] / 255;\n\tvar v = Math.max(r, g, b);\n\tvar diff = v - Math.min(r, g, b);\n\tvar diffc = function (c) {\n\t\treturn (v - c) / 6 / diff + 1 / 2;\n\t};\n\n\tif (diff === 0) {\n\t\th = s = 0;\n\t} else {\n\t\ts = diff / v;\n\t\trdif = diffc(r);\n\t\tgdif = diffc(g);\n\t\tbdif = diffc(b);\n\n\t\tif (r === v) {\n\t\t\th = bdif - gdif;\n\t\t} else if (g === v) {\n\t\t\th = (1 / 3) + rdif - bdif;\n\t\t} else if (b === v) {\n\t\t\th = (2 / 3) + gdif - rdif;\n\t\t}\n\t\tif (h < 0) {\n\t\t\th += 1;\n\t\t} else if (h > 1) {\n\t\t\th -= 1;\n\t\t}\n\t}\n\n\treturn [\n\t\th * 360,\n\t\ts * 100,\n\t\tv * 100\n\t];\n};\n\nconvert.rgb.hwb = function (rgb) {\n\tvar r = rgb[0];\n\tvar g = rgb[1];\n\tvar b = rgb[2];\n\tvar h = convert.rgb.hsl(rgb)[0];\n\tvar w = 1 / 255 * Math.min(r, Math.min(g, b));\n\n\tb = 1 - 1 / 255 * Math.max(r, Math.max(g, b));\n\n\treturn [h, w * 100, b * 100];\n};\n\nconvert.rgb.cmyk = function (rgb) {\n\tvar r = rgb[0] / 255;\n\tvar g = rgb[1] / 255;\n\tvar b = rgb[2] / 255;\n\tvar c;\n\tvar m;\n\tvar y;\n\tvar k;\n\n\tk = Math.min(1 - r, 1 - g, 1 - b);\n\tc = (1 - r - k) / (1 - k) || 0;\n\tm = (1 - g - k) / (1 - k) || 0;\n\ty = (1 - b - k) / (1 - k) || 0;\n\n\treturn [c * 100, m * 100, y * 100, k * 100];\n};\n\n/**\n * See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance\n * */\nfunction comparativeDistance(x, y) {\n\treturn (\n\t\tMath.pow(x[0] - y[0], 2) +\n\t\tMath.pow(x[1] - y[1], 2) +\n\t\tMath.pow(x[2] - y[2], 2)\n\t);\n}\n\nconvert.rgb.keyword = function (rgb) {\n\tvar reversed = reverseKeywords[rgb];\n\tif (reversed) {\n\t\treturn reversed;\n\t}\n\n\tvar currentClosestDistance = Infinity;\n\tvar currentClosestKeyword;\n\n\tfor (var keyword in colorName) {\n\t\tif (colorName.hasOwnProperty(keyword)) {\n\t\t\tvar value = colorName[keyword];\n\n\t\t\t// Compute comparative distance\n\t\t\tvar distance = comparativeDistance(rgb, value);\n\n\t\t\t// Check if its less, if so set as closest\n\t\t\tif (distance < currentClosestDistance) {\n\t\t\t\tcurrentClosestDistance = distance;\n\t\t\t\tcurrentClosestKeyword = keyword;\n\t\t\t}\n\t\t}\n\t}\n\n\treturn currentClosestKeyword;\n};\n\nconvert.keyword.rgb = function (keyword) {\n\treturn colorName[keyword];\n};\n\nconvert.rgb.xyz = function (rgb) {\n\tvar r = rgb[0] / 255;\n\tvar g = rgb[1] / 255;\n\tvar b = rgb[2] / 255;\n\n\t// assume sRGB\n\tr = r > 0.04045 ? Math.pow(((r + 0.055) / 1.055), 2.4) : (r / 12.92);\n\tg = g > 0.04045 ? Math.pow(((g + 0.055) / 1.055), 2.4) : (g / 12.92);\n\tb = b > 0.04045 ? Math.pow(((b + 0.055) / 1.055), 2.4) : (b / 12.92);\n\n\tvar x = (r * 0.4124) + (g * 0.3576) + (b * 0.1805);\n\tvar y = (r * 0.2126) + (g * 0.7152) + (b * 0.0722);\n\tvar z = (r * 0.0193) + (g * 0.1192) + (b * 0.9505);\n\n\treturn [x * 100, y * 100, z * 100];\n};\n\nconvert.rgb.lab = function (rgb) {\n\tvar xyz = convert.rgb.xyz(rgb);\n\tvar x = xyz[0];\n\tvar y = xyz[1];\n\tvar z = xyz[2];\n\tvar l;\n\tvar a;\n\tvar b;\n\n\tx /= 95.047;\n\ty /= 100;\n\tz /= 108.883;\n\n\tx = x > 0.008856 ? Math.pow(x, 1 / 3) : (7.787 * x) + (16 / 116);\n\ty = y > 0.008856 ? Math.pow(y, 1 / 3) : (7.787 * y) + (16 / 116);\n\tz = z > 0.008856 ? Math.pow(z, 1 / 3) : (7.787 * z) + (16 / 116);\n\n\tl = (116 * y) - 16;\n\ta = 500 * (x - y);\n\tb = 200 * (y - z);\n\n\treturn [l, a, b];\n};\n\nconvert.hsl.rgb = function (hsl) {\n\tvar h = hsl[0] / 360;\n\tvar s = hsl[1] / 100;\n\tvar l = hsl[2] / 100;\n\tvar t1;\n\tvar t2;\n\tvar t3;\n\tvar rgb;\n\tvar val;\n\n\tif (s === 0) {\n\t\tval = l * 255;\n\t\treturn [val, val, val];\n\t}\n\n\tif (l < 0.5) {\n\t\tt2 = l * (1 + s);\n\t} else {\n\t\tt2 = l + s - l * s;\n\t}\n\n\tt1 = 2 * l - t2;\n\n\trgb = [0, 0, 0];\n\tfor (var i = 0; i < 3; i++) {\n\t\tt3 = h + 1 / 3 * -(i - 1);\n\t\tif (t3 < 0) {\n\t\t\tt3++;\n\t\t}\n\t\tif (t3 > 1) {\n\t\t\tt3--;\n\t\t}\n\n\t\tif (6 * t3 < 1) {\n\t\t\tval = t1 + (t2 - t1) * 6 * t3;\n\t\t} else if (2 * t3 < 1) {\n\t\t\tval = t2;\n\t\t} else if (3 * t3 < 2) {\n\t\t\tval = t1 + (t2 - t1) * (2 / 3 - t3) * 6;\n\t\t} else {\n\t\t\tval = t1;\n\t\t}\n\n\t\trgb[i] = val * 255;\n\t}\n\n\treturn rgb;\n};\n\nconvert.hsl.hsv = function (hsl) {\n\tvar h = hsl[0];\n\tvar s = hsl[1] / 100;\n\tvar l = hsl[2] / 100;\n\tvar smin = s;\n\tvar lmin = Math.max(l, 0.01);\n\tvar sv;\n\tvar v;\n\n\tl *= 2;\n\ts *= (l <= 1) ? l : 2 - l;\n\tsmin *= lmin <= 1 ? lmin : 2 - lmin;\n\tv = (l + s) / 2;\n\tsv = l === 0 ? (2 * smin) / (lmin + smin) : (2 * s) / (l + s);\n\n\treturn [h, sv * 100, v * 100];\n};\n\nconvert.hsv.rgb = function (hsv) {\n\tvar h = hsv[0] / 60;\n\tvar s = hsv[1] / 100;\n\tvar v = hsv[2] / 100;\n\tvar hi = Math.floor(h) % 6;\n\n\tvar f = h - Math.floor(h);\n\tvar p = 255 * v * (1 - s);\n\tvar q = 255 * v * (1 - (s * f));\n\tvar t = 255 * v * (1 - (s * (1 - f)));\n\tv *= 255;\n\n\tswitch (hi) {\n\t\tcase 0:\n\t\t\treturn [v, t, p];\n\t\tcase 1:\n\t\t\treturn [q, v, p];\n\t\tcase 2:\n\t\t\treturn [p, v, t];\n\t\tcase 3:\n\t\t\treturn [p, q, v];\n\t\tcase 4:\n\t\t\treturn [t, p, v];\n\t\tcase 5:\n\t\t\treturn [v, p, q];\n\t}\n};\n\nconvert.hsv.hsl = function (hsv) {\n\tvar h = hsv[0];\n\tvar s = hsv[1] / 100;\n\tvar v = hsv[2] / 100;\n\tvar vmin = Math.max(v, 0.01);\n\tvar lmin;\n\tvar sl;\n\tvar l;\n\n\tl = (2 - s) * v;\n\tlmin = (2 - s) * vmin;\n\tsl = s * vmin;\n\tsl /= (lmin <= 1) ? lmin : 2 - lmin;\n\tsl = sl || 0;\n\tl /= 2;\n\n\treturn [h, sl * 100, l * 100];\n};\n\n// http://dev.w3.org/csswg/css-color/#hwb-to-rgb\nconvert.hwb.rgb = function (hwb) {\n\tvar h = hwb[0] / 360;\n\tvar wh = hwb[1] / 100;\n\tvar bl = hwb[2] / 100;\n\tvar ratio = wh + bl;\n\tvar i;\n\tvar v;\n\tvar f;\n\tvar n;\n\n\t// wh + bl cant be > 1\n\tif (ratio > 1) {\n\t\twh /= ratio;\n\t\tbl /= ratio;\n\t}\n\n\ti = Math.floor(6 * h);\n\tv = 1 - bl;\n\tf = 6 * h - i;\n\n\tif ((i & 0x01) !== 0) {\n\t\tf = 1 - f;\n\t}\n\n\tn = wh + f * (v - wh); // linear interpolation\n\n\tvar r;\n\tvar g;\n\tvar b;\n\tswitch (i) {\n\t\tdefault:\n\t\tcase 6:\n\t\tcase 0: r = v; g = n; b = wh; break;\n\t\tcase 1: r = n; g = v; b = wh; break;\n\t\tcase 2: r = wh; g = v; b = n; break;\n\t\tcase 3: r = wh; g = n; b = v; break;\n\t\tcase 4: r = n; g = wh; b = v; break;\n\t\tcase 5: r = v; g = wh; b = n; break;\n\t}\n\n\treturn [r * 255, g * 255, b * 255];\n};\n\nconvert.cmyk.rgb = function (cmyk) {\n\tvar c = cmyk[0] / 100;\n\tvar m = cmyk[1] / 100;\n\tvar y = cmyk[2] / 100;\n\tvar k = cmyk[3] / 100;\n\tvar r;\n\tvar g;\n\tvar b;\n\n\tr = 1 - Math.min(1, c * (1 - k) + k);\n\tg = 1 - Math.min(1, m * (1 - k) + k);\n\tb = 1 - Math.min(1, y * (1 - k) + k);\n\n\treturn [r * 255, g * 255, b * 255];\n};\n\nconvert.xyz.rgb = function (xyz) {\n\tvar x = xyz[0] / 100;\n\tvar y = xyz[1] / 100;\n\tvar z = xyz[2] / 100;\n\tvar r;\n\tvar g;\n\tvar b;\n\n\tr = (x * 3.2406) + (y * -1.5372) + (z * -0.4986);\n\tg = (x * -0.9689) + (y * 1.8758) + (z * 0.0415);\n\tb = (x * 0.0557) + (y * -0.2040) + (z * 1.0570);\n\n\t// assume sRGB\n\tr = r > 0.0031308\n\t\t? ((1.055 * Math.pow(r, 1.0 / 2.4)) - 0.055)\n\t\t: r * 12.92;\n\n\tg = g > 0.0031308\n\t\t? ((1.055 * Math.pow(g, 1.0 / 2.4)) - 0.055)\n\t\t: g * 12.92;\n\n\tb = b > 0.0031308\n\t\t? ((1.055 * Math.pow(b, 1.0 / 2.4)) - 0.055)\n\t\t: b * 12.92;\n\n\tr = Math.min(Math.max(0, r), 1);\n\tg = Math.min(Math.max(0, g), 1);\n\tb = Math.min(Math.max(0, b), 1);\n\n\treturn [r * 255, g * 255, b * 255];\n};\n\nconvert.xyz.lab = function (xyz) {\n\tvar x = xyz[0];\n\tvar y = xyz[1];\n\tvar z = xyz[2];\n\tvar l;\n\tvar a;\n\tvar b;\n\n\tx /= 95.047;\n\ty /= 100;\n\tz /= 108.883;\n\n\tx = x > 0.008856 ? Math.pow(x, 1 / 3) : (7.787 * x) + (16 / 116);\n\ty = y > 0.008856 ? Math.pow(y, 1 / 3) : (7.787 * y) + (16 / 116);\n\tz = z > 0.008856 ? Math.pow(z, 1 / 3) : (7.787 * z) + (16 / 116);\n\n\tl = (116 * y) - 16;\n\ta = 500 * (x - y);\n\tb = 200 * (y - z);\n\n\treturn [l, a, b];\n};\n\nconvert.lab.xyz = function (lab) {\n\tvar l = lab[0];\n\tvar a = lab[1];\n\tvar b = lab[2];\n\tvar x;\n\tvar y;\n\tvar z;\n\n\ty = (l + 16) / 116;\n\tx = a / 500 + y;\n\tz = y - b / 200;\n\n\tvar y2 = Math.pow(y, 3);\n\tvar x2 = Math.pow(x, 3);\n\tvar z2 = Math.pow(z, 3);\n\ty = y2 > 0.008856 ? y2 : (y - 16 / 116) / 7.787;\n\tx = x2 > 0.008856 ? x2 : (x - 16 / 116) / 7.787;\n\tz = z2 > 0.008856 ? z2 : (z - 16 / 116) / 7.787;\n\n\tx *= 95.047;\n\ty *= 100;\n\tz *= 108.883;\n\n\treturn [x, y, z];\n};\n\nconvert.lab.lch = function (lab) {\n\tvar l = lab[0];\n\tvar a = lab[1];\n\tvar b = lab[2];\n\tvar hr;\n\tvar h;\n\tvar c;\n\n\thr = Math.atan2(b, a);\n\th = hr * 360 / 2 / Math.PI;\n\n\tif (h < 0) {\n\t\th += 360;\n\t}\n\n\tc = Math.sqrt(a * a + b * b);\n\n\treturn [l, c, h];\n};\n\nconvert.lch.lab = function (lch) {\n\tvar l = lch[0];\n\tvar c = lch[1];\n\tvar h = lch[2];\n\tvar a;\n\tvar b;\n\tvar hr;\n\n\thr = h / 360 * 2 * Math.PI;\n\ta = c * Math.cos(hr);\n\tb = c * Math.sin(hr);\n\n\treturn [l, a, b];\n};\n\nconvert.rgb.ansi16 = function (args) {\n\tvar r = args[0];\n\tvar g = args[1];\n\tvar b = args[2];\n\tvar value = 1 in arguments ? arguments[1] : convert.rgb.hsv(args)[2]; // hsv -> ansi16 optimization\n\n\tvalue = Math.round(value / 50);\n\n\tif (value === 0) {\n\t\treturn 30;\n\t}\n\n\tvar ansi = 30\n\t\t+ ((Math.round(b / 255) << 2)\n\t\t| (Math.round(g / 255) << 1)\n\t\t| Math.round(r / 255));\n\n\tif (value === 2) {\n\t\tansi += 60;\n\t}\n\n\treturn ansi;\n};\n\nconvert.hsv.ansi16 = function (args) {\n\t// optimization here; we already know the value and don't need to get\n\t// it converted for us.\n\treturn convert.rgb.ansi16(convert.hsv.rgb(args), args[2]);\n};\n\nconvert.rgb.ansi256 = function (args) {\n\tvar r = args[0];\n\tvar g = args[1];\n\tvar b = args[2];\n\n\t// we use the extended greyscale palette here, with the exception of\n\t// black and white. normal palette only has 4 greyscale shades.\n\tif (r === g && g === b) {\n\t\tif (r < 8) {\n\t\t\treturn 16;\n\t\t}\n\n\t\tif (r > 248) {\n\t\t\treturn 231;\n\t\t}\n\n\t\treturn Math.round(((r - 8) / 247) * 24) + 232;\n\t}\n\n\tvar ansi = 16\n\t\t+ (36 * Math.round(r / 255 * 5))\n\t\t+ (6 * Math.round(g / 255 * 5))\n\t\t+ Math.round(b / 255 * 5);\n\n\treturn ansi;\n};\n\nconvert.ansi16.rgb = function (args) {\n\tvar color = args % 10;\n\n\t// handle greyscale\n\tif (color === 0 || color === 7) {\n\t\tif (args > 50) {\n\t\t\tcolor += 3.5;\n\t\t}\n\n\t\tcolor = color / 10.5 * 255;\n\n\t\treturn [color, color, color];\n\t}\n\n\tvar mult = (~~(args > 50) + 1) * 0.5;\n\tvar r = ((color & 1) * mult) * 255;\n\tvar g = (((color >> 1) & 1) * mult) * 255;\n\tvar b = (((color >> 2) & 1) * mult) * 255;\n\n\treturn [r, g, b];\n};\n\nconvert.ansi256.rgb = function (args) {\n\t// handle greyscale\n\tif (args >= 232) {\n\t\tvar c = (args - 232) * 10 + 8;\n\t\treturn [c, c, c];\n\t}\n\n\targs -= 16;\n\n\tvar rem;\n\tvar r = Math.floor(args / 36) / 5 * 255;\n\tvar g = Math.floor((rem = args % 36) / 6) / 5 * 255;\n\tvar b = (rem % 6) / 5 * 255;\n\n\treturn [r, g, b];\n};\n\nconvert.rgb.hex = function (args) {\n\tvar integer = ((Math.round(args[0]) & 0xFF) << 16)\n\t\t+ ((Math.round(args[1]) & 0xFF) << 8)\n\t\t+ (Math.round(args[2]) & 0xFF);\n\n\tvar string = integer.toString(16).toUpperCase();\n\treturn '000000'.substring(string.length) + string;\n};\n\nconvert.hex.rgb = function (args) {\n\tvar match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);\n\tif (!match) {\n\t\treturn [0, 0, 0];\n\t}\n\n\tvar colorString = match[0];\n\n\tif (match[0].length === 3) {\n\t\tcolorString = colorString.split('').map(function (char) {\n\t\t\treturn char + char;\n\t\t}).join('');\n\t}\n\n\tvar integer = parseInt(colorString, 16);\n\tvar r = (integer >> 16) & 0xFF;\n\tvar g = (integer >> 8) & 0xFF;\n\tvar b = integer & 0xFF;\n\n\treturn [r, g, b];\n};\n\nconvert.rgb.hcg = function (rgb) {\n\tvar r = rgb[0] / 255;\n\tvar g = rgb[1] / 255;\n\tvar b = rgb[2] / 255;\n\tvar max = Math.max(Math.max(r, g), b);\n\tvar min = Math.min(Math.min(r, g), b);\n\tvar chroma = (max - min);\n\tvar grayscale;\n\tvar hue;\n\n\tif (chroma < 1) {\n\t\tgrayscale = min / (1 - chroma);\n\t} else {\n\t\tgrayscale = 0;\n\t}\n\n\tif (chroma <= 0) {\n\t\thue = 0;\n\t} else\n\tif (max === r) {\n\t\thue = ((g - b) / chroma) % 6;\n\t} else\n\tif (max === g) {\n\t\thue = 2 + (b - r) / chroma;\n\t} else {\n\t\thue = 4 + (r - g) / chroma + 4;\n\t}\n\n\thue /= 6;\n\thue %= 1;\n\n\treturn [hue * 360, chroma * 100, grayscale * 100];\n};\n\nconvert.hsl.hcg = function (hsl) {\n\tvar s = hsl[1] / 100;\n\tvar l = hsl[2] / 100;\n\tvar c = 1;\n\tvar f = 0;\n\n\tif (l < 0.5) {\n\t\tc = 2.0 * s * l;\n\t} else {\n\t\tc = 2.0 * s * (1.0 - l);\n\t}\n\n\tif (c < 1.0) {\n\t\tf = (l - 0.5 * c) / (1.0 - c);\n\t}\n\n\treturn [hsl[0], c * 100, f * 100];\n};\n\nconvert.hsv.hcg = function (hsv) {\n\tvar s = hsv[1] / 100;\n\tvar v = hsv[2] / 100;\n\n\tvar c = s * v;\n\tvar f = 0;\n\n\tif (c < 1.0) {\n\t\tf = (v - c) / (1 - c);\n\t}\n\n\treturn [hsv[0], c * 100, f * 100];\n};\n\nconvert.hcg.rgb = function (hcg) {\n\tvar h = hcg[0] / 360;\n\tvar c = hcg[1] / 100;\n\tvar g = hcg[2] / 100;\n\n\tif (c === 0.0) {\n\t\treturn [g * 255, g * 255, g * 255];\n\t}\n\n\tvar pure = [0, 0, 0];\n\tvar hi = (h % 1) * 6;\n\tvar v = hi % 1;\n\tvar w = 1 - v;\n\tvar mg = 0;\n\n\tswitch (Math.floor(hi)) {\n\t\tcase 0:\n\t\t\tpure[0] = 1; pure[1] = v; pure[2] = 0; break;\n\t\tcase 1:\n\t\t\tpure[0] = w; pure[1] = 1; pure[2] = 0; break;\n\t\tcase 2:\n\t\t\tpure[0] = 0; pure[1] = 1; pure[2] = v; break;\n\t\tcase 3:\n\t\t\tpure[0] = 0; pure[1] = w; pure[2] = 1; break;\n\t\tcase 4:\n\t\t\tpure[0] = v; pure[1] = 0; pure[2] = 1; break;\n\t\tdefault:\n\t\t\tpure[0] = 1; pure[1] = 0; pure[2] = w;\n\t}\n\n\tmg = (1.0 - c) * g;\n\n\treturn [\n\t\t(c * pure[0] + mg) * 255,\n\t\t(c * pure[1] + mg) * 255,\n\t\t(c * pure[2] + mg) * 255\n\t];\n};\n\nconvert.hcg.hsv = function (hcg) {\n\tvar c = hcg[1] / 100;\n\tvar g = hcg[2] / 100;\n\n\tvar v = c + g * (1.0 - c);\n\tvar f = 0;\n\n\tif (v > 0.0) {\n\t\tf = c / v;\n\t}\n\n\treturn [hcg[0], f * 100, v * 100];\n};\n\nconvert.hcg.hsl = function (hcg) {\n\tvar c = hcg[1] / 100;\n\tvar g = hcg[2] / 100;\n\n\tvar l = g * (1.0 - c) + 0.5 * c;\n\tvar s = 0;\n\n\tif (l > 0.0 && l < 0.5) {\n\t\ts = c / (2 * l);\n\t} else\n\tif (l >= 0.5 && l < 1.0) {\n\t\ts = c / (2 * (1 - l));\n\t}\n\n\treturn [hcg[0], s * 100, l * 100];\n};\n\nconvert.hcg.hwb = function (hcg) {\n\tvar c = hcg[1] / 100;\n\tvar g = hcg[2] / 100;\n\tvar v = c + g * (1.0 - c);\n\treturn [hcg[0], (v - c) * 100, (1 - v) * 100];\n};\n\nconvert.hwb.hcg = function (hwb) {\n\tvar w = hwb[1] / 100;\n\tvar b = hwb[2] / 100;\n\tvar v = 1 - b;\n\tvar c = v - w;\n\tvar g = 0;\n\n\tif (c < 1) {\n\t\tg = (v - c) / (1 - c);\n\t}\n\n\treturn [hwb[0], c * 100, g * 100];\n};\n\nconvert.apple.rgb = function (apple) {\n\treturn [(apple[0] / 65535) * 255, (apple[1] / 65535) * 255, (apple[2] / 65535) * 255];\n};\n\nconvert.rgb.apple = function (rgb) {\n\treturn [(rgb[0] / 255) * 65535, (rgb[1] / 255) * 65535, (rgb[2] / 255) * 65535];\n};\n\nconvert.gray.rgb = function (args) {\n\treturn [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255];\n};\n\nconvert.gray.hsl = convert.gray.hsv = function (args) {\n\treturn [0, 0, args[0]];\n};\n\nconvert.gray.hwb = function (gray) {\n\treturn [0, 100, gray[0]];\n};\n\nconvert.gray.cmyk = function (gray) {\n\treturn [0, 0, 0, gray[0]];\n};\n\nconvert.gray.lab = function (gray) {\n\treturn [gray[0], 0, 0];\n};\n\nconvert.gray.hex = function (gray) {\n\tvar val = Math.round(gray[0] / 100 * 255) & 0xFF;\n\tvar integer = (val << 16) + (val << 8) + val;\n\n\tvar string = integer.toString(16).toUpperCase();\n\treturn '000000'.substring(string.length) + string;\n};\n\nconvert.rgb.gray = function (rgb) {\n\tvar val = (rgb[0] + rgb[1] + rgb[2]) / 3;\n\treturn [val / 255 * 100];\n};\n});\nvar conversions_1 = conversions.rgb;\nvar conversions_2 = conversions.hsl;\nvar conversions_3 = conversions.hsv;\nvar conversions_4 = conversions.hwb;\nvar conversions_5 = conversions.cmyk;\nvar conversions_6 = conversions.xyz;\nvar conversions_7 = conversions.lab;\nvar conversions_8 = conversions.lch;\nvar conversions_9 = conversions.hex;\nvar conversions_10 = conversions.keyword;\nvar conversions_11 = conversions.ansi16;\nvar conversions_12 = conversions.ansi256;\nvar conversions_13 = conversions.hcg;\nvar conversions_14 = conversions.apple;\nvar conversions_15 = conversions.gray;\n\n/*\n\tthis function routes a model to all other models.\n\n\tall functions that are routed have a property `.conversion` attached\n\tto the returned synthetic function. This property is an array\n\tof strings, each with the steps in between the 'from' and 'to'\n\tcolor models (inclusive).\n\n\tconversions that are not possible simply are not included.\n*/\n\nfunction buildGraph() {\n\tvar graph = {};\n\t// https://jsperf.com/object-keys-vs-for-in-with-closure/3\n\tvar models = Object.keys(conversions);\n\n\tfor (var len = models.length, i = 0; i < len; i++) {\n\t\tgraph[models[i]] = {\n\t\t\t// http://jsperf.com/1-vs-infinity\n\t\t\t// micro-opt, but this is simple.\n\t\t\tdistance: -1,\n\t\t\tparent: null\n\t\t};\n\t}\n\n\treturn graph;\n}\n\n// https://en.wikipedia.org/wiki/Breadth-first_search\nfunction deriveBFS(fromModel) {\n\tvar graph = buildGraph();\n\tvar queue = [fromModel]; // unshift -> queue -> pop\n\n\tgraph[fromModel].distance = 0;\n\n\twhile (queue.length) {\n\t\tvar current = queue.pop();\n\t\tvar adjacents = Object.keys(conversions[current]);\n\n\t\tfor (var len = adjacents.length, i = 0; i < len; i++) {\n\t\t\tvar adjacent = adjacents[i];\n\t\t\tvar node = graph[adjacent];\n\n\t\t\tif (node.distance === -1) {\n\t\t\t\tnode.distance = graph[current].distance + 1;\n\t\t\t\tnode.parent = current;\n\t\t\t\tqueue.unshift(adjacent);\n\t\t\t}\n\t\t}\n\t}\n\n\treturn graph;\n}\n\nfunction link(from, to) {\n\treturn function (args) {\n\t\treturn to(from(args));\n\t};\n}\n\nfunction wrapConversion(toModel, graph) {\n\tvar path = [graph[toModel].parent, toModel];\n\tvar fn = conversions[graph[toModel].parent][toModel];\n\n\tvar cur = graph[toModel].parent;\n\twhile (graph[cur].parent) {\n\t\tpath.unshift(graph[cur].parent);\n\t\tfn = link(conversions[graph[cur].parent][cur], fn);\n\t\tcur = graph[cur].parent;\n\t}\n\n\tfn.conversion = path;\n\treturn fn;\n}\n\nvar route = function (fromModel) {\n\tvar graph = deriveBFS(fromModel);\n\tvar conversion = {};\n\n\tvar models = Object.keys(graph);\n\tfor (var len = models.length, i = 0; i < len; i++) {\n\t\tvar toModel = models[i];\n\t\tvar node = graph[toModel];\n\n\t\tif (node.parent === null) {\n\t\t\t// no possible conversion, or this node is the source model.\n\t\t\tcontinue;\n\t\t}\n\n\t\tconversion[toModel] = wrapConversion(toModel, graph);\n\t}\n\n\treturn conversion;\n};\n\nvar convert = {};\n\nvar models = Object.keys(conversions);\n\nfunction wrapRaw(fn) {\n\tvar wrappedFn = function (args) {\n\t\tif (args === undefined || args === null) {\n\t\t\treturn args;\n\t\t}\n\n\t\tif (arguments.length > 1) {\n\t\t\targs = Array.prototype.slice.call(arguments);\n\t\t}\n\n\t\treturn fn(args);\n\t};\n\n\t// preserve .conversion property if there is one\n\tif ('conversion' in fn) {\n\t\twrappedFn.conversion = fn.conversion;\n\t}\n\n\treturn wrappedFn;\n}\n\nfunction wrapRounded(fn) {\n\tvar wrappedFn = function (args) {\n\t\tif (args === undefined || args === null) {\n\t\t\treturn args;\n\t\t}\n\n\t\tif (arguments.length > 1) {\n\t\t\targs = Array.prototype.slice.call(arguments);\n\t\t}\n\n\t\tvar result = fn(args);\n\n\t\t// we're assuming the result is an array here.\n\t\t// see notice in conversions.js; don't use box types\n\t\t// in conversion functions.\n\t\tif (typeof result === 'object') {\n\t\t\tfor (var len = result.length, i = 0; i < len; i++) {\n\t\t\t\tresult[i] = Math.round(result[i]);\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t};\n\n\t// preserve .conversion property if there is one\n\tif ('conversion' in fn) {\n\t\twrappedFn.conversion = fn.conversion;\n\t}\n\n\treturn wrappedFn;\n}\n\nmodels.forEach(function (fromModel) {\n\tconvert[fromModel] = {};\n\n\tObject.defineProperty(convert[fromModel], 'channels', {value: conversions[fromModel].channels});\n\tObject.defineProperty(convert[fromModel], 'labels', {value: conversions[fromModel].labels});\n\n\tvar routes = route(fromModel);\n\tvar routeModels = Object.keys(routes);\n\n\trouteModels.forEach(function (toModel) {\n\t\tvar fn = routes[toModel];\n\n\t\tconvert[fromModel][toModel] = wrapRounded(fn);\n\t\tconvert[fromModel][toModel].raw = wrapRaw(fn);\n\t});\n});\n\nvar colorConvert = convert;\n\nvar colorName$1 = {\r\n\t\"aliceblue\": [240, 248, 255],\r\n\t\"antiquewhite\": [250, 235, 215],\r\n\t\"aqua\": [0, 255, 255],\r\n\t\"aquamarine\": [127, 255, 212],\r\n\t\"azure\": [240, 255, 255],\r\n\t\"beige\": [245, 245, 220],\r\n\t\"bisque\": [255, 228, 196],\r\n\t\"black\": [0, 0, 0],\r\n\t\"blanchedalmond\": [255, 235, 205],\r\n\t\"blue\": [0, 0, 255],\r\n\t\"blueviolet\": [138, 43, 226],\r\n\t\"brown\": [165, 42, 42],\r\n\t\"burlywood\": [222, 184, 135],\r\n\t\"cadetblue\": [95, 158, 160],\r\n\t\"chartreuse\": [127, 255, 0],\r\n\t\"chocolate\": [210, 105, 30],\r\n\t\"coral\": [255, 127, 80],\r\n\t\"cornflowerblue\": [100, 149, 237],\r\n\t\"cornsilk\": [255, 248, 220],\r\n\t\"crimson\": [220, 20, 60],\r\n\t\"cyan\": [0, 255, 255],\r\n\t\"darkblue\": [0, 0, 139],\r\n\t\"darkcyan\": [0, 139, 139],\r\n\t\"darkgoldenrod\": [184, 134, 11],\r\n\t\"darkgray\": [169, 169, 169],\r\n\t\"darkgreen\": [0, 100, 0],\r\n\t\"darkgrey\": [169, 169, 169],\r\n\t\"darkkhaki\": [189, 183, 107],\r\n\t\"darkmagenta\": [139, 0, 139],\r\n\t\"darkolivegreen\": [85, 107, 47],\r\n\t\"darkorange\": [255, 140, 0],\r\n\t\"darkorchid\": [153, 50, 204],\r\n\t\"darkred\": [139, 0, 0],\r\n\t\"darksalmon\": [233, 150, 122],\r\n\t\"darkseagreen\": [143, 188, 143],\r\n\t\"darkslateblue\": [72, 61, 139],\r\n\t\"darkslategray\": [47, 79, 79],\r\n\t\"darkslategrey\": [47, 79, 79],\r\n\t\"darkturquoise\": [0, 206, 209],\r\n\t\"darkviolet\": [148, 0, 211],\r\n\t\"deeppink\": [255, 20, 147],\r\n\t\"deepskyblue\": [0, 191, 255],\r\n\t\"dimgray\": [105, 105, 105],\r\n\t\"dimgrey\": [105, 105, 105],\r\n\t\"dodgerblue\": [30, 144, 255],\r\n\t\"firebrick\": [178, 34, 34],\r\n\t\"floralwhite\": [255, 250, 240],\r\n\t\"forestgreen\": [34, 139, 34],\r\n\t\"fuchsia\": [255, 0, 255],\r\n\t\"gainsboro\": [220, 220, 220],\r\n\t\"ghostwhite\": [248, 248, 255],\r\n\t\"gold\": [255, 215, 0],\r\n\t\"goldenrod\": [218, 165, 32],\r\n\t\"gray\": [128, 128, 128],\r\n\t\"green\": [0, 128, 0],\r\n\t\"greenyellow\": [173, 255, 47],\r\n\t\"grey\": [128, 128, 128],\r\n\t\"honeydew\": [240, 255, 240],\r\n\t\"hotpink\": [255, 105, 180],\r\n\t\"indianred\": [205, 92, 92],\r\n\t\"indigo\": [75, 0, 130],\r\n\t\"ivory\": [255, 255, 240],\r\n\t\"khaki\": [240, 230, 140],\r\n\t\"lavender\": [230, 230, 250],\r\n\t\"lavenderblush\": [255, 240, 245],\r\n\t\"lawngreen\": [124, 252, 0],\r\n\t\"lemonchiffon\": [255, 250, 205],\r\n\t\"lightblue\": [173, 216, 230],\r\n\t\"lightcoral\": [240, 128, 128],\r\n\t\"lightcyan\": [224, 255, 255],\r\n\t\"lightgoldenrodyellow\": [250, 250, 210],\r\n\t\"lightgray\": [211, 211, 211],\r\n\t\"lightgreen\": [144, 238, 144],\r\n\t\"lightgrey\": [211, 211, 211],\r\n\t\"lightpink\": [255, 182, 193],\r\n\t\"lightsalmon\": [255, 160, 122],\r\n\t\"lightseagreen\": [32, 178, 170],\r\n\t\"lightskyblue\": [135, 206, 250],\r\n\t\"lightslategray\": [119, 136, 153],\r\n\t\"lightslategrey\": [119, 136, 153],\r\n\t\"lightsteelblue\": [176, 196, 222],\r\n\t\"lightyellow\": [255, 255, 224],\r\n\t\"lime\": [0, 255, 0],\r\n\t\"limegreen\": [50, 205, 50],\r\n\t\"linen\": [250, 240, 230],\r\n\t\"magenta\": [255, 0, 255],\r\n\t\"maroon\": [128, 0, 0],\r\n\t\"mediumaquamarine\": [102, 205, 170],\r\n\t\"mediumblue\": [0, 0, 205],\r\n\t\"mediumorchid\": [186, 85, 211],\r\n\t\"mediumpurple\": [147, 112, 219],\r\n\t\"mediumseagreen\": [60, 179, 113],\r\n\t\"mediumslateblue\": [123, 104, 238],\r\n\t\"mediumspringgreen\": [0, 250, 154],\r\n\t\"mediumturquoise\": [72, 209, 204],\r\n\t\"mediumvioletred\": [199, 21, 133],\r\n\t\"midnightblue\": [25, 25, 112],\r\n\t\"mintcream\": [245, 255, 250],\r\n\t\"mistyrose\": [255, 228, 225],\r\n\t\"moccasin\": [255, 228, 181],\r\n\t\"navajowhite\": [255, 222, 173],\r\n\t\"navy\": [0, 0, 128],\r\n\t\"oldlace\": [253, 245, 230],\r\n\t\"olive\": [128, 128, 0],\r\n\t\"olivedrab\": [107, 142, 35],\r\n\t\"orange\": [255, 165, 0],\r\n\t\"orangered\": [255, 69, 0],\r\n\t\"orchid\": [218, 112, 214],\r\n\t\"palegoldenrod\": [238, 232, 170],\r\n\t\"palegreen\": [152, 251, 152],\r\n\t\"paleturquoise\": [175, 238, 238],\r\n\t\"palevioletred\": [219, 112, 147],\r\n\t\"papayawhip\": [255, 239, 213],\r\n\t\"peachpuff\": [255, 218, 185],\r\n\t\"peru\": [205, 133, 63],\r\n\t\"pink\": [255, 192, 203],\r\n\t\"plum\": [221, 160, 221],\r\n\t\"powderblue\": [176, 224, 230],\r\n\t\"purple\": [128, 0, 128],\r\n\t\"rebeccapurple\": [102, 51, 153],\r\n\t\"red\": [255, 0, 0],\r\n\t\"rosybrown\": [188, 143, 143],\r\n\t\"royalblue\": [65, 105, 225],\r\n\t\"saddlebrown\": [139, 69, 19],\r\n\t\"salmon\": [250, 128, 114],\r\n\t\"sandybrown\": [244, 164, 96],\r\n\t\"seagreen\": [46, 139, 87],\r\n\t\"seashell\": [255, 245, 238],\r\n\t\"sienna\": [160, 82, 45],\r\n\t\"silver\": [192, 192, 192],\r\n\t\"skyblue\": [135, 206, 235],\r\n\t\"slateblue\": [106, 90, 205],\r\n\t\"slategray\": [112, 128, 144],\r\n\t\"slategrey\": [112, 128, 144],\r\n\t\"snow\": [255, 250, 250],\r\n\t\"springgreen\": [0, 255, 127],\r\n\t\"steelblue\": [70, 130, 180],\r\n\t\"tan\": [210, 180, 140],\r\n\t\"teal\": [0, 128, 128],\r\n\t\"thistle\": [216, 191, 216],\r\n\t\"tomato\": [255, 99, 71],\r\n\t\"turquoise\": [64, 224, 208],\r\n\t\"violet\": [238, 130, 238],\r\n\t\"wheat\": [245, 222, 179],\r\n\t\"white\": [255, 255, 255],\r\n\t\"whitesmoke\": [245, 245, 245],\r\n\t\"yellow\": [255, 255, 0],\r\n\t\"yellowgreen\": [154, 205, 50]\r\n};\n\n/* MIT license */\n\n\nvar colorString = {\n   getRgba: getRgba,\n   getHsla: getHsla,\n   getRgb: getRgb,\n   getHsl: getHsl,\n   getHwb: getHwb,\n   getAlpha: getAlpha,\n\n   hexString: hexString,\n   rgbString: rgbString,\n   rgbaString: rgbaString,\n   percentString: percentString,\n   percentaString: percentaString,\n   hslString: hslString,\n   hslaString: hslaString,\n   hwbString: hwbString,\n   keyword: keyword\n};\n\nfunction getRgba(string) {\n   if (!string) {\n      return;\n   }\n   var abbr =  /^#([a-fA-F0-9]{3,4})$/i,\n       hex =  /^#([a-fA-F0-9]{6}([a-fA-F0-9]{2})?)$/i,\n       rgba = /^rgba?\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*(?:,\\s*([+-]?[\\d\\.]+)\\s*)?\\)$/i,\n       per = /^rgba?\\(\\s*([+-]?[\\d\\.]+)\\%\\s*,\\s*([+-]?[\\d\\.]+)\\%\\s*,\\s*([+-]?[\\d\\.]+)\\%\\s*(?:,\\s*([+-]?[\\d\\.]+)\\s*)?\\)$/i,\n       keyword = /(\\w+)/;\n\n   var rgb = [0, 0, 0],\n       a = 1,\n       match = string.match(abbr),\n       hexAlpha = \"\";\n   if (match) {\n      match = match[1];\n      hexAlpha = match[3];\n      for (var i = 0; i < rgb.length; i++) {\n         rgb[i] = parseInt(match[i] + match[i], 16);\n      }\n      if (hexAlpha) {\n         a = Math.round((parseInt(hexAlpha + hexAlpha, 16) / 255) * 100) / 100;\n      }\n   }\n   else if (match = string.match(hex)) {\n      hexAlpha = match[2];\n      match = match[1];\n      for (var i = 0; i < rgb.length; i++) {\n         rgb[i] = parseInt(match.slice(i * 2, i * 2 + 2), 16);\n      }\n      if (hexAlpha) {\n         a = Math.round((parseInt(hexAlpha, 16) / 255) * 100) / 100;\n      }\n   }\n   else if (match = string.match(rgba)) {\n      for (var i = 0; i < rgb.length; i++) {\n         rgb[i] = parseInt(match[i + 1]);\n      }\n      a = parseFloat(match[4]);\n   }\n   else if (match = string.match(per)) {\n      for (var i = 0; i < rgb.length; i++) {\n         rgb[i] = Math.round(parseFloat(match[i + 1]) * 2.55);\n      }\n      a = parseFloat(match[4]);\n   }\n   else if (match = string.match(keyword)) {\n      if (match[1] == \"transparent\") {\n         return [0, 0, 0, 0];\n      }\n      rgb = colorName$1[match[1]];\n      if (!rgb) {\n         return;\n      }\n   }\n\n   for (var i = 0; i < rgb.length; i++) {\n      rgb[i] = scale(rgb[i], 0, 255);\n   }\n   if (!a && a != 0) {\n      a = 1;\n   }\n   else {\n      a = scale(a, 0, 1);\n   }\n   rgb[3] = a;\n   return rgb;\n}\n\nfunction getHsla(string) {\n   if (!string) {\n      return;\n   }\n   var hsl = /^hsla?\\(\\s*([+-]?\\d+)(?:deg)?\\s*,\\s*([+-]?[\\d\\.]+)%\\s*,\\s*([+-]?[\\d\\.]+)%\\s*(?:,\\s*([+-]?[\\d\\.]+)\\s*)?\\)/;\n   var match = string.match(hsl);\n   if (match) {\n      var alpha = parseFloat(match[4]);\n      var h = scale(parseInt(match[1]), 0, 360),\n          s = scale(parseFloat(match[2]), 0, 100),\n          l = scale(parseFloat(match[3]), 0, 100),\n          a = scale(isNaN(alpha) ? 1 : alpha, 0, 1);\n      return [h, s, l, a];\n   }\n}\n\nfunction getHwb(string) {\n   if (!string) {\n      return;\n   }\n   var hwb = /^hwb\\(\\s*([+-]?\\d+)(?:deg)?\\s*,\\s*([+-]?[\\d\\.]+)%\\s*,\\s*([+-]?[\\d\\.]+)%\\s*(?:,\\s*([+-]?[\\d\\.]+)\\s*)?\\)/;\n   var match = string.match(hwb);\n   if (match) {\n    var alpha = parseFloat(match[4]);\n      var h = scale(parseInt(match[1]), 0, 360),\n          w = scale(parseFloat(match[2]), 0, 100),\n          b = scale(parseFloat(match[3]), 0, 100),\n          a = scale(isNaN(alpha) ? 1 : alpha, 0, 1);\n      return [h, w, b, a];\n   }\n}\n\nfunction getRgb(string) {\n   var rgba = getRgba(string);\n   return rgba && rgba.slice(0, 3);\n}\n\nfunction getHsl(string) {\n  var hsla = getHsla(string);\n  return hsla && hsla.slice(0, 3);\n}\n\nfunction getAlpha(string) {\n   var vals = getRgba(string);\n   if (vals) {\n      return vals[3];\n   }\n   else if (vals = getHsla(string)) {\n      return vals[3];\n   }\n   else if (vals = getHwb(string)) {\n      return vals[3];\n   }\n}\n\n// generators\nfunction hexString(rgba, a) {\n   var a = (a !== undefined && rgba.length === 3) ? a : rgba[3];\n   return \"#\" + hexDouble(rgba[0]) \n              + hexDouble(rgba[1])\n              + hexDouble(rgba[2])\n              + (\n                 (a >= 0 && a < 1)\n                 ? hexDouble(Math.round(a * 255))\n                 : \"\"\n              );\n}\n\nfunction rgbString(rgba, alpha) {\n   if (alpha < 1 || (rgba[3] && rgba[3] < 1)) {\n      return rgbaString(rgba, alpha);\n   }\n   return \"rgb(\" + rgba[0] + \", \" + rgba[1] + \", \" + rgba[2] + \")\";\n}\n\nfunction rgbaString(rgba, alpha) {\n   if (alpha === undefined) {\n      alpha = (rgba[3] !== undefined ? rgba[3] : 1);\n   }\n   return \"rgba(\" + rgba[0] + \", \" + rgba[1] + \", \" + rgba[2]\n           + \", \" + alpha + \")\";\n}\n\nfunction percentString(rgba, alpha) {\n   if (alpha < 1 || (rgba[3] && rgba[3] < 1)) {\n      return percentaString(rgba, alpha);\n   }\n   var r = Math.round(rgba[0]/255 * 100),\n       g = Math.round(rgba[1]/255 * 100),\n       b = Math.round(rgba[2]/255 * 100);\n\n   return \"rgb(\" + r + \"%, \" + g + \"%, \" + b + \"%)\";\n}\n\nfunction percentaString(rgba, alpha) {\n   var r = Math.round(rgba[0]/255 * 100),\n       g = Math.round(rgba[1]/255 * 100),\n       b = Math.round(rgba[2]/255 * 100);\n   return \"rgba(\" + r + \"%, \" + g + \"%, \" + b + \"%, \" + (alpha || rgba[3] || 1) + \")\";\n}\n\nfunction hslString(hsla, alpha) {\n   if (alpha < 1 || (hsla[3] && hsla[3] < 1)) {\n      return hslaString(hsla, alpha);\n   }\n   return \"hsl(\" + hsla[0] + \", \" + hsla[1] + \"%, \" + hsla[2] + \"%)\";\n}\n\nfunction hslaString(hsla, alpha) {\n   if (alpha === undefined) {\n      alpha = (hsla[3] !== undefined ? hsla[3] : 1);\n   }\n   return \"hsla(\" + hsla[0] + \", \" + hsla[1] + \"%, \" + hsla[2] + \"%, \"\n           + alpha + \")\";\n}\n\n// hwb is a bit different than rgb(a) & hsl(a) since there is no alpha specific syntax\n// (hwb have alpha optional & 1 is default value)\nfunction hwbString(hwb, alpha) {\n   if (alpha === undefined) {\n      alpha = (hwb[3] !== undefined ? hwb[3] : 1);\n   }\n   return \"hwb(\" + hwb[0] + \", \" + hwb[1] + \"%, \" + hwb[2] + \"%\"\n           + (alpha !== undefined && alpha !== 1 ? \", \" + alpha : \"\") + \")\";\n}\n\nfunction keyword(rgb) {\n  return reverseNames[rgb.slice(0, 3)];\n}\n\n// helpers\nfunction scale(num, min, max) {\n   return Math.min(Math.max(min, num), max);\n}\n\nfunction hexDouble(num) {\n  var str = num.toString(16).toUpperCase();\n  return (str.length < 2) ? \"0\" + str : str;\n}\n\n\n//create a list of reverse color names\nvar reverseNames = {};\nfor (var name in colorName$1) {\n   reverseNames[colorName$1[name]] = name;\n}\n\n/* MIT license */\n\n\n\nvar Color = function (obj) {\n\tif (obj instanceof Color) {\n\t\treturn obj;\n\t}\n\tif (!(this instanceof Color)) {\n\t\treturn new Color(obj);\n\t}\n\n\tthis.valid = false;\n\tthis.values = {\n\t\trgb: [0, 0, 0],\n\t\thsl: [0, 0, 0],\n\t\thsv: [0, 0, 0],\n\t\thwb: [0, 0, 0],\n\t\tcmyk: [0, 0, 0, 0],\n\t\talpha: 1\n\t};\n\n\t// parse Color() argument\n\tvar vals;\n\tif (typeof obj === 'string') {\n\t\tvals = colorString.getRgba(obj);\n\t\tif (vals) {\n\t\t\tthis.setValues('rgb', vals);\n\t\t} else if (vals = colorString.getHsla(obj)) {\n\t\t\tthis.setValues('hsl', vals);\n\t\t} else if (vals = colorString.getHwb(obj)) {\n\t\t\tthis.setValues('hwb', vals);\n\t\t}\n\t} else if (typeof obj === 'object') {\n\t\tvals = obj;\n\t\tif (vals.r !== undefined || vals.red !== undefined) {\n\t\t\tthis.setValues('rgb', vals);\n\t\t} else if (vals.l !== undefined || vals.lightness !== undefined) {\n\t\t\tthis.setValues('hsl', vals);\n\t\t} else if (vals.v !== undefined || vals.value !== undefined) {\n\t\t\tthis.setValues('hsv', vals);\n\t\t} else if (vals.w !== undefined || vals.whiteness !== undefined) {\n\t\t\tthis.setValues('hwb', vals);\n\t\t} else if (vals.c !== undefined || vals.cyan !== undefined) {\n\t\t\tthis.setValues('cmyk', vals);\n\t\t}\n\t}\n};\n\nColor.prototype = {\n\tisValid: function () {\n\t\treturn this.valid;\n\t},\n\trgb: function () {\n\t\treturn this.setSpace('rgb', arguments);\n\t},\n\thsl: function () {\n\t\treturn this.setSpace('hsl', arguments);\n\t},\n\thsv: function () {\n\t\treturn this.setSpace('hsv', arguments);\n\t},\n\thwb: function () {\n\t\treturn this.setSpace('hwb', arguments);\n\t},\n\tcmyk: function () {\n\t\treturn this.setSpace('cmyk', arguments);\n\t},\n\n\trgbArray: function () {\n\t\treturn this.values.rgb;\n\t},\n\thslArray: function () {\n\t\treturn this.values.hsl;\n\t},\n\thsvArray: function () {\n\t\treturn this.values.hsv;\n\t},\n\thwbArray: function () {\n\t\tvar values = this.values;\n\t\tif (values.alpha !== 1) {\n\t\t\treturn values.hwb.concat([values.alpha]);\n\t\t}\n\t\treturn values.hwb;\n\t},\n\tcmykArray: function () {\n\t\treturn this.values.cmyk;\n\t},\n\trgbaArray: function () {\n\t\tvar values = this.values;\n\t\treturn values.rgb.concat([values.alpha]);\n\t},\n\thslaArray: function () {\n\t\tvar values = this.values;\n\t\treturn values.hsl.concat([values.alpha]);\n\t},\n\talpha: function (val) {\n\t\tif (val === undefined) {\n\t\t\treturn this.values.alpha;\n\t\t}\n\t\tthis.setValues('alpha', val);\n\t\treturn this;\n\t},\n\n\tred: function (val) {\n\t\treturn this.setChannel('rgb', 0, val);\n\t},\n\tgreen: function (val) {\n\t\treturn this.setChannel('rgb', 1, val);\n\t},\n\tblue: function (val) {\n\t\treturn this.setChannel('rgb', 2, val);\n\t},\n\thue: function (val) {\n\t\tif (val) {\n\t\t\tval %= 360;\n\t\t\tval = val < 0 ? 360 + val : val;\n\t\t}\n\t\treturn this.setChannel('hsl', 0, val);\n\t},\n\tsaturation: function (val) {\n\t\treturn this.setChannel('hsl', 1, val);\n\t},\n\tlightness: function (val) {\n\t\treturn this.setChannel('hsl', 2, val);\n\t},\n\tsaturationv: function (val) {\n\t\treturn this.setChannel('hsv', 1, val);\n\t},\n\twhiteness: function (val) {\n\t\treturn this.setChannel('hwb', 1, val);\n\t},\n\tblackness: function (val) {\n\t\treturn this.setChannel('hwb', 2, val);\n\t},\n\tvalue: function (val) {\n\t\treturn this.setChannel('hsv', 2, val);\n\t},\n\tcyan: function (val) {\n\t\treturn this.setChannel('cmyk', 0, val);\n\t},\n\tmagenta: function (val) {\n\t\treturn this.setChannel('cmyk', 1, val);\n\t},\n\tyellow: function (val) {\n\t\treturn this.setChannel('cmyk', 2, val);\n\t},\n\tblack: function (val) {\n\t\treturn this.setChannel('cmyk', 3, val);\n\t},\n\n\thexString: function () {\n\t\treturn colorString.hexString(this.values.rgb);\n\t},\n\trgbString: function () {\n\t\treturn colorString.rgbString(this.values.rgb, this.values.alpha);\n\t},\n\trgbaString: function () {\n\t\treturn colorString.rgbaString(this.values.rgb, this.values.alpha);\n\t},\n\tpercentString: function () {\n\t\treturn colorString.percentString(this.values.rgb, this.values.alpha);\n\t},\n\thslString: function () {\n\t\treturn colorString.hslString(this.values.hsl, this.values.alpha);\n\t},\n\thslaString: function () {\n\t\treturn colorString.hslaString(this.values.hsl, this.values.alpha);\n\t},\n\thwbString: function () {\n\t\treturn colorString.hwbString(this.values.hwb, this.values.alpha);\n\t},\n\tkeyword: function () {\n\t\treturn colorString.keyword(this.values.rgb, this.values.alpha);\n\t},\n\n\trgbNumber: function () {\n\t\tvar rgb = this.values.rgb;\n\t\treturn (rgb[0] << 16) | (rgb[1] << 8) | rgb[2];\n\t},\n\n\tluminosity: function () {\n\t\t// http://www.w3.org/TR/WCAG20/#relativeluminancedef\n\t\tvar rgb = this.values.rgb;\n\t\tvar lum = [];\n\t\tfor (var i = 0; i < rgb.length; i++) {\n\t\t\tvar chan = rgb[i] / 255;\n\t\t\tlum[i] = (chan <= 0.03928) ? chan / 12.92 : Math.pow(((chan + 0.055) / 1.055), 2.4);\n\t\t}\n\t\treturn 0.2126 * lum[0] + 0.7152 * lum[1] + 0.0722 * lum[2];\n\t},\n\n\tcontrast: function (color2) {\n\t\t// http://www.w3.org/TR/WCAG20/#contrast-ratiodef\n\t\tvar lum1 = this.luminosity();\n\t\tvar lum2 = color2.luminosity();\n\t\tif (lum1 > lum2) {\n\t\t\treturn (lum1 + 0.05) / (lum2 + 0.05);\n\t\t}\n\t\treturn (lum2 + 0.05) / (lum1 + 0.05);\n\t},\n\n\tlevel: function (color2) {\n\t\tvar contrastRatio = this.contrast(color2);\n\t\tif (contrastRatio >= 7.1) {\n\t\t\treturn 'AAA';\n\t\t}\n\n\t\treturn (contrastRatio >= 4.5) ? 'AA' : '';\n\t},\n\n\tdark: function () {\n\t\t// YIQ equation from http://24ways.org/2010/calculating-color-contrast\n\t\tvar rgb = this.values.rgb;\n\t\tvar yiq = (rgb[0] * 299 + rgb[1] * 587 + rgb[2] * 114) / 1000;\n\t\treturn yiq < 128;\n\t},\n\n\tlight: function () {\n\t\treturn !this.dark();\n\t},\n\n\tnegate: function () {\n\t\tvar rgb = [];\n\t\tfor (var i = 0; i < 3; i++) {\n\t\t\trgb[i] = 255 - this.values.rgb[i];\n\t\t}\n\t\tthis.setValues('rgb', rgb);\n\t\treturn this;\n\t},\n\n\tlighten: function (ratio) {\n\t\tvar hsl = this.values.hsl;\n\t\thsl[2] += hsl[2] * ratio;\n\t\tthis.setValues('hsl', hsl);\n\t\treturn this;\n\t},\n\n\tdarken: function (ratio) {\n\t\tvar hsl = this.values.hsl;\n\t\thsl[2] -= hsl[2] * ratio;\n\t\tthis.setValues('hsl', hsl);\n\t\treturn this;\n\t},\n\n\tsaturate: function (ratio) {\n\t\tvar hsl = this.values.hsl;\n\t\thsl[1] += hsl[1] * ratio;\n\t\tthis.setValues('hsl', hsl);\n\t\treturn this;\n\t},\n\n\tdesaturate: function (ratio) {\n\t\tvar hsl = this.values.hsl;\n\t\thsl[1] -= hsl[1] * ratio;\n\t\tthis.setValues('hsl', hsl);\n\t\treturn this;\n\t},\n\n\twhiten: function (ratio) {\n\t\tvar hwb = this.values.hwb;\n\t\thwb[1] += hwb[1] * ratio;\n\t\tthis.setValues('hwb', hwb);\n\t\treturn this;\n\t},\n\n\tblacken: function (ratio) {\n\t\tvar hwb = this.values.hwb;\n\t\thwb[2] += hwb[2] * ratio;\n\t\tthis.setValues('hwb', hwb);\n\t\treturn this;\n\t},\n\n\tgreyscale: function () {\n\t\tvar rgb = this.values.rgb;\n\t\t// http://en.wikipedia.org/wiki/Grayscale#Converting_color_to_grayscale\n\t\tvar val = rgb[0] * 0.3 + rgb[1] * 0.59 + rgb[2] * 0.11;\n\t\tthis.setValues('rgb', [val, val, val]);\n\t\treturn this;\n\t},\n\n\tclearer: function (ratio) {\n\t\tvar alpha = this.values.alpha;\n\t\tthis.setValues('alpha', alpha - (alpha * ratio));\n\t\treturn this;\n\t},\n\n\topaquer: function (ratio) {\n\t\tvar alpha = this.values.alpha;\n\t\tthis.setValues('alpha', alpha + (alpha * ratio));\n\t\treturn this;\n\t},\n\n\trotate: function (degrees) {\n\t\tvar hsl = this.values.hsl;\n\t\tvar hue = (hsl[0] + degrees) % 360;\n\t\thsl[0] = hue < 0 ? 360 + hue : hue;\n\t\tthis.setValues('hsl', hsl);\n\t\treturn this;\n\t},\n\n\t/**\n\t * Ported from sass implementation in C\n\t * https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209\n\t */\n\tmix: function (mixinColor, weight) {\n\t\tvar color1 = this;\n\t\tvar color2 = mixinColor;\n\t\tvar p = weight === undefined ? 0.5 : weight;\n\n\t\tvar w = 2 * p - 1;\n\t\tvar a = color1.alpha() - color2.alpha();\n\n\t\tvar w1 = (((w * a === -1) ? w : (w + a) / (1 + w * a)) + 1) / 2.0;\n\t\tvar w2 = 1 - w1;\n\n\t\treturn this\n\t\t\t.rgb(\n\t\t\t\tw1 * color1.red() + w2 * color2.red(),\n\t\t\t\tw1 * color1.green() + w2 * color2.green(),\n\t\t\t\tw1 * color1.blue() + w2 * color2.blue()\n\t\t\t)\n\t\t\t.alpha(color1.alpha() * p + color2.alpha() * (1 - p));\n\t},\n\n\ttoJSON: function () {\n\t\treturn this.rgb();\n\t},\n\n\tclone: function () {\n\t\t// NOTE(SB): using node-clone creates a dependency to Buffer when using browserify,\n\t\t// making the final build way to big to embed in Chart.js. So let's do it manually,\n\t\t// assuming that values to clone are 1 dimension arrays containing only numbers,\n\t\t// except 'alpha' which is a number.\n\t\tvar result = new Color();\n\t\tvar source = this.values;\n\t\tvar target = result.values;\n\t\tvar value, type;\n\n\t\tfor (var prop in source) {\n\t\t\tif (source.hasOwnProperty(prop)) {\n\t\t\t\tvalue = source[prop];\n\t\t\t\ttype = ({}).toString.call(value);\n\t\t\t\tif (type === '[object Array]') {\n\t\t\t\t\ttarget[prop] = value.slice(0);\n\t\t\t\t} else if (type === '[object Number]') {\n\t\t\t\t\ttarget[prop] = value;\n\t\t\t\t} else {\n\t\t\t\t\tconsole.error('unexpected color value:', value);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t}\n};\n\nColor.prototype.spaces = {\n\trgb: ['red', 'green', 'blue'],\n\thsl: ['hue', 'saturation', 'lightness'],\n\thsv: ['hue', 'saturation', 'value'],\n\thwb: ['hue', 'whiteness', 'blackness'],\n\tcmyk: ['cyan', 'magenta', 'yellow', 'black']\n};\n\nColor.prototype.maxes = {\n\trgb: [255, 255, 255],\n\thsl: [360, 100, 100],\n\thsv: [360, 100, 100],\n\thwb: [360, 100, 100],\n\tcmyk: [100, 100, 100, 100]\n};\n\nColor.prototype.getValues = function (space) {\n\tvar values = this.values;\n\tvar vals = {};\n\n\tfor (var i = 0; i < space.length; i++) {\n\t\tvals[space.charAt(i)] = values[space][i];\n\t}\n\n\tif (values.alpha !== 1) {\n\t\tvals.a = values.alpha;\n\t}\n\n\t// {r: 255, g: 255, b: 255, a: 0.4}\n\treturn vals;\n};\n\nColor.prototype.setValues = function (space, vals) {\n\tvar values = this.values;\n\tvar spaces = this.spaces;\n\tvar maxes = this.maxes;\n\tvar alpha = 1;\n\tvar i;\n\n\tthis.valid = true;\n\n\tif (space === 'alpha') {\n\t\talpha = vals;\n\t} else if (vals.length) {\n\t\t// [10, 10, 10]\n\t\tvalues[space] = vals.slice(0, space.length);\n\t\talpha = vals[space.length];\n\t} else if (vals[space.charAt(0)] !== undefined) {\n\t\t// {r: 10, g: 10, b: 10}\n\t\tfor (i = 0; i < space.length; i++) {\n\t\t\tvalues[space][i] = vals[space.charAt(i)];\n\t\t}\n\n\t\talpha = vals.a;\n\t} else if (vals[spaces[space][0]] !== undefined) {\n\t\t// {red: 10, green: 10, blue: 10}\n\t\tvar chans = spaces[space];\n\n\t\tfor (i = 0; i < space.length; i++) {\n\t\t\tvalues[space][i] = vals[chans[i]];\n\t\t}\n\n\t\talpha = vals.alpha;\n\t}\n\n\tvalues.alpha = Math.max(0, Math.min(1, (alpha === undefined ? values.alpha : alpha)));\n\n\tif (space === 'alpha') {\n\t\treturn false;\n\t}\n\n\tvar capped;\n\n\t// cap values of the space prior converting all values\n\tfor (i = 0; i < space.length; i++) {\n\t\tcapped = Math.max(0, Math.min(maxes[space][i], values[space][i]));\n\t\tvalues[space][i] = Math.round(capped);\n\t}\n\n\t// convert to all the other color spaces\n\tfor (var sname in spaces) {\n\t\tif (sname !== space) {\n\t\t\tvalues[sname] = colorConvert[space][sname](values[space]);\n\t\t}\n\t}\n\n\treturn true;\n};\n\nColor.prototype.setSpace = function (space, args) {\n\tvar vals = args[0];\n\n\tif (vals === undefined) {\n\t\t// color.rgb()\n\t\treturn this.getValues(space);\n\t}\n\n\t// color.rgb(10, 10, 10)\n\tif (typeof vals === 'number') {\n\t\tvals = Array.prototype.slice.call(args);\n\t}\n\n\tthis.setValues(space, vals);\n\treturn this;\n};\n\nColor.prototype.setChannel = function (space, index, val) {\n\tvar svalues = this.values[space];\n\tif (val === undefined) {\n\t\t// color.red()\n\t\treturn svalues[index];\n\t} else if (val === svalues[index]) {\n\t\t// color.red(color.red())\n\t\treturn this;\n\t}\n\n\t// color.red(100)\n\tsvalues[index] = val;\n\tthis.setValues(space, svalues);\n\n\treturn this;\n};\n\nif (typeof window !== 'undefined') {\n\twindow.Color = Color;\n}\n\nvar chartjsColor = Color;\n\nfunction isValidKey(key) {\r\n\treturn ['__proto__', 'prototype', 'constructor'].indexOf(key) === -1;\r\n}\r\n\r\n/**\r\n * @namespace Chart.helpers\r\n */\r\nvar helpers = {\r\n\t/**\r\n\t * An empty function that can be used, for example, for optional callback.\r\n\t */\r\n\tnoop: function() {},\r\n\r\n\t/**\r\n\t * Returns a unique id, sequentially generated from a global variable.\r\n\t * @returns {number}\r\n\t * @function\r\n\t */\r\n\tuid: (function() {\r\n\t\tvar id = 0;\r\n\t\treturn function() {\r\n\t\t\treturn id++;\r\n\t\t};\r\n\t}()),\r\n\r\n\t/**\r\n\t * Returns true if `value` is neither null nor undefined, else returns false.\r\n\t * @param {*} value - The value to test.\r\n\t * @returns {boolean}\r\n\t * @since 2.7.0\r\n\t */\r\n\tisNullOrUndef: function(value) {\r\n\t\treturn value === null || typeof value === 'undefined';\r\n\t},\r\n\r\n\t/**\r\n\t * Returns true if `value` is an array (including typed arrays), else returns false.\r\n\t * @param {*} value - The value to test.\r\n\t * @returns {boolean}\r\n\t * @function\r\n\t */\r\n\tisArray: function(value) {\r\n\t\tif (Array.isArray && Array.isArray(value)) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tvar type = Object.prototype.toString.call(value);\r\n\t\tif (type.substr(0, 7) === '[object' && type.substr(-6) === 'Array]') {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t},\r\n\r\n\t/**\r\n\t * Returns true if `value` is an object (excluding null), else returns false.\r\n\t * @param {*} value - The value to test.\r\n\t * @returns {boolean}\r\n\t * @since 2.7.0\r\n\t */\r\n\tisObject: function(value) {\r\n\t\treturn value !== null && Object.prototype.toString.call(value) === '[object Object]';\r\n\t},\r\n\r\n\t/**\r\n\t * Returns true if `value` is a finite number, else returns false\r\n\t * @param {*} value  - The value to test.\r\n\t * @returns {boolean}\r\n\t */\r\n\tisFinite: function(value) {\r\n\t\treturn (typeof value === 'number' || value instanceof Number) && isFinite(value);\r\n\t},\r\n\r\n\t/**\r\n\t * Returns `value` if defined, else returns `defaultValue`.\r\n\t * @param {*} value - The value to return if defined.\r\n\t * @param {*} defaultValue - The value to return if `value` is undefined.\r\n\t * @returns {*}\r\n\t */\r\n\tvalueOrDefault: function(value, defaultValue) {\r\n\t\treturn typeof value === 'undefined' ? defaultValue : value;\r\n\t},\r\n\r\n\t/**\r\n\t * Returns value at the given `index` in array if defined, else returns `defaultValue`.\r\n\t * @param {Array} value - The array to lookup for value at `index`.\r\n\t * @param {number} index - The index in `value` to lookup for value.\r\n\t * @param {*} defaultValue - The value to return if `value[index]` is undefined.\r\n\t * @returns {*}\r\n\t */\r\n\tvalueAtIndexOrDefault: function(value, index, defaultValue) {\r\n\t\treturn helpers.valueOrDefault(helpers.isArray(value) ? value[index] : value, defaultValue);\r\n\t},\r\n\r\n\t/**\r\n\t * Calls `fn` with the given `args` in the scope defined by `thisArg` and returns the\r\n\t * value returned by `fn`. If `fn` is not a function, this method returns undefined.\r\n\t * @param {function} fn - The function to call.\r\n\t * @param {Array|undefined|null} args - The arguments with which `fn` should be called.\r\n\t * @param {object} [thisArg] - The value of `this` provided for the call to `fn`.\r\n\t * @returns {*}\r\n\t */\r\n\tcallback: function(fn, args, thisArg) {\r\n\t\tif (fn && typeof fn.call === 'function') {\r\n\t\t\treturn fn.apply(thisArg, args);\r\n\t\t}\r\n\t},\r\n\r\n\t/**\r\n\t * Note(SB) for performance sake, this method should only be used when loopable type\r\n\t * is unknown or in none intensive code (not called often and small loopable). Else\r\n\t * it's preferable to use a regular for() loop and save extra function calls.\r\n\t * @param {object|Array} loopable - The object or array to be iterated.\r\n\t * @param {function} fn - The function to call for each item.\r\n\t * @param {object} [thisArg] - The value of `this` provided for the call to `fn`.\r\n\t * @param {boolean} [reverse] - If true, iterates backward on the loopable.\r\n\t */\r\n\teach: function(loopable, fn, thisArg, reverse) {\r\n\t\tvar i, len, keys;\r\n\t\tif (helpers.isArray(loopable)) {\r\n\t\t\tlen = loopable.length;\r\n\t\t\tif (reverse) {\r\n\t\t\t\tfor (i = len - 1; i >= 0; i--) {\r\n\t\t\t\t\tfn.call(thisArg, loopable[i], i);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tfor (i = 0; i < len; i++) {\r\n\t\t\t\t\tfn.call(thisArg, loopable[i], i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else if (helpers.isObject(loopable)) {\r\n\t\t\tkeys = Object.keys(loopable);\r\n\t\t\tlen = keys.length;\r\n\t\t\tfor (i = 0; i < len; i++) {\r\n\t\t\t\tfn.call(thisArg, loopable[keys[i]], keys[i]);\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\r\n\t/**\r\n\t * Returns true if the `a0` and `a1` arrays have the same content, else returns false.\r\n\t * @see https://stackoverflow.com/a/14853974\r\n\t * @param {Array} a0 - The array to compare\r\n\t * @param {Array} a1 - The array to compare\r\n\t * @returns {boolean}\r\n\t */\r\n\tarrayEquals: function(a0, a1) {\r\n\t\tvar i, ilen, v0, v1;\r\n\r\n\t\tif (!a0 || !a1 || a0.length !== a1.length) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tfor (i = 0, ilen = a0.length; i < ilen; ++i) {\r\n\t\t\tv0 = a0[i];\r\n\t\t\tv1 = a1[i];\r\n\r\n\t\t\tif (v0 instanceof Array && v1 instanceof Array) {\r\n\t\t\t\tif (!helpers.arrayEquals(v0, v1)) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t} else if (v0 !== v1) {\r\n\t\t\t\t// NOTE: two different object instances will never be equal: {x:20} != {x:20}\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t},\r\n\r\n\t/**\r\n\t * Returns a deep copy of `source` without keeping references on objects and arrays.\r\n\t * @param {*} source - The value to clone.\r\n\t * @returns {*}\r\n\t */\r\n\tclone: function(source) {\r\n\t\tif (helpers.isArray(source)) {\r\n\t\t\treturn source.map(helpers.clone);\r\n\t\t}\r\n\r\n\t\tif (helpers.isObject(source)) {\r\n\t\t\tvar target = Object.create(source);\r\n\t\t\tvar keys = Object.keys(source);\r\n\t\t\tvar klen = keys.length;\r\n\t\t\tvar k = 0;\r\n\r\n\t\t\tfor (; k < klen; ++k) {\r\n\t\t\t\ttarget[keys[k]] = helpers.clone(source[keys[k]]);\r\n\t\t\t}\r\n\r\n\t\t\treturn target;\r\n\t\t}\r\n\r\n\t\treturn source;\r\n\t},\r\n\r\n\t/**\r\n\t * The default merger when Chart.helpers.merge is called without merger option.\r\n\t * Note(SB): also used by mergeConfig and mergeScaleConfig as fallback.\r\n\t * @private\r\n\t */\r\n\t_merger: function(key, target, source, options) {\r\n\t\tif (!isValidKey(key)) {\r\n\t\t\t// We want to ensure we do not copy prototypes over\r\n\t\t\t// as this can pollute global namespaces\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar tval = target[key];\r\n\t\tvar sval = source[key];\r\n\r\n\t\tif (helpers.isObject(tval) && helpers.isObject(sval)) {\r\n\t\t\thelpers.merge(tval, sval, options);\r\n\t\t} else {\r\n\t\t\ttarget[key] = helpers.clone(sval);\r\n\t\t}\r\n\t},\r\n\r\n\t/**\r\n\t * Merges source[key] in target[key] only if target[key] is undefined.\r\n\t * @private\r\n\t */\r\n\t_mergerIf: function(key, target, source) {\r\n\t\tif (!isValidKey(key)) {\r\n\t\t\t// We want to ensure we do not copy prototypes over\r\n\t\t\t// as this can pollute global namespaces\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar tval = target[key];\r\n\t\tvar sval = source[key];\r\n\r\n\t\tif (helpers.isObject(tval) && helpers.isObject(sval)) {\r\n\t\t\thelpers.mergeIf(tval, sval);\r\n\t\t} else if (!target.hasOwnProperty(key)) {\r\n\t\t\ttarget[key] = helpers.clone(sval);\r\n\t\t}\r\n\t},\r\n\r\n\t/**\r\n\t * Recursively deep copies `source` properties into `target` with the given `options`.\r\n\t * IMPORTANT: `target` is not cloned and will be updated with `source` properties.\r\n\t * @param {object} target - The target object in which all sources are merged into.\r\n\t * @param {object|object[]} source - Object(s) to merge into `target`.\r\n\t * @param {object} [options] - Merging options:\r\n\t * @param {function} [options.merger] - The merge method (key, target, source, options)\r\n\t * @returns {object} The `target` object.\r\n\t */\r\n\tmerge: function(target, source, options) {\r\n\t\tvar sources = helpers.isArray(source) ? source : [source];\r\n\t\tvar ilen = sources.length;\r\n\t\tvar merge, i, keys, klen, k;\r\n\r\n\t\tif (!helpers.isObject(target)) {\r\n\t\t\treturn target;\r\n\t\t}\r\n\r\n\t\toptions = options || {};\r\n\t\tmerge = options.merger || helpers._merger;\r\n\r\n\t\tfor (i = 0; i < ilen; ++i) {\r\n\t\t\tsource = sources[i];\r\n\t\t\tif (!helpers.isObject(source)) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\tkeys = Object.keys(source);\r\n\t\t\tfor (k = 0, klen = keys.length; k < klen; ++k) {\r\n\t\t\t\tmerge(keys[k], target, source, options);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn target;\r\n\t},\r\n\r\n\t/**\r\n\t * Recursively deep copies `source` properties into `target` *only* if not defined in target.\r\n\t * IMPORTANT: `target` is not cloned and will be updated with `source` properties.\r\n\t * @param {object} target - The target object in which all sources are merged into.\r\n\t * @param {object|object[]} source - Object(s) to merge into `target`.\r\n\t * @returns {object} The `target` object.\r\n\t */\r\n\tmergeIf: function(target, source) {\r\n\t\treturn helpers.merge(target, source, {merger: helpers._mergerIf});\r\n\t},\r\n\r\n\t/**\r\n\t * Applies the contents of two or more objects together into the first object.\r\n\t * @param {object} target - The target object in which all objects are merged into.\r\n\t * @param {object} arg1 - Object containing additional properties to merge in target.\r\n\t * @param {object} argN - Additional objects containing properties to merge in target.\r\n\t * @returns {object} The `target` object.\r\n\t */\r\n\textend: Object.assign || function(target) {\r\n\t\treturn helpers.merge(target, [].slice.call(arguments, 1), {\r\n\t\t\tmerger: function(key, dst, src) {\r\n\t\t\t\tdst[key] = src[key];\r\n\t\t\t}\r\n\t\t});\r\n\t},\r\n\r\n\t/**\r\n\t * Basic javascript inheritance based on the model created in Backbone.js\r\n\t */\r\n\tinherits: function(extensions) {\r\n\t\tvar me = this;\r\n\t\tvar ChartElement = (extensions && extensions.hasOwnProperty('constructor')) ? extensions.constructor : function() {\r\n\t\t\treturn me.apply(this, arguments);\r\n\t\t};\r\n\r\n\t\tvar Surrogate = function() {\r\n\t\t\tthis.constructor = ChartElement;\r\n\t\t};\r\n\r\n\t\tSurrogate.prototype = me.prototype;\r\n\t\tChartElement.prototype = new Surrogate();\r\n\t\tChartElement.extend = helpers.inherits;\r\n\r\n\t\tif (extensions) {\r\n\t\t\thelpers.extend(ChartElement.prototype, extensions);\r\n\t\t}\r\n\r\n\t\tChartElement.__super__ = me.prototype;\r\n\t\treturn ChartElement;\r\n\t},\r\n\r\n\t_deprecated: function(scope, value, previous, current) {\r\n\t\tif (value !== undefined) {\r\n\t\t\tconsole.warn(scope + ': \"' + previous +\r\n\t\t\t\t'\" is deprecated. Please use \"' + current + '\" instead');\r\n\t\t}\r\n\t}\r\n};\r\n\r\nvar helpers_core = helpers;\r\n\r\n// DEPRECATIONS\r\n\r\n/**\r\n * Provided for backward compatibility, use Chart.helpers.callback instead.\r\n * @function Chart.helpers.callCallback\r\n * @deprecated since version 2.6.0\r\n * @todo remove at version 3\r\n * @private\r\n */\r\nhelpers.callCallback = helpers.callback;\r\n\r\n/**\r\n * Provided for backward compatibility, use Array.prototype.indexOf instead.\r\n * Array.prototype.indexOf compatibility: Chrome, Opera, Safari, FF1.5+, IE9+\r\n * @function Chart.helpers.indexOf\r\n * @deprecated since version 2.7.0\r\n * @todo remove at version 3\r\n * @private\r\n */\r\nhelpers.indexOf = function(array, item, fromIndex) {\r\n\treturn Array.prototype.indexOf.call(array, item, fromIndex);\r\n};\r\n\r\n/**\r\n * Provided for backward compatibility, use Chart.helpers.valueOrDefault instead.\r\n * @function Chart.helpers.getValueOrDefault\r\n * @deprecated since version 2.7.0\r\n * @todo remove at version 3\r\n * @private\r\n */\r\nhelpers.getValueOrDefault = helpers.valueOrDefault;\r\n\r\n/**\r\n * Provided for backward compatibility, use Chart.helpers.valueAtIndexOrDefault instead.\r\n * @function Chart.helpers.getValueAtIndexOrDefault\r\n * @deprecated since version 2.7.0\r\n * @todo remove at version 3\r\n * @private\r\n */\r\nhelpers.getValueAtIndexOrDefault = helpers.valueAtIndexOrDefault;\n\n/**\r\n * Easing functions adapted from Robert Penner's easing equations.\r\n * @namespace Chart.helpers.easingEffects\r\n * @see http://www.robertpenner.com/easing/\r\n */\r\nvar effects = {\r\n\tlinear: function(t) {\r\n\t\treturn t;\r\n\t},\r\n\r\n\teaseInQuad: function(t) {\r\n\t\treturn t * t;\r\n\t},\r\n\r\n\teaseOutQuad: function(t) {\r\n\t\treturn -t * (t - 2);\r\n\t},\r\n\r\n\teaseInOutQuad: function(t) {\r\n\t\tif ((t /= 0.5) < 1) {\r\n\t\t\treturn 0.5 * t * t;\r\n\t\t}\r\n\t\treturn -0.5 * ((--t) * (t - 2) - 1);\r\n\t},\r\n\r\n\teaseInCubic: function(t) {\r\n\t\treturn t * t * t;\r\n\t},\r\n\r\n\teaseOutCubic: function(t) {\r\n\t\treturn (t = t - 1) * t * t + 1;\r\n\t},\r\n\r\n\teaseInOutCubic: function(t) {\r\n\t\tif ((t /= 0.5) < 1) {\r\n\t\t\treturn 0.5 * t * t * t;\r\n\t\t}\r\n\t\treturn 0.5 * ((t -= 2) * t * t + 2);\r\n\t},\r\n\r\n\teaseInQuart: function(t) {\r\n\t\treturn t * t * t * t;\r\n\t},\r\n\r\n\teaseOutQuart: function(t) {\r\n\t\treturn -((t = t - 1) * t * t * t - 1);\r\n\t},\r\n\r\n\teaseInOutQuart: function(t) {\r\n\t\tif ((t /= 0.5) < 1) {\r\n\t\t\treturn 0.5 * t * t * t * t;\r\n\t\t}\r\n\t\treturn -0.5 * ((t -= 2) * t * t * t - 2);\r\n\t},\r\n\r\n\teaseInQuint: function(t) {\r\n\t\treturn t * t * t * t * t;\r\n\t},\r\n\r\n\teaseOutQuint: function(t) {\r\n\t\treturn (t = t - 1) * t * t * t * t + 1;\r\n\t},\r\n\r\n\teaseInOutQuint: function(t) {\r\n\t\tif ((t /= 0.5) < 1) {\r\n\t\t\treturn 0.5 * t * t * t * t * t;\r\n\t\t}\r\n\t\treturn 0.5 * ((t -= 2) * t * t * t * t + 2);\r\n\t},\r\n\r\n\teaseInSine: function(t) {\r\n\t\treturn -Math.cos(t * (Math.PI / 2)) + 1;\r\n\t},\r\n\r\n\teaseOutSine: function(t) {\r\n\t\treturn Math.sin(t * (Math.PI / 2));\r\n\t},\r\n\r\n\teaseInOutSine: function(t) {\r\n\t\treturn -0.5 * (Math.cos(Math.PI * t) - 1);\r\n\t},\r\n\r\n\teaseInExpo: function(t) {\r\n\t\treturn (t === 0) ? 0 : Math.pow(2, 10 * (t - 1));\r\n\t},\r\n\r\n\teaseOutExpo: function(t) {\r\n\t\treturn (t === 1) ? 1 : -Math.pow(2, -10 * t) + 1;\r\n\t},\r\n\r\n\teaseInOutExpo: function(t) {\r\n\t\tif (t === 0) {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\tif (t === 1) {\r\n\t\t\treturn 1;\r\n\t\t}\r\n\t\tif ((t /= 0.5) < 1) {\r\n\t\t\treturn 0.5 * Math.pow(2, 10 * (t - 1));\r\n\t\t}\r\n\t\treturn 0.5 * (-Math.pow(2, -10 * --t) + 2);\r\n\t},\r\n\r\n\teaseInCirc: function(t) {\r\n\t\tif (t >= 1) {\r\n\t\t\treturn t;\r\n\t\t}\r\n\t\treturn -(Math.sqrt(1 - t * t) - 1);\r\n\t},\r\n\r\n\teaseOutCirc: function(t) {\r\n\t\treturn Math.sqrt(1 - (t = t - 1) * t);\r\n\t},\r\n\r\n\teaseInOutCirc: function(t) {\r\n\t\tif ((t /= 0.5) < 1) {\r\n\t\t\treturn -0.5 * (Math.sqrt(1 - t * t) - 1);\r\n\t\t}\r\n\t\treturn 0.5 * (Math.sqrt(1 - (t -= 2) * t) + 1);\r\n\t},\r\n\r\n\teaseInElastic: function(t) {\r\n\t\tvar s = 1.70158;\r\n\t\tvar p = 0;\r\n\t\tvar a = 1;\r\n\t\tif (t === 0) {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\tif (t === 1) {\r\n\t\t\treturn 1;\r\n\t\t}\r\n\t\tif (!p) {\r\n\t\t\tp = 0.3;\r\n\t\t}\r\n\t\tif (a < 1) {\r\n\t\t\ta = 1;\r\n\t\t\ts = p / 4;\r\n\t\t} else {\r\n\t\t\ts = p / (2 * Math.PI) * Math.asin(1 / a);\r\n\t\t}\r\n\t\treturn -(a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t - s) * (2 * Math.PI) / p));\r\n\t},\r\n\r\n\teaseOutElastic: function(t) {\r\n\t\tvar s = 1.70158;\r\n\t\tvar p = 0;\r\n\t\tvar a = 1;\r\n\t\tif (t === 0) {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\tif (t === 1) {\r\n\t\t\treturn 1;\r\n\t\t}\r\n\t\tif (!p) {\r\n\t\t\tp = 0.3;\r\n\t\t}\r\n\t\tif (a < 1) {\r\n\t\t\ta = 1;\r\n\t\t\ts = p / 4;\r\n\t\t} else {\r\n\t\t\ts = p / (2 * Math.PI) * Math.asin(1 / a);\r\n\t\t}\r\n\t\treturn a * Math.pow(2, -10 * t) * Math.sin((t - s) * (2 * Math.PI) / p) + 1;\r\n\t},\r\n\r\n\teaseInOutElastic: function(t) {\r\n\t\tvar s = 1.70158;\r\n\t\tvar p = 0;\r\n\t\tvar a = 1;\r\n\t\tif (t === 0) {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\tif ((t /= 0.5) === 2) {\r\n\t\t\treturn 1;\r\n\t\t}\r\n\t\tif (!p) {\r\n\t\t\tp = 0.45;\r\n\t\t}\r\n\t\tif (a < 1) {\r\n\t\t\ta = 1;\r\n\t\t\ts = p / 4;\r\n\t\t} else {\r\n\t\t\ts = p / (2 * Math.PI) * Math.asin(1 / a);\r\n\t\t}\r\n\t\tif (t < 1) {\r\n\t\t\treturn -0.5 * (a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t - s) * (2 * Math.PI) / p));\r\n\t\t}\r\n\t\treturn a * Math.pow(2, -10 * (t -= 1)) * Math.sin((t - s) * (2 * Math.PI) / p) * 0.5 + 1;\r\n\t},\r\n\teaseInBack: function(t) {\r\n\t\tvar s = 1.70158;\r\n\t\treturn t * t * ((s + 1) * t - s);\r\n\t},\r\n\r\n\teaseOutBack: function(t) {\r\n\t\tvar s = 1.70158;\r\n\t\treturn (t = t - 1) * t * ((s + 1) * t + s) + 1;\r\n\t},\r\n\r\n\teaseInOutBack: function(t) {\r\n\t\tvar s = 1.70158;\r\n\t\tif ((t /= 0.5) < 1) {\r\n\t\t\treturn 0.5 * (t * t * (((s *= (1.525)) + 1) * t - s));\r\n\t\t}\r\n\t\treturn 0.5 * ((t -= 2) * t * (((s *= (1.525)) + 1) * t + s) + 2);\r\n\t},\r\n\r\n\teaseInBounce: function(t) {\r\n\t\treturn 1 - effects.easeOutBounce(1 - t);\r\n\t},\r\n\r\n\teaseOutBounce: function(t) {\r\n\t\tif (t < (1 / 2.75)) {\r\n\t\t\treturn 7.5625 * t * t;\r\n\t\t}\r\n\t\tif (t < (2 / 2.75)) {\r\n\t\t\treturn 7.5625 * (t -= (1.5 / 2.75)) * t + 0.75;\r\n\t\t}\r\n\t\tif (t < (2.5 / 2.75)) {\r\n\t\t\treturn 7.5625 * (t -= (2.25 / 2.75)) * t + 0.9375;\r\n\t\t}\r\n\t\treturn 7.5625 * (t -= (2.625 / 2.75)) * t + 0.984375;\r\n\t},\r\n\r\n\teaseInOutBounce: function(t) {\r\n\t\tif (t < 0.5) {\r\n\t\t\treturn effects.easeInBounce(t * 2) * 0.5;\r\n\t\t}\r\n\t\treturn effects.easeOutBounce(t * 2 - 1) * 0.5 + 0.5;\r\n\t}\r\n};\r\n\r\nvar helpers_easing = {\r\n\teffects: effects\r\n};\r\n\r\n// DEPRECATIONS\r\n\r\n/**\r\n * Provided for backward compatibility, use Chart.helpers.easing.effects instead.\r\n * @function Chart.helpers.easingEffects\r\n * @deprecated since version 2.7.0\r\n * @todo remove at version 3\r\n * @private\r\n */\r\nhelpers_core.easingEffects = effects;\n\nvar PI = Math.PI;\r\nvar RAD_PER_DEG = PI / 180;\r\nvar DOUBLE_PI = PI * 2;\r\nvar HALF_PI = PI / 2;\r\nvar QUARTER_PI = PI / 4;\r\nvar TWO_THIRDS_PI = PI * 2 / 3;\r\n\r\n/**\r\n * @namespace Chart.helpers.canvas\r\n */\r\nvar exports$1 = {\r\n\t/**\r\n\t * Clears the entire canvas associated to the given `chart`.\r\n\t * @param {Chart} chart - The chart for which to clear the canvas.\r\n\t */\r\n\tclear: function(chart) {\r\n\t\tchart.ctx.clearRect(0, 0, chart.width, chart.height);\r\n\t},\r\n\r\n\t/**\r\n\t * Creates a \"path\" for a rectangle with rounded corners at position (x, y) with a\r\n\t * given size (width, height) and the same `radius` for all corners.\r\n\t * @param {CanvasRenderingContext2D} ctx - The canvas 2D Context.\r\n\t * @param {number} x - The x axis of the coordinate for the rectangle starting point.\r\n\t * @param {number} y - The y axis of the coordinate for the rectangle starting point.\r\n\t * @param {number} width - The rectangle's width.\r\n\t * @param {number} height - The rectangle's height.\r\n\t * @param {number} radius - The rounded amount (in pixels) for the four corners.\r\n\t * @todo handle `radius` as top-left, top-right, bottom-right, bottom-left array/object?\r\n\t */\r\n\troundedRect: function(ctx, x, y, width, height, radius) {\r\n\t\tif (radius) {\r\n\t\t\tvar r = Math.min(radius, height / 2, width / 2);\r\n\t\t\tvar left = x + r;\r\n\t\t\tvar top = y + r;\r\n\t\t\tvar right = x + width - r;\r\n\t\t\tvar bottom = y + height - r;\r\n\r\n\t\t\tctx.moveTo(x, top);\r\n\t\t\tif (left < right && top < bottom) {\r\n\t\t\t\tctx.arc(left, top, r, -PI, -HALF_PI);\r\n\t\t\t\tctx.arc(right, top, r, -HALF_PI, 0);\r\n\t\t\t\tctx.arc(right, bottom, r, 0, HALF_PI);\r\n\t\t\t\tctx.arc(left, bottom, r, HALF_PI, PI);\r\n\t\t\t} else if (left < right) {\r\n\t\t\t\tctx.moveTo(left, y);\r\n\t\t\t\tctx.arc(right, top, r, -HALF_PI, HALF_PI);\r\n\t\t\t\tctx.arc(left, top, r, HALF_PI, PI + HALF_PI);\r\n\t\t\t} else if (top < bottom) {\r\n\t\t\t\tctx.arc(left, top, r, -PI, 0);\r\n\t\t\t\tctx.arc(left, bottom, r, 0, PI);\r\n\t\t\t} else {\r\n\t\t\t\tctx.arc(left, top, r, -PI, PI);\r\n\t\t\t}\r\n\t\t\tctx.closePath();\r\n\t\t\tctx.moveTo(x, y);\r\n\t\t} else {\r\n\t\t\tctx.rect(x, y, width, height);\r\n\t\t}\r\n\t},\r\n\r\n\tdrawPoint: function(ctx, style, radius, x, y, rotation) {\r\n\t\tvar type, xOffset, yOffset, size, cornerRadius;\r\n\t\tvar rad = (rotation || 0) * RAD_PER_DEG;\r\n\r\n\t\tif (style && typeof style === 'object') {\r\n\t\t\ttype = style.toString();\r\n\t\t\tif (type === '[object HTMLImageElement]' || type === '[object HTMLCanvasElement]') {\r\n\t\t\t\tctx.save();\r\n\t\t\t\tctx.translate(x, y);\r\n\t\t\t\tctx.rotate(rad);\r\n\t\t\t\tctx.drawImage(style, -style.width / 2, -style.height / 2, style.width, style.height);\r\n\t\t\t\tctx.restore();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (isNaN(radius) || radius <= 0) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tctx.beginPath();\r\n\r\n\t\tswitch (style) {\r\n\t\t// Default includes circle\r\n\t\tdefault:\r\n\t\t\tctx.arc(x, y, radius, 0, DOUBLE_PI);\r\n\t\t\tctx.closePath();\r\n\t\t\tbreak;\r\n\t\tcase 'triangle':\r\n\t\t\tctx.moveTo(x + Math.sin(rad) * radius, y - Math.cos(rad) * radius);\r\n\t\t\trad += TWO_THIRDS_PI;\r\n\t\t\tctx.lineTo(x + Math.sin(rad) * radius, y - Math.cos(rad) * radius);\r\n\t\t\trad += TWO_THIRDS_PI;\r\n\t\t\tctx.lineTo(x + Math.sin(rad) * radius, y - Math.cos(rad) * radius);\r\n\t\t\tctx.closePath();\r\n\t\t\tbreak;\r\n\t\tcase 'rectRounded':\r\n\t\t\t// NOTE: the rounded rect implementation changed to use `arc` instead of\r\n\t\t\t// `quadraticCurveTo` since it generates better results when rect is\r\n\t\t\t// almost a circle. 0.516 (instead of 0.5) produces results with visually\r\n\t\t\t// closer proportion to the previous impl and it is inscribed in the\r\n\t\t\t// circle with `radius`. For more details, see the following PRs:\r\n\t\t\t// https://github.com/chartjs/Chart.js/issues/5597\r\n\t\t\t// https://github.com/chartjs/Chart.js/issues/5858\r\n\t\t\tcornerRadius = radius * 0.516;\r\n\t\t\tsize = radius - cornerRadius;\r\n\t\t\txOffset = Math.cos(rad + QUARTER_PI) * size;\r\n\t\t\tyOffset = Math.sin(rad + QUARTER_PI) * size;\r\n\t\t\tctx.arc(x - xOffset, y - yOffset, cornerRadius, rad - PI, rad - HALF_PI);\r\n\t\t\tctx.arc(x + yOffset, y - xOffset, cornerRadius, rad - HALF_PI, rad);\r\n\t\t\tctx.arc(x + xOffset, y + yOffset, cornerRadius, rad, rad + HALF_PI);\r\n\t\t\tctx.arc(x - yOffset, y + xOffset, cornerRadius, rad + HALF_PI, rad + PI);\r\n\t\t\tctx.closePath();\r\n\t\t\tbreak;\r\n\t\tcase 'rect':\r\n\t\t\tif (!rotation) {\r\n\t\t\t\tsize = Math.SQRT1_2 * radius;\r\n\t\t\t\tctx.rect(x - size, y - size, 2 * size, 2 * size);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\trad += QUARTER_PI;\r\n\t\t\t/* falls through */\r\n\t\tcase 'rectRot':\r\n\t\t\txOffset = Math.cos(rad) * radius;\r\n\t\t\tyOffset = Math.sin(rad) * radius;\r\n\t\t\tctx.moveTo(x - xOffset, y - yOffset);\r\n\t\t\tctx.lineTo(x + yOffset, y - xOffset);\r\n\t\t\tctx.lineTo(x + xOffset, y + yOffset);\r\n\t\t\tctx.lineTo(x - yOffset, y + xOffset);\r\n\t\t\tctx.closePath();\r\n\t\t\tbreak;\r\n\t\tcase 'crossRot':\r\n\t\t\trad += QUARTER_PI;\r\n\t\t\t/* falls through */\r\n\t\tcase 'cross':\r\n\t\t\txOffset = Math.cos(rad) * radius;\r\n\t\t\tyOffset = Math.sin(rad) * radius;\r\n\t\t\tctx.moveTo(x - xOffset, y - yOffset);\r\n\t\t\tctx.lineTo(x + xOffset, y + yOffset);\r\n\t\t\tctx.moveTo(x + yOffset, y - xOffset);\r\n\t\t\tctx.lineTo(x - yOffset, y + xOffset);\r\n\t\t\tbreak;\r\n\t\tcase 'star':\r\n\t\t\txOffset = Math.cos(rad) * radius;\r\n\t\t\tyOffset = Math.sin(rad) * radius;\r\n\t\t\tctx.moveTo(x - xOffset, y - yOffset);\r\n\t\t\tctx.lineTo(x + xOffset, y + yOffset);\r\n\t\t\tctx.moveTo(x + yOffset, y - xOffset);\r\n\t\t\tctx.lineTo(x - yOffset, y + xOffset);\r\n\t\t\trad += QUARTER_PI;\r\n\t\t\txOffset = Math.cos(rad) * radius;\r\n\t\t\tyOffset = Math.sin(rad) * radius;\r\n\t\t\tctx.moveTo(x - xOffset, y - yOffset);\r\n\t\t\tctx.lineTo(x + xOffset, y + yOffset);\r\n\t\t\tctx.moveTo(x + yOffset, y - xOffset);\r\n\t\t\tctx.lineTo(x - yOffset, y + xOffset);\r\n\t\t\tbreak;\r\n\t\tcase 'line':\r\n\t\t\txOffset = Math.cos(rad) * radius;\r\n\t\t\tyOffset = Math.sin(rad) * radius;\r\n\t\t\tctx.moveTo(x - xOffset, y - yOffset);\r\n\t\t\tctx.lineTo(x + xOffset, y + yOffset);\r\n\t\t\tbreak;\r\n\t\tcase 'dash':\r\n\t\t\tctx.moveTo(x, y);\r\n\t\t\tctx.lineTo(x + Math.cos(rad) * radius, y + Math.sin(rad) * radius);\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tctx.fill();\r\n\t\tctx.stroke();\r\n\t},\r\n\r\n\t/**\r\n\t * Returns true if the point is inside the rectangle\r\n\t * @param {object} point - The point to test\r\n\t * @param {object} area - The rectangle\r\n\t * @returns {boolean}\r\n\t * @private\r\n\t */\r\n\t_isPointInArea: function(point, area) {\r\n\t\tvar epsilon = 1e-6; // 1e-6 is margin in pixels for accumulated error.\r\n\r\n\t\treturn point.x > area.left - epsilon && point.x < area.right + epsilon &&\r\n\t\t\tpoint.y > area.top - epsilon && point.y < area.bottom + epsilon;\r\n\t},\r\n\r\n\tclipArea: function(ctx, area) {\r\n\t\tctx.save();\r\n\t\tctx.beginPath();\r\n\t\tctx.rect(area.left, area.top, area.right - area.left, area.bottom - area.top);\r\n\t\tctx.clip();\r\n\t},\r\n\r\n\tunclipArea: function(ctx) {\r\n\t\tctx.restore();\r\n\t},\r\n\r\n\tlineTo: function(ctx, previous, target, flip) {\r\n\t\tvar stepped = target.steppedLine;\r\n\t\tif (stepped) {\r\n\t\t\tif (stepped === 'middle') {\r\n\t\t\t\tvar midpoint = (previous.x + target.x) / 2.0;\r\n\t\t\t\tctx.lineTo(midpoint, flip ? target.y : previous.y);\r\n\t\t\t\tctx.lineTo(midpoint, flip ? previous.y : target.y);\r\n\t\t\t} else if ((stepped === 'after' && !flip) || (stepped !== 'after' && flip)) {\r\n\t\t\t\tctx.lineTo(previous.x, target.y);\r\n\t\t\t} else {\r\n\t\t\t\tctx.lineTo(target.x, previous.y);\r\n\t\t\t}\r\n\t\t\tctx.lineTo(target.x, target.y);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (!target.tension) {\r\n\t\t\tctx.lineTo(target.x, target.y);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tctx.bezierCurveTo(\r\n\t\t\tflip ? previous.controlPointPreviousX : previous.controlPointNextX,\r\n\t\t\tflip ? previous.controlPointPreviousY : previous.controlPointNextY,\r\n\t\t\tflip ? target.controlPointNextX : target.controlPointPreviousX,\r\n\t\t\tflip ? target.controlPointNextY : target.controlPointPreviousY,\r\n\t\t\ttarget.x,\r\n\t\t\ttarget.y);\r\n\t}\r\n};\r\n\r\nvar helpers_canvas = exports$1;\r\n\r\n// DEPRECATIONS\r\n\r\n/**\r\n * Provided for backward compatibility, use Chart.helpers.canvas.clear instead.\r\n * @namespace Chart.helpers.clear\r\n * @deprecated since version 2.7.0\r\n * @todo remove at version 3\r\n * @private\r\n */\r\nhelpers_core.clear = exports$1.clear;\r\n\r\n/**\r\n * Provided for backward compatibility, use Chart.helpers.canvas.roundedRect instead.\r\n * @namespace Chart.helpers.drawRoundedRectangle\r\n * @deprecated since version 2.7.0\r\n * @todo remove at version 3\r\n * @private\r\n */\r\nhelpers_core.drawRoundedRectangle = function(ctx) {\r\n\tctx.beginPath();\r\n\texports$1.roundedRect.apply(exports$1, arguments);\r\n};\n\nvar defaults = {\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_set: function(scope, values) {\r\n\t\treturn helpers_core.merge(this[scope] || (this[scope] = {}), values);\r\n\t}\r\n};\r\n\r\n// TODO(v3): remove 'global' from namespace.  all default are global and\r\n// there's inconsistency around which options are under 'global'\r\ndefaults._set('global', {\r\n\tdefaultColor: 'rgba(0,0,0,0.1)',\r\n\tdefaultFontColor: '#666',\r\n\tdefaultFontFamily: \"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif\",\r\n\tdefaultFontSize: 12,\r\n\tdefaultFontStyle: 'normal',\r\n\tdefaultLineHeight: 1.2,\r\n\tshowLines: true\r\n});\r\n\r\nvar core_defaults = defaults;\n\nvar valueOrDefault = helpers_core.valueOrDefault;\r\n\r\n/**\r\n * Converts the given font object into a CSS font string.\r\n * @param {object} font - A font object.\r\n * @return {string} The CSS font string. See https://developer.mozilla.org/en-US/docs/Web/CSS/font\r\n * @private\r\n */\r\nfunction toFontString(font) {\r\n\tif (!font || helpers_core.isNullOrUndef(font.size) || helpers_core.isNullOrUndef(font.family)) {\r\n\t\treturn null;\r\n\t}\r\n\r\n\treturn (font.style ? font.style + ' ' : '')\r\n\t\t+ (font.weight ? font.weight + ' ' : '')\r\n\t\t+ font.size + 'px '\r\n\t\t+ font.family;\r\n}\r\n\r\n/**\r\n * @alias Chart.helpers.options\r\n * @namespace\r\n */\r\nvar helpers_options = {\r\n\t/**\r\n\t * Converts the given line height `value` in pixels for a specific font `size`.\r\n\t * @param {number|string} value - The lineHeight to parse (eg. 1.6, '14px', '75%', '1.6em').\r\n\t * @param {number} size - The font size (in pixels) used to resolve relative `value`.\r\n\t * @returns {number} The effective line height in pixels (size * 1.2 if value is invalid).\r\n\t * @see https://developer.mozilla.org/en-US/docs/Web/CSS/line-height\r\n\t * @since 2.7.0\r\n\t */\r\n\ttoLineHeight: function(value, size) {\r\n\t\tvar matches = ('' + value).match(/^(normal|(\\d+(?:\\.\\d+)?)(px|em|%)?)$/);\r\n\t\tif (!matches || matches[1] === 'normal') {\r\n\t\t\treturn size * 1.2;\r\n\t\t}\r\n\r\n\t\tvalue = +matches[2];\r\n\r\n\t\tswitch (matches[3]) {\r\n\t\tcase 'px':\r\n\t\t\treturn value;\r\n\t\tcase '%':\r\n\t\t\tvalue /= 100;\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\treturn size * value;\r\n\t},\r\n\r\n\t/**\r\n\t * Converts the given value into a padding object with pre-computed width/height.\r\n\t * @param {number|object} value - If a number, set the value to all TRBL component,\r\n\t *  else, if and object, use defined properties and sets undefined ones to 0.\r\n\t * @returns {object} The padding values (top, right, bottom, left, width, height)\r\n\t * @since 2.7.0\r\n\t */\r\n\ttoPadding: function(value) {\r\n\t\tvar t, r, b, l;\r\n\r\n\t\tif (helpers_core.isObject(value)) {\r\n\t\t\tt = +value.top || 0;\r\n\t\t\tr = +value.right || 0;\r\n\t\t\tb = +value.bottom || 0;\r\n\t\t\tl = +value.left || 0;\r\n\t\t} else {\r\n\t\t\tt = r = b = l = +value || 0;\r\n\t\t}\r\n\r\n\t\treturn {\r\n\t\t\ttop: t,\r\n\t\t\tright: r,\r\n\t\t\tbottom: b,\r\n\t\t\tleft: l,\r\n\t\t\theight: t + b,\r\n\t\t\twidth: l + r\r\n\t\t};\r\n\t},\r\n\r\n\t/**\r\n\t * Parses font options and returns the font object.\r\n\t * @param {object} options - A object that contains font options to be parsed.\r\n\t * @return {object} The font object.\r\n\t * @todo Support font.* options and renamed to toFont().\r\n\t * @private\r\n\t */\r\n\t_parseFont: function(options) {\r\n\t\tvar globalDefaults = core_defaults.global;\r\n\t\tvar size = valueOrDefault(options.fontSize, globalDefaults.defaultFontSize);\r\n\t\tvar font = {\r\n\t\t\tfamily: valueOrDefault(options.fontFamily, globalDefaults.defaultFontFamily),\r\n\t\t\tlineHeight: helpers_core.options.toLineHeight(valueOrDefault(options.lineHeight, globalDefaults.defaultLineHeight), size),\r\n\t\t\tsize: size,\r\n\t\t\tstyle: valueOrDefault(options.fontStyle, globalDefaults.defaultFontStyle),\r\n\t\t\tweight: null,\r\n\t\t\tstring: ''\r\n\t\t};\r\n\r\n\t\tfont.string = toFontString(font);\r\n\t\treturn font;\r\n\t},\r\n\r\n\t/**\r\n\t * Evaluates the given `inputs` sequentially and returns the first defined value.\r\n\t * @param {Array} inputs - An array of values, falling back to the last value.\r\n\t * @param {object} [context] - If defined and the current value is a function, the value\r\n\t * is called with `context` as first argument and the result becomes the new input.\r\n\t * @param {number} [index] - If defined and the current value is an array, the value\r\n\t * at `index` become the new input.\r\n\t * @param {object} [info] - object to return information about resolution in\r\n\t * @param {boolean} [info.cacheable] - Will be set to `false` if option is not cacheable.\r\n\t * @since 2.7.0\r\n\t */\r\n\tresolve: function(inputs, context, index, info) {\r\n\t\tvar cacheable = true;\r\n\t\tvar i, ilen, value;\r\n\r\n\t\tfor (i = 0, ilen = inputs.length; i < ilen; ++i) {\r\n\t\t\tvalue = inputs[i];\r\n\t\t\tif (value === undefined) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tif (context !== undefined && typeof value === 'function') {\r\n\t\t\t\tvalue = value(context);\r\n\t\t\t\tcacheable = false;\r\n\t\t\t}\r\n\t\t\tif (index !== undefined && helpers_core.isArray(value)) {\r\n\t\t\t\tvalue = value[index];\r\n\t\t\t\tcacheable = false;\r\n\t\t\t}\r\n\t\t\tif (value !== undefined) {\r\n\t\t\t\tif (info && !cacheable) {\r\n\t\t\t\t\tinfo.cacheable = false;\r\n\t\t\t\t}\r\n\t\t\t\treturn value;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\n\n/**\r\n * @alias Chart.helpers.math\r\n * @namespace\r\n */\r\nvar exports$2 = {\r\n\t/**\r\n\t * Returns an array of factors sorted from 1 to sqrt(value)\r\n\t * @private\r\n\t */\r\n\t_factorize: function(value) {\r\n\t\tvar result = [];\r\n\t\tvar sqrt = Math.sqrt(value);\r\n\t\tvar i;\r\n\r\n\t\tfor (i = 1; i < sqrt; i++) {\r\n\t\t\tif (value % i === 0) {\r\n\t\t\t\tresult.push(i);\r\n\t\t\t\tresult.push(value / i);\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (sqrt === (sqrt | 0)) { // if value is a square number\r\n\t\t\tresult.push(sqrt);\r\n\t\t}\r\n\r\n\t\tresult.sort(function(a, b) {\r\n\t\t\treturn a - b;\r\n\t\t}).pop();\r\n\t\treturn result;\r\n\t},\r\n\r\n\tlog10: Math.log10 || function(x) {\r\n\t\tvar exponent = Math.log(x) * Math.LOG10E; // Math.LOG10E = 1 / Math.LN10.\r\n\t\t// Check for whole powers of 10,\r\n\t\t// which due to floating point rounding error should be corrected.\r\n\t\tvar powerOf10 = Math.round(exponent);\r\n\t\tvar isPowerOf10 = x === Math.pow(10, powerOf10);\r\n\r\n\t\treturn isPowerOf10 ? powerOf10 : exponent;\r\n\t}\r\n};\r\n\r\nvar helpers_math = exports$2;\r\n\r\n// DEPRECATIONS\r\n\r\n/**\r\n * Provided for backward compatibility, use Chart.helpers.math.log10 instead.\r\n * @namespace Chart.helpers.log10\r\n * @deprecated since version 2.9.0\r\n * @todo remove at version 3\r\n * @private\r\n */\r\nhelpers_core.log10 = exports$2.log10;\n\nvar getRtlAdapter = function(rectX, width) {\r\n\treturn {\r\n\t\tx: function(x) {\r\n\t\t\treturn rectX + rectX + width - x;\r\n\t\t},\r\n\t\tsetWidth: function(w) {\r\n\t\t\twidth = w;\r\n\t\t},\r\n\t\ttextAlign: function(align) {\r\n\t\t\tif (align === 'center') {\r\n\t\t\t\treturn align;\r\n\t\t\t}\r\n\t\t\treturn align === 'right' ? 'left' : 'right';\r\n\t\t},\r\n\t\txPlus: function(x, value) {\r\n\t\t\treturn x - value;\r\n\t\t},\r\n\t\tleftForLtr: function(x, itemWidth) {\r\n\t\t\treturn x - itemWidth;\r\n\t\t},\r\n\t};\r\n};\r\n\r\nvar getLtrAdapter = function() {\r\n\treturn {\r\n\t\tx: function(x) {\r\n\t\t\treturn x;\r\n\t\t},\r\n\t\tsetWidth: function(w) { // eslint-disable-line no-unused-vars\r\n\t\t},\r\n\t\ttextAlign: function(align) {\r\n\t\t\treturn align;\r\n\t\t},\r\n\t\txPlus: function(x, value) {\r\n\t\t\treturn x + value;\r\n\t\t},\r\n\t\tleftForLtr: function(x, _itemWidth) { // eslint-disable-line no-unused-vars\r\n\t\t\treturn x;\r\n\t\t},\r\n\t};\r\n};\r\n\r\nvar getAdapter = function(rtl, rectX, width) {\r\n\treturn rtl ? getRtlAdapter(rectX, width) : getLtrAdapter();\r\n};\r\n\r\nvar overrideTextDirection = function(ctx, direction) {\r\n\tvar style, original;\r\n\tif (direction === 'ltr' || direction === 'rtl') {\r\n\t\tstyle = ctx.canvas.style;\r\n\t\toriginal = [\r\n\t\t\tstyle.getPropertyValue('direction'),\r\n\t\t\tstyle.getPropertyPriority('direction'),\r\n\t\t];\r\n\r\n\t\tstyle.setProperty('direction', direction, 'important');\r\n\t\tctx.prevTextDirection = original;\r\n\t}\r\n};\r\n\r\nvar restoreTextDirection = function(ctx) {\r\n\tvar original = ctx.prevTextDirection;\r\n\tif (original !== undefined) {\r\n\t\tdelete ctx.prevTextDirection;\r\n\t\tctx.canvas.style.setProperty('direction', original[0], original[1]);\r\n\t}\r\n};\r\n\r\nvar helpers_rtl = {\r\n\tgetRtlAdapter: getAdapter,\r\n\toverrideTextDirection: overrideTextDirection,\r\n\trestoreTextDirection: restoreTextDirection,\r\n};\n\nvar helpers$1 = helpers_core;\r\nvar easing = helpers_easing;\r\nvar canvas = helpers_canvas;\r\nvar options = helpers_options;\r\nvar math = helpers_math;\r\nvar rtl = helpers_rtl;\nhelpers$1.easing = easing;\nhelpers$1.canvas = canvas;\nhelpers$1.options = options;\nhelpers$1.math = math;\nhelpers$1.rtl = rtl;\n\nfunction interpolate(start, view, model, ease) {\r\n\tvar keys = Object.keys(model);\r\n\tvar i, ilen, key, actual, origin, target, type, c0, c1;\r\n\r\n\tfor (i = 0, ilen = keys.length; i < ilen; ++i) {\r\n\t\tkey = keys[i];\r\n\r\n\t\ttarget = model[key];\r\n\r\n\t\t// if a value is added to the model after pivot() has been called, the view\r\n\t\t// doesn't contain it, so let's initialize the view to the target value.\r\n\t\tif (!view.hasOwnProperty(key)) {\r\n\t\t\tview[key] = target;\r\n\t\t}\r\n\r\n\t\tactual = view[key];\r\n\r\n\t\tif (actual === target || key[0] === '_') {\r\n\t\t\tcontinue;\r\n\t\t}\r\n\r\n\t\tif (!start.hasOwnProperty(key)) {\r\n\t\t\tstart[key] = actual;\r\n\t\t}\r\n\r\n\t\torigin = start[key];\r\n\r\n\t\ttype = typeof target;\r\n\r\n\t\tif (type === typeof origin) {\r\n\t\t\tif (type === 'string') {\r\n\t\t\t\tc0 = chartjsColor(origin);\r\n\t\t\t\tif (c0.valid) {\r\n\t\t\t\t\tc1 = chartjsColor(target);\r\n\t\t\t\t\tif (c1.valid) {\r\n\t\t\t\t\t\tview[key] = c1.mix(c0, ease).rgbString();\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else if (helpers$1.isFinite(origin) && helpers$1.isFinite(target)) {\r\n\t\t\t\tview[key] = origin + (target - origin) * ease;\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tview[key] = target;\r\n\t}\r\n}\r\n\r\nvar Element = function(configuration) {\r\n\thelpers$1.extend(this, configuration);\r\n\tthis.initialize.apply(this, arguments);\r\n};\r\n\r\nhelpers$1.extend(Element.prototype, {\r\n\t_type: undefined,\r\n\r\n\tinitialize: function() {\r\n\t\tthis.hidden = false;\r\n\t},\r\n\r\n\tpivot: function() {\r\n\t\tvar me = this;\r\n\t\tif (!me._view) {\r\n\t\t\tme._view = helpers$1.extend({}, me._model);\r\n\t\t}\r\n\t\tme._start = {};\r\n\t\treturn me;\r\n\t},\r\n\r\n\ttransition: function(ease) {\r\n\t\tvar me = this;\r\n\t\tvar model = me._model;\r\n\t\tvar start = me._start;\r\n\t\tvar view = me._view;\r\n\r\n\t\t// No animation -> No Transition\r\n\t\tif (!model || ease === 1) {\r\n\t\t\tme._view = helpers$1.extend({}, model);\r\n\t\t\tme._start = null;\r\n\t\t\treturn me;\r\n\t\t}\r\n\r\n\t\tif (!view) {\r\n\t\t\tview = me._view = {};\r\n\t\t}\r\n\r\n\t\tif (!start) {\r\n\t\t\tstart = me._start = {};\r\n\t\t}\r\n\r\n\t\tinterpolate(start, view, model, ease);\r\n\r\n\t\treturn me;\r\n\t},\r\n\r\n\ttooltipPosition: function() {\r\n\t\treturn {\r\n\t\t\tx: this._model.x,\r\n\t\t\ty: this._model.y\r\n\t\t};\r\n\t},\r\n\r\n\thasValue: function() {\r\n\t\treturn helpers$1.isNumber(this._model.x) && helpers$1.isNumber(this._model.y);\r\n\t}\r\n});\r\n\r\nElement.extend = helpers$1.inherits;\r\n\r\nvar core_element = Element;\n\nvar exports$3 = core_element.extend({\r\n\tchart: null, // the animation associated chart instance\r\n\tcurrentStep: 0, // the current animation step\r\n\tnumSteps: 60, // default number of steps\r\n\teasing: '', // the easing to use for this animation\r\n\trender: null, // render function used by the animation service\r\n\r\n\tonAnimationProgress: null, // user specified callback to fire on each step of the animation\r\n\tonAnimationComplete: null, // user specified callback to fire when the animation finishes\r\n});\r\n\r\nvar core_animation = exports$3;\r\n\r\n// DEPRECATIONS\r\n\r\n/**\r\n * Provided for backward compatibility, use Chart.Animation instead\r\n * @prop Chart.Animation#animationObject\r\n * @deprecated since version 2.6.0\r\n * @todo remove at version 3\r\n */\r\nObject.defineProperty(exports$3.prototype, 'animationObject', {\r\n\tget: function() {\r\n\t\treturn this;\r\n\t}\r\n});\r\n\r\n/**\r\n * Provided for backward compatibility, use Chart.Animation#chart instead\r\n * @prop Chart.Animation#chartInstance\r\n * @deprecated since version 2.6.0\r\n * @todo remove at version 3\r\n */\r\nObject.defineProperty(exports$3.prototype, 'chartInstance', {\r\n\tget: function() {\r\n\t\treturn this.chart;\r\n\t},\r\n\tset: function(value) {\r\n\t\tthis.chart = value;\r\n\t}\r\n});\n\ncore_defaults._set('global', {\r\n\tanimation: {\r\n\t\tduration: 1000,\r\n\t\teasing: 'easeOutQuart',\r\n\t\tonProgress: helpers$1.noop,\r\n\t\tonComplete: helpers$1.noop\r\n\t}\r\n});\r\n\r\nvar core_animations = {\r\n\tanimations: [],\r\n\trequest: null,\r\n\r\n\t/**\r\n\t * @param {Chart} chart - The chart to animate.\r\n\t * @param {Chart.Animation} animation - The animation that we will animate.\r\n\t * @param {number} duration - The animation duration in ms.\r\n\t * @param {boolean} lazy - if true, the chart is not marked as animating to enable more responsive interactions\r\n\t */\r\n\taddAnimation: function(chart, animation, duration, lazy) {\r\n\t\tvar animations = this.animations;\r\n\t\tvar i, ilen;\r\n\r\n\t\tanimation.chart = chart;\r\n\t\tanimation.startTime = Date.now();\r\n\t\tanimation.duration = duration;\r\n\r\n\t\tif (!lazy) {\r\n\t\t\tchart.animating = true;\r\n\t\t}\r\n\r\n\t\tfor (i = 0, ilen = animations.length; i < ilen; ++i) {\r\n\t\t\tif (animations[i].chart === chart) {\r\n\t\t\t\tanimations[i] = animation;\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tanimations.push(animation);\r\n\r\n\t\t// If there are no animations queued, manually kickstart a digest, for lack of a better word\r\n\t\tif (animations.length === 1) {\r\n\t\t\tthis.requestAnimationFrame();\r\n\t\t}\r\n\t},\r\n\r\n\tcancelAnimation: function(chart) {\r\n\t\tvar index = helpers$1.findIndex(this.animations, function(animation) {\r\n\t\t\treturn animation.chart === chart;\r\n\t\t});\r\n\r\n\t\tif (index !== -1) {\r\n\t\t\tthis.animations.splice(index, 1);\r\n\t\t\tchart.animating = false;\r\n\t\t}\r\n\t},\r\n\r\n\trequestAnimationFrame: function() {\r\n\t\tvar me = this;\r\n\t\tif (me.request === null) {\r\n\t\t\t// Skip animation frame requests until the active one is executed.\r\n\t\t\t// This can happen when processing mouse events, e.g. 'mousemove'\r\n\t\t\t// and 'mouseout' events will trigger multiple renders.\r\n\t\t\tme.request = helpers$1.requestAnimFrame.call(window, function() {\r\n\t\t\t\tme.request = null;\r\n\t\t\t\tme.startDigest();\r\n\t\t\t});\r\n\t\t}\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\tstartDigest: function() {\r\n\t\tvar me = this;\r\n\r\n\t\tme.advance();\r\n\r\n\t\t// Do we have more stuff to animate?\r\n\t\tif (me.animations.length > 0) {\r\n\t\t\tme.requestAnimationFrame();\r\n\t\t}\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\tadvance: function() {\r\n\t\tvar animations = this.animations;\r\n\t\tvar animation, chart, numSteps, nextStep;\r\n\t\tvar i = 0;\r\n\r\n\t\t// 1 animation per chart, so we are looping charts here\r\n\t\twhile (i < animations.length) {\r\n\t\t\tanimation = animations[i];\r\n\t\t\tchart = animation.chart;\r\n\t\t\tnumSteps = animation.numSteps;\r\n\r\n\t\t\t// Make sure that currentStep starts at 1\r\n\t\t\t// https://github.com/chartjs/Chart.js/issues/6104\r\n\t\t\tnextStep = Math.floor((Date.now() - animation.startTime) / animation.duration * numSteps) + 1;\r\n\t\t\tanimation.currentStep = Math.min(nextStep, numSteps);\r\n\r\n\t\t\thelpers$1.callback(animation.render, [chart, animation], chart);\r\n\t\t\thelpers$1.callback(animation.onAnimationProgress, [animation], chart);\r\n\r\n\t\t\tif (animation.currentStep >= numSteps) {\r\n\t\t\t\thelpers$1.callback(animation.onAnimationComplete, [animation], chart);\r\n\t\t\t\tchart.animating = false;\r\n\t\t\t\tanimations.splice(i, 1);\r\n\t\t\t} else {\r\n\t\t\t\t++i;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\n\nvar resolve = helpers$1.options.resolve;\r\n\r\nvar arrayEvents = ['push', 'pop', 'shift', 'splice', 'unshift'];\r\n\r\n/**\r\n * Hooks the array methods that add or remove values ('push', pop', 'shift', 'splice',\r\n * 'unshift') and notify the listener AFTER the array has been altered. Listeners are\r\n * called on the 'onData*' callbacks (e.g. onDataPush, etc.) with same arguments.\r\n */\r\nfunction listenArrayEvents(array, listener) {\r\n\tif (array._chartjs) {\r\n\t\tarray._chartjs.listeners.push(listener);\r\n\t\treturn;\r\n\t}\r\n\r\n\tObject.defineProperty(array, '_chartjs', {\r\n\t\tconfigurable: true,\r\n\t\tenumerable: false,\r\n\t\tvalue: {\r\n\t\t\tlisteners: [listener]\r\n\t\t}\r\n\t});\r\n\r\n\tarrayEvents.forEach(function(key) {\r\n\t\tvar method = 'onData' + key.charAt(0).toUpperCase() + key.slice(1);\r\n\t\tvar base = array[key];\r\n\r\n\t\tObject.defineProperty(array, key, {\r\n\t\t\tconfigurable: true,\r\n\t\t\tenumerable: false,\r\n\t\t\tvalue: function() {\r\n\t\t\t\tvar args = Array.prototype.slice.call(arguments);\r\n\t\t\t\tvar res = base.apply(this, args);\r\n\r\n\t\t\t\thelpers$1.each(array._chartjs.listeners, function(object) {\r\n\t\t\t\t\tif (typeof object[method] === 'function') {\r\n\t\t\t\t\t\tobject[method].apply(object, args);\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\r\n\t\t\t\treturn res;\r\n\t\t\t}\r\n\t\t});\r\n\t});\r\n}\r\n\r\n/**\r\n * Removes the given array event listener and cleanup extra attached properties (such as\r\n * the _chartjs stub and overridden methods) if array doesn't have any more listeners.\r\n */\r\nfunction unlistenArrayEvents(array, listener) {\r\n\tvar stub = array._chartjs;\r\n\tif (!stub) {\r\n\t\treturn;\r\n\t}\r\n\r\n\tvar listeners = stub.listeners;\r\n\tvar index = listeners.indexOf(listener);\r\n\tif (index !== -1) {\r\n\t\tlisteners.splice(index, 1);\r\n\t}\r\n\r\n\tif (listeners.length > 0) {\r\n\t\treturn;\r\n\t}\r\n\r\n\tarrayEvents.forEach(function(key) {\r\n\t\tdelete array[key];\r\n\t});\r\n\r\n\tdelete array._chartjs;\r\n}\r\n\r\n// Base class for all dataset controllers (line, bar, etc)\r\nvar DatasetController = function(chart, datasetIndex) {\r\n\tthis.initialize(chart, datasetIndex);\r\n};\r\n\r\nhelpers$1.extend(DatasetController.prototype, {\r\n\r\n\t/**\r\n\t * Element type used to generate a meta dataset (e.g. Chart.element.Line).\r\n\t * @type {Chart.core.element}\r\n\t */\r\n\tdatasetElementType: null,\r\n\r\n\t/**\r\n\t * Element type used to generate a meta data (e.g. Chart.element.Point).\r\n\t * @type {Chart.core.element}\r\n\t */\r\n\tdataElementType: null,\r\n\r\n\t/**\r\n\t * Dataset element option keys to be resolved in _resolveDatasetElementOptions.\r\n\t * A derived controller may override this to resolve controller-specific options.\r\n\t * The keys defined here are for backward compatibility for legend styles.\r\n\t * @private\r\n\t */\r\n\t_datasetElementOptions: [\r\n\t\t'backgroundColor',\r\n\t\t'borderCapStyle',\r\n\t\t'borderColor',\r\n\t\t'borderDash',\r\n\t\t'borderDashOffset',\r\n\t\t'borderJoinStyle',\r\n\t\t'borderWidth'\r\n\t],\r\n\r\n\t/**\r\n\t * Data element option keys to be resolved in _resolveDataElementOptions.\r\n\t * A derived controller may override this to resolve controller-specific options.\r\n\t * The keys defined here are for backward compatibility for legend styles.\r\n\t * @private\r\n\t */\r\n\t_dataElementOptions: [\r\n\t\t'backgroundColor',\r\n\t\t'borderColor',\r\n\t\t'borderWidth',\r\n\t\t'pointStyle'\r\n\t],\r\n\r\n\tinitialize: function(chart, datasetIndex) {\r\n\t\tvar me = this;\r\n\t\tme.chart = chart;\r\n\t\tme.index = datasetIndex;\r\n\t\tme.linkScales();\r\n\t\tme.addElements();\r\n\t\tme._type = me.getMeta().type;\r\n\t},\r\n\r\n\tupdateIndex: function(datasetIndex) {\r\n\t\tthis.index = datasetIndex;\r\n\t},\r\n\r\n\tlinkScales: function() {\r\n\t\tvar me = this;\r\n\t\tvar meta = me.getMeta();\r\n\t\tvar chart = me.chart;\r\n\t\tvar scales = chart.scales;\r\n\t\tvar dataset = me.getDataset();\r\n\t\tvar scalesOpts = chart.options.scales;\r\n\r\n\t\tif (meta.xAxisID === null || !(meta.xAxisID in scales) || dataset.xAxisID) {\r\n\t\t\tmeta.xAxisID = dataset.xAxisID || scalesOpts.xAxes[0].id;\r\n\t\t}\r\n\t\tif (meta.yAxisID === null || !(meta.yAxisID in scales) || dataset.yAxisID) {\r\n\t\t\tmeta.yAxisID = dataset.yAxisID || scalesOpts.yAxes[0].id;\r\n\t\t}\r\n\t},\r\n\r\n\tgetDataset: function() {\r\n\t\treturn this.chart.data.datasets[this.index];\r\n\t},\r\n\r\n\tgetMeta: function() {\r\n\t\treturn this.chart.getDatasetMeta(this.index);\r\n\t},\r\n\r\n\tgetScaleForId: function(scaleID) {\r\n\t\treturn this.chart.scales[scaleID];\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_getValueScaleId: function() {\r\n\t\treturn this.getMeta().yAxisID;\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_getIndexScaleId: function() {\r\n\t\treturn this.getMeta().xAxisID;\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_getValueScale: function() {\r\n\t\treturn this.getScaleForId(this._getValueScaleId());\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_getIndexScale: function() {\r\n\t\treturn this.getScaleForId(this._getIndexScaleId());\r\n\t},\r\n\r\n\treset: function() {\r\n\t\tthis._update(true);\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\tdestroy: function() {\r\n\t\tif (this._data) {\r\n\t\t\tunlistenArrayEvents(this._data, this);\r\n\t\t}\r\n\t},\r\n\r\n\tcreateMetaDataset: function() {\r\n\t\tvar me = this;\r\n\t\tvar type = me.datasetElementType;\r\n\t\treturn type && new type({\r\n\t\t\t_chart: me.chart,\r\n\t\t\t_datasetIndex: me.index\r\n\t\t});\r\n\t},\r\n\r\n\tcreateMetaData: function(index) {\r\n\t\tvar me = this;\r\n\t\tvar type = me.dataElementType;\r\n\t\treturn type && new type({\r\n\t\t\t_chart: me.chart,\r\n\t\t\t_datasetIndex: me.index,\r\n\t\t\t_index: index\r\n\t\t});\r\n\t},\r\n\r\n\taddElements: function() {\r\n\t\tvar me = this;\r\n\t\tvar meta = me.getMeta();\r\n\t\tvar data = me.getDataset().data || [];\r\n\t\tvar metaData = meta.data;\r\n\t\tvar i, ilen;\r\n\r\n\t\tfor (i = 0, ilen = data.length; i < ilen; ++i) {\r\n\t\t\tmetaData[i] = metaData[i] || me.createMetaData(i);\r\n\t\t}\r\n\r\n\t\tmeta.dataset = meta.dataset || me.createMetaDataset();\r\n\t},\r\n\r\n\taddElementAndReset: function(index) {\r\n\t\tvar element = this.createMetaData(index);\r\n\t\tthis.getMeta().data.splice(index, 0, element);\r\n\t\tthis.updateElement(element, index, true);\r\n\t},\r\n\r\n\tbuildOrUpdateElements: function() {\r\n\t\tvar me = this;\r\n\t\tvar dataset = me.getDataset();\r\n\t\tvar data = dataset.data || (dataset.data = []);\r\n\r\n\t\t// In order to correctly handle data addition/deletion animation (an thus simulate\r\n\t\t// real-time charts), we need to monitor these data modifications and synchronize\r\n\t\t// the internal meta data accordingly.\r\n\t\tif (me._data !== data) {\r\n\t\t\tif (me._data) {\r\n\t\t\t\t// This case happens when the user replaced the data array instance.\r\n\t\t\t\tunlistenArrayEvents(me._data, me);\r\n\t\t\t}\r\n\r\n\t\t\tif (data && Object.isExtensible(data)) {\r\n\t\t\t\tlistenArrayEvents(data, me);\r\n\t\t\t}\r\n\t\t\tme._data = data;\r\n\t\t}\r\n\r\n\t\t// Re-sync meta data in case the user replaced the data array or if we missed\r\n\t\t// any updates and so make sure that we handle number of datapoints changing.\r\n\t\tme.resyncElements();\r\n\t},\r\n\r\n\t/**\r\n\t * Returns the merged user-supplied and default dataset-level options\r\n\t * @private\r\n\t */\r\n\t_configure: function() {\r\n\t\tvar me = this;\r\n\t\tme._config = helpers$1.merge(Object.create(null), [\r\n\t\t\tme.chart.options.datasets[me._type],\r\n\t\t\tme.getDataset(),\r\n\t\t], {\r\n\t\t\tmerger: function(key, target, source) {\r\n\t\t\t\tif (key !== '_meta' && key !== 'data') {\r\n\t\t\t\t\thelpers$1._merger(key, target, source);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t},\r\n\r\n\t_update: function(reset) {\r\n\t\tvar me = this;\r\n\t\tme._configure();\r\n\t\tme._cachedDataOpts = null;\r\n\t\tme.update(reset);\r\n\t},\r\n\r\n\tupdate: helpers$1.noop,\r\n\r\n\ttransition: function(easingValue) {\r\n\t\tvar meta = this.getMeta();\r\n\t\tvar elements = meta.data || [];\r\n\t\tvar ilen = elements.length;\r\n\t\tvar i = 0;\r\n\r\n\t\tfor (; i < ilen; ++i) {\r\n\t\t\telements[i].transition(easingValue);\r\n\t\t}\r\n\r\n\t\tif (meta.dataset) {\r\n\t\t\tmeta.dataset.transition(easingValue);\r\n\t\t}\r\n\t},\r\n\r\n\tdraw: function() {\r\n\t\tvar meta = this.getMeta();\r\n\t\tvar elements = meta.data || [];\r\n\t\tvar ilen = elements.length;\r\n\t\tvar i = 0;\r\n\r\n\t\tif (meta.dataset) {\r\n\t\t\tmeta.dataset.draw();\r\n\t\t}\r\n\r\n\t\tfor (; i < ilen; ++i) {\r\n\t\t\telements[i].draw();\r\n\t\t}\r\n\t},\r\n\r\n\t/**\r\n\t * Returns a set of predefined style properties that should be used to represent the dataset\r\n\t * or the data if the index is specified\r\n\t * @param {number} index - data index\r\n\t * @return {IStyleInterface} style object\r\n\t */\r\n\tgetStyle: function(index) {\r\n\t\tvar me = this;\r\n\t\tvar meta = me.getMeta();\r\n\t\tvar dataset = meta.dataset;\r\n\t\tvar style;\r\n\r\n\t\tme._configure();\r\n\t\tif (dataset && index === undefined) {\r\n\t\t\tstyle = me._resolveDatasetElementOptions(dataset || {});\r\n\t\t} else {\r\n\t\t\tindex = index || 0;\r\n\t\t\tstyle = me._resolveDataElementOptions(meta.data[index] || {}, index);\r\n\t\t}\r\n\r\n\t\tif (style.fill === false || style.fill === null) {\r\n\t\t\tstyle.backgroundColor = style.borderColor;\r\n\t\t}\r\n\r\n\t\treturn style;\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_resolveDatasetElementOptions: function(element, hover) {\r\n\t\tvar me = this;\r\n\t\tvar chart = me.chart;\r\n\t\tvar datasetOpts = me._config;\r\n\t\tvar custom = element.custom || {};\r\n\t\tvar options = chart.options.elements[me.datasetElementType.prototype._type] || {};\r\n\t\tvar elementOptions = me._datasetElementOptions;\r\n\t\tvar values = {};\r\n\t\tvar i, ilen, key, readKey;\r\n\r\n\t\t// Scriptable options\r\n\t\tvar context = {\r\n\t\t\tchart: chart,\r\n\t\t\tdataset: me.getDataset(),\r\n\t\t\tdatasetIndex: me.index,\r\n\t\t\thover: hover\r\n\t\t};\r\n\r\n\t\tfor (i = 0, ilen = elementOptions.length; i < ilen; ++i) {\r\n\t\t\tkey = elementOptions[i];\r\n\t\t\treadKey = hover ? 'hover' + key.charAt(0).toUpperCase() + key.slice(1) : key;\r\n\t\t\tvalues[key] = resolve([\r\n\t\t\t\tcustom[readKey],\r\n\t\t\t\tdatasetOpts[readKey],\r\n\t\t\t\toptions[readKey]\r\n\t\t\t], context);\r\n\t\t}\r\n\r\n\t\treturn values;\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_resolveDataElementOptions: function(element, index) {\r\n\t\tvar me = this;\r\n\t\tvar custom = element && element.custom;\r\n\t\tvar cached = me._cachedDataOpts;\r\n\t\tif (cached && !custom) {\r\n\t\t\treturn cached;\r\n\t\t}\r\n\t\tvar chart = me.chart;\r\n\t\tvar datasetOpts = me._config;\r\n\t\tvar options = chart.options.elements[me.dataElementType.prototype._type] || {};\r\n\t\tvar elementOptions = me._dataElementOptions;\r\n\t\tvar values = {};\r\n\r\n\t\t// Scriptable options\r\n\t\tvar context = {\r\n\t\t\tchart: chart,\r\n\t\t\tdataIndex: index,\r\n\t\t\tdataset: me.getDataset(),\r\n\t\t\tdatasetIndex: me.index\r\n\t\t};\r\n\r\n\t\t// `resolve` sets cacheable to `false` if any option is indexed or scripted\r\n\t\tvar info = {cacheable: !custom};\r\n\r\n\t\tvar keys, i, ilen, key;\r\n\r\n\t\tcustom = custom || {};\r\n\r\n\t\tif (helpers$1.isArray(elementOptions)) {\r\n\t\t\tfor (i = 0, ilen = elementOptions.length; i < ilen; ++i) {\r\n\t\t\t\tkey = elementOptions[i];\r\n\t\t\t\tvalues[key] = resolve([\r\n\t\t\t\t\tcustom[key],\r\n\t\t\t\t\tdatasetOpts[key],\r\n\t\t\t\t\toptions[key]\r\n\t\t\t\t], context, index, info);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tkeys = Object.keys(elementOptions);\r\n\t\t\tfor (i = 0, ilen = keys.length; i < ilen; ++i) {\r\n\t\t\t\tkey = keys[i];\r\n\t\t\t\tvalues[key] = resolve([\r\n\t\t\t\t\tcustom[key],\r\n\t\t\t\t\tdatasetOpts[elementOptions[key]],\r\n\t\t\t\t\tdatasetOpts[key],\r\n\t\t\t\t\toptions[key]\r\n\t\t\t\t], context, index, info);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (info.cacheable) {\r\n\t\t\tme._cachedDataOpts = Object.freeze(values);\r\n\t\t}\r\n\r\n\t\treturn values;\r\n\t},\r\n\r\n\tremoveHoverStyle: function(element) {\r\n\t\thelpers$1.merge(element._model, element.$previousStyle || {});\r\n\t\tdelete element.$previousStyle;\r\n\t},\r\n\r\n\tsetHoverStyle: function(element) {\r\n\t\tvar dataset = this.chart.data.datasets[element._datasetIndex];\r\n\t\tvar index = element._index;\r\n\t\tvar custom = element.custom || {};\r\n\t\tvar model = element._model;\r\n\t\tvar getHoverColor = helpers$1.getHoverColor;\r\n\r\n\t\telement.$previousStyle = {\r\n\t\t\tbackgroundColor: model.backgroundColor,\r\n\t\t\tborderColor: model.borderColor,\r\n\t\t\tborderWidth: model.borderWidth\r\n\t\t};\r\n\r\n\t\tmodel.backgroundColor = resolve([custom.hoverBackgroundColor, dataset.hoverBackgroundColor, getHoverColor(model.backgroundColor)], undefined, index);\r\n\t\tmodel.borderColor = resolve([custom.hoverBorderColor, dataset.hoverBorderColor, getHoverColor(model.borderColor)], undefined, index);\r\n\t\tmodel.borderWidth = resolve([custom.hoverBorderWidth, dataset.hoverBorderWidth, model.borderWidth], undefined, index);\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_removeDatasetHoverStyle: function() {\r\n\t\tvar element = this.getMeta().dataset;\r\n\r\n\t\tif (element) {\r\n\t\t\tthis.removeHoverStyle(element);\r\n\t\t}\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_setDatasetHoverStyle: function() {\r\n\t\tvar element = this.getMeta().dataset;\r\n\t\tvar prev = {};\r\n\t\tvar i, ilen, key, keys, hoverOptions, model;\r\n\r\n\t\tif (!element) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tmodel = element._model;\r\n\t\thoverOptions = this._resolveDatasetElementOptions(element, true);\r\n\r\n\t\tkeys = Object.keys(hoverOptions);\r\n\t\tfor (i = 0, ilen = keys.length; i < ilen; ++i) {\r\n\t\t\tkey = keys[i];\r\n\t\t\tprev[key] = model[key];\r\n\t\t\tmodel[key] = hoverOptions[key];\r\n\t\t}\r\n\r\n\t\telement.$previousStyle = prev;\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\tresyncElements: function() {\r\n\t\tvar me = this;\r\n\t\tvar meta = me.getMeta();\r\n\t\tvar data = me.getDataset().data;\r\n\t\tvar numMeta = meta.data.length;\r\n\t\tvar numData = data.length;\r\n\r\n\t\tif (numData < numMeta) {\r\n\t\t\tmeta.data.splice(numData, numMeta - numData);\r\n\t\t} else if (numData > numMeta) {\r\n\t\t\tme.insertElements(numMeta, numData - numMeta);\r\n\t\t}\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\tinsertElements: function(start, count) {\r\n\t\tfor (var i = 0; i < count; ++i) {\r\n\t\t\tthis.addElementAndReset(start + i);\r\n\t\t}\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\tonDataPush: function() {\r\n\t\tvar count = arguments.length;\r\n\t\tthis.insertElements(this.getDataset().data.length - count, count);\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\tonDataPop: function() {\r\n\t\tthis.getMeta().data.pop();\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\tonDataShift: function() {\r\n\t\tthis.getMeta().data.shift();\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\tonDataSplice: function(start, count) {\r\n\t\tthis.getMeta().data.splice(start, count);\r\n\t\tthis.insertElements(start, arguments.length - 2);\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\tonDataUnshift: function() {\r\n\t\tthis.insertElements(0, arguments.length);\r\n\t}\r\n});\r\n\r\nDatasetController.extend = helpers$1.inherits;\r\n\r\nvar core_datasetController = DatasetController;\n\nvar TAU = Math.PI * 2;\r\n\r\ncore_defaults._set('global', {\r\n\telements: {\r\n\t\tarc: {\r\n\t\t\tbackgroundColor: core_defaults.global.defaultColor,\r\n\t\t\tborderColor: '#fff',\r\n\t\t\tborderWidth: 2,\r\n\t\t\tborderAlign: 'center'\r\n\t\t}\r\n\t}\r\n});\r\n\r\nfunction clipArc(ctx, arc) {\r\n\tvar startAngle = arc.startAngle;\r\n\tvar endAngle = arc.endAngle;\r\n\tvar pixelMargin = arc.pixelMargin;\r\n\tvar angleMargin = pixelMargin / arc.outerRadius;\r\n\tvar x = arc.x;\r\n\tvar y = arc.y;\r\n\r\n\t// Draw an inner border by cliping the arc and drawing a double-width border\r\n\t// Enlarge the clipping arc by 0.33 pixels to eliminate glitches between borders\r\n\tctx.beginPath();\r\n\tctx.arc(x, y, arc.outerRadius, startAngle - angleMargin, endAngle + angleMargin);\r\n\tif (arc.innerRadius > pixelMargin) {\r\n\t\tangleMargin = pixelMargin / arc.innerRadius;\r\n\t\tctx.arc(x, y, arc.innerRadius - pixelMargin, endAngle + angleMargin, startAngle - angleMargin, true);\r\n\t} else {\r\n\t\tctx.arc(x, y, pixelMargin, endAngle + Math.PI / 2, startAngle - Math.PI / 2);\r\n\t}\r\n\tctx.closePath();\r\n\tctx.clip();\r\n}\r\n\r\nfunction drawFullCircleBorders(ctx, vm, arc, inner) {\r\n\tvar endAngle = arc.endAngle;\r\n\tvar i;\r\n\r\n\tif (inner) {\r\n\t\tarc.endAngle = arc.startAngle + TAU;\r\n\t\tclipArc(ctx, arc);\r\n\t\tarc.endAngle = endAngle;\r\n\t\tif (arc.endAngle === arc.startAngle && arc.fullCircles) {\r\n\t\t\tarc.endAngle += TAU;\r\n\t\t\tarc.fullCircles--;\r\n\t\t}\r\n\t}\r\n\r\n\tctx.beginPath();\r\n\tctx.arc(arc.x, arc.y, arc.innerRadius, arc.startAngle + TAU, arc.startAngle, true);\r\n\tfor (i = 0; i < arc.fullCircles; ++i) {\r\n\t\tctx.stroke();\r\n\t}\r\n\r\n\tctx.beginPath();\r\n\tctx.arc(arc.x, arc.y, vm.outerRadius, arc.startAngle, arc.startAngle + TAU);\r\n\tfor (i = 0; i < arc.fullCircles; ++i) {\r\n\t\tctx.stroke();\r\n\t}\r\n}\r\n\r\nfunction drawBorder(ctx, vm, arc) {\r\n\tvar inner = vm.borderAlign === 'inner';\r\n\r\n\tif (inner) {\r\n\t\tctx.lineWidth = vm.borderWidth * 2;\r\n\t\tctx.lineJoin = 'round';\r\n\t} else {\r\n\t\tctx.lineWidth = vm.borderWidth;\r\n\t\tctx.lineJoin = 'bevel';\r\n\t}\r\n\r\n\tif (arc.fullCircles) {\r\n\t\tdrawFullCircleBorders(ctx, vm, arc, inner);\r\n\t}\r\n\r\n\tif (inner) {\r\n\t\tclipArc(ctx, arc);\r\n\t}\r\n\r\n\tctx.beginPath();\r\n\tctx.arc(arc.x, arc.y, vm.outerRadius, arc.startAngle, arc.endAngle);\r\n\tctx.arc(arc.x, arc.y, arc.innerRadius, arc.endAngle, arc.startAngle, true);\r\n\tctx.closePath();\r\n\tctx.stroke();\r\n}\r\n\r\nvar element_arc = core_element.extend({\r\n\t_type: 'arc',\r\n\r\n\tinLabelRange: function(mouseX) {\r\n\t\tvar vm = this._view;\r\n\r\n\t\tif (vm) {\r\n\t\t\treturn (Math.pow(mouseX - vm.x, 2) < Math.pow(vm.radius + vm.hoverRadius, 2));\r\n\t\t}\r\n\t\treturn false;\r\n\t},\r\n\r\n\tinRange: function(chartX, chartY) {\r\n\t\tvar vm = this._view;\r\n\r\n\t\tif (vm) {\r\n\t\t\tvar pointRelativePosition = helpers$1.getAngleFromPoint(vm, {x: chartX, y: chartY});\r\n\t\t\tvar angle = pointRelativePosition.angle;\r\n\t\t\tvar distance = pointRelativePosition.distance;\r\n\r\n\t\t\t// Sanitise angle range\r\n\t\t\tvar startAngle = vm.startAngle;\r\n\t\t\tvar endAngle = vm.endAngle;\r\n\t\t\twhile (endAngle < startAngle) {\r\n\t\t\t\tendAngle += TAU;\r\n\t\t\t}\r\n\t\t\twhile (angle > endAngle) {\r\n\t\t\t\tangle -= TAU;\r\n\t\t\t}\r\n\t\t\twhile (angle < startAngle) {\r\n\t\t\t\tangle += TAU;\r\n\t\t\t}\r\n\r\n\t\t\t// Check if within the range of the open/close angle\r\n\t\t\tvar betweenAngles = (angle >= startAngle && angle <= endAngle);\r\n\t\t\tvar withinRadius = (distance >= vm.innerRadius && distance <= vm.outerRadius);\r\n\r\n\t\t\treturn (betweenAngles && withinRadius);\r\n\t\t}\r\n\t\treturn false;\r\n\t},\r\n\r\n\tgetCenterPoint: function() {\r\n\t\tvar vm = this._view;\r\n\t\tvar halfAngle = (vm.startAngle + vm.endAngle) / 2;\r\n\t\tvar halfRadius = (vm.innerRadius + vm.outerRadius) / 2;\r\n\t\treturn {\r\n\t\t\tx: vm.x + Math.cos(halfAngle) * halfRadius,\r\n\t\t\ty: vm.y + Math.sin(halfAngle) * halfRadius\r\n\t\t};\r\n\t},\r\n\r\n\tgetArea: function() {\r\n\t\tvar vm = this._view;\r\n\t\treturn Math.PI * ((vm.endAngle - vm.startAngle) / (2 * Math.PI)) * (Math.pow(vm.outerRadius, 2) - Math.pow(vm.innerRadius, 2));\r\n\t},\r\n\r\n\ttooltipPosition: function() {\r\n\t\tvar vm = this._view;\r\n\t\tvar centreAngle = vm.startAngle + ((vm.endAngle - vm.startAngle) / 2);\r\n\t\tvar rangeFromCentre = (vm.outerRadius - vm.innerRadius) / 2 + vm.innerRadius;\r\n\r\n\t\treturn {\r\n\t\t\tx: vm.x + (Math.cos(centreAngle) * rangeFromCentre),\r\n\t\t\ty: vm.y + (Math.sin(centreAngle) * rangeFromCentre)\r\n\t\t};\r\n\t},\r\n\r\n\tdraw: function() {\r\n\t\tvar ctx = this._chart.ctx;\r\n\t\tvar vm = this._view;\r\n\t\tvar pixelMargin = (vm.borderAlign === 'inner') ? 0.33 : 0;\r\n\t\tvar arc = {\r\n\t\t\tx: vm.x,\r\n\t\t\ty: vm.y,\r\n\t\t\tinnerRadius: vm.innerRadius,\r\n\t\t\touterRadius: Math.max(vm.outerRadius - pixelMargin, 0),\r\n\t\t\tpixelMargin: pixelMargin,\r\n\t\t\tstartAngle: vm.startAngle,\r\n\t\t\tendAngle: vm.endAngle,\r\n\t\t\tfullCircles: Math.floor(vm.circumference / TAU)\r\n\t\t};\r\n\t\tvar i;\r\n\r\n\t\tctx.save();\r\n\r\n\t\tctx.fillStyle = vm.backgroundColor;\r\n\t\tctx.strokeStyle = vm.borderColor;\r\n\r\n\t\tif (arc.fullCircles) {\r\n\t\t\tarc.endAngle = arc.startAngle + TAU;\r\n\t\t\tctx.beginPath();\r\n\t\t\tctx.arc(arc.x, arc.y, arc.outerRadius, arc.startAngle, arc.endAngle);\r\n\t\t\tctx.arc(arc.x, arc.y, arc.innerRadius, arc.endAngle, arc.startAngle, true);\r\n\t\t\tctx.closePath();\r\n\t\t\tfor (i = 0; i < arc.fullCircles; ++i) {\r\n\t\t\t\tctx.fill();\r\n\t\t\t}\r\n\t\t\tarc.endAngle = arc.startAngle + vm.circumference % TAU;\r\n\t\t}\r\n\r\n\t\tctx.beginPath();\r\n\t\tctx.arc(arc.x, arc.y, arc.outerRadius, arc.startAngle, arc.endAngle);\r\n\t\tctx.arc(arc.x, arc.y, arc.innerRadius, arc.endAngle, arc.startAngle, true);\r\n\t\tctx.closePath();\r\n\t\tctx.fill();\r\n\r\n\t\tif (vm.borderWidth) {\r\n\t\t\tdrawBorder(ctx, vm, arc);\r\n\t\t}\r\n\r\n\t\tctx.restore();\r\n\t}\r\n});\n\nvar valueOrDefault$1 = helpers$1.valueOrDefault;\r\n\r\nvar defaultColor = core_defaults.global.defaultColor;\r\n\r\ncore_defaults._set('global', {\r\n\telements: {\r\n\t\tline: {\r\n\t\t\ttension: 0.4,\r\n\t\t\tbackgroundColor: defaultColor,\r\n\t\t\tborderWidth: 3,\r\n\t\t\tborderColor: defaultColor,\r\n\t\t\tborderCapStyle: 'butt',\r\n\t\t\tborderDash: [],\r\n\t\t\tborderDashOffset: 0.0,\r\n\t\t\tborderJoinStyle: 'miter',\r\n\t\t\tcapBezierPoints: true,\r\n\t\t\tfill: true, // do we fill in the area between the line and its base axis\r\n\t\t}\r\n\t}\r\n});\r\n\r\nvar element_line = core_element.extend({\r\n\t_type: 'line',\r\n\r\n\tdraw: function() {\r\n\t\tvar me = this;\r\n\t\tvar vm = me._view;\r\n\t\tvar ctx = me._chart.ctx;\r\n\t\tvar spanGaps = vm.spanGaps;\r\n\t\tvar points = me._children.slice(); // clone array\r\n\t\tvar globalDefaults = core_defaults.global;\r\n\t\tvar globalOptionLineElements = globalDefaults.elements.line;\r\n\t\tvar lastDrawnIndex = -1;\r\n\t\tvar closePath = me._loop;\r\n\t\tvar index, previous, currentVM;\r\n\r\n\t\tif (!points.length) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (me._loop) {\r\n\t\t\tfor (index = 0; index < points.length; ++index) {\r\n\t\t\t\tprevious = helpers$1.previousItem(points, index);\r\n\t\t\t\t// If the line has an open path, shift the point array\r\n\t\t\t\tif (!points[index]._view.skip && previous._view.skip) {\r\n\t\t\t\t\tpoints = points.slice(index).concat(points.slice(0, index));\r\n\t\t\t\t\tclosePath = spanGaps;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// If the line has a close path, add the first point again\r\n\t\t\tif (closePath) {\r\n\t\t\t\tpoints.push(points[0]);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tctx.save();\r\n\r\n\t\t// Stroke Line Options\r\n\t\tctx.lineCap = vm.borderCapStyle || globalOptionLineElements.borderCapStyle;\r\n\r\n\t\t// IE 9 and 10 do not support line dash\r\n\t\tif (ctx.setLineDash) {\r\n\t\t\tctx.setLineDash(vm.borderDash || globalOptionLineElements.borderDash);\r\n\t\t}\r\n\r\n\t\tctx.lineDashOffset = valueOrDefault$1(vm.borderDashOffset, globalOptionLineElements.borderDashOffset);\r\n\t\tctx.lineJoin = vm.borderJoinStyle || globalOptionLineElements.borderJoinStyle;\r\n\t\tctx.lineWidth = valueOrDefault$1(vm.borderWidth, globalOptionLineElements.borderWidth);\r\n\t\tctx.strokeStyle = vm.borderColor || globalDefaults.defaultColor;\r\n\r\n\t\t// Stroke Line\r\n\t\tctx.beginPath();\r\n\r\n\t\t// First point moves to it's starting position no matter what\r\n\t\tcurrentVM = points[0]._view;\r\n\t\tif (!currentVM.skip) {\r\n\t\t\tctx.moveTo(currentVM.x, currentVM.y);\r\n\t\t\tlastDrawnIndex = 0;\r\n\t\t}\r\n\r\n\t\tfor (index = 1; index < points.length; ++index) {\r\n\t\t\tcurrentVM = points[index]._view;\r\n\t\t\tprevious = lastDrawnIndex === -1 ? helpers$1.previousItem(points, index) : points[lastDrawnIndex];\r\n\r\n\t\t\tif (!currentVM.skip) {\r\n\t\t\t\tif ((lastDrawnIndex !== (index - 1) && !spanGaps) || lastDrawnIndex === -1) {\r\n\t\t\t\t\t// There was a gap and this is the first point after the gap\r\n\t\t\t\t\tctx.moveTo(currentVM.x, currentVM.y);\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// Line to next point\r\n\t\t\t\t\thelpers$1.canvas.lineTo(ctx, previous._view, currentVM);\r\n\t\t\t\t}\r\n\t\t\t\tlastDrawnIndex = index;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (closePath) {\r\n\t\t\tctx.closePath();\r\n\t\t}\r\n\r\n\t\tctx.stroke();\r\n\t\tctx.restore();\r\n\t}\r\n});\n\nvar valueOrDefault$2 = helpers$1.valueOrDefault;\r\n\r\nvar defaultColor$1 = core_defaults.global.defaultColor;\r\n\r\ncore_defaults._set('global', {\r\n\telements: {\r\n\t\tpoint: {\r\n\t\t\tradius: 3,\r\n\t\t\tpointStyle: 'circle',\r\n\t\t\tbackgroundColor: defaultColor$1,\r\n\t\t\tborderColor: defaultColor$1,\r\n\t\t\tborderWidth: 1,\r\n\t\t\t// Hover\r\n\t\t\thitRadius: 1,\r\n\t\t\thoverRadius: 4,\r\n\t\t\thoverBorderWidth: 1\r\n\t\t}\r\n\t}\r\n});\r\n\r\nfunction xRange(mouseX) {\r\n\tvar vm = this._view;\r\n\treturn vm ? (Math.abs(mouseX - vm.x) < vm.radius + vm.hitRadius) : false;\r\n}\r\n\r\nfunction yRange(mouseY) {\r\n\tvar vm = this._view;\r\n\treturn vm ? (Math.abs(mouseY - vm.y) < vm.radius + vm.hitRadius) : false;\r\n}\r\n\r\nvar element_point = core_element.extend({\r\n\t_type: 'point',\r\n\r\n\tinRange: function(mouseX, mouseY) {\r\n\t\tvar vm = this._view;\r\n\t\treturn vm ? ((Math.pow(mouseX - vm.x, 2) + Math.pow(mouseY - vm.y, 2)) < Math.pow(vm.hitRadius + vm.radius, 2)) : false;\r\n\t},\r\n\r\n\tinLabelRange: xRange,\r\n\tinXRange: xRange,\r\n\tinYRange: yRange,\r\n\r\n\tgetCenterPoint: function() {\r\n\t\tvar vm = this._view;\r\n\t\treturn {\r\n\t\t\tx: vm.x,\r\n\t\t\ty: vm.y\r\n\t\t};\r\n\t},\r\n\r\n\tgetArea: function() {\r\n\t\treturn Math.PI * Math.pow(this._view.radius, 2);\r\n\t},\r\n\r\n\ttooltipPosition: function() {\r\n\t\tvar vm = this._view;\r\n\t\treturn {\r\n\t\t\tx: vm.x,\r\n\t\t\ty: vm.y,\r\n\t\t\tpadding: vm.radius + vm.borderWidth\r\n\t\t};\r\n\t},\r\n\r\n\tdraw: function(chartArea) {\r\n\t\tvar vm = this._view;\r\n\t\tvar ctx = this._chart.ctx;\r\n\t\tvar pointStyle = vm.pointStyle;\r\n\t\tvar rotation = vm.rotation;\r\n\t\tvar radius = vm.radius;\r\n\t\tvar x = vm.x;\r\n\t\tvar y = vm.y;\r\n\t\tvar globalDefaults = core_defaults.global;\r\n\t\tvar defaultColor = globalDefaults.defaultColor; // eslint-disable-line no-shadow\r\n\r\n\t\tif (vm.skip) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// Clipping for Points.\r\n\t\tif (chartArea === undefined || helpers$1.canvas._isPointInArea(vm, chartArea)) {\r\n\t\t\tctx.strokeStyle = vm.borderColor || defaultColor;\r\n\t\t\tctx.lineWidth = valueOrDefault$2(vm.borderWidth, globalDefaults.elements.point.borderWidth);\r\n\t\t\tctx.fillStyle = vm.backgroundColor || defaultColor;\r\n\t\t\thelpers$1.canvas.drawPoint(ctx, pointStyle, radius, x, y, rotation);\r\n\t\t}\r\n\t}\r\n});\n\nvar defaultColor$2 = core_defaults.global.defaultColor;\r\n\r\ncore_defaults._set('global', {\r\n\telements: {\r\n\t\trectangle: {\r\n\t\t\tbackgroundColor: defaultColor$2,\r\n\t\t\tborderColor: defaultColor$2,\r\n\t\t\tborderSkipped: 'bottom',\r\n\t\t\tborderWidth: 0\r\n\t\t}\r\n\t}\r\n});\r\n\r\nfunction isVertical(vm) {\r\n\treturn vm && vm.width !== undefined;\r\n}\r\n\r\n/**\r\n * Helper function to get the bounds of the bar regardless of the orientation\r\n * @param bar {Chart.Element.Rectangle} the bar\r\n * @return {Bounds} bounds of the bar\r\n * @private\r\n */\r\nfunction getBarBounds(vm) {\r\n\tvar x1, x2, y1, y2, half;\r\n\r\n\tif (isVertical(vm)) {\r\n\t\thalf = vm.width / 2;\r\n\t\tx1 = vm.x - half;\r\n\t\tx2 = vm.x + half;\r\n\t\ty1 = Math.min(vm.y, vm.base);\r\n\t\ty2 = Math.max(vm.y, vm.base);\r\n\t} else {\r\n\t\thalf = vm.height / 2;\r\n\t\tx1 = Math.min(vm.x, vm.base);\r\n\t\tx2 = Math.max(vm.x, vm.base);\r\n\t\ty1 = vm.y - half;\r\n\t\ty2 = vm.y + half;\r\n\t}\r\n\r\n\treturn {\r\n\t\tleft: x1,\r\n\t\ttop: y1,\r\n\t\tright: x2,\r\n\t\tbottom: y2\r\n\t};\r\n}\r\n\r\nfunction swap(orig, v1, v2) {\r\n\treturn orig === v1 ? v2 : orig === v2 ? v1 : orig;\r\n}\r\n\r\nfunction parseBorderSkipped(vm) {\r\n\tvar edge = vm.borderSkipped;\r\n\tvar res = {};\r\n\r\n\tif (!edge) {\r\n\t\treturn res;\r\n\t}\r\n\r\n\tif (vm.horizontal) {\r\n\t\tif (vm.base > vm.x) {\r\n\t\t\tedge = swap(edge, 'left', 'right');\r\n\t\t}\r\n\t} else if (vm.base < vm.y) {\r\n\t\tedge = swap(edge, 'bottom', 'top');\r\n\t}\r\n\r\n\tres[edge] = true;\r\n\treturn res;\r\n}\r\n\r\nfunction parseBorderWidth(vm, maxW, maxH) {\r\n\tvar value = vm.borderWidth;\r\n\tvar skip = parseBorderSkipped(vm);\r\n\tvar t, r, b, l;\r\n\r\n\tif (helpers$1.isObject(value)) {\r\n\t\tt = +value.top || 0;\r\n\t\tr = +value.right || 0;\r\n\t\tb = +value.bottom || 0;\r\n\t\tl = +value.left || 0;\r\n\t} else {\r\n\t\tt = r = b = l = +value || 0;\r\n\t}\r\n\r\n\treturn {\r\n\t\tt: skip.top || (t < 0) ? 0 : t > maxH ? maxH : t,\r\n\t\tr: skip.right || (r < 0) ? 0 : r > maxW ? maxW : r,\r\n\t\tb: skip.bottom || (b < 0) ? 0 : b > maxH ? maxH : b,\r\n\t\tl: skip.left || (l < 0) ? 0 : l > maxW ? maxW : l\r\n\t};\r\n}\r\n\r\nfunction boundingRects(vm) {\r\n\tvar bounds = getBarBounds(vm);\r\n\tvar width = bounds.right - bounds.left;\r\n\tvar height = bounds.bottom - bounds.top;\r\n\tvar border = parseBorderWidth(vm, width / 2, height / 2);\r\n\r\n\treturn {\r\n\t\touter: {\r\n\t\t\tx: bounds.left,\r\n\t\t\ty: bounds.top,\r\n\t\t\tw: width,\r\n\t\t\th: height\r\n\t\t},\r\n\t\tinner: {\r\n\t\t\tx: bounds.left + border.l,\r\n\t\t\ty: bounds.top + border.t,\r\n\t\t\tw: width - border.l - border.r,\r\n\t\t\th: height - border.t - border.b\r\n\t\t}\r\n\t};\r\n}\r\n\r\nfunction inRange(vm, x, y) {\r\n\tvar skipX = x === null;\r\n\tvar skipY = y === null;\r\n\tvar bounds = !vm || (skipX && skipY) ? false : getBarBounds(vm);\r\n\r\n\treturn bounds\r\n\t\t&& (skipX || x >= bounds.left && x <= bounds.right)\r\n\t\t&& (skipY || y >= bounds.top && y <= bounds.bottom);\r\n}\r\n\r\nvar element_rectangle = core_element.extend({\r\n\t_type: 'rectangle',\r\n\r\n\tdraw: function() {\r\n\t\tvar ctx = this._chart.ctx;\r\n\t\tvar vm = this._view;\r\n\t\tvar rects = boundingRects(vm);\r\n\t\tvar outer = rects.outer;\r\n\t\tvar inner = rects.inner;\r\n\r\n\t\tctx.fillStyle = vm.backgroundColor;\r\n\t\tctx.fillRect(outer.x, outer.y, outer.w, outer.h);\r\n\r\n\t\tif (outer.w === inner.w && outer.h === inner.h) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tctx.save();\r\n\t\tctx.beginPath();\r\n\t\tctx.rect(outer.x, outer.y, outer.w, outer.h);\r\n\t\tctx.clip();\r\n\t\tctx.fillStyle = vm.borderColor;\r\n\t\tctx.rect(inner.x, inner.y, inner.w, inner.h);\r\n\t\tctx.fill('evenodd');\r\n\t\tctx.restore();\r\n\t},\r\n\r\n\theight: function() {\r\n\t\tvar vm = this._view;\r\n\t\treturn vm.base - vm.y;\r\n\t},\r\n\r\n\tinRange: function(mouseX, mouseY) {\r\n\t\treturn inRange(this._view, mouseX, mouseY);\r\n\t},\r\n\r\n\tinLabelRange: function(mouseX, mouseY) {\r\n\t\tvar vm = this._view;\r\n\t\treturn isVertical(vm)\r\n\t\t\t? inRange(vm, mouseX, null)\r\n\t\t\t: inRange(vm, null, mouseY);\r\n\t},\r\n\r\n\tinXRange: function(mouseX) {\r\n\t\treturn inRange(this._view, mouseX, null);\r\n\t},\r\n\r\n\tinYRange: function(mouseY) {\r\n\t\treturn inRange(this._view, null, mouseY);\r\n\t},\r\n\r\n\tgetCenterPoint: function() {\r\n\t\tvar vm = this._view;\r\n\t\tvar x, y;\r\n\t\tif (isVertical(vm)) {\r\n\t\t\tx = vm.x;\r\n\t\t\ty = (vm.y + vm.base) / 2;\r\n\t\t} else {\r\n\t\t\tx = (vm.x + vm.base) / 2;\r\n\t\t\ty = vm.y;\r\n\t\t}\r\n\r\n\t\treturn {x: x, y: y};\r\n\t},\r\n\r\n\tgetArea: function() {\r\n\t\tvar vm = this._view;\r\n\r\n\t\treturn isVertical(vm)\r\n\t\t\t? vm.width * Math.abs(vm.y - vm.base)\r\n\t\t\t: vm.height * Math.abs(vm.x - vm.base);\r\n\t},\r\n\r\n\ttooltipPosition: function() {\r\n\t\tvar vm = this._view;\r\n\t\treturn {\r\n\t\t\tx: vm.x,\r\n\t\t\ty: vm.y\r\n\t\t};\r\n\t}\r\n});\n\nvar elements = {};\r\nvar Arc = element_arc;\r\nvar Line = element_line;\r\nvar Point = element_point;\r\nvar Rectangle = element_rectangle;\nelements.Arc = Arc;\nelements.Line = Line;\nelements.Point = Point;\nelements.Rectangle = Rectangle;\n\nvar deprecated = helpers$1._deprecated;\r\nvar valueOrDefault$3 = helpers$1.valueOrDefault;\r\n\r\ncore_defaults._set('bar', {\r\n\thover: {\r\n\t\tmode: 'label'\r\n\t},\r\n\r\n\tscales: {\r\n\t\txAxes: [{\r\n\t\t\ttype: 'category',\r\n\t\t\toffset: true,\r\n\t\t\tgridLines: {\r\n\t\t\t\toffsetGridLines: true\r\n\t\t\t}\r\n\t\t}],\r\n\r\n\t\tyAxes: [{\r\n\t\t\ttype: 'linear'\r\n\t\t}]\r\n\t}\r\n});\r\n\r\ncore_defaults._set('global', {\r\n\tdatasets: {\r\n\t\tbar: {\r\n\t\t\tcategoryPercentage: 0.8,\r\n\t\t\tbarPercentage: 0.9\r\n\t\t}\r\n\t}\r\n});\r\n\r\n/**\r\n * Computes the \"optimal\" sample size to maintain bars equally sized while preventing overlap.\r\n * @private\r\n */\r\nfunction computeMinSampleSize(scale, pixels) {\r\n\tvar min = scale._length;\r\n\tvar prev, curr, i, ilen;\r\n\r\n\tfor (i = 1, ilen = pixels.length; i < ilen; ++i) {\r\n\t\tmin = Math.min(min, Math.abs(pixels[i] - pixels[i - 1]));\r\n\t}\r\n\r\n\tfor (i = 0, ilen = scale.getTicks().length; i < ilen; ++i) {\r\n\t\tcurr = scale.getPixelForTick(i);\r\n\t\tmin = i > 0 ? Math.min(min, Math.abs(curr - prev)) : min;\r\n\t\tprev = curr;\r\n\t}\r\n\r\n\treturn min;\r\n}\r\n\r\n/**\r\n * Computes an \"ideal\" category based on the absolute bar thickness or, if undefined or null,\r\n * uses the smallest interval (see computeMinSampleSize) that prevents bar overlapping. This\r\n * mode currently always generates bars equally sized (until we introduce scriptable options?).\r\n * @private\r\n */\r\nfunction computeFitCategoryTraits(index, ruler, options) {\r\n\tvar thickness = options.barThickness;\r\n\tvar count = ruler.stackCount;\r\n\tvar curr = ruler.pixels[index];\r\n\tvar min = helpers$1.isNullOrUndef(thickness)\r\n\t\t? computeMinSampleSize(ruler.scale, ruler.pixels)\r\n\t\t: -1;\r\n\tvar size, ratio;\r\n\r\n\tif (helpers$1.isNullOrUndef(thickness)) {\r\n\t\tsize = min * options.categoryPercentage;\r\n\t\tratio = options.barPercentage;\r\n\t} else {\r\n\t\t// When bar thickness is enforced, category and bar percentages are ignored.\r\n\t\t// Note(SB): we could add support for relative bar thickness (e.g. barThickness: '50%')\r\n\t\t// and deprecate barPercentage since this value is ignored when thickness is absolute.\r\n\t\tsize = thickness * count;\r\n\t\tratio = 1;\r\n\t}\r\n\r\n\treturn {\r\n\t\tchunk: size / count,\r\n\t\tratio: ratio,\r\n\t\tstart: curr - (size / 2)\r\n\t};\r\n}\r\n\r\n/**\r\n * Computes an \"optimal\" category that globally arranges bars side by side (no gap when\r\n * percentage options are 1), based on the previous and following categories. This mode\r\n * generates bars with different widths when data are not evenly spaced.\r\n * @private\r\n */\r\nfunction computeFlexCategoryTraits(index, ruler, options) {\r\n\tvar pixels = ruler.pixels;\r\n\tvar curr = pixels[index];\r\n\tvar prev = index > 0 ? pixels[index - 1] : null;\r\n\tvar next = index < pixels.length - 1 ? pixels[index + 1] : null;\r\n\tvar percent = options.categoryPercentage;\r\n\tvar start, size;\r\n\r\n\tif (prev === null) {\r\n\t\t// first data: its size is double based on the next point or,\r\n\t\t// if it's also the last data, we use the scale size.\r\n\t\tprev = curr - (next === null ? ruler.end - ruler.start : next - curr);\r\n\t}\r\n\r\n\tif (next === null) {\r\n\t\t// last data: its size is also double based on the previous point.\r\n\t\tnext = curr + curr - prev;\r\n\t}\r\n\r\n\tstart = curr - (curr - Math.min(prev, next)) / 2 * percent;\r\n\tsize = Math.abs(next - prev) / 2 * percent;\r\n\r\n\treturn {\r\n\t\tchunk: size / ruler.stackCount,\r\n\t\tratio: options.barPercentage,\r\n\t\tstart: start\r\n\t};\r\n}\r\n\r\nvar controller_bar = core_datasetController.extend({\r\n\r\n\tdataElementType: elements.Rectangle,\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_dataElementOptions: [\r\n\t\t'backgroundColor',\r\n\t\t'borderColor',\r\n\t\t'borderSkipped',\r\n\t\t'borderWidth',\r\n\t\t'barPercentage',\r\n\t\t'barThickness',\r\n\t\t'categoryPercentage',\r\n\t\t'maxBarThickness',\r\n\t\t'minBarLength'\r\n\t],\r\n\r\n\tinitialize: function() {\r\n\t\tvar me = this;\r\n\t\tvar meta, scaleOpts;\r\n\r\n\t\tcore_datasetController.prototype.initialize.apply(me, arguments);\r\n\r\n\t\tmeta = me.getMeta();\r\n\t\tmeta.stack = me.getDataset().stack;\r\n\t\tmeta.bar = true;\r\n\r\n\t\tscaleOpts = me._getIndexScale().options;\r\n\t\tdeprecated('bar chart', scaleOpts.barPercentage, 'scales.[x/y]Axes.barPercentage', 'dataset.barPercentage');\r\n\t\tdeprecated('bar chart', scaleOpts.barThickness, 'scales.[x/y]Axes.barThickness', 'dataset.barThickness');\r\n\t\tdeprecated('bar chart', scaleOpts.categoryPercentage, 'scales.[x/y]Axes.categoryPercentage', 'dataset.categoryPercentage');\r\n\t\tdeprecated('bar chart', me._getValueScale().options.minBarLength, 'scales.[x/y]Axes.minBarLength', 'dataset.minBarLength');\r\n\t\tdeprecated('bar chart', scaleOpts.maxBarThickness, 'scales.[x/y]Axes.maxBarThickness', 'dataset.maxBarThickness');\r\n\t},\r\n\r\n\tupdate: function(reset) {\r\n\t\tvar me = this;\r\n\t\tvar rects = me.getMeta().data;\r\n\t\tvar i, ilen;\r\n\r\n\t\tme._ruler = me.getRuler();\r\n\r\n\t\tfor (i = 0, ilen = rects.length; i < ilen; ++i) {\r\n\t\t\tme.updateElement(rects[i], i, reset);\r\n\t\t}\r\n\t},\r\n\r\n\tupdateElement: function(rectangle, index, reset) {\r\n\t\tvar me = this;\r\n\t\tvar meta = me.getMeta();\r\n\t\tvar dataset = me.getDataset();\r\n\t\tvar options = me._resolveDataElementOptions(rectangle, index);\r\n\r\n\t\trectangle._xScale = me.getScaleForId(meta.xAxisID);\r\n\t\trectangle._yScale = me.getScaleForId(meta.yAxisID);\r\n\t\trectangle._datasetIndex = me.index;\r\n\t\trectangle._index = index;\r\n\t\trectangle._model = {\r\n\t\t\tbackgroundColor: options.backgroundColor,\r\n\t\t\tborderColor: options.borderColor,\r\n\t\t\tborderSkipped: options.borderSkipped,\r\n\t\t\tborderWidth: options.borderWidth,\r\n\t\t\tdatasetLabel: dataset.label,\r\n\t\t\tlabel: me.chart.data.labels[index]\r\n\t\t};\r\n\r\n\t\tif (helpers$1.isArray(dataset.data[index])) {\r\n\t\t\trectangle._model.borderSkipped = null;\r\n\t\t}\r\n\r\n\t\tme._updateElementGeometry(rectangle, index, reset, options);\r\n\r\n\t\trectangle.pivot();\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_updateElementGeometry: function(rectangle, index, reset, options) {\r\n\t\tvar me = this;\r\n\t\tvar model = rectangle._model;\r\n\t\tvar vscale = me._getValueScale();\r\n\t\tvar base = vscale.getBasePixel();\r\n\t\tvar horizontal = vscale.isHorizontal();\r\n\t\tvar ruler = me._ruler || me.getRuler();\r\n\t\tvar vpixels = me.calculateBarValuePixels(me.index, index, options);\r\n\t\tvar ipixels = me.calculateBarIndexPixels(me.index, index, ruler, options);\r\n\r\n\t\tmodel.horizontal = horizontal;\r\n\t\tmodel.base = reset ? base : vpixels.base;\r\n\t\tmodel.x = horizontal ? reset ? base : vpixels.head : ipixels.center;\r\n\t\tmodel.y = horizontal ? ipixels.center : reset ? base : vpixels.head;\r\n\t\tmodel.height = horizontal ? ipixels.size : undefined;\r\n\t\tmodel.width = horizontal ? undefined : ipixels.size;\r\n\t},\r\n\r\n\t/**\r\n\t * Returns the stacks based on groups and bar visibility.\r\n\t * @param {number} [last] - The dataset index\r\n\t * @returns {string[]} The list of stack IDs\r\n\t * @private\r\n\t */\r\n\t_getStacks: function(last) {\r\n\t\tvar me = this;\r\n\t\tvar scale = me._getIndexScale();\r\n\t\tvar metasets = scale._getMatchingVisibleMetas(me._type);\r\n\t\tvar stacked = scale.options.stacked;\r\n\t\tvar ilen = metasets.length;\r\n\t\tvar stacks = [];\r\n\t\tvar i, meta;\r\n\r\n\t\tfor (i = 0; i < ilen; ++i) {\r\n\t\t\tmeta = metasets[i];\r\n\t\t\t// stacked   | meta.stack\r\n\t\t\t//           | found | not found | undefined\r\n\t\t\t// false     |   x   |     x     |     x\r\n\t\t\t// true      |       |     x     |\r\n\t\t\t// undefined |       |     x     |     x\r\n\t\t\tif (stacked === false || stacks.indexOf(meta.stack) === -1 ||\r\n\t\t\t\t(stacked === undefined && meta.stack === undefined)) {\r\n\t\t\t\tstacks.push(meta.stack);\r\n\t\t\t}\r\n\t\t\tif (meta.index === last) {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn stacks;\r\n\t},\r\n\r\n\t/**\r\n\t * Returns the effective number of stacks based on groups and bar visibility.\r\n\t * @private\r\n\t */\r\n\tgetStackCount: function() {\r\n\t\treturn this._getStacks().length;\r\n\t},\r\n\r\n\t/**\r\n\t * Returns the stack index for the given dataset based on groups and bar visibility.\r\n\t * @param {number} [datasetIndex] - The dataset index\r\n\t * @param {string} [name] - The stack name to find\r\n\t * @returns {number} The stack index\r\n\t * @private\r\n\t */\r\n\tgetStackIndex: function(datasetIndex, name) {\r\n\t\tvar stacks = this._getStacks(datasetIndex);\r\n\t\tvar index = (name !== undefined)\r\n\t\t\t? stacks.indexOf(name)\r\n\t\t\t: -1; // indexOf returns -1 if element is not present\r\n\r\n\t\treturn (index === -1)\r\n\t\t\t? stacks.length - 1\r\n\t\t\t: index;\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\tgetRuler: function() {\r\n\t\tvar me = this;\r\n\t\tvar scale = me._getIndexScale();\r\n\t\tvar pixels = [];\r\n\t\tvar i, ilen;\r\n\r\n\t\tfor (i = 0, ilen = me.getMeta().data.length; i < ilen; ++i) {\r\n\t\t\tpixels.push(scale.getPixelForValue(null, i, me.index));\r\n\t\t}\r\n\r\n\t\treturn {\r\n\t\t\tpixels: pixels,\r\n\t\t\tstart: scale._startPixel,\r\n\t\t\tend: scale._endPixel,\r\n\t\t\tstackCount: me.getStackCount(),\r\n\t\t\tscale: scale\r\n\t\t};\r\n\t},\r\n\r\n\t/**\r\n\t * Note: pixel values are not clamped to the scale area.\r\n\t * @private\r\n\t */\r\n\tcalculateBarValuePixels: function(datasetIndex, index, options) {\r\n\t\tvar me = this;\r\n\t\tvar chart = me.chart;\r\n\t\tvar scale = me._getValueScale();\r\n\t\tvar isHorizontal = scale.isHorizontal();\r\n\t\tvar datasets = chart.data.datasets;\r\n\t\tvar metasets = scale._getMatchingVisibleMetas(me._type);\r\n\t\tvar value = scale._parseValue(datasets[datasetIndex].data[index]);\r\n\t\tvar minBarLength = options.minBarLength;\r\n\t\tvar stacked = scale.options.stacked;\r\n\t\tvar stack = me.getMeta().stack;\r\n\t\tvar start = value.start === undefined ? 0 : value.max >= 0 && value.min >= 0 ? value.min : value.max;\r\n\t\tvar length = value.start === undefined ? value.end : value.max >= 0 && value.min >= 0 ? value.max - value.min : value.min - value.max;\r\n\t\tvar ilen = metasets.length;\r\n\t\tvar i, imeta, ivalue, base, head, size, stackLength;\r\n\r\n\t\tif (stacked || (stacked === undefined && stack !== undefined)) {\r\n\t\t\tfor (i = 0; i < ilen; ++i) {\r\n\t\t\t\timeta = metasets[i];\r\n\r\n\t\t\t\tif (imeta.index === datasetIndex) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (imeta.stack === stack) {\r\n\t\t\t\t\tstackLength = scale._parseValue(datasets[imeta.index].data[index]);\r\n\t\t\t\t\tivalue = stackLength.start === undefined ? stackLength.end : stackLength.min >= 0 && stackLength.max >= 0 ? stackLength.max : stackLength.min;\r\n\r\n\t\t\t\t\tif ((value.min < 0 && ivalue < 0) || (value.max >= 0 && ivalue > 0)) {\r\n\t\t\t\t\t\tstart += ivalue;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tbase = scale.getPixelForValue(start);\r\n\t\thead = scale.getPixelForValue(start + length);\r\n\t\tsize = head - base;\r\n\r\n\t\tif (minBarLength !== undefined && Math.abs(size) < minBarLength) {\r\n\t\t\tsize = minBarLength;\r\n\t\t\tif (length >= 0 && !isHorizontal || length < 0 && isHorizontal) {\r\n\t\t\t\thead = base - minBarLength;\r\n\t\t\t} else {\r\n\t\t\t\thead = base + minBarLength;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn {\r\n\t\t\tsize: size,\r\n\t\t\tbase: base,\r\n\t\t\thead: head,\r\n\t\t\tcenter: head + size / 2\r\n\t\t};\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\tcalculateBarIndexPixels: function(datasetIndex, index, ruler, options) {\r\n\t\tvar me = this;\r\n\t\tvar range = options.barThickness === 'flex'\r\n\t\t\t? computeFlexCategoryTraits(index, ruler, options)\r\n\t\t\t: computeFitCategoryTraits(index, ruler, options);\r\n\r\n\t\tvar stackIndex = me.getStackIndex(datasetIndex, me.getMeta().stack);\r\n\t\tvar center = range.start + (range.chunk * stackIndex) + (range.chunk / 2);\r\n\t\tvar size = Math.min(\r\n\t\t\tvalueOrDefault$3(options.maxBarThickness, Infinity),\r\n\t\t\trange.chunk * range.ratio);\r\n\r\n\t\treturn {\r\n\t\t\tbase: center - size / 2,\r\n\t\t\thead: center + size / 2,\r\n\t\t\tcenter: center,\r\n\t\t\tsize: size\r\n\t\t};\r\n\t},\r\n\r\n\tdraw: function() {\r\n\t\tvar me = this;\r\n\t\tvar chart = me.chart;\r\n\t\tvar scale = me._getValueScale();\r\n\t\tvar rects = me.getMeta().data;\r\n\t\tvar dataset = me.getDataset();\r\n\t\tvar ilen = rects.length;\r\n\t\tvar i = 0;\r\n\r\n\t\thelpers$1.canvas.clipArea(chart.ctx, chart.chartArea);\r\n\r\n\t\tfor (; i < ilen; ++i) {\r\n\t\t\tvar val = scale._parseValue(dataset.data[i]);\r\n\t\t\tif (!isNaN(val.min) && !isNaN(val.max)) {\r\n\t\t\t\trects[i].draw();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\thelpers$1.canvas.unclipArea(chart.ctx);\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_resolveDataElementOptions: function() {\r\n\t\tvar me = this;\r\n\t\tvar values = helpers$1.extend({}, core_datasetController.prototype._resolveDataElementOptions.apply(me, arguments));\r\n\t\tvar indexOpts = me._getIndexScale().options;\r\n\t\tvar valueOpts = me._getValueScale().options;\r\n\r\n\t\tvalues.barPercentage = valueOrDefault$3(indexOpts.barPercentage, values.barPercentage);\r\n\t\tvalues.barThickness = valueOrDefault$3(indexOpts.barThickness, values.barThickness);\r\n\t\tvalues.categoryPercentage = valueOrDefault$3(indexOpts.categoryPercentage, values.categoryPercentage);\r\n\t\tvalues.maxBarThickness = valueOrDefault$3(indexOpts.maxBarThickness, values.maxBarThickness);\r\n\t\tvalues.minBarLength = valueOrDefault$3(valueOpts.minBarLength, values.minBarLength);\r\n\r\n\t\treturn values;\r\n\t}\r\n\r\n});\n\nvar valueOrDefault$4 = helpers$1.valueOrDefault;\r\nvar resolve$1 = helpers$1.options.resolve;\r\n\r\ncore_defaults._set('bubble', {\r\n\thover: {\r\n\t\tmode: 'single'\r\n\t},\r\n\r\n\tscales: {\r\n\t\txAxes: [{\r\n\t\t\ttype: 'linear', // bubble should probably use a linear scale by default\r\n\t\t\tposition: 'bottom',\r\n\t\t\tid: 'x-axis-0' // need an ID so datasets can reference the scale\r\n\t\t}],\r\n\t\tyAxes: [{\r\n\t\t\ttype: 'linear',\r\n\t\t\tposition: 'left',\r\n\t\t\tid: 'y-axis-0'\r\n\t\t}]\r\n\t},\r\n\r\n\ttooltips: {\r\n\t\tcallbacks: {\r\n\t\t\ttitle: function() {\r\n\t\t\t\t// Title doesn't make sense for scatter since we format the data as a point\r\n\t\t\t\treturn '';\r\n\t\t\t},\r\n\t\t\tlabel: function(item, data) {\r\n\t\t\t\tvar datasetLabel = data.datasets[item.datasetIndex].label || '';\r\n\t\t\t\tvar dataPoint = data.datasets[item.datasetIndex].data[item.index];\r\n\t\t\t\treturn datasetLabel + ': (' + item.xLabel + ', ' + item.yLabel + ', ' + dataPoint.r + ')';\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\n\r\nvar controller_bubble = core_datasetController.extend({\r\n\t/**\r\n\t * @protected\r\n\t */\r\n\tdataElementType: elements.Point,\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_dataElementOptions: [\r\n\t\t'backgroundColor',\r\n\t\t'borderColor',\r\n\t\t'borderWidth',\r\n\t\t'hoverBackgroundColor',\r\n\t\t'hoverBorderColor',\r\n\t\t'hoverBorderWidth',\r\n\t\t'hoverRadius',\r\n\t\t'hitRadius',\r\n\t\t'pointStyle',\r\n\t\t'rotation'\r\n\t],\r\n\r\n\t/**\r\n\t * @protected\r\n\t */\r\n\tupdate: function(reset) {\r\n\t\tvar me = this;\r\n\t\tvar meta = me.getMeta();\r\n\t\tvar points = meta.data;\r\n\r\n\t\t// Update Points\r\n\t\thelpers$1.each(points, function(point, index) {\r\n\t\t\tme.updateElement(point, index, reset);\r\n\t\t});\r\n\t},\r\n\r\n\t/**\r\n\t * @protected\r\n\t */\r\n\tupdateElement: function(point, index, reset) {\r\n\t\tvar me = this;\r\n\t\tvar meta = me.getMeta();\r\n\t\tvar custom = point.custom || {};\r\n\t\tvar xScale = me.getScaleForId(meta.xAxisID);\r\n\t\tvar yScale = me.getScaleForId(meta.yAxisID);\r\n\t\tvar options = me._resolveDataElementOptions(point, index);\r\n\t\tvar data = me.getDataset().data[index];\r\n\t\tvar dsIndex = me.index;\r\n\r\n\t\tvar x = reset ? xScale.getPixelForDecimal(0.5) : xScale.getPixelForValue(typeof data === 'object' ? data : NaN, index, dsIndex);\r\n\t\tvar y = reset ? yScale.getBasePixel() : yScale.getPixelForValue(data, index, dsIndex);\r\n\r\n\t\tpoint._xScale = xScale;\r\n\t\tpoint._yScale = yScale;\r\n\t\tpoint._options = options;\r\n\t\tpoint._datasetIndex = dsIndex;\r\n\t\tpoint._index = index;\r\n\t\tpoint._model = {\r\n\t\t\tbackgroundColor: options.backgroundColor,\r\n\t\t\tborderColor: options.borderColor,\r\n\t\t\tborderWidth: options.borderWidth,\r\n\t\t\thitRadius: options.hitRadius,\r\n\t\t\tpointStyle: options.pointStyle,\r\n\t\t\trotation: options.rotation,\r\n\t\t\tradius: reset ? 0 : options.radius,\r\n\t\t\tskip: custom.skip || isNaN(x) || isNaN(y),\r\n\t\t\tx: x,\r\n\t\t\ty: y,\r\n\t\t};\r\n\r\n\t\tpoint.pivot();\r\n\t},\r\n\r\n\t/**\r\n\t * @protected\r\n\t */\r\n\tsetHoverStyle: function(point) {\r\n\t\tvar model = point._model;\r\n\t\tvar options = point._options;\r\n\t\tvar getHoverColor = helpers$1.getHoverColor;\r\n\r\n\t\tpoint.$previousStyle = {\r\n\t\t\tbackgroundColor: model.backgroundColor,\r\n\t\t\tborderColor: model.borderColor,\r\n\t\t\tborderWidth: model.borderWidth,\r\n\t\t\tradius: model.radius\r\n\t\t};\r\n\r\n\t\tmodel.backgroundColor = valueOrDefault$4(options.hoverBackgroundColor, getHoverColor(options.backgroundColor));\r\n\t\tmodel.borderColor = valueOrDefault$4(options.hoverBorderColor, getHoverColor(options.borderColor));\r\n\t\tmodel.borderWidth = valueOrDefault$4(options.hoverBorderWidth, options.borderWidth);\r\n\t\tmodel.radius = options.radius + options.hoverRadius;\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_resolveDataElementOptions: function(point, index) {\r\n\t\tvar me = this;\r\n\t\tvar chart = me.chart;\r\n\t\tvar dataset = me.getDataset();\r\n\t\tvar custom = point.custom || {};\r\n\t\tvar data = dataset.data[index] || {};\r\n\t\tvar values = core_datasetController.prototype._resolveDataElementOptions.apply(me, arguments);\r\n\r\n\t\t// Scriptable options\r\n\t\tvar context = {\r\n\t\t\tchart: chart,\r\n\t\t\tdataIndex: index,\r\n\t\t\tdataset: dataset,\r\n\t\t\tdatasetIndex: me.index\r\n\t\t};\r\n\r\n\t\t// In case values were cached (and thus frozen), we need to clone the values\r\n\t\tif (me._cachedDataOpts === values) {\r\n\t\t\tvalues = helpers$1.extend({}, values);\r\n\t\t}\r\n\r\n\t\t// Custom radius resolution\r\n\t\tvalues.radius = resolve$1([\r\n\t\t\tcustom.radius,\r\n\t\t\tdata.r,\r\n\t\t\tme._config.radius,\r\n\t\t\tchart.options.elements.point.radius\r\n\t\t], context, index);\r\n\r\n\t\treturn values;\r\n\t}\r\n});\n\nvar valueOrDefault$5 = helpers$1.valueOrDefault;\r\n\r\nvar PI$1 = Math.PI;\r\nvar DOUBLE_PI$1 = PI$1 * 2;\r\nvar HALF_PI$1 = PI$1 / 2;\r\n\r\ncore_defaults._set('doughnut', {\r\n\tanimation: {\r\n\t\t// Boolean - Whether we animate the rotation of the Doughnut\r\n\t\tanimateRotate: true,\r\n\t\t// Boolean - Whether we animate scaling the Doughnut from the centre\r\n\t\tanimateScale: false\r\n\t},\r\n\thover: {\r\n\t\tmode: 'single'\r\n\t},\r\n\tlegendCallback: function(chart) {\r\n\t\tvar list = document.createElement('ul');\r\n\t\tvar data = chart.data;\r\n\t\tvar datasets = data.datasets;\r\n\t\tvar labels = data.labels;\r\n\t\tvar i, ilen, listItem, listItemSpan;\r\n\r\n\t\tlist.setAttribute('class', chart.id + '-legend');\r\n\t\tif (datasets.length) {\r\n\t\t\tfor (i = 0, ilen = datasets[0].data.length; i < ilen; ++i) {\r\n\t\t\t\tlistItem = list.appendChild(document.createElement('li'));\r\n\t\t\t\tlistItemSpan = listItem.appendChild(document.createElement('span'));\r\n\t\t\t\tlistItemSpan.style.backgroundColor = datasets[0].backgroundColor[i];\r\n\t\t\t\tif (labels[i]) {\r\n\t\t\t\t\tlistItem.appendChild(document.createTextNode(labels[i]));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn list.outerHTML;\r\n\t},\r\n\tlegend: {\r\n\t\tlabels: {\r\n\t\t\tgenerateLabels: function(chart) {\r\n\t\t\t\tvar data = chart.data;\r\n\t\t\t\tif (data.labels.length && data.datasets.length) {\r\n\t\t\t\t\treturn data.labels.map(function(label, i) {\r\n\t\t\t\t\t\tvar meta = chart.getDatasetMeta(0);\r\n\t\t\t\t\t\tvar style = meta.controller.getStyle(i);\r\n\r\n\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\ttext: label,\r\n\t\t\t\t\t\t\tfillStyle: style.backgroundColor,\r\n\t\t\t\t\t\t\tstrokeStyle: style.borderColor,\r\n\t\t\t\t\t\t\tlineWidth: style.borderWidth,\r\n\t\t\t\t\t\t\thidden: isNaN(data.datasets[0].data[i]) || meta.data[i].hidden,\r\n\r\n\t\t\t\t\t\t\t// Extra data used for toggling the correct item\r\n\t\t\t\t\t\t\tindex: i\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t\treturn [];\r\n\t\t\t}\r\n\t\t},\r\n\r\n\t\tonClick: function(e, legendItem) {\r\n\t\t\tvar index = legendItem.index;\r\n\t\t\tvar chart = this.chart;\r\n\t\t\tvar i, ilen, meta;\r\n\r\n\t\t\tfor (i = 0, ilen = (chart.data.datasets || []).length; i < ilen; ++i) {\r\n\t\t\t\tmeta = chart.getDatasetMeta(i);\r\n\t\t\t\t// toggle visibility of index if exists\r\n\t\t\t\tif (meta.data[index]) {\r\n\t\t\t\t\tmeta.data[index].hidden = !meta.data[index].hidden;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tchart.update();\r\n\t\t}\r\n\t},\r\n\r\n\t// The percentage of the chart that we cut out of the middle.\r\n\tcutoutPercentage: 50,\r\n\r\n\t// The rotation of the chart, where the first data arc begins.\r\n\trotation: -HALF_PI$1,\r\n\r\n\t// The total circumference of the chart.\r\n\tcircumference: DOUBLE_PI$1,\r\n\r\n\t// Need to override these to give a nice default\r\n\ttooltips: {\r\n\t\tcallbacks: {\r\n\t\t\ttitle: function() {\r\n\t\t\t\treturn '';\r\n\t\t\t},\r\n\t\t\tlabel: function(tooltipItem, data) {\r\n\t\t\t\tvar dataLabel = data.labels[tooltipItem.index];\r\n\t\t\t\tvar value = ': ' + data.datasets[tooltipItem.datasetIndex].data[tooltipItem.index];\r\n\r\n\t\t\t\tif (helpers$1.isArray(dataLabel)) {\r\n\t\t\t\t\t// show value on first line of multiline label\r\n\t\t\t\t\t// need to clone because we are changing the value\r\n\t\t\t\t\tdataLabel = dataLabel.slice();\r\n\t\t\t\t\tdataLabel[0] += value;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tdataLabel += value;\r\n\t\t\t\t}\r\n\r\n\t\t\t\treturn dataLabel;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\n\r\nvar controller_doughnut = core_datasetController.extend({\r\n\r\n\tdataElementType: elements.Arc,\r\n\r\n\tlinkScales: helpers$1.noop,\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_dataElementOptions: [\r\n\t\t'backgroundColor',\r\n\t\t'borderColor',\r\n\t\t'borderWidth',\r\n\t\t'borderAlign',\r\n\t\t'hoverBackgroundColor',\r\n\t\t'hoverBorderColor',\r\n\t\t'hoverBorderWidth',\r\n\t],\r\n\r\n\t// Get index of the dataset in relation to the visible datasets. This allows determining the inner and outer radius correctly\r\n\tgetRingIndex: function(datasetIndex) {\r\n\t\tvar ringIndex = 0;\r\n\r\n\t\tfor (var j = 0; j < datasetIndex; ++j) {\r\n\t\t\tif (this.chart.isDatasetVisible(j)) {\r\n\t\t\t\t++ringIndex;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn ringIndex;\r\n\t},\r\n\r\n\tupdate: function(reset) {\r\n\t\tvar me = this;\r\n\t\tvar chart = me.chart;\r\n\t\tvar chartArea = chart.chartArea;\r\n\t\tvar opts = chart.options;\r\n\t\tvar ratioX = 1;\r\n\t\tvar ratioY = 1;\r\n\t\tvar offsetX = 0;\r\n\t\tvar offsetY = 0;\r\n\t\tvar meta = me.getMeta();\r\n\t\tvar arcs = meta.data;\r\n\t\tvar cutout = opts.cutoutPercentage / 100 || 0;\r\n\t\tvar circumference = opts.circumference;\r\n\t\tvar chartWeight = me._getRingWeight(me.index);\r\n\t\tvar maxWidth, maxHeight, i, ilen;\r\n\r\n\t\t// If the chart's circumference isn't a full circle, calculate size as a ratio of the width/height of the arc\r\n\t\tif (circumference < DOUBLE_PI$1) {\r\n\t\t\tvar startAngle = opts.rotation % DOUBLE_PI$1;\r\n\t\t\tstartAngle += startAngle >= PI$1 ? -DOUBLE_PI$1 : startAngle < -PI$1 ? DOUBLE_PI$1 : 0;\r\n\t\t\tvar endAngle = startAngle + circumference;\r\n\t\t\tvar startX = Math.cos(startAngle);\r\n\t\t\tvar startY = Math.sin(startAngle);\r\n\t\t\tvar endX = Math.cos(endAngle);\r\n\t\t\tvar endY = Math.sin(endAngle);\r\n\t\t\tvar contains0 = (startAngle <= 0 && endAngle >= 0) || endAngle >= DOUBLE_PI$1;\r\n\t\t\tvar contains90 = (startAngle <= HALF_PI$1 && endAngle >= HALF_PI$1) || endAngle >= DOUBLE_PI$1 + HALF_PI$1;\r\n\t\t\tvar contains180 = startAngle === -PI$1 || endAngle >= PI$1;\r\n\t\t\tvar contains270 = (startAngle <= -HALF_PI$1 && endAngle >= -HALF_PI$1) || endAngle >= PI$1 + HALF_PI$1;\r\n\t\t\tvar minX = contains180 ? -1 : Math.min(startX, startX * cutout, endX, endX * cutout);\r\n\t\t\tvar minY = contains270 ? -1 : Math.min(startY, startY * cutout, endY, endY * cutout);\r\n\t\t\tvar maxX = contains0 ? 1 : Math.max(startX, startX * cutout, endX, endX * cutout);\r\n\t\t\tvar maxY = contains90 ? 1 : Math.max(startY, startY * cutout, endY, endY * cutout);\r\n\t\t\tratioX = (maxX - minX) / 2;\r\n\t\t\tratioY = (maxY - minY) / 2;\r\n\t\t\toffsetX = -(maxX + minX) / 2;\r\n\t\t\toffsetY = -(maxY + minY) / 2;\r\n\t\t}\r\n\r\n\t\tfor (i = 0, ilen = arcs.length; i < ilen; ++i) {\r\n\t\t\tarcs[i]._options = me._resolveDataElementOptions(arcs[i], i);\r\n\t\t}\r\n\r\n\t\tchart.borderWidth = me.getMaxBorderWidth();\r\n\t\tmaxWidth = (chartArea.right - chartArea.left - chart.borderWidth) / ratioX;\r\n\t\tmaxHeight = (chartArea.bottom - chartArea.top - chart.borderWidth) / ratioY;\r\n\t\tchart.outerRadius = Math.max(Math.min(maxWidth, maxHeight) / 2, 0);\r\n\t\tchart.innerRadius = Math.max(chart.outerRadius * cutout, 0);\r\n\t\tchart.radiusLength = (chart.outerRadius - chart.innerRadius) / (me._getVisibleDatasetWeightTotal() || 1);\r\n\t\tchart.offsetX = offsetX * chart.outerRadius;\r\n\t\tchart.offsetY = offsetY * chart.outerRadius;\r\n\r\n\t\tmeta.total = me.calculateTotal();\r\n\r\n\t\tme.outerRadius = chart.outerRadius - chart.radiusLength * me._getRingWeightOffset(me.index);\r\n\t\tme.innerRadius = Math.max(me.outerRadius - chart.radiusLength * chartWeight, 0);\r\n\r\n\t\tfor (i = 0, ilen = arcs.length; i < ilen; ++i) {\r\n\t\t\tme.updateElement(arcs[i], i, reset);\r\n\t\t}\r\n\t},\r\n\r\n\tupdateElement: function(arc, index, reset) {\r\n\t\tvar me = this;\r\n\t\tvar chart = me.chart;\r\n\t\tvar chartArea = chart.chartArea;\r\n\t\tvar opts = chart.options;\r\n\t\tvar animationOpts = opts.animation;\r\n\t\tvar centerX = (chartArea.left + chartArea.right) / 2;\r\n\t\tvar centerY = (chartArea.top + chartArea.bottom) / 2;\r\n\t\tvar startAngle = opts.rotation; // non reset case handled later\r\n\t\tvar endAngle = opts.rotation; // non reset case handled later\r\n\t\tvar dataset = me.getDataset();\r\n\t\tvar circumference = reset && animationOpts.animateRotate ? 0 : arc.hidden ? 0 : me.calculateCircumference(dataset.data[index]) * (opts.circumference / DOUBLE_PI$1);\r\n\t\tvar innerRadius = reset && animationOpts.animateScale ? 0 : me.innerRadius;\r\n\t\tvar outerRadius = reset && animationOpts.animateScale ? 0 : me.outerRadius;\r\n\t\tvar options = arc._options || {};\r\n\r\n\t\thelpers$1.extend(arc, {\r\n\t\t\t// Utility\r\n\t\t\t_datasetIndex: me.index,\r\n\t\t\t_index: index,\r\n\r\n\t\t\t// Desired view properties\r\n\t\t\t_model: {\r\n\t\t\t\tbackgroundColor: options.backgroundColor,\r\n\t\t\t\tborderColor: options.borderColor,\r\n\t\t\t\tborderWidth: options.borderWidth,\r\n\t\t\t\tborderAlign: options.borderAlign,\r\n\t\t\t\tx: centerX + chart.offsetX,\r\n\t\t\t\ty: centerY + chart.offsetY,\r\n\t\t\t\tstartAngle: startAngle,\r\n\t\t\t\tendAngle: endAngle,\r\n\t\t\t\tcircumference: circumference,\r\n\t\t\t\touterRadius: outerRadius,\r\n\t\t\t\tinnerRadius: innerRadius,\r\n\t\t\t\tlabel: helpers$1.valueAtIndexOrDefault(dataset.label, index, chart.data.labels[index])\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tvar model = arc._model;\r\n\r\n\t\t// Set correct angles if not resetting\r\n\t\tif (!reset || !animationOpts.animateRotate) {\r\n\t\t\tif (index === 0) {\r\n\t\t\t\tmodel.startAngle = opts.rotation;\r\n\t\t\t} else {\r\n\t\t\t\tmodel.startAngle = me.getMeta().data[index - 1]._model.endAngle;\r\n\t\t\t}\r\n\r\n\t\t\tmodel.endAngle = model.startAngle + model.circumference;\r\n\t\t}\r\n\r\n\t\tarc.pivot();\r\n\t},\r\n\r\n\tcalculateTotal: function() {\r\n\t\tvar dataset = this.getDataset();\r\n\t\tvar meta = this.getMeta();\r\n\t\tvar total = 0;\r\n\t\tvar value;\r\n\r\n\t\thelpers$1.each(meta.data, function(element, index) {\r\n\t\t\tvalue = dataset.data[index];\r\n\t\t\tif (!isNaN(value) && !element.hidden) {\r\n\t\t\t\ttotal += Math.abs(value);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\t/* if (total === 0) {\r\n\t\t\ttotal = NaN;\r\n\t\t}*/\r\n\r\n\t\treturn total;\r\n\t},\r\n\r\n\tcalculateCircumference: function(value) {\r\n\t\tvar total = this.getMeta().total;\r\n\t\tif (total > 0 && !isNaN(value)) {\r\n\t\t\treturn DOUBLE_PI$1 * (Math.abs(value) / total);\r\n\t\t}\r\n\t\treturn 0;\r\n\t},\r\n\r\n\t// gets the max border or hover width to properly scale pie charts\r\n\tgetMaxBorderWidth: function(arcs) {\r\n\t\tvar me = this;\r\n\t\tvar max = 0;\r\n\t\tvar chart = me.chart;\r\n\t\tvar i, ilen, meta, arc, controller, options, borderWidth, hoverWidth;\r\n\r\n\t\tif (!arcs) {\r\n\t\t\t// Find the outmost visible dataset\r\n\t\t\tfor (i = 0, ilen = chart.data.datasets.length; i < ilen; ++i) {\r\n\t\t\t\tif (chart.isDatasetVisible(i)) {\r\n\t\t\t\t\tmeta = chart.getDatasetMeta(i);\r\n\t\t\t\t\tarcs = meta.data;\r\n\t\t\t\t\tif (i !== me.index) {\r\n\t\t\t\t\t\tcontroller = meta.controller;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (!arcs) {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\r\n\t\tfor (i = 0, ilen = arcs.length; i < ilen; ++i) {\r\n\t\t\tarc = arcs[i];\r\n\t\t\tif (controller) {\r\n\t\t\t\tcontroller._configure();\r\n\t\t\t\toptions = controller._resolveDataElementOptions(arc, i);\r\n\t\t\t} else {\r\n\t\t\t\toptions = arc._options;\r\n\t\t\t}\r\n\t\t\tif (options.borderAlign !== 'inner') {\r\n\t\t\t\tborderWidth = options.borderWidth;\r\n\t\t\t\thoverWidth = options.hoverBorderWidth;\r\n\r\n\t\t\t\tmax = borderWidth > max ? borderWidth : max;\r\n\t\t\t\tmax = hoverWidth > max ? hoverWidth : max;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn max;\r\n\t},\r\n\r\n\t/**\r\n\t * @protected\r\n\t */\r\n\tsetHoverStyle: function(arc) {\r\n\t\tvar model = arc._model;\r\n\t\tvar options = arc._options;\r\n\t\tvar getHoverColor = helpers$1.getHoverColor;\r\n\r\n\t\tarc.$previousStyle = {\r\n\t\t\tbackgroundColor: model.backgroundColor,\r\n\t\t\tborderColor: model.borderColor,\r\n\t\t\tborderWidth: model.borderWidth,\r\n\t\t};\r\n\r\n\t\tmodel.backgroundColor = valueOrDefault$5(options.hoverBackgroundColor, getHoverColor(options.backgroundColor));\r\n\t\tmodel.borderColor = valueOrDefault$5(options.hoverBorderColor, getHoverColor(options.borderColor));\r\n\t\tmodel.borderWidth = valueOrDefault$5(options.hoverBorderWidth, options.borderWidth);\r\n\t},\r\n\r\n\t/**\r\n\t * Get radius length offset of the dataset in relation to the visible datasets weights. This allows determining the inner and outer radius correctly\r\n\t * @private\r\n\t */\r\n\t_getRingWeightOffset: function(datasetIndex) {\r\n\t\tvar ringWeightOffset = 0;\r\n\r\n\t\tfor (var i = 0; i < datasetIndex; ++i) {\r\n\t\t\tif (this.chart.isDatasetVisible(i)) {\r\n\t\t\t\tringWeightOffset += this._getRingWeight(i);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn ringWeightOffset;\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_getRingWeight: function(dataSetIndex) {\r\n\t\treturn Math.max(valueOrDefault$5(this.chart.data.datasets[dataSetIndex].weight, 1), 0);\r\n\t},\r\n\r\n\t/**\r\n\t * Returns the sum of all visibile data set weights.  This value can be 0.\r\n\t * @private\r\n\t */\r\n\t_getVisibleDatasetWeightTotal: function() {\r\n\t\treturn this._getRingWeightOffset(this.chart.data.datasets.length);\r\n\t}\r\n});\n\ncore_defaults._set('horizontalBar', {\r\n\thover: {\r\n\t\tmode: 'index',\r\n\t\taxis: 'y'\r\n\t},\r\n\r\n\tscales: {\r\n\t\txAxes: [{\r\n\t\t\ttype: 'linear',\r\n\t\t\tposition: 'bottom'\r\n\t\t}],\r\n\r\n\t\tyAxes: [{\r\n\t\t\ttype: 'category',\r\n\t\t\tposition: 'left',\r\n\t\t\toffset: true,\r\n\t\t\tgridLines: {\r\n\t\t\t\toffsetGridLines: true\r\n\t\t\t}\r\n\t\t}]\r\n\t},\r\n\r\n\telements: {\r\n\t\trectangle: {\r\n\t\t\tborderSkipped: 'left'\r\n\t\t}\r\n\t},\r\n\r\n\ttooltips: {\r\n\t\tmode: 'index',\r\n\t\taxis: 'y'\r\n\t}\r\n});\r\n\r\ncore_defaults._set('global', {\r\n\tdatasets: {\r\n\t\thorizontalBar: {\r\n\t\t\tcategoryPercentage: 0.8,\r\n\t\t\tbarPercentage: 0.9\r\n\t\t}\r\n\t}\r\n});\r\n\r\nvar controller_horizontalBar = controller_bar.extend({\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_getValueScaleId: function() {\r\n\t\treturn this.getMeta().xAxisID;\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_getIndexScaleId: function() {\r\n\t\treturn this.getMeta().yAxisID;\r\n\t}\r\n});\n\nvar valueOrDefault$6 = helpers$1.valueOrDefault;\r\nvar resolve$2 = helpers$1.options.resolve;\r\nvar isPointInArea = helpers$1.canvas._isPointInArea;\r\n\r\ncore_defaults._set('line', {\r\n\tshowLines: true,\r\n\tspanGaps: false,\r\n\r\n\thover: {\r\n\t\tmode: 'label'\r\n\t},\r\n\r\n\tscales: {\r\n\t\txAxes: [{\r\n\t\t\ttype: 'category',\r\n\t\t\tid: 'x-axis-0'\r\n\t\t}],\r\n\t\tyAxes: [{\r\n\t\t\ttype: 'linear',\r\n\t\t\tid: 'y-axis-0'\r\n\t\t}]\r\n\t}\r\n});\r\n\r\nfunction scaleClip(scale, halfBorderWidth) {\r\n\tvar tickOpts = scale && scale.options.ticks || {};\r\n\tvar reverse = tickOpts.reverse;\r\n\tvar min = tickOpts.min === undefined ? halfBorderWidth : 0;\r\n\tvar max = tickOpts.max === undefined ? halfBorderWidth : 0;\r\n\treturn {\r\n\t\tstart: reverse ? max : min,\r\n\t\tend: reverse ? min : max\r\n\t};\r\n}\r\n\r\nfunction defaultClip(xScale, yScale, borderWidth) {\r\n\tvar halfBorderWidth = borderWidth / 2;\r\n\tvar x = scaleClip(xScale, halfBorderWidth);\r\n\tvar y = scaleClip(yScale, halfBorderWidth);\r\n\r\n\treturn {\r\n\t\ttop: y.end,\r\n\t\tright: x.end,\r\n\t\tbottom: y.start,\r\n\t\tleft: x.start\r\n\t};\r\n}\r\n\r\nfunction toClip(value) {\r\n\tvar t, r, b, l;\r\n\r\n\tif (helpers$1.isObject(value)) {\r\n\t\tt = value.top;\r\n\t\tr = value.right;\r\n\t\tb = value.bottom;\r\n\t\tl = value.left;\r\n\t} else {\r\n\t\tt = r = b = l = value;\r\n\t}\r\n\r\n\treturn {\r\n\t\ttop: t,\r\n\t\tright: r,\r\n\t\tbottom: b,\r\n\t\tleft: l\r\n\t};\r\n}\r\n\r\n\r\nvar controller_line = core_datasetController.extend({\r\n\r\n\tdatasetElementType: elements.Line,\r\n\r\n\tdataElementType: elements.Point,\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_datasetElementOptions: [\r\n\t\t'backgroundColor',\r\n\t\t'borderCapStyle',\r\n\t\t'borderColor',\r\n\t\t'borderDash',\r\n\t\t'borderDashOffset',\r\n\t\t'borderJoinStyle',\r\n\t\t'borderWidth',\r\n\t\t'cubicInterpolationMode',\r\n\t\t'fill'\r\n\t],\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_dataElementOptions: {\r\n\t\tbackgroundColor: 'pointBackgroundColor',\r\n\t\tborderColor: 'pointBorderColor',\r\n\t\tborderWidth: 'pointBorderWidth',\r\n\t\thitRadius: 'pointHitRadius',\r\n\t\thoverBackgroundColor: 'pointHoverBackgroundColor',\r\n\t\thoverBorderColor: 'pointHoverBorderColor',\r\n\t\thoverBorderWidth: 'pointHoverBorderWidth',\r\n\t\thoverRadius: 'pointHoverRadius',\r\n\t\tpointStyle: 'pointStyle',\r\n\t\tradius: 'pointRadius',\r\n\t\trotation: 'pointRotation'\r\n\t},\r\n\r\n\tupdate: function(reset) {\r\n\t\tvar me = this;\r\n\t\tvar meta = me.getMeta();\r\n\t\tvar line = meta.dataset;\r\n\t\tvar points = meta.data || [];\r\n\t\tvar options = me.chart.options;\r\n\t\tvar config = me._config;\r\n\t\tvar showLine = me._showLine = valueOrDefault$6(config.showLine, options.showLines);\r\n\t\tvar i, ilen;\r\n\r\n\t\tme._xScale = me.getScaleForId(meta.xAxisID);\r\n\t\tme._yScale = me.getScaleForId(meta.yAxisID);\r\n\r\n\t\t// Update Line\r\n\t\tif (showLine) {\r\n\t\t\t// Compatibility: If the properties are defined with only the old name, use those values\r\n\t\t\tif (config.tension !== undefined && config.lineTension === undefined) {\r\n\t\t\t\tconfig.lineTension = config.tension;\r\n\t\t\t}\r\n\r\n\t\t\t// Utility\r\n\t\t\tline._scale = me._yScale;\r\n\t\t\tline._datasetIndex = me.index;\r\n\t\t\t// Data\r\n\t\t\tline._children = points;\r\n\t\t\t// Model\r\n\t\t\tline._model = me._resolveDatasetElementOptions(line);\r\n\r\n\t\t\tline.pivot();\r\n\t\t}\r\n\r\n\t\t// Update Points\r\n\t\tfor (i = 0, ilen = points.length; i < ilen; ++i) {\r\n\t\t\tme.updateElement(points[i], i, reset);\r\n\t\t}\r\n\r\n\t\tif (showLine && line._model.tension !== 0) {\r\n\t\t\tme.updateBezierControlPoints();\r\n\t\t}\r\n\r\n\t\t// Now pivot the point for animation\r\n\t\tfor (i = 0, ilen = points.length; i < ilen; ++i) {\r\n\t\t\tpoints[i].pivot();\r\n\t\t}\r\n\t},\r\n\r\n\tupdateElement: function(point, index, reset) {\r\n\t\tvar me = this;\r\n\t\tvar meta = me.getMeta();\r\n\t\tvar custom = point.custom || {};\r\n\t\tvar dataset = me.getDataset();\r\n\t\tvar datasetIndex = me.index;\r\n\t\tvar value = dataset.data[index];\r\n\t\tvar xScale = me._xScale;\r\n\t\tvar yScale = me._yScale;\r\n\t\tvar lineModel = meta.dataset._model;\r\n\t\tvar x, y;\r\n\r\n\t\tvar options = me._resolveDataElementOptions(point, index);\r\n\r\n\t\tx = xScale.getPixelForValue(typeof value === 'object' ? value : NaN, index, datasetIndex);\r\n\t\ty = reset ? yScale.getBasePixel() : me.calculatePointY(value, index, datasetIndex);\r\n\r\n\t\t// Utility\r\n\t\tpoint._xScale = xScale;\r\n\t\tpoint._yScale = yScale;\r\n\t\tpoint._options = options;\r\n\t\tpoint._datasetIndex = datasetIndex;\r\n\t\tpoint._index = index;\r\n\r\n\t\t// Desired view properties\r\n\t\tpoint._model = {\r\n\t\t\tx: x,\r\n\t\t\ty: y,\r\n\t\t\tskip: custom.skip || isNaN(x) || isNaN(y),\r\n\t\t\t// Appearance\r\n\t\t\tradius: options.radius,\r\n\t\t\tpointStyle: options.pointStyle,\r\n\t\t\trotation: options.rotation,\r\n\t\t\tbackgroundColor: options.backgroundColor,\r\n\t\t\tborderColor: options.borderColor,\r\n\t\t\tborderWidth: options.borderWidth,\r\n\t\t\ttension: valueOrDefault$6(custom.tension, lineModel ? lineModel.tension : 0),\r\n\t\t\tsteppedLine: lineModel ? lineModel.steppedLine : false,\r\n\t\t\t// Tooltip\r\n\t\t\thitRadius: options.hitRadius\r\n\t\t};\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_resolveDatasetElementOptions: function(element) {\r\n\t\tvar me = this;\r\n\t\tvar config = me._config;\r\n\t\tvar custom = element.custom || {};\r\n\t\tvar options = me.chart.options;\r\n\t\tvar lineOptions = options.elements.line;\r\n\t\tvar values = core_datasetController.prototype._resolveDatasetElementOptions.apply(me, arguments);\r\n\r\n\t\t// The default behavior of lines is to break at null values, according\r\n\t\t// to https://github.com/chartjs/Chart.js/issues/2435#issuecomment-216718158\r\n\t\t// This option gives lines the ability to span gaps\r\n\t\tvalues.spanGaps = valueOrDefault$6(config.spanGaps, options.spanGaps);\r\n\t\tvalues.tension = valueOrDefault$6(config.lineTension, lineOptions.tension);\r\n\t\tvalues.steppedLine = resolve$2([custom.steppedLine, config.steppedLine, lineOptions.stepped]);\r\n\t\tvalues.clip = toClip(valueOrDefault$6(config.clip, defaultClip(me._xScale, me._yScale, values.borderWidth)));\r\n\r\n\t\treturn values;\r\n\t},\r\n\r\n\tcalculatePointY: function(value, index, datasetIndex) {\r\n\t\tvar me = this;\r\n\t\tvar chart = me.chart;\r\n\t\tvar yScale = me._yScale;\r\n\t\tvar sumPos = 0;\r\n\t\tvar sumNeg = 0;\r\n\t\tvar i, ds, dsMeta, stackedRightValue, rightValue, metasets, ilen;\r\n\r\n\t\tif (yScale.options.stacked) {\r\n\t\t\trightValue = +yScale.getRightValue(value);\r\n\t\t\tmetasets = chart._getSortedVisibleDatasetMetas();\r\n\t\t\tilen = metasets.length;\r\n\r\n\t\t\tfor (i = 0; i < ilen; ++i) {\r\n\t\t\t\tdsMeta = metasets[i];\r\n\t\t\t\tif (dsMeta.index === datasetIndex) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tds = chart.data.datasets[dsMeta.index];\r\n\t\t\t\tif (dsMeta.type === 'line' && dsMeta.yAxisID === yScale.id) {\r\n\t\t\t\t\tstackedRightValue = +yScale.getRightValue(ds.data[index]);\r\n\t\t\t\t\tif (stackedRightValue < 0) {\r\n\t\t\t\t\t\tsumNeg += stackedRightValue || 0;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tsumPos += stackedRightValue || 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (rightValue < 0) {\r\n\t\t\t\treturn yScale.getPixelForValue(sumNeg + rightValue);\r\n\t\t\t}\r\n\t\t\treturn yScale.getPixelForValue(sumPos + rightValue);\r\n\t\t}\r\n\t\treturn yScale.getPixelForValue(value);\r\n\t},\r\n\r\n\tupdateBezierControlPoints: function() {\r\n\t\tvar me = this;\r\n\t\tvar chart = me.chart;\r\n\t\tvar meta = me.getMeta();\r\n\t\tvar lineModel = meta.dataset._model;\r\n\t\tvar area = chart.chartArea;\r\n\t\tvar points = meta.data || [];\r\n\t\tvar i, ilen, model, controlPoints;\r\n\r\n\t\t// Only consider points that are drawn in case the spanGaps option is used\r\n\t\tif (lineModel.spanGaps) {\r\n\t\t\tpoints = points.filter(function(pt) {\r\n\t\t\t\treturn !pt._model.skip;\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tfunction capControlPoint(pt, min, max) {\r\n\t\t\treturn Math.max(Math.min(pt, max), min);\r\n\t\t}\r\n\r\n\t\tif (lineModel.cubicInterpolationMode === 'monotone') {\r\n\t\t\thelpers$1.splineCurveMonotone(points);\r\n\t\t} else {\r\n\t\t\tfor (i = 0, ilen = points.length; i < ilen; ++i) {\r\n\t\t\t\tmodel = points[i]._model;\r\n\t\t\t\tcontrolPoints = helpers$1.splineCurve(\r\n\t\t\t\t\thelpers$1.previousItem(points, i)._model,\r\n\t\t\t\t\tmodel,\r\n\t\t\t\t\thelpers$1.nextItem(points, i)._model,\r\n\t\t\t\t\tlineModel.tension\r\n\t\t\t\t);\r\n\t\t\t\tmodel.controlPointPreviousX = controlPoints.previous.x;\r\n\t\t\t\tmodel.controlPointPreviousY = controlPoints.previous.y;\r\n\t\t\t\tmodel.controlPointNextX = controlPoints.next.x;\r\n\t\t\t\tmodel.controlPointNextY = controlPoints.next.y;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (chart.options.elements.line.capBezierPoints) {\r\n\t\t\tfor (i = 0, ilen = points.length; i < ilen; ++i) {\r\n\t\t\t\tmodel = points[i]._model;\r\n\t\t\t\tif (isPointInArea(model, area)) {\r\n\t\t\t\t\tif (i > 0 && isPointInArea(points[i - 1]._model, area)) {\r\n\t\t\t\t\t\tmodel.controlPointPreviousX = capControlPoint(model.controlPointPreviousX, area.left, area.right);\r\n\t\t\t\t\t\tmodel.controlPointPreviousY = capControlPoint(model.controlPointPreviousY, area.top, area.bottom);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (i < points.length - 1 && isPointInArea(points[i + 1]._model, area)) {\r\n\t\t\t\t\t\tmodel.controlPointNextX = capControlPoint(model.controlPointNextX, area.left, area.right);\r\n\t\t\t\t\t\tmodel.controlPointNextY = capControlPoint(model.controlPointNextY, area.top, area.bottom);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\r\n\tdraw: function() {\r\n\t\tvar me = this;\r\n\t\tvar chart = me.chart;\r\n\t\tvar meta = me.getMeta();\r\n\t\tvar points = meta.data || [];\r\n\t\tvar area = chart.chartArea;\r\n\t\tvar canvas = chart.canvas;\r\n\t\tvar i = 0;\r\n\t\tvar ilen = points.length;\r\n\t\tvar clip;\r\n\r\n\t\tif (me._showLine) {\r\n\t\t\tclip = meta.dataset._model.clip;\r\n\r\n\t\t\thelpers$1.canvas.clipArea(chart.ctx, {\r\n\t\t\t\tleft: clip.left === false ? 0 : area.left - clip.left,\r\n\t\t\t\tright: clip.right === false ? canvas.width : area.right + clip.right,\r\n\t\t\t\ttop: clip.top === false ? 0 : area.top - clip.top,\r\n\t\t\t\tbottom: clip.bottom === false ? canvas.height : area.bottom + clip.bottom\r\n\t\t\t});\r\n\r\n\t\t\tmeta.dataset.draw();\r\n\r\n\t\t\thelpers$1.canvas.unclipArea(chart.ctx);\r\n\t\t}\r\n\r\n\t\t// Draw the points\r\n\t\tfor (; i < ilen; ++i) {\r\n\t\t\tpoints[i].draw(area);\r\n\t\t}\r\n\t},\r\n\r\n\t/**\r\n\t * @protected\r\n\t */\r\n\tsetHoverStyle: function(point) {\r\n\t\tvar model = point._model;\r\n\t\tvar options = point._options;\r\n\t\tvar getHoverColor = helpers$1.getHoverColor;\r\n\r\n\t\tpoint.$previousStyle = {\r\n\t\t\tbackgroundColor: model.backgroundColor,\r\n\t\t\tborderColor: model.borderColor,\r\n\t\t\tborderWidth: model.borderWidth,\r\n\t\t\tradius: model.radius\r\n\t\t};\r\n\r\n\t\tmodel.backgroundColor = valueOrDefault$6(options.hoverBackgroundColor, getHoverColor(options.backgroundColor));\r\n\t\tmodel.borderColor = valueOrDefault$6(options.hoverBorderColor, getHoverColor(options.borderColor));\r\n\t\tmodel.borderWidth = valueOrDefault$6(options.hoverBorderWidth, options.borderWidth);\r\n\t\tmodel.radius = valueOrDefault$6(options.hoverRadius, options.radius);\r\n\t},\r\n});\n\nvar resolve$3 = helpers$1.options.resolve;\r\n\r\ncore_defaults._set('polarArea', {\r\n\tscale: {\r\n\t\ttype: 'radialLinear',\r\n\t\tangleLines: {\r\n\t\t\tdisplay: false\r\n\t\t},\r\n\t\tgridLines: {\r\n\t\t\tcircular: true\r\n\t\t},\r\n\t\tpointLabels: {\r\n\t\t\tdisplay: false\r\n\t\t},\r\n\t\tticks: {\r\n\t\t\tbeginAtZero: true\r\n\t\t}\r\n\t},\r\n\r\n\t// Boolean - Whether to animate the rotation of the chart\r\n\tanimation: {\r\n\t\tanimateRotate: true,\r\n\t\tanimateScale: true\r\n\t},\r\n\r\n\tstartAngle: -0.5 * Math.PI,\r\n\tlegendCallback: function(chart) {\r\n\t\tvar list = document.createElement('ul');\r\n\t\tvar data = chart.data;\r\n\t\tvar datasets = data.datasets;\r\n\t\tvar labels = data.labels;\r\n\t\tvar i, ilen, listItem, listItemSpan;\r\n\r\n\t\tlist.setAttribute('class', chart.id + '-legend');\r\n\t\tif (datasets.length) {\r\n\t\t\tfor (i = 0, ilen = datasets[0].data.length; i < ilen; ++i) {\r\n\t\t\t\tlistItem = list.appendChild(document.createElement('li'));\r\n\t\t\t\tlistItemSpan = listItem.appendChild(document.createElement('span'));\r\n\t\t\t\tlistItemSpan.style.backgroundColor = datasets[0].backgroundColor[i];\r\n\t\t\t\tif (labels[i]) {\r\n\t\t\t\t\tlistItem.appendChild(document.createTextNode(labels[i]));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn list.outerHTML;\r\n\t},\r\n\tlegend: {\r\n\t\tlabels: {\r\n\t\t\tgenerateLabels: function(chart) {\r\n\t\t\t\tvar data = chart.data;\r\n\t\t\t\tif (data.labels.length && data.datasets.length) {\r\n\t\t\t\t\treturn data.labels.map(function(label, i) {\r\n\t\t\t\t\t\tvar meta = chart.getDatasetMeta(0);\r\n\t\t\t\t\t\tvar style = meta.controller.getStyle(i);\r\n\r\n\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\ttext: label,\r\n\t\t\t\t\t\t\tfillStyle: style.backgroundColor,\r\n\t\t\t\t\t\t\tstrokeStyle: style.borderColor,\r\n\t\t\t\t\t\t\tlineWidth: style.borderWidth,\r\n\t\t\t\t\t\t\thidden: isNaN(data.datasets[0].data[i]) || meta.data[i].hidden,\r\n\r\n\t\t\t\t\t\t\t// Extra data used for toggling the correct item\r\n\t\t\t\t\t\t\tindex: i\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t\treturn [];\r\n\t\t\t}\r\n\t\t},\r\n\r\n\t\tonClick: function(e, legendItem) {\r\n\t\t\tvar index = legendItem.index;\r\n\t\t\tvar chart = this.chart;\r\n\t\t\tvar i, ilen, meta;\r\n\r\n\t\t\tfor (i = 0, ilen = (chart.data.datasets || []).length; i < ilen; ++i) {\r\n\t\t\t\tmeta = chart.getDatasetMeta(i);\r\n\t\t\t\tmeta.data[index].hidden = !meta.data[index].hidden;\r\n\t\t\t}\r\n\r\n\t\t\tchart.update();\r\n\t\t}\r\n\t},\r\n\r\n\t// Need to override these to give a nice default\r\n\ttooltips: {\r\n\t\tcallbacks: {\r\n\t\t\ttitle: function() {\r\n\t\t\t\treturn '';\r\n\t\t\t},\r\n\t\t\tlabel: function(item, data) {\r\n\t\t\t\treturn data.labels[item.index] + ': ' + item.yLabel;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\n\r\nvar controller_polarArea = core_datasetController.extend({\r\n\r\n\tdataElementType: elements.Arc,\r\n\r\n\tlinkScales: helpers$1.noop,\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_dataElementOptions: [\r\n\t\t'backgroundColor',\r\n\t\t'borderColor',\r\n\t\t'borderWidth',\r\n\t\t'borderAlign',\r\n\t\t'hoverBackgroundColor',\r\n\t\t'hoverBorderColor',\r\n\t\t'hoverBorderWidth',\r\n\t],\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_getIndexScaleId: function() {\r\n\t\treturn this.chart.scale.id;\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_getValueScaleId: function() {\r\n\t\treturn this.chart.scale.id;\r\n\t},\r\n\r\n\tupdate: function(reset) {\r\n\t\tvar me = this;\r\n\t\tvar dataset = me.getDataset();\r\n\t\tvar meta = me.getMeta();\r\n\t\tvar start = me.chart.options.startAngle || 0;\r\n\t\tvar starts = me._starts = [];\r\n\t\tvar angles = me._angles = [];\r\n\t\tvar arcs = meta.data;\r\n\t\tvar i, ilen, angle;\r\n\r\n\t\tme._updateRadius();\r\n\r\n\t\tmeta.count = me.countVisibleElements();\r\n\r\n\t\tfor (i = 0, ilen = dataset.data.length; i < ilen; i++) {\r\n\t\t\tstarts[i] = start;\r\n\t\t\tangle = me._computeAngle(i);\r\n\t\t\tangles[i] = angle;\r\n\t\t\tstart += angle;\r\n\t\t}\r\n\r\n\t\tfor (i = 0, ilen = arcs.length; i < ilen; ++i) {\r\n\t\t\tarcs[i]._options = me._resolveDataElementOptions(arcs[i], i);\r\n\t\t\tme.updateElement(arcs[i], i, reset);\r\n\t\t}\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_updateRadius: function() {\r\n\t\tvar me = this;\r\n\t\tvar chart = me.chart;\r\n\t\tvar chartArea = chart.chartArea;\r\n\t\tvar opts = chart.options;\r\n\t\tvar minSize = Math.min(chartArea.right - chartArea.left, chartArea.bottom - chartArea.top);\r\n\r\n\t\tchart.outerRadius = Math.max(minSize / 2, 0);\r\n\t\tchart.innerRadius = Math.max(opts.cutoutPercentage ? (chart.outerRadius / 100) * (opts.cutoutPercentage) : 1, 0);\r\n\t\tchart.radiusLength = (chart.outerRadius - chart.innerRadius) / chart.getVisibleDatasetCount();\r\n\r\n\t\tme.outerRadius = chart.outerRadius - (chart.radiusLength * me.index);\r\n\t\tme.innerRadius = me.outerRadius - chart.radiusLength;\r\n\t},\r\n\r\n\tupdateElement: function(arc, index, reset) {\r\n\t\tvar me = this;\r\n\t\tvar chart = me.chart;\r\n\t\tvar dataset = me.getDataset();\r\n\t\tvar opts = chart.options;\r\n\t\tvar animationOpts = opts.animation;\r\n\t\tvar scale = chart.scale;\r\n\t\tvar labels = chart.data.labels;\r\n\r\n\t\tvar centerX = scale.xCenter;\r\n\t\tvar centerY = scale.yCenter;\r\n\r\n\t\t// var negHalfPI = -0.5 * Math.PI;\r\n\t\tvar datasetStartAngle = opts.startAngle;\r\n\t\tvar distance = arc.hidden ? 0 : scale.getDistanceFromCenterForValue(dataset.data[index]);\r\n\t\tvar startAngle = me._starts[index];\r\n\t\tvar endAngle = startAngle + (arc.hidden ? 0 : me._angles[index]);\r\n\r\n\t\tvar resetRadius = animationOpts.animateScale ? 0 : scale.getDistanceFromCenterForValue(dataset.data[index]);\r\n\t\tvar options = arc._options || {};\r\n\r\n\t\thelpers$1.extend(arc, {\r\n\t\t\t// Utility\r\n\t\t\t_datasetIndex: me.index,\r\n\t\t\t_index: index,\r\n\t\t\t_scale: scale,\r\n\r\n\t\t\t// Desired view properties\r\n\t\t\t_model: {\r\n\t\t\t\tbackgroundColor: options.backgroundColor,\r\n\t\t\t\tborderColor: options.borderColor,\r\n\t\t\t\tborderWidth: options.borderWidth,\r\n\t\t\t\tborderAlign: options.borderAlign,\r\n\t\t\t\tx: centerX,\r\n\t\t\t\ty: centerY,\r\n\t\t\t\tinnerRadius: 0,\r\n\t\t\t\touterRadius: reset ? resetRadius : distance,\r\n\t\t\t\tstartAngle: reset && animationOpts.animateRotate ? datasetStartAngle : startAngle,\r\n\t\t\t\tendAngle: reset && animationOpts.animateRotate ? datasetStartAngle : endAngle,\r\n\t\t\t\tlabel: helpers$1.valueAtIndexOrDefault(labels, index, labels[index])\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tarc.pivot();\r\n\t},\r\n\r\n\tcountVisibleElements: function() {\r\n\t\tvar dataset = this.getDataset();\r\n\t\tvar meta = this.getMeta();\r\n\t\tvar count = 0;\r\n\r\n\t\thelpers$1.each(meta.data, function(element, index) {\r\n\t\t\tif (!isNaN(dataset.data[index]) && !element.hidden) {\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\treturn count;\r\n\t},\r\n\r\n\t/**\r\n\t * @protected\r\n\t */\r\n\tsetHoverStyle: function(arc) {\r\n\t\tvar model = arc._model;\r\n\t\tvar options = arc._options;\r\n\t\tvar getHoverColor = helpers$1.getHoverColor;\r\n\t\tvar valueOrDefault = helpers$1.valueOrDefault;\r\n\r\n\t\tarc.$previousStyle = {\r\n\t\t\tbackgroundColor: model.backgroundColor,\r\n\t\t\tborderColor: model.borderColor,\r\n\t\t\tborderWidth: model.borderWidth,\r\n\t\t};\r\n\r\n\t\tmodel.backgroundColor = valueOrDefault(options.hoverBackgroundColor, getHoverColor(options.backgroundColor));\r\n\t\tmodel.borderColor = valueOrDefault(options.hoverBorderColor, getHoverColor(options.borderColor));\r\n\t\tmodel.borderWidth = valueOrDefault(options.hoverBorderWidth, options.borderWidth);\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_computeAngle: function(index) {\r\n\t\tvar me = this;\r\n\t\tvar count = this.getMeta().count;\r\n\t\tvar dataset = me.getDataset();\r\n\t\tvar meta = me.getMeta();\r\n\r\n\t\tif (isNaN(dataset.data[index]) || meta.data[index].hidden) {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\r\n\t\t// Scriptable options\r\n\t\tvar context = {\r\n\t\t\tchart: me.chart,\r\n\t\t\tdataIndex: index,\r\n\t\t\tdataset: dataset,\r\n\t\t\tdatasetIndex: me.index\r\n\t\t};\r\n\r\n\t\treturn resolve$3([\r\n\t\t\tme.chart.options.elements.arc.angle,\r\n\t\t\t(2 * Math.PI) / count\r\n\t\t], context, index);\r\n\t}\r\n});\n\ncore_defaults._set('pie', helpers$1.clone(core_defaults.doughnut));\r\ncore_defaults._set('pie', {\r\n\tcutoutPercentage: 0\r\n});\r\n\r\n// Pie charts are Doughnut chart with different defaults\r\nvar controller_pie = controller_doughnut;\n\nvar valueOrDefault$7 = helpers$1.valueOrDefault;\r\n\r\ncore_defaults._set('radar', {\r\n\tspanGaps: false,\r\n\tscale: {\r\n\t\ttype: 'radialLinear'\r\n\t},\r\n\telements: {\r\n\t\tline: {\r\n\t\t\tfill: 'start',\r\n\t\t\ttension: 0 // no bezier in radar\r\n\t\t}\r\n\t}\r\n});\r\n\r\nvar controller_radar = core_datasetController.extend({\r\n\tdatasetElementType: elements.Line,\r\n\r\n\tdataElementType: elements.Point,\r\n\r\n\tlinkScales: helpers$1.noop,\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_datasetElementOptions: [\r\n\t\t'backgroundColor',\r\n\t\t'borderWidth',\r\n\t\t'borderColor',\r\n\t\t'borderCapStyle',\r\n\t\t'borderDash',\r\n\t\t'borderDashOffset',\r\n\t\t'borderJoinStyle',\r\n\t\t'fill'\r\n\t],\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_dataElementOptions: {\r\n\t\tbackgroundColor: 'pointBackgroundColor',\r\n\t\tborderColor: 'pointBorderColor',\r\n\t\tborderWidth: 'pointBorderWidth',\r\n\t\thitRadius: 'pointHitRadius',\r\n\t\thoverBackgroundColor: 'pointHoverBackgroundColor',\r\n\t\thoverBorderColor: 'pointHoverBorderColor',\r\n\t\thoverBorderWidth: 'pointHoverBorderWidth',\r\n\t\thoverRadius: 'pointHoverRadius',\r\n\t\tpointStyle: 'pointStyle',\r\n\t\tradius: 'pointRadius',\r\n\t\trotation: 'pointRotation'\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_getIndexScaleId: function() {\r\n\t\treturn this.chart.scale.id;\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_getValueScaleId: function() {\r\n\t\treturn this.chart.scale.id;\r\n\t},\r\n\r\n\tupdate: function(reset) {\r\n\t\tvar me = this;\r\n\t\tvar meta = me.getMeta();\r\n\t\tvar line = meta.dataset;\r\n\t\tvar points = meta.data || [];\r\n\t\tvar scale = me.chart.scale;\r\n\t\tvar config = me._config;\r\n\t\tvar i, ilen;\r\n\r\n\t\t// Compatibility: If the properties are defined with only the old name, use those values\r\n\t\tif (config.tension !== undefined && config.lineTension === undefined) {\r\n\t\t\tconfig.lineTension = config.tension;\r\n\t\t}\r\n\r\n\t\t// Utility\r\n\t\tline._scale = scale;\r\n\t\tline._datasetIndex = me.index;\r\n\t\t// Data\r\n\t\tline._children = points;\r\n\t\tline._loop = true;\r\n\t\t// Model\r\n\t\tline._model = me._resolveDatasetElementOptions(line);\r\n\r\n\t\tline.pivot();\r\n\r\n\t\t// Update Points\r\n\t\tfor (i = 0, ilen = points.length; i < ilen; ++i) {\r\n\t\t\tme.updateElement(points[i], i, reset);\r\n\t\t}\r\n\r\n\t\t// Update bezier control points\r\n\t\tme.updateBezierControlPoints();\r\n\r\n\t\t// Now pivot the point for animation\r\n\t\tfor (i = 0, ilen = points.length; i < ilen; ++i) {\r\n\t\t\tpoints[i].pivot();\r\n\t\t}\r\n\t},\r\n\r\n\tupdateElement: function(point, index, reset) {\r\n\t\tvar me = this;\r\n\t\tvar custom = point.custom || {};\r\n\t\tvar dataset = me.getDataset();\r\n\t\tvar scale = me.chart.scale;\r\n\t\tvar pointPosition = scale.getPointPositionForValue(index, dataset.data[index]);\r\n\t\tvar options = me._resolveDataElementOptions(point, index);\r\n\t\tvar lineModel = me.getMeta().dataset._model;\r\n\t\tvar x = reset ? scale.xCenter : pointPosition.x;\r\n\t\tvar y = reset ? scale.yCenter : pointPosition.y;\r\n\r\n\t\t// Utility\r\n\t\tpoint._scale = scale;\r\n\t\tpoint._options = options;\r\n\t\tpoint._datasetIndex = me.index;\r\n\t\tpoint._index = index;\r\n\r\n\t\t// Desired view properties\r\n\t\tpoint._model = {\r\n\t\t\tx: x, // value not used in dataset scale, but we want a consistent API between scales\r\n\t\t\ty: y,\r\n\t\t\tskip: custom.skip || isNaN(x) || isNaN(y),\r\n\t\t\t// Appearance\r\n\t\t\tradius: options.radius,\r\n\t\t\tpointStyle: options.pointStyle,\r\n\t\t\trotation: options.rotation,\r\n\t\t\tbackgroundColor: options.backgroundColor,\r\n\t\t\tborderColor: options.borderColor,\r\n\t\t\tborderWidth: options.borderWidth,\r\n\t\t\ttension: valueOrDefault$7(custom.tension, lineModel ? lineModel.tension : 0),\r\n\r\n\t\t\t// Tooltip\r\n\t\t\thitRadius: options.hitRadius\r\n\t\t};\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_resolveDatasetElementOptions: function() {\r\n\t\tvar me = this;\r\n\t\tvar config = me._config;\r\n\t\tvar options = me.chart.options;\r\n\t\tvar values = core_datasetController.prototype._resolveDatasetElementOptions.apply(me, arguments);\r\n\r\n\t\tvalues.spanGaps = valueOrDefault$7(config.spanGaps, options.spanGaps);\r\n\t\tvalues.tension = valueOrDefault$7(config.lineTension, options.elements.line.tension);\r\n\r\n\t\treturn values;\r\n\t},\r\n\r\n\tupdateBezierControlPoints: function() {\r\n\t\tvar me = this;\r\n\t\tvar meta = me.getMeta();\r\n\t\tvar area = me.chart.chartArea;\r\n\t\tvar points = meta.data || [];\r\n\t\tvar i, ilen, model, controlPoints;\r\n\r\n\t\t// Only consider points that are drawn in case the spanGaps option is used\r\n\t\tif (meta.dataset._model.spanGaps) {\r\n\t\t\tpoints = points.filter(function(pt) {\r\n\t\t\t\treturn !pt._model.skip;\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tfunction capControlPoint(pt, min, max) {\r\n\t\t\treturn Math.max(Math.min(pt, max), min);\r\n\t\t}\r\n\r\n\t\tfor (i = 0, ilen = points.length; i < ilen; ++i) {\r\n\t\t\tmodel = points[i]._model;\r\n\t\t\tcontrolPoints = helpers$1.splineCurve(\r\n\t\t\t\thelpers$1.previousItem(points, i, true)._model,\r\n\t\t\t\tmodel,\r\n\t\t\t\thelpers$1.nextItem(points, i, true)._model,\r\n\t\t\t\tmodel.tension\r\n\t\t\t);\r\n\r\n\t\t\t// Prevent the bezier going outside of the bounds of the graph\r\n\t\t\tmodel.controlPointPreviousX = capControlPoint(controlPoints.previous.x, area.left, area.right);\r\n\t\t\tmodel.controlPointPreviousY = capControlPoint(controlPoints.previous.y, area.top, area.bottom);\r\n\t\t\tmodel.controlPointNextX = capControlPoint(controlPoints.next.x, area.left, area.right);\r\n\t\t\tmodel.controlPointNextY = capControlPoint(controlPoints.next.y, area.top, area.bottom);\r\n\t\t}\r\n\t},\r\n\r\n\tsetHoverStyle: function(point) {\r\n\t\tvar model = point._model;\r\n\t\tvar options = point._options;\r\n\t\tvar getHoverColor = helpers$1.getHoverColor;\r\n\r\n\t\tpoint.$previousStyle = {\r\n\t\t\tbackgroundColor: model.backgroundColor,\r\n\t\t\tborderColor: model.borderColor,\r\n\t\t\tborderWidth: model.borderWidth,\r\n\t\t\tradius: model.radius\r\n\t\t};\r\n\r\n\t\tmodel.backgroundColor = valueOrDefault$7(options.hoverBackgroundColor, getHoverColor(options.backgroundColor));\r\n\t\tmodel.borderColor = valueOrDefault$7(options.hoverBorderColor, getHoverColor(options.borderColor));\r\n\t\tmodel.borderWidth = valueOrDefault$7(options.hoverBorderWidth, options.borderWidth);\r\n\t\tmodel.radius = valueOrDefault$7(options.hoverRadius, options.radius);\r\n\t}\r\n});\n\ncore_defaults._set('scatter', {\r\n\thover: {\r\n\t\tmode: 'single'\r\n\t},\r\n\r\n\tscales: {\r\n\t\txAxes: [{\r\n\t\t\tid: 'x-axis-1',    // need an ID so datasets can reference the scale\r\n\t\t\ttype: 'linear',    // scatter should not use a category axis\r\n\t\t\tposition: 'bottom'\r\n\t\t}],\r\n\t\tyAxes: [{\r\n\t\t\tid: 'y-axis-1',\r\n\t\t\ttype: 'linear',\r\n\t\t\tposition: 'left'\r\n\t\t}]\r\n\t},\r\n\r\n\ttooltips: {\r\n\t\tcallbacks: {\r\n\t\t\ttitle: function() {\r\n\t\t\t\treturn '';     // doesn't make sense for scatter since data are formatted as a point\r\n\t\t\t},\r\n\t\t\tlabel: function(item) {\r\n\t\t\t\treturn '(' + item.xLabel + ', ' + item.yLabel + ')';\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\n\r\ncore_defaults._set('global', {\r\n\tdatasets: {\r\n\t\tscatter: {\r\n\t\t\tshowLine: false\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Scatter charts use line controllers\r\nvar controller_scatter = controller_line;\n\n// NOTE export a map in which the key represents the controller type, not\r\n// the class, and so must be CamelCase in order to be correctly retrieved\r\n// by the controller in core.controller.js (`controllers[meta.type]`).\r\n\r\nvar controllers = {\r\n\tbar: controller_bar,\r\n\tbubble: controller_bubble,\r\n\tdoughnut: controller_doughnut,\r\n\thorizontalBar: controller_horizontalBar,\r\n\tline: controller_line,\r\n\tpolarArea: controller_polarArea,\r\n\tpie: controller_pie,\r\n\tradar: controller_radar,\r\n\tscatter: controller_scatter\r\n};\n\n/**\r\n * Helper function to get relative position for an event\r\n * @param {Event|IEvent} event - The event to get the position for\r\n * @param {Chart} chart - The chart\r\n * @returns {object} the event position\r\n */\r\nfunction getRelativePosition(e, chart) {\r\n\tif (e.native) {\r\n\t\treturn {\r\n\t\t\tx: e.x,\r\n\t\t\ty: e.y\r\n\t\t};\r\n\t}\r\n\r\n\treturn helpers$1.getRelativePosition(e, chart);\r\n}\r\n\r\n/**\r\n * Helper function to traverse all of the visible elements in the chart\r\n * @param {Chart} chart - the chart\r\n * @param {function} handler - the callback to execute for each visible item\r\n */\r\nfunction parseVisibleItems(chart, handler) {\r\n\tvar metasets = chart._getSortedVisibleDatasetMetas();\r\n\tvar metadata, i, j, ilen, jlen, element;\r\n\r\n\tfor (i = 0, ilen = metasets.length; i < ilen; ++i) {\r\n\t\tmetadata = metasets[i].data;\r\n\t\tfor (j = 0, jlen = metadata.length; j < jlen; ++j) {\r\n\t\t\telement = metadata[j];\r\n\t\t\tif (!element._view.skip) {\r\n\t\t\t\thandler(element);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n\r\n/**\r\n * Helper function to get the items that intersect the event position\r\n * @param {ChartElement[]} items - elements to filter\r\n * @param {object} position - the point to be nearest to\r\n * @return {ChartElement[]} the nearest items\r\n */\r\nfunction getIntersectItems(chart, position) {\r\n\tvar elements = [];\r\n\r\n\tparseVisibleItems(chart, function(element) {\r\n\t\tif (element.inRange(position.x, position.y)) {\r\n\t\t\telements.push(element);\r\n\t\t}\r\n\t});\r\n\r\n\treturn elements;\r\n}\r\n\r\n/**\r\n * Helper function to get the items nearest to the event position considering all visible items in teh chart\r\n * @param {Chart} chart - the chart to look at elements from\r\n * @param {object} position - the point to be nearest to\r\n * @param {boolean} intersect - if true, only consider items that intersect the position\r\n * @param {function} distanceMetric - function to provide the distance between points\r\n * @return {ChartElement[]} the nearest items\r\n */\r\nfunction getNearestItems(chart, position, intersect, distanceMetric) {\r\n\tvar minDistance = Number.POSITIVE_INFINITY;\r\n\tvar nearestItems = [];\r\n\r\n\tparseVisibleItems(chart, function(element) {\r\n\t\tif (intersect && !element.inRange(position.x, position.y)) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar center = element.getCenterPoint();\r\n\t\tvar distance = distanceMetric(position, center);\r\n\t\tif (distance < minDistance) {\r\n\t\t\tnearestItems = [element];\r\n\t\t\tminDistance = distance;\r\n\t\t} else if (distance === minDistance) {\r\n\t\t\t// Can have multiple items at the same distance in which case we sort by size\r\n\t\t\tnearestItems.push(element);\r\n\t\t}\r\n\t});\r\n\r\n\treturn nearestItems;\r\n}\r\n\r\n/**\r\n * Get a distance metric function for two points based on the\r\n * axis mode setting\r\n * @param {string} axis - the axis mode. x|y|xy\r\n */\r\nfunction getDistanceMetricForAxis(axis) {\r\n\tvar useX = axis.indexOf('x') !== -1;\r\n\tvar useY = axis.indexOf('y') !== -1;\r\n\r\n\treturn function(pt1, pt2) {\r\n\t\tvar deltaX = useX ? Math.abs(pt1.x - pt2.x) : 0;\r\n\t\tvar deltaY = useY ? Math.abs(pt1.y - pt2.y) : 0;\r\n\t\treturn Math.sqrt(Math.pow(deltaX, 2) + Math.pow(deltaY, 2));\r\n\t};\r\n}\r\n\r\nfunction indexMode(chart, e, options) {\r\n\tvar position = getRelativePosition(e, chart);\r\n\t// Default axis for index mode is 'x' to match old behaviour\r\n\toptions.axis = options.axis || 'x';\r\n\tvar distanceMetric = getDistanceMetricForAxis(options.axis);\r\n\tvar items = options.intersect ? getIntersectItems(chart, position) : getNearestItems(chart, position, false, distanceMetric);\r\n\tvar elements = [];\r\n\r\n\tif (!items.length) {\r\n\t\treturn [];\r\n\t}\r\n\r\n\tchart._getSortedVisibleDatasetMetas().forEach(function(meta) {\r\n\t\tvar element = meta.data[items[0]._index];\r\n\r\n\t\t// don't count items that are skipped (null data)\r\n\t\tif (element && !element._view.skip) {\r\n\t\t\telements.push(element);\r\n\t\t}\r\n\t});\r\n\r\n\treturn elements;\r\n}\r\n\r\n/**\r\n * @interface IInteractionOptions\r\n */\r\n/**\r\n * If true, only consider items that intersect the point\r\n * @name IInterfaceOptions#boolean\r\n * @type Boolean\r\n */\r\n\r\n/**\r\n * Contains interaction related functions\r\n * @namespace Chart.Interaction\r\n */\r\nvar core_interaction = {\r\n\t// Helper function for different modes\r\n\tmodes: {\r\n\t\tsingle: function(chart, e) {\r\n\t\t\tvar position = getRelativePosition(e, chart);\r\n\t\t\tvar elements = [];\r\n\r\n\t\t\tparseVisibleItems(chart, function(element) {\r\n\t\t\t\tif (element.inRange(position.x, position.y)) {\r\n\t\t\t\t\telements.push(element);\r\n\t\t\t\t\treturn elements;\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\treturn elements.slice(0, 1);\r\n\t\t},\r\n\r\n\t\t/**\r\n\t\t * @function Chart.Interaction.modes.label\r\n\t\t * @deprecated since version 2.4.0\r\n\t\t * @todo remove at version 3\r\n\t\t * @private\r\n\t\t */\r\n\t\tlabel: indexMode,\r\n\r\n\t\t/**\r\n\t\t * Returns items at the same index. If the options.intersect parameter is true, we only return items if we intersect something\r\n\t\t * If the options.intersect mode is false, we find the nearest item and return the items at the same index as that item\r\n\t\t * @function Chart.Interaction.modes.index\r\n\t\t * @since v2.4.0\r\n\t\t * @param {Chart} chart - the chart we are returning items from\r\n\t\t * @param {Event} e - the event we are find things at\r\n\t\t * @param {IInteractionOptions} options - options to use during interaction\r\n\t\t * @return {Chart.Element[]} Array of elements that are under the point. If none are found, an empty array is returned\r\n\t\t */\r\n\t\tindex: indexMode,\r\n\r\n\t\t/**\r\n\t\t * Returns items in the same dataset. If the options.intersect parameter is true, we only return items if we intersect something\r\n\t\t * If the options.intersect is false, we find the nearest item and return the items in that dataset\r\n\t\t * @function Chart.Interaction.modes.dataset\r\n\t\t * @param {Chart} chart - the chart we are returning items from\r\n\t\t * @param {Event} e - the event we are find things at\r\n\t\t * @param {IInteractionOptions} options - options to use during interaction\r\n\t\t * @return {Chart.Element[]} Array of elements that are under the point. If none are found, an empty array is returned\r\n\t\t */\r\n\t\tdataset: function(chart, e, options) {\r\n\t\t\tvar position = getRelativePosition(e, chart);\r\n\t\t\toptions.axis = options.axis || 'xy';\r\n\t\t\tvar distanceMetric = getDistanceMetricForAxis(options.axis);\r\n\t\t\tvar items = options.intersect ? getIntersectItems(chart, position) : getNearestItems(chart, position, false, distanceMetric);\r\n\r\n\t\t\tif (items.length > 0) {\r\n\t\t\t\titems = chart.getDatasetMeta(items[0]._datasetIndex).data;\r\n\t\t\t}\r\n\r\n\t\t\treturn items;\r\n\t\t},\r\n\r\n\t\t/**\r\n\t\t * @function Chart.Interaction.modes.x-axis\r\n\t\t * @deprecated since version 2.4.0. Use index mode and intersect == true\r\n\t\t * @todo remove at version 3\r\n\t\t * @private\r\n\t\t */\r\n\t\t'x-axis': function(chart, e) {\r\n\t\t\treturn indexMode(chart, e, {intersect: false});\r\n\t\t},\r\n\r\n\t\t/**\r\n\t\t * Point mode returns all elements that hit test based on the event position\r\n\t\t * of the event\r\n\t\t * @function Chart.Interaction.modes.intersect\r\n\t\t * @param {Chart} chart - the chart we are returning items from\r\n\t\t * @param {Event} e - the event we are find things at\r\n\t\t * @return {Chart.Element[]} Array of elements that are under the point. If none are found, an empty array is returned\r\n\t\t */\r\n\t\tpoint: function(chart, e) {\r\n\t\t\tvar position = getRelativePosition(e, chart);\r\n\t\t\treturn getIntersectItems(chart, position);\r\n\t\t},\r\n\r\n\t\t/**\r\n\t\t * nearest mode returns the element closest to the point\r\n\t\t * @function Chart.Interaction.modes.intersect\r\n\t\t * @param {Chart} chart - the chart we are returning items from\r\n\t\t * @param {Event} e - the event we are find things at\r\n\t\t * @param {IInteractionOptions} options - options to use\r\n\t\t * @return {Chart.Element[]} Array of elements that are under the point. If none are found, an empty array is returned\r\n\t\t */\r\n\t\tnearest: function(chart, e, options) {\r\n\t\t\tvar position = getRelativePosition(e, chart);\r\n\t\t\toptions.axis = options.axis || 'xy';\r\n\t\t\tvar distanceMetric = getDistanceMetricForAxis(options.axis);\r\n\t\t\treturn getNearestItems(chart, position, options.intersect, distanceMetric);\r\n\t\t},\r\n\r\n\t\t/**\r\n\t\t * x mode returns the elements that hit-test at the current x coordinate\r\n\t\t * @function Chart.Interaction.modes.x\r\n\t\t * @param {Chart} chart - the chart we are returning items from\r\n\t\t * @param {Event} e - the event we are find things at\r\n\t\t * @param {IInteractionOptions} options - options to use\r\n\t\t * @return {Chart.Element[]} Array of elements that are under the point. If none are found, an empty array is returned\r\n\t\t */\r\n\t\tx: function(chart, e, options) {\r\n\t\t\tvar position = getRelativePosition(e, chart);\r\n\t\t\tvar items = [];\r\n\t\t\tvar intersectsItem = false;\r\n\r\n\t\t\tparseVisibleItems(chart, function(element) {\r\n\t\t\t\tif (element.inXRange(position.x)) {\r\n\t\t\t\t\titems.push(element);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (element.inRange(position.x, position.y)) {\r\n\t\t\t\t\tintersectsItem = true;\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\t// If we want to trigger on an intersect and we don't have any items\r\n\t\t\t// that intersect the position, return nothing\r\n\t\t\tif (options.intersect && !intersectsItem) {\r\n\t\t\t\titems = [];\r\n\t\t\t}\r\n\t\t\treturn items;\r\n\t\t},\r\n\r\n\t\t/**\r\n\t\t * y mode returns the elements that hit-test at the current y coordinate\r\n\t\t * @function Chart.Interaction.modes.y\r\n\t\t * @param {Chart} chart - the chart we are returning items from\r\n\t\t * @param {Event} e - the event we are find things at\r\n\t\t * @param {IInteractionOptions} options - options to use\r\n\t\t * @return {Chart.Element[]} Array of elements that are under the point. If none are found, an empty array is returned\r\n\t\t */\r\n\t\ty: function(chart, e, options) {\r\n\t\t\tvar position = getRelativePosition(e, chart);\r\n\t\t\tvar items = [];\r\n\t\t\tvar intersectsItem = false;\r\n\r\n\t\t\tparseVisibleItems(chart, function(element) {\r\n\t\t\t\tif (element.inYRange(position.y)) {\r\n\t\t\t\t\titems.push(element);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (element.inRange(position.x, position.y)) {\r\n\t\t\t\t\tintersectsItem = true;\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\t// If we want to trigger on an intersect and we don't have any items\r\n\t\t\t// that intersect the position, return nothing\r\n\t\t\tif (options.intersect && !intersectsItem) {\r\n\t\t\t\titems = [];\r\n\t\t\t}\r\n\t\t\treturn items;\r\n\t\t}\r\n\t}\r\n};\n\nvar extend = helpers$1.extend;\r\n\r\nfunction filterByPosition(array, position) {\r\n\treturn helpers$1.where(array, function(v) {\r\n\t\treturn v.pos === position;\r\n\t});\r\n}\r\n\r\nfunction sortByWeight(array, reverse) {\r\n\treturn array.sort(function(a, b) {\r\n\t\tvar v0 = reverse ? b : a;\r\n\t\tvar v1 = reverse ? a : b;\r\n\t\treturn v0.weight === v1.weight ?\r\n\t\t\tv0.index - v1.index :\r\n\t\t\tv0.weight - v1.weight;\r\n\t});\r\n}\r\n\r\nfunction wrapBoxes(boxes) {\r\n\tvar layoutBoxes = [];\r\n\tvar i, ilen, box;\r\n\r\n\tfor (i = 0, ilen = (boxes || []).length; i < ilen; ++i) {\r\n\t\tbox = boxes[i];\r\n\t\tlayoutBoxes.push({\r\n\t\t\tindex: i,\r\n\t\t\tbox: box,\r\n\t\t\tpos: box.position,\r\n\t\t\thorizontal: box.isHorizontal(),\r\n\t\t\tweight: box.weight\r\n\t\t});\r\n\t}\r\n\treturn layoutBoxes;\r\n}\r\n\r\nfunction setLayoutDims(layouts, params) {\r\n\tvar i, ilen, layout;\r\n\tfor (i = 0, ilen = layouts.length; i < ilen; ++i) {\r\n\t\tlayout = layouts[i];\r\n\t\t// store width used instead of chartArea.w in fitBoxes\r\n\t\tlayout.width = layout.horizontal\r\n\t\t\t? layout.box.fullWidth && params.availableWidth\r\n\t\t\t: params.vBoxMaxWidth;\r\n\t\t// store height used instead of chartArea.h in fitBoxes\r\n\t\tlayout.height = layout.horizontal && params.hBoxMaxHeight;\r\n\t}\r\n}\r\n\r\nfunction buildLayoutBoxes(boxes) {\r\n\tvar layoutBoxes = wrapBoxes(boxes);\r\n\tvar left = sortByWeight(filterByPosition(layoutBoxes, 'left'), true);\r\n\tvar right = sortByWeight(filterByPosition(layoutBoxes, 'right'));\r\n\tvar top = sortByWeight(filterByPosition(layoutBoxes, 'top'), true);\r\n\tvar bottom = sortByWeight(filterByPosition(layoutBoxes, 'bottom'));\r\n\r\n\treturn {\r\n\t\tleftAndTop: left.concat(top),\r\n\t\trightAndBottom: right.concat(bottom),\r\n\t\tchartArea: filterByPosition(layoutBoxes, 'chartArea'),\r\n\t\tvertical: left.concat(right),\r\n\t\thorizontal: top.concat(bottom)\r\n\t};\r\n}\r\n\r\nfunction getCombinedMax(maxPadding, chartArea, a, b) {\r\n\treturn Math.max(maxPadding[a], chartArea[a]) + Math.max(maxPadding[b], chartArea[b]);\r\n}\r\n\r\nfunction updateDims(chartArea, params, layout) {\r\n\tvar box = layout.box;\r\n\tvar maxPadding = chartArea.maxPadding;\r\n\tvar newWidth, newHeight;\r\n\r\n\tif (layout.size) {\r\n\t\t// this layout was already counted for, lets first reduce old size\r\n\t\tchartArea[layout.pos] -= layout.size;\r\n\t}\r\n\tlayout.size = layout.horizontal ? box.height : box.width;\r\n\tchartArea[layout.pos] += layout.size;\r\n\r\n\tif (box.getPadding) {\r\n\t\tvar boxPadding = box.getPadding();\r\n\t\tmaxPadding.top = Math.max(maxPadding.top, boxPadding.top);\r\n\t\tmaxPadding.left = Math.max(maxPadding.left, boxPadding.left);\r\n\t\tmaxPadding.bottom = Math.max(maxPadding.bottom, boxPadding.bottom);\r\n\t\tmaxPadding.right = Math.max(maxPadding.right, boxPadding.right);\r\n\t}\r\n\r\n\tnewWidth = params.outerWidth - getCombinedMax(maxPadding, chartArea, 'left', 'right');\r\n\tnewHeight = params.outerHeight - getCombinedMax(maxPadding, chartArea, 'top', 'bottom');\r\n\r\n\tif (newWidth !== chartArea.w || newHeight !== chartArea.h) {\r\n\t\tchartArea.w = newWidth;\r\n\t\tchartArea.h = newHeight;\r\n\r\n\t\t// return true if chart area changed in layout's direction\r\n\t\tvar sizes = layout.horizontal ? [newWidth, chartArea.w] : [newHeight, chartArea.h];\r\n\t\treturn sizes[0] !== sizes[1] && (!isNaN(sizes[0]) || !isNaN(sizes[1]));\r\n\t}\r\n}\r\n\r\nfunction handleMaxPadding(chartArea) {\r\n\tvar maxPadding = chartArea.maxPadding;\r\n\r\n\tfunction updatePos(pos) {\r\n\t\tvar change = Math.max(maxPadding[pos] - chartArea[pos], 0);\r\n\t\tchartArea[pos] += change;\r\n\t\treturn change;\r\n\t}\r\n\tchartArea.y += updatePos('top');\r\n\tchartArea.x += updatePos('left');\r\n\tupdatePos('right');\r\n\tupdatePos('bottom');\r\n}\r\n\r\nfunction getMargins(horizontal, chartArea) {\r\n\tvar maxPadding = chartArea.maxPadding;\r\n\r\n\tfunction marginForPositions(positions) {\r\n\t\tvar margin = {left: 0, top: 0, right: 0, bottom: 0};\r\n\t\tpositions.forEach(function(pos) {\r\n\t\t\tmargin[pos] = Math.max(chartArea[pos], maxPadding[pos]);\r\n\t\t});\r\n\t\treturn margin;\r\n\t}\r\n\r\n\treturn horizontal\r\n\t\t? marginForPositions(['left', 'right'])\r\n\t\t: marginForPositions(['top', 'bottom']);\r\n}\r\n\r\nfunction fitBoxes(boxes, chartArea, params) {\r\n\tvar refitBoxes = [];\r\n\tvar i, ilen, layout, box, refit, changed;\r\n\r\n\tfor (i = 0, ilen = boxes.length; i < ilen; ++i) {\r\n\t\tlayout = boxes[i];\r\n\t\tbox = layout.box;\r\n\r\n\t\tbox.update(\r\n\t\t\tlayout.width || chartArea.w,\r\n\t\t\tlayout.height || chartArea.h,\r\n\t\t\tgetMargins(layout.horizontal, chartArea)\r\n\t\t);\r\n\t\tif (updateDims(chartArea, params, layout)) {\r\n\t\t\tchanged = true;\r\n\t\t\tif (refitBoxes.length) {\r\n\t\t\t\t// Dimensions changed and there were non full width boxes before this\r\n\t\t\t\t// -> we have to refit those\r\n\t\t\t\trefit = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (!box.fullWidth) { // fullWidth boxes don't need to be re-fitted in any case\r\n\t\t\trefitBoxes.push(layout);\r\n\t\t}\r\n\t}\r\n\r\n\treturn refit ? fitBoxes(refitBoxes, chartArea, params) || changed : changed;\r\n}\r\n\r\nfunction placeBoxes(boxes, chartArea, params) {\r\n\tvar userPadding = params.padding;\r\n\tvar x = chartArea.x;\r\n\tvar y = chartArea.y;\r\n\tvar i, ilen, layout, box;\r\n\r\n\tfor (i = 0, ilen = boxes.length; i < ilen; ++i) {\r\n\t\tlayout = boxes[i];\r\n\t\tbox = layout.box;\r\n\t\tif (layout.horizontal) {\r\n\t\t\tbox.left = box.fullWidth ? userPadding.left : chartArea.left;\r\n\t\t\tbox.right = box.fullWidth ? params.outerWidth - userPadding.right : chartArea.left + chartArea.w;\r\n\t\t\tbox.top = y;\r\n\t\t\tbox.bottom = y + box.height;\r\n\t\t\tbox.width = box.right - box.left;\r\n\t\t\ty = box.bottom;\r\n\t\t} else {\r\n\t\t\tbox.left = x;\r\n\t\t\tbox.right = x + box.width;\r\n\t\t\tbox.top = chartArea.top;\r\n\t\t\tbox.bottom = chartArea.top + chartArea.h;\r\n\t\t\tbox.height = box.bottom - box.top;\r\n\t\t\tx = box.right;\r\n\t\t}\r\n\t}\r\n\r\n\tchartArea.x = x;\r\n\tchartArea.y = y;\r\n}\r\n\r\ncore_defaults._set('global', {\r\n\tlayout: {\r\n\t\tpadding: {\r\n\t\t\ttop: 0,\r\n\t\t\tright: 0,\r\n\t\t\tbottom: 0,\r\n\t\t\tleft: 0\r\n\t\t}\r\n\t}\r\n});\r\n\r\n/**\r\n * @interface ILayoutItem\r\n * @prop {string} position - The position of the item in the chart layout. Possible values are\r\n * 'left', 'top', 'right', 'bottom', and 'chartArea'\r\n * @prop {number} weight - The weight used to sort the item. Higher weights are further away from the chart area\r\n * @prop {boolean} fullWidth - if true, and the item is horizontal, then push vertical boxes down\r\n * @prop {function} isHorizontal - returns true if the layout item is horizontal (ie. top or bottom)\r\n * @prop {function} update - Takes two parameters: width and height. Returns size of item\r\n * @prop {function} getPadding -  Returns an object with padding on the edges\r\n * @prop {number} width - Width of item. Must be valid after update()\r\n * @prop {number} height - Height of item. Must be valid after update()\r\n * @prop {number} left - Left edge of the item. Set by layout system and cannot be used in update\r\n * @prop {number} top - Top edge of the item. Set by layout system and cannot be used in update\r\n * @prop {number} right - Right edge of the item. Set by layout system and cannot be used in update\r\n * @prop {number} bottom - Bottom edge of the item. Set by layout system and cannot be used in update\r\n */\r\n\r\n// The layout service is very self explanatory.  It's responsible for the layout within a chart.\r\n// Scales, Legends and Plugins all rely on the layout service and can easily register to be placed anywhere they need\r\n// It is this service's responsibility of carrying out that layout.\r\nvar core_layouts = {\r\n\tdefaults: {},\r\n\r\n\t/**\r\n\t * Register a box to a chart.\r\n\t * A box is simply a reference to an object that requires layout. eg. Scales, Legend, Title.\r\n\t * @param {Chart} chart - the chart to use\r\n\t * @param {ILayoutItem} item - the item to add to be layed out\r\n\t */\r\n\taddBox: function(chart, item) {\r\n\t\tif (!chart.boxes) {\r\n\t\t\tchart.boxes = [];\r\n\t\t}\r\n\r\n\t\t// initialize item with default values\r\n\t\titem.fullWidth = item.fullWidth || false;\r\n\t\titem.position = item.position || 'top';\r\n\t\titem.weight = item.weight || 0;\r\n\t\titem._layers = item._layers || function() {\r\n\t\t\treturn [{\r\n\t\t\t\tz: 0,\r\n\t\t\t\tdraw: function() {\r\n\t\t\t\t\titem.draw.apply(item, arguments);\r\n\t\t\t\t}\r\n\t\t\t}];\r\n\t\t};\r\n\r\n\t\tchart.boxes.push(item);\r\n\t},\r\n\r\n\t/**\r\n\t * Remove a layoutItem from a chart\r\n\t * @param {Chart} chart - the chart to remove the box from\r\n\t * @param {ILayoutItem} layoutItem - the item to remove from the layout\r\n\t */\r\n\tremoveBox: function(chart, layoutItem) {\r\n\t\tvar index = chart.boxes ? chart.boxes.indexOf(layoutItem) : -1;\r\n\t\tif (index !== -1) {\r\n\t\t\tchart.boxes.splice(index, 1);\r\n\t\t}\r\n\t},\r\n\r\n\t/**\r\n\t * Sets (or updates) options on the given `item`.\r\n\t * @param {Chart} chart - the chart in which the item lives (or will be added to)\r\n\t * @param {ILayoutItem} item - the item to configure with the given options\r\n\t * @param {object} options - the new item options.\r\n\t */\r\n\tconfigure: function(chart, item, options) {\r\n\t\tvar props = ['fullWidth', 'position', 'weight'];\r\n\t\tvar ilen = props.length;\r\n\t\tvar i = 0;\r\n\t\tvar prop;\r\n\r\n\t\tfor (; i < ilen; ++i) {\r\n\t\t\tprop = props[i];\r\n\t\t\tif (options.hasOwnProperty(prop)) {\r\n\t\t\t\titem[prop] = options[prop];\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\r\n\t/**\r\n\t * Fits boxes of the given chart into the given size by having each box measure itself\r\n\t * then running a fitting algorithm\r\n\t * @param {Chart} chart - the chart\r\n\t * @param {number} width - the width to fit into\r\n\t * @param {number} height - the height to fit into\r\n\t */\r\n\tupdate: function(chart, width, height) {\r\n\t\tif (!chart) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar layoutOptions = chart.options.layout || {};\r\n\t\tvar padding = helpers$1.options.toPadding(layoutOptions.padding);\r\n\r\n\t\tvar availableWidth = width - padding.width;\r\n\t\tvar availableHeight = height - padding.height;\r\n\t\tvar boxes = buildLayoutBoxes(chart.boxes);\r\n\t\tvar verticalBoxes = boxes.vertical;\r\n\t\tvar horizontalBoxes = boxes.horizontal;\r\n\r\n\t\t// Essentially we now have any number of boxes on each of the 4 sides.\r\n\t\t// Our canvas looks like the following.\r\n\t\t// The areas L1 and L2 are the left axes. R1 is the right axis, T1 is the top axis and\r\n\t\t// B1 is the bottom axis\r\n\t\t// There are also 4 quadrant-like locations (left to right instead of clockwise) reserved for chart overlays\r\n\t\t// These locations are single-box locations only, when trying to register a chartArea location that is already taken,\r\n\t\t// an error will be thrown.\r\n\t\t//\r\n\t\t// |----------------------------------------------------|\r\n\t\t// |                  T1 (Full Width)                   |\r\n\t\t// |----------------------------------------------------|\r\n\t\t// |    |    |                 T2                  |    |\r\n\t\t// |    |----|-------------------------------------|----|\r\n\t\t// |    |    | C1 |                           | C2 |    |\r\n\t\t// |    |    |----|                           |----|    |\r\n\t\t// |    |    |                                     |    |\r\n\t\t// | L1 | L2 |           ChartArea (C0)            | R1 |\r\n\t\t// |    |    |                                     |    |\r\n\t\t// |    |    |----|                           |----|    |\r\n\t\t// |    |    | C3 |                           | C4 |    |\r\n\t\t// |    |----|-------------------------------------|----|\r\n\t\t// |    |    |                 B1                  |    |\r\n\t\t// |----------------------------------------------------|\r\n\t\t// |                  B2 (Full Width)                   |\r\n\t\t// |----------------------------------------------------|\r\n\t\t//\r\n\r\n\t\tvar params = Object.freeze({\r\n\t\t\touterWidth: width,\r\n\t\t\touterHeight: height,\r\n\t\t\tpadding: padding,\r\n\t\t\tavailableWidth: availableWidth,\r\n\t\t\tvBoxMaxWidth: availableWidth / 2 / verticalBoxes.length,\r\n\t\t\thBoxMaxHeight: availableHeight / 2\r\n\t\t});\r\n\t\tvar chartArea = extend({\r\n\t\t\tmaxPadding: extend({}, padding),\r\n\t\t\tw: availableWidth,\r\n\t\t\th: availableHeight,\r\n\t\t\tx: padding.left,\r\n\t\t\ty: padding.top\r\n\t\t}, padding);\r\n\r\n\t\tsetLayoutDims(verticalBoxes.concat(horizontalBoxes), params);\r\n\r\n\t\t// First fit vertical boxes\r\n\t\tfitBoxes(verticalBoxes, chartArea, params);\r\n\r\n\t\t// Then fit horizontal boxes\r\n\t\tif (fitBoxes(horizontalBoxes, chartArea, params)) {\r\n\t\t\t// if the area changed, re-fit vertical boxes\r\n\t\t\tfitBoxes(verticalBoxes, chartArea, params);\r\n\t\t}\r\n\r\n\t\thandleMaxPadding(chartArea);\r\n\r\n\t\t// Finally place the boxes to correct coordinates\r\n\t\tplaceBoxes(boxes.leftAndTop, chartArea, params);\r\n\r\n\t\t// Move to opposite side of chart\r\n\t\tchartArea.x += chartArea.w;\r\n\t\tchartArea.y += chartArea.h;\r\n\r\n\t\tplaceBoxes(boxes.rightAndBottom, chartArea, params);\r\n\r\n\t\tchart.chartArea = {\r\n\t\t\tleft: chartArea.left,\r\n\t\t\ttop: chartArea.top,\r\n\t\t\tright: chartArea.left + chartArea.w,\r\n\t\t\tbottom: chartArea.top + chartArea.h\r\n\t\t};\r\n\r\n\t\t// Finally update boxes in chartArea (radial scale for example)\r\n\t\thelpers$1.each(boxes.chartArea, function(layout) {\r\n\t\t\tvar box = layout.box;\r\n\t\t\textend(box, chart.chartArea);\r\n\t\t\tbox.update(chartArea.w, chartArea.h);\r\n\t\t});\r\n\t}\r\n};\n\n/**\r\n * Platform fallback implementation (minimal).\r\n * @see https://github.com/chartjs/Chart.js/pull/4591#issuecomment-319575939\r\n */\r\n\r\nvar platform_basic = {\r\n\tacquireContext: function(item) {\r\n\t\tif (item && item.canvas) {\r\n\t\t\t// Support for any object associated to a canvas (including a context2d)\r\n\t\t\titem = item.canvas;\r\n\t\t}\r\n\r\n\t\treturn item && item.getContext('2d') || null;\r\n\t}\r\n};\n\nvar platform_dom = \"/*\\r\\n * DOM element rendering detection\\r\\n * https://davidwalsh.name/detect-node-insertion\\r\\n */\\r\\n@keyframes chartjs-render-animation {\\r\\n\\tfrom { opacity: 0.99; }\\r\\n\\tto { opacity: 1; }\\r\\n}\\r\\n\\r\\n.chartjs-render-monitor {\\r\\n\\tanimation: chartjs-render-animation 0.001s;\\r\\n}\\r\\n\\r\\n/*\\r\\n * DOM element resizing detection\\r\\n * https://github.com/marcj/css-element-queries\\r\\n */\\r\\n.chartjs-size-monitor,\\r\\n.chartjs-size-monitor-expand,\\r\\n.chartjs-size-monitor-shrink {\\r\\n\\tposition: absolute;\\r\\n\\tdirection: ltr;\\r\\n\\tleft: 0;\\r\\n\\ttop: 0;\\r\\n\\tright: 0;\\r\\n\\tbottom: 0;\\r\\n\\toverflow: hidden;\\r\\n\\tpointer-events: none;\\r\\n\\tvisibility: hidden;\\r\\n\\tz-index: -1;\\r\\n}\\r\\n\\r\\n.chartjs-size-monitor-expand > div {\\r\\n\\tposition: absolute;\\r\\n\\twidth: 1000000px;\\r\\n\\theight: 1000000px;\\r\\n\\tleft: 0;\\r\\n\\ttop: 0;\\r\\n}\\r\\n\\r\\n.chartjs-size-monitor-shrink > div {\\r\\n\\tposition: absolute;\\r\\n\\twidth: 200%;\\r\\n\\theight: 200%;\\r\\n\\tleft: 0;\\r\\n\\ttop: 0;\\r\\n}\\r\\n\";\n\nvar platform_dom$1 = /*#__PURE__*/Object.freeze({\n__proto__: null,\n'default': platform_dom\n});\n\nvar stylesheet = getCjsExportFromNamespace(platform_dom$1);\n\nvar EXPANDO_KEY = '$chartjs';\r\nvar CSS_PREFIX = 'chartjs-';\r\nvar CSS_SIZE_MONITOR = CSS_PREFIX + 'size-monitor';\r\nvar CSS_RENDER_MONITOR = CSS_PREFIX + 'render-monitor';\r\nvar CSS_RENDER_ANIMATION = CSS_PREFIX + 'render-animation';\r\nvar ANIMATION_START_EVENTS = ['animationstart', 'webkitAnimationStart'];\r\n\r\n/**\r\n * DOM event types -> Chart.js event types.\r\n * Note: only events with different types are mapped.\r\n * @see https://developer.mozilla.org/en-US/docs/Web/Events\r\n */\r\nvar EVENT_TYPES = {\r\n\ttouchstart: 'mousedown',\r\n\ttouchmove: 'mousemove',\r\n\ttouchend: 'mouseup',\r\n\tpointerenter: 'mouseenter',\r\n\tpointerdown: 'mousedown',\r\n\tpointermove: 'mousemove',\r\n\tpointerup: 'mouseup',\r\n\tpointerleave: 'mouseout',\r\n\tpointerout: 'mouseout'\r\n};\r\n\r\n/**\r\n * The \"used\" size is the final value of a dimension property after all calculations have\r\n * been performed. This method uses the computed style of `element` but returns undefined\r\n * if the computed style is not expressed in pixels. That can happen in some cases where\r\n * `element` has a size relative to its parent and this last one is not yet displayed,\r\n * for example because of `display: none` on a parent node.\r\n * @see https://developer.mozilla.org/en-US/docs/Web/CSS/used_value\r\n * @returns {number} Size in pixels or undefined if unknown.\r\n */\r\nfunction readUsedSize(element, property) {\r\n\tvar value = helpers$1.getStyle(element, property);\r\n\tvar matches = value && value.match(/^(\\d+)(\\.\\d+)?px$/);\r\n\treturn matches ? Number(matches[1]) : undefined;\r\n}\r\n\r\n/**\r\n * Initializes the canvas style and render size without modifying the canvas display size,\r\n * since responsiveness is handled by the controller.resize() method. The config is used\r\n * to determine the aspect ratio to apply in case no explicit height has been specified.\r\n */\r\nfunction initCanvas(canvas, config) {\r\n\tvar style = canvas.style;\r\n\r\n\t// NOTE(SB) canvas.getAttribute('width') !== canvas.width: in the first case it\r\n\t// returns null or '' if no explicit value has been set to the canvas attribute.\r\n\tvar renderHeight = canvas.getAttribute('height');\r\n\tvar renderWidth = canvas.getAttribute('width');\r\n\r\n\t// Chart.js modifies some canvas values that we want to restore on destroy\r\n\tcanvas[EXPANDO_KEY] = {\r\n\t\tinitial: {\r\n\t\t\theight: renderHeight,\r\n\t\t\twidth: renderWidth,\r\n\t\t\tstyle: {\r\n\t\t\t\tdisplay: style.display,\r\n\t\t\t\theight: style.height,\r\n\t\t\t\twidth: style.width\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\r\n\t// Force canvas to display as block to avoid extra space caused by inline\r\n\t// elements, which would interfere with the responsive resize process.\r\n\t// https://github.com/chartjs/Chart.js/issues/2538\r\n\tstyle.display = style.display || 'block';\r\n\r\n\tif (renderWidth === null || renderWidth === '') {\r\n\t\tvar displayWidth = readUsedSize(canvas, 'width');\r\n\t\tif (displayWidth !== undefined) {\r\n\t\t\tcanvas.width = displayWidth;\r\n\t\t}\r\n\t}\r\n\r\n\tif (renderHeight === null || renderHeight === '') {\r\n\t\tif (canvas.style.height === '') {\r\n\t\t\t// If no explicit render height and style height, let's apply the aspect ratio,\r\n\t\t\t// which one can be specified by the user but also by charts as default option\r\n\t\t\t// (i.e. options.aspectRatio). If not specified, use canvas aspect ratio of 2.\r\n\t\t\tcanvas.height = canvas.width / (config.options.aspectRatio || 2);\r\n\t\t} else {\r\n\t\t\tvar displayHeight = readUsedSize(canvas, 'height');\r\n\t\t\tif (displayWidth !== undefined) {\r\n\t\t\t\tcanvas.height = displayHeight;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\treturn canvas;\r\n}\r\n\r\n/**\r\n * Detects support for options object argument in addEventListener.\r\n * https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#Safely_detecting_option_support\r\n * @private\r\n */\r\nvar supportsEventListenerOptions = (function() {\r\n\tvar supports = false;\r\n\ttry {\r\n\t\tvar options = Object.defineProperty({}, 'passive', {\r\n\t\t\t// eslint-disable-next-line getter-return\r\n\t\t\tget: function() {\r\n\t\t\t\tsupports = true;\r\n\t\t\t}\r\n\t\t});\r\n\t\twindow.addEventListener('e', null, options);\r\n\t} catch (e) {\r\n\t\t// continue regardless of error\r\n\t}\r\n\treturn supports;\r\n}());\r\n\r\n// Default passive to true as expected by Chrome for 'touchstart' and 'touchend' events.\r\n// https://github.com/chartjs/Chart.js/issues/4287\r\nvar eventListenerOptions = supportsEventListenerOptions ? {passive: true} : false;\r\n\r\nfunction addListener(node, type, listener) {\r\n\tnode.addEventListener(type, listener, eventListenerOptions);\r\n}\r\n\r\nfunction removeListener(node, type, listener) {\r\n\tnode.removeEventListener(type, listener, eventListenerOptions);\r\n}\r\n\r\nfunction createEvent(type, chart, x, y, nativeEvent) {\r\n\treturn {\r\n\t\ttype: type,\r\n\t\tchart: chart,\r\n\t\tnative: nativeEvent || null,\r\n\t\tx: x !== undefined ? x : null,\r\n\t\ty: y !== undefined ? y : null,\r\n\t};\r\n}\r\n\r\nfunction fromNativeEvent(event, chart) {\r\n\tvar type = EVENT_TYPES[event.type] || event.type;\r\n\tvar pos = helpers$1.getRelativePosition(event, chart);\r\n\treturn createEvent(type, chart, pos.x, pos.y, event);\r\n}\r\n\r\nfunction throttled(fn, thisArg) {\r\n\tvar ticking = false;\r\n\tvar args = [];\r\n\r\n\treturn function() {\r\n\t\targs = Array.prototype.slice.call(arguments);\r\n\t\tthisArg = thisArg || this;\r\n\r\n\t\tif (!ticking) {\r\n\t\t\tticking = true;\r\n\t\t\thelpers$1.requestAnimFrame.call(window, function() {\r\n\t\t\t\tticking = false;\r\n\t\t\t\tfn.apply(thisArg, args);\r\n\t\t\t});\r\n\t\t}\r\n\t};\r\n}\r\n\r\nfunction createDiv(cls) {\r\n\tvar el = document.createElement('div');\r\n\tel.className = cls || '';\r\n\treturn el;\r\n}\r\n\r\n// Implementation based on https://github.com/marcj/css-element-queries\r\nfunction createResizer(handler) {\r\n\tvar maxSize = 1000000;\r\n\r\n\t// NOTE(SB) Don't use innerHTML because it could be considered unsafe.\r\n\t// https://github.com/chartjs/Chart.js/issues/5902\r\n\tvar resizer = createDiv(CSS_SIZE_MONITOR);\r\n\tvar expand = createDiv(CSS_SIZE_MONITOR + '-expand');\r\n\tvar shrink = createDiv(CSS_SIZE_MONITOR + '-shrink');\r\n\r\n\texpand.appendChild(createDiv());\r\n\tshrink.appendChild(createDiv());\r\n\r\n\tresizer.appendChild(expand);\r\n\tresizer.appendChild(shrink);\r\n\tresizer._reset = function() {\r\n\t\texpand.scrollLeft = maxSize;\r\n\t\texpand.scrollTop = maxSize;\r\n\t\tshrink.scrollLeft = maxSize;\r\n\t\tshrink.scrollTop = maxSize;\r\n\t};\r\n\r\n\tvar onScroll = function() {\r\n\t\tresizer._reset();\r\n\t\thandler();\r\n\t};\r\n\r\n\taddListener(expand, 'scroll', onScroll.bind(expand, 'expand'));\r\n\taddListener(shrink, 'scroll', onScroll.bind(shrink, 'shrink'));\r\n\r\n\treturn resizer;\r\n}\r\n\r\n// https://davidwalsh.name/detect-node-insertion\r\nfunction watchForRender(node, handler) {\r\n\tvar expando = node[EXPANDO_KEY] || (node[EXPANDO_KEY] = {});\r\n\tvar proxy = expando.renderProxy = function(e) {\r\n\t\tif (e.animationName === CSS_RENDER_ANIMATION) {\r\n\t\t\thandler();\r\n\t\t}\r\n\t};\r\n\r\n\thelpers$1.each(ANIMATION_START_EVENTS, function(type) {\r\n\t\taddListener(node, type, proxy);\r\n\t});\r\n\r\n\t// #4737: Chrome might skip the CSS animation when the CSS_RENDER_MONITOR class\r\n\t// is removed then added back immediately (same animation frame?). Accessing the\r\n\t// `offsetParent` property will force a reflow and re-evaluate the CSS animation.\r\n\t// https://gist.github.com/paulirish/5d52fb081b3570c81e3a#box-metrics\r\n\t// https://github.com/chartjs/Chart.js/issues/4737\r\n\texpando.reflow = !!node.offsetParent;\r\n\r\n\tnode.classList.add(CSS_RENDER_MONITOR);\r\n}\r\n\r\nfunction unwatchForRender(node) {\r\n\tvar expando = node[EXPANDO_KEY] || {};\r\n\tvar proxy = expando.renderProxy;\r\n\r\n\tif (proxy) {\r\n\t\thelpers$1.each(ANIMATION_START_EVENTS, function(type) {\r\n\t\t\tremoveListener(node, type, proxy);\r\n\t\t});\r\n\r\n\t\tdelete expando.renderProxy;\r\n\t}\r\n\r\n\tnode.classList.remove(CSS_RENDER_MONITOR);\r\n}\r\n\r\nfunction addResizeListener(node, listener, chart) {\r\n\tvar expando = node[EXPANDO_KEY] || (node[EXPANDO_KEY] = {});\r\n\r\n\t// Let's keep track of this added resizer and thus avoid DOM query when removing it.\r\n\tvar resizer = expando.resizer = createResizer(throttled(function() {\r\n\t\tif (expando.resizer) {\r\n\t\t\tvar container = chart.options.maintainAspectRatio && node.parentNode;\r\n\t\t\tvar w = container ? container.clientWidth : 0;\r\n\t\t\tlistener(createEvent('resize', chart));\r\n\t\t\tif (container && container.clientWidth < w && chart.canvas) {\r\n\t\t\t\t// If the container size shrank during chart resize, let's assume\r\n\t\t\t\t// scrollbar appeared. So we resize again with the scrollbar visible -\r\n\t\t\t\t// effectively making chart smaller and the scrollbar hidden again.\r\n\t\t\t\t// Because we are inside `throttled`, and currently `ticking`, scroll\r\n\t\t\t\t// events are ignored during this whole 2 resize process.\r\n\t\t\t\t// If we assumed wrong and something else happened, we are resizing\r\n\t\t\t\t// twice in a frame (potential performance issue)\r\n\t\t\t\tlistener(createEvent('resize', chart));\r\n\t\t\t}\r\n\t\t}\r\n\t}));\r\n\r\n\t// The resizer needs to be attached to the node parent, so we first need to be\r\n\t// sure that `node` is attached to the DOM before injecting the resizer element.\r\n\twatchForRender(node, function() {\r\n\t\tif (expando.resizer) {\r\n\t\t\tvar container = node.parentNode;\r\n\t\t\tif (container && container !== resizer.parentNode) {\r\n\t\t\t\tcontainer.insertBefore(resizer, container.firstChild);\r\n\t\t\t}\r\n\r\n\t\t\t// The container size might have changed, let's reset the resizer state.\r\n\t\t\tresizer._reset();\r\n\t\t}\r\n\t});\r\n}\r\n\r\nfunction removeResizeListener(node) {\r\n\tvar expando = node[EXPANDO_KEY] || {};\r\n\tvar resizer = expando.resizer;\r\n\r\n\tdelete expando.resizer;\r\n\tunwatchForRender(node);\r\n\r\n\tif (resizer && resizer.parentNode) {\r\n\t\tresizer.parentNode.removeChild(resizer);\r\n\t}\r\n}\r\n\r\n/**\r\n * Injects CSS styles inline if the styles are not already present.\r\n * @param {HTMLDocument|ShadowRoot} rootNode - the node to contain the <style>.\r\n * @param {string} css - the CSS to be injected.\r\n */\r\nfunction injectCSS(rootNode, css) {\r\n\t// https://stackoverflow.com/q/3922139\r\n\tvar expando = rootNode[EXPANDO_KEY] || (rootNode[EXPANDO_KEY] = {});\r\n\tif (!expando.containsStyles) {\r\n\t\texpando.containsStyles = true;\r\n\t\tcss = '/* Chart.js */\\n' + css;\r\n\t\tvar style = document.createElement('style');\r\n\t\tstyle.setAttribute('type', 'text/css');\r\n\t\tstyle.appendChild(document.createTextNode(css));\r\n\t\trootNode.appendChild(style);\r\n\t}\r\n}\r\n\r\nvar platform_dom$2 = {\r\n\t/**\r\n\t * When `true`, prevents the automatic injection of the stylesheet required to\r\n\t * correctly detect when the chart is added to the DOM and then resized. This\r\n\t * switch has been added to allow external stylesheet (`dist/Chart(.min)?.js`)\r\n\t * to be manually imported to make this library compatible with any CSP.\r\n\t * See https://github.com/chartjs/Chart.js/issues/5208\r\n\t */\r\n\tdisableCSSInjection: false,\r\n\r\n\t/**\r\n\t * This property holds whether this platform is enabled for the current environment.\r\n\t * Currently used by platform.js to select the proper implementation.\r\n\t * @private\r\n\t */\r\n\t_enabled: typeof window !== 'undefined' && typeof document !== 'undefined',\r\n\r\n\t/**\r\n\t * Initializes resources that depend on platform options.\r\n\t * @param {HTMLCanvasElement} canvas - The Canvas element.\r\n\t * @private\r\n\t */\r\n\t_ensureLoaded: function(canvas) {\r\n\t\tif (!this.disableCSSInjection) {\r\n\t\t\t// If the canvas is in a shadow DOM, then the styles must also be inserted\r\n\t\t\t// into the same shadow DOM.\r\n\t\t\t// https://github.com/chartjs/Chart.js/issues/5763\r\n\t\t\tvar root = canvas.getRootNode ? canvas.getRootNode() : document;\r\n\t\t\tvar targetNode = root.host ? root : document.head;\r\n\t\t\tinjectCSS(targetNode, stylesheet);\r\n\t\t}\r\n\t},\r\n\r\n\tacquireContext: function(item, config) {\r\n\t\tif (typeof item === 'string') {\r\n\t\t\titem = document.getElementById(item);\r\n\t\t} else if (item.length) {\r\n\t\t\t// Support for array based queries (such as jQuery)\r\n\t\t\titem = item[0];\r\n\t\t}\r\n\r\n\t\tif (item && item.canvas) {\r\n\t\t\t// Support for any object associated to a canvas (including a context2d)\r\n\t\t\titem = item.canvas;\r\n\t\t}\r\n\r\n\t\t// To prevent canvas fingerprinting, some add-ons undefine the getContext\r\n\t\t// method, for example: https://github.com/kkapsner/CanvasBlocker\r\n\t\t// https://github.com/chartjs/Chart.js/issues/2807\r\n\t\tvar context = item && item.getContext && item.getContext('2d');\r\n\r\n\t\t// `instanceof HTMLCanvasElement/CanvasRenderingContext2D` fails when the item is\r\n\t\t// inside an iframe or when running in a protected environment. We could guess the\r\n\t\t// types from their toString() value but let's keep things flexible and assume it's\r\n\t\t// a sufficient condition if the item has a context2D which has item as `canvas`.\r\n\t\t// https://github.com/chartjs/Chart.js/issues/3887\r\n\t\t// https://github.com/chartjs/Chart.js/issues/4102\r\n\t\t// https://github.com/chartjs/Chart.js/issues/4152\r\n\t\tif (context && context.canvas === item) {\r\n\t\t\t// Load platform resources on first chart creation, to make it possible to\r\n\t\t\t// import the library before setting platform options.\r\n\t\t\tthis._ensureLoaded(item);\r\n\t\t\tinitCanvas(item, config);\r\n\t\t\treturn context;\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t},\r\n\r\n\treleaseContext: function(context) {\r\n\t\tvar canvas = context.canvas;\r\n\t\tif (!canvas[EXPANDO_KEY]) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar initial = canvas[EXPANDO_KEY].initial;\r\n\t\t['height', 'width'].forEach(function(prop) {\r\n\t\t\tvar value = initial[prop];\r\n\t\t\tif (helpers$1.isNullOrUndef(value)) {\r\n\t\t\t\tcanvas.removeAttribute(prop);\r\n\t\t\t} else {\r\n\t\t\t\tcanvas.setAttribute(prop, value);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\thelpers$1.each(initial.style || {}, function(value, key) {\r\n\t\t\tcanvas.style[key] = value;\r\n\t\t});\r\n\r\n\t\t// The canvas render size might have been changed (and thus the state stack discarded),\r\n\t\t// we can't use save() and restore() to restore the initial state. So make sure that at\r\n\t\t// least the canvas context is reset to the default state by setting the canvas width.\r\n\t\t// https://www.w3.org/TR/2011/WD-html5-20110525/the-canvas-element.html\r\n\t\t// eslint-disable-next-line no-self-assign\r\n\t\tcanvas.width = canvas.width;\r\n\r\n\t\tdelete canvas[EXPANDO_KEY];\r\n\t},\r\n\r\n\taddEventListener: function(chart, type, listener) {\r\n\t\tvar canvas = chart.canvas;\r\n\t\tif (type === 'resize') {\r\n\t\t\t// Note: the resize event is not supported on all browsers.\r\n\t\t\taddResizeListener(canvas, listener, chart);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar expando = listener[EXPANDO_KEY] || (listener[EXPANDO_KEY] = {});\r\n\t\tvar proxies = expando.proxies || (expando.proxies = {});\r\n\t\tvar proxy = proxies[chart.id + '_' + type] = function(event) {\r\n\t\t\tlistener(fromNativeEvent(event, chart));\r\n\t\t};\r\n\r\n\t\taddListener(canvas, type, proxy);\r\n\t},\r\n\r\n\tremoveEventListener: function(chart, type, listener) {\r\n\t\tvar canvas = chart.canvas;\r\n\t\tif (type === 'resize') {\r\n\t\t\t// Note: the resize event is not supported on all browsers.\r\n\t\t\tremoveResizeListener(canvas);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar expando = listener[EXPANDO_KEY] || {};\r\n\t\tvar proxies = expando.proxies || {};\r\n\t\tvar proxy = proxies[chart.id + '_' + type];\r\n\t\tif (!proxy) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tremoveListener(canvas, type, proxy);\r\n\t}\r\n};\r\n\r\n// DEPRECATIONS\r\n\r\n/**\r\n * Provided for backward compatibility, use EventTarget.addEventListener instead.\r\n * EventTarget.addEventListener compatibility: Chrome, Opera 7, Safari, FF1.5+, IE9+\r\n * @see https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener\r\n * @function Chart.helpers.addEvent\r\n * @deprecated since version 2.7.0\r\n * @todo remove at version 3\r\n * @private\r\n */\r\nhelpers$1.addEvent = addListener;\r\n\r\n/**\r\n * Provided for backward compatibility, use EventTarget.removeEventListener instead.\r\n * EventTarget.removeEventListener compatibility: Chrome, Opera 7, Safari, FF1.5+, IE9+\r\n * @see https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener\r\n * @function Chart.helpers.removeEvent\r\n * @deprecated since version 2.7.0\r\n * @todo remove at version 3\r\n * @private\r\n */\r\nhelpers$1.removeEvent = removeListener;\n\n// @TODO Make possible to select another platform at build time.\r\nvar implementation = platform_dom$2._enabled ? platform_dom$2 : platform_basic;\r\n\r\n/**\r\n * @namespace Chart.platform\r\n * @see https://chartjs.gitbooks.io/proposals/content/Platform.html\r\n * @since 2.4.0\r\n */\r\nvar platform = helpers$1.extend({\r\n\t/**\r\n\t * @since 2.7.0\r\n\t */\r\n\tinitialize: function() {},\r\n\r\n\t/**\r\n\t * Called at chart construction time, returns a context2d instance implementing\r\n\t * the [W3C Canvas 2D Context API standard]{@link https://www.w3.org/TR/2dcontext/}.\r\n\t * @param {*} item - The native item from which to acquire context (platform specific)\r\n\t * @param {object} options - The chart options\r\n\t * @returns {CanvasRenderingContext2D} context2d instance\r\n\t */\r\n\tacquireContext: function() {},\r\n\r\n\t/**\r\n\t * Called at chart destruction time, releases any resources associated to the context\r\n\t * previously returned by the acquireContext() method.\r\n\t * @param {CanvasRenderingContext2D} context - The context2d instance\r\n\t * @returns {boolean} true if the method succeeded, else false\r\n\t */\r\n\treleaseContext: function() {},\r\n\r\n\t/**\r\n\t * Registers the specified listener on the given chart.\r\n\t * @param {Chart} chart - Chart from which to listen for event\r\n\t * @param {string} type - The ({@link IEvent}) type to listen for\r\n\t * @param {function} listener - Receives a notification (an object that implements\r\n\t * the {@link IEvent} interface) when an event of the specified type occurs.\r\n\t */\r\n\taddEventListener: function() {},\r\n\r\n\t/**\r\n\t * Removes the specified listener previously registered with addEventListener.\r\n\t * @param {Chart} chart - Chart from which to remove the listener\r\n\t * @param {string} type - The ({@link IEvent}) type to remove\r\n\t * @param {function} listener - The listener function to remove from the event target.\r\n\t */\r\n\tremoveEventListener: function() {}\r\n\r\n}, implementation);\n\ncore_defaults._set('global', {\r\n\tplugins: {}\r\n});\r\n\r\n/**\r\n * The plugin service singleton\r\n * @namespace Chart.plugins\r\n * @since 2.1.0\r\n */\r\nvar core_plugins = {\r\n\t/**\r\n\t * Globally registered plugins.\r\n\t * @private\r\n\t */\r\n\t_plugins: [],\r\n\r\n\t/**\r\n\t * This identifier is used to invalidate the descriptors cache attached to each chart\r\n\t * when a global plugin is registered or unregistered. In this case, the cache ID is\r\n\t * incremented and descriptors are regenerated during following API calls.\r\n\t * @private\r\n\t */\r\n\t_cacheId: 0,\r\n\r\n\t/**\r\n\t * Registers the given plugin(s) if not already registered.\r\n\t * @param {IPlugin[]|IPlugin} plugins plugin instance(s).\r\n\t */\r\n\tregister: function(plugins) {\r\n\t\tvar p = this._plugins;\r\n\t\t([]).concat(plugins).forEach(function(plugin) {\r\n\t\t\tif (p.indexOf(plugin) === -1) {\r\n\t\t\t\tp.push(plugin);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tthis._cacheId++;\r\n\t},\r\n\r\n\t/**\r\n\t * Unregisters the given plugin(s) only if registered.\r\n\t * @param {IPlugin[]|IPlugin} plugins plugin instance(s).\r\n\t */\r\n\tunregister: function(plugins) {\r\n\t\tvar p = this._plugins;\r\n\t\t([]).concat(plugins).forEach(function(plugin) {\r\n\t\t\tvar idx = p.indexOf(plugin);\r\n\t\t\tif (idx !== -1) {\r\n\t\t\t\tp.splice(idx, 1);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tthis._cacheId++;\r\n\t},\r\n\r\n\t/**\r\n\t * Remove all registered plugins.\r\n\t * @since 2.1.5\r\n\t */\r\n\tclear: function() {\r\n\t\tthis._plugins = [];\r\n\t\tthis._cacheId++;\r\n\t},\r\n\r\n\t/**\r\n\t * Returns the number of registered plugins?\r\n\t * @returns {number}\r\n\t * @since 2.1.5\r\n\t */\r\n\tcount: function() {\r\n\t\treturn this._plugins.length;\r\n\t},\r\n\r\n\t/**\r\n\t * Returns all registered plugin instances.\r\n\t * @returns {IPlugin[]} array of plugin objects.\r\n\t * @since 2.1.5\r\n\t */\r\n\tgetAll: function() {\r\n\t\treturn this._plugins;\r\n\t},\r\n\r\n\t/**\r\n\t * Calls enabled plugins for `chart` on the specified hook and with the given args.\r\n\t * This method immediately returns as soon as a plugin explicitly returns false. The\r\n\t * returned value can be used, for instance, to interrupt the current action.\r\n\t * @param {Chart} chart - The chart instance for which plugins should be called.\r\n\t * @param {string} hook - The name of the plugin method to call (e.g. 'beforeUpdate').\r\n\t * @param {Array} [args] - Extra arguments to apply to the hook call.\r\n\t * @returns {boolean} false if any of the plugins return false, else returns true.\r\n\t */\r\n\tnotify: function(chart, hook, args) {\r\n\t\tvar descriptors = this.descriptors(chart);\r\n\t\tvar ilen = descriptors.length;\r\n\t\tvar i, descriptor, plugin, params, method;\r\n\r\n\t\tfor (i = 0; i < ilen; ++i) {\r\n\t\t\tdescriptor = descriptors[i];\r\n\t\t\tplugin = descriptor.plugin;\r\n\t\t\tmethod = plugin[hook];\r\n\t\t\tif (typeof method === 'function') {\r\n\t\t\t\tparams = [chart].concat(args || []);\r\n\t\t\t\tparams.push(descriptor.options);\r\n\t\t\t\tif (method.apply(plugin, params) === false) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t},\r\n\r\n\t/**\r\n\t * Returns descriptors of enabled plugins for the given chart.\r\n\t * @returns {object[]} [{ plugin, options }]\r\n\t * @private\r\n\t */\r\n\tdescriptors: function(chart) {\r\n\t\tvar cache = chart.$plugins || (chart.$plugins = {});\r\n\t\tif (cache.id === this._cacheId) {\r\n\t\t\treturn cache.descriptors;\r\n\t\t}\r\n\r\n\t\tvar plugins = [];\r\n\t\tvar descriptors = [];\r\n\t\tvar config = (chart && chart.config) || {};\r\n\t\tvar options = (config.options && config.options.plugins) || {};\r\n\r\n\t\tthis._plugins.concat(config.plugins || []).forEach(function(plugin) {\r\n\t\t\tvar idx = plugins.indexOf(plugin);\r\n\t\t\tif (idx !== -1) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\tvar id = plugin.id;\r\n\t\t\tvar opts = options[id];\r\n\t\t\tif (opts === false) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\tif (opts === true) {\r\n\t\t\t\topts = helpers$1.clone(core_defaults.global.plugins[id]);\r\n\t\t\t}\r\n\r\n\t\t\tplugins.push(plugin);\r\n\t\t\tdescriptors.push({\r\n\t\t\t\tplugin: plugin,\r\n\t\t\t\toptions: opts || {}\r\n\t\t\t});\r\n\t\t});\r\n\r\n\t\tcache.descriptors = descriptors;\r\n\t\tcache.id = this._cacheId;\r\n\t\treturn descriptors;\r\n\t},\r\n\r\n\t/**\r\n\t * Invalidates cache for the given chart: descriptors hold a reference on plugin option,\r\n\t * but in some cases, this reference can be changed by the user when updating options.\r\n\t * https://github.com/chartjs/Chart.js/issues/5111#issuecomment-355934167\r\n\t * @private\r\n\t */\r\n\t_invalidate: function(chart) {\r\n\t\tdelete chart.$plugins;\r\n\t}\r\n};\n\nvar core_scaleService = {\r\n\t// Scale registration object. Extensions can register new scale types (such as log or DB scales) and then\r\n\t// use the new chart options to grab the correct scale\r\n\tconstructors: {},\r\n\t// Use a registration function so that we can move to an ES6 map when we no longer need to support\r\n\t// old browsers\r\n\r\n\t// Scale config defaults\r\n\tdefaults: {},\r\n\tregisterScaleType: function(type, scaleConstructor, scaleDefaults) {\r\n\t\tthis.constructors[type] = scaleConstructor;\r\n\t\tthis.defaults[type] = helpers$1.clone(scaleDefaults);\r\n\t},\r\n\tgetScaleConstructor: function(type) {\r\n\t\treturn this.constructors.hasOwnProperty(type) ? this.constructors[type] : undefined;\r\n\t},\r\n\tgetScaleDefaults: function(type) {\r\n\t\t// Return the scale defaults merged with the global settings so that we always use the latest ones\r\n\t\treturn this.defaults.hasOwnProperty(type) ? helpers$1.merge(Object.create(null), [core_defaults.scale, this.defaults[type]]) : {};\r\n\t},\r\n\tupdateScaleDefaults: function(type, additions) {\r\n\t\tvar me = this;\r\n\t\tif (me.defaults.hasOwnProperty(type)) {\r\n\t\t\tme.defaults[type] = helpers$1.extend(me.defaults[type], additions);\r\n\t\t}\r\n\t},\r\n\taddScalesToLayout: function(chart) {\r\n\t\t// Adds each scale to the chart.boxes array to be sized accordingly\r\n\t\thelpers$1.each(chart.scales, function(scale) {\r\n\t\t\t// Set ILayoutItem parameters for backwards compatibility\r\n\t\t\tscale.fullWidth = scale.options.fullWidth;\r\n\t\t\tscale.position = scale.options.position;\r\n\t\t\tscale.weight = scale.options.weight;\r\n\t\t\tcore_layouts.addBox(chart, scale);\r\n\t\t});\r\n\t}\r\n};\n\nvar valueOrDefault$8 = helpers$1.valueOrDefault;\r\nvar getRtlHelper = helpers$1.rtl.getRtlAdapter;\r\n\r\ncore_defaults._set('global', {\r\n\ttooltips: {\r\n\t\tenabled: true,\r\n\t\tcustom: null,\r\n\t\tmode: 'nearest',\r\n\t\tposition: 'average',\r\n\t\tintersect: true,\r\n\t\tbackgroundColor: 'rgba(0,0,0,0.8)',\r\n\t\ttitleFontStyle: 'bold',\r\n\t\ttitleSpacing: 2,\r\n\t\ttitleMarginBottom: 6,\r\n\t\ttitleFontColor: '#fff',\r\n\t\ttitleAlign: 'left',\r\n\t\tbodySpacing: 2,\r\n\t\tbodyFontColor: '#fff',\r\n\t\tbodyAlign: 'left',\r\n\t\tfooterFontStyle: 'bold',\r\n\t\tfooterSpacing: 2,\r\n\t\tfooterMarginTop: 6,\r\n\t\tfooterFontColor: '#fff',\r\n\t\tfooterAlign: 'left',\r\n\t\tyPadding: 6,\r\n\t\txPadding: 6,\r\n\t\tcaretPadding: 2,\r\n\t\tcaretSize: 5,\r\n\t\tcornerRadius: 6,\r\n\t\tmultiKeyBackground: '#fff',\r\n\t\tdisplayColors: true,\r\n\t\tborderColor: 'rgba(0,0,0,0)',\r\n\t\tborderWidth: 0,\r\n\t\tcallbacks: {\r\n\t\t\t// Args are: (tooltipItems, data)\r\n\t\t\tbeforeTitle: helpers$1.noop,\r\n\t\t\ttitle: function(tooltipItems, data) {\r\n\t\t\t\tvar title = '';\r\n\t\t\t\tvar labels = data.labels;\r\n\t\t\t\tvar labelCount = labels ? labels.length : 0;\r\n\r\n\t\t\t\tif (tooltipItems.length > 0) {\r\n\t\t\t\t\tvar item = tooltipItems[0];\r\n\t\t\t\t\tif (item.label) {\r\n\t\t\t\t\t\ttitle = item.label;\r\n\t\t\t\t\t} else if (item.xLabel) {\r\n\t\t\t\t\t\ttitle = item.xLabel;\r\n\t\t\t\t\t} else if (labelCount > 0 && item.index < labelCount) {\r\n\t\t\t\t\t\ttitle = labels[item.index];\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\treturn title;\r\n\t\t\t},\r\n\t\t\tafterTitle: helpers$1.noop,\r\n\r\n\t\t\t// Args are: (tooltipItems, data)\r\n\t\t\tbeforeBody: helpers$1.noop,\r\n\r\n\t\t\t// Args are: (tooltipItem, data)\r\n\t\t\tbeforeLabel: helpers$1.noop,\r\n\t\t\tlabel: function(tooltipItem, data) {\r\n\t\t\t\tvar label = data.datasets[tooltipItem.datasetIndex].label || '';\r\n\r\n\t\t\t\tif (label) {\r\n\t\t\t\t\tlabel += ': ';\r\n\t\t\t\t}\r\n\t\t\t\tif (!helpers$1.isNullOrUndef(tooltipItem.value)) {\r\n\t\t\t\t\tlabel += tooltipItem.value;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tlabel += tooltipItem.yLabel;\r\n\t\t\t\t}\r\n\t\t\t\treturn label;\r\n\t\t\t},\r\n\t\t\tlabelColor: function(tooltipItem, chart) {\r\n\t\t\t\tvar meta = chart.getDatasetMeta(tooltipItem.datasetIndex);\r\n\t\t\t\tvar activeElement = meta.data[tooltipItem.index];\r\n\t\t\t\tvar view = activeElement._view;\r\n\t\t\t\treturn {\r\n\t\t\t\t\tborderColor: view.borderColor,\r\n\t\t\t\t\tbackgroundColor: view.backgroundColor\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\tlabelTextColor: function() {\r\n\t\t\t\treturn this._options.bodyFontColor;\r\n\t\t\t},\r\n\t\t\tafterLabel: helpers$1.noop,\r\n\r\n\t\t\t// Args are: (tooltipItems, data)\r\n\t\t\tafterBody: helpers$1.noop,\r\n\r\n\t\t\t// Args are: (tooltipItems, data)\r\n\t\t\tbeforeFooter: helpers$1.noop,\r\n\t\t\tfooter: helpers$1.noop,\r\n\t\t\tafterFooter: helpers$1.noop\r\n\t\t}\r\n\t}\r\n});\r\n\r\nvar positioners = {\r\n\t/**\r\n\t * Average mode places the tooltip at the average position of the elements shown\r\n\t * @function Chart.Tooltip.positioners.average\r\n\t * @param elements {ChartElement[]} the elements being displayed in the tooltip\r\n\t * @returns {object} tooltip position\r\n\t */\r\n\taverage: function(elements) {\r\n\t\tif (!elements.length) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tvar i, len;\r\n\t\tvar x = 0;\r\n\t\tvar y = 0;\r\n\t\tvar count = 0;\r\n\r\n\t\tfor (i = 0, len = elements.length; i < len; ++i) {\r\n\t\t\tvar el = elements[i];\r\n\t\t\tif (el && el.hasValue()) {\r\n\t\t\t\tvar pos = el.tooltipPosition();\r\n\t\t\t\tx += pos.x;\r\n\t\t\t\ty += pos.y;\r\n\t\t\t\t++count;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn {\r\n\t\t\tx: x / count,\r\n\t\t\ty: y / count\r\n\t\t};\r\n\t},\r\n\r\n\t/**\r\n\t * Gets the tooltip position nearest of the item nearest to the event position\r\n\t * @function Chart.Tooltip.positioners.nearest\r\n\t * @param elements {Chart.Element[]} the tooltip elements\r\n\t * @param eventPosition {object} the position of the event in canvas coordinates\r\n\t * @returns {object} the tooltip position\r\n\t */\r\n\tnearest: function(elements, eventPosition) {\r\n\t\tvar x = eventPosition.x;\r\n\t\tvar y = eventPosition.y;\r\n\t\tvar minDistance = Number.POSITIVE_INFINITY;\r\n\t\tvar i, len, nearestElement;\r\n\r\n\t\tfor (i = 0, len = elements.length; i < len; ++i) {\r\n\t\t\tvar el = elements[i];\r\n\t\t\tif (el && el.hasValue()) {\r\n\t\t\t\tvar center = el.getCenterPoint();\r\n\t\t\t\tvar d = helpers$1.distanceBetweenPoints(eventPosition, center);\r\n\r\n\t\t\t\tif (d < minDistance) {\r\n\t\t\t\t\tminDistance = d;\r\n\t\t\t\t\tnearestElement = el;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (nearestElement) {\r\n\t\t\tvar tp = nearestElement.tooltipPosition();\r\n\t\t\tx = tp.x;\r\n\t\t\ty = tp.y;\r\n\t\t}\r\n\r\n\t\treturn {\r\n\t\t\tx: x,\r\n\t\t\ty: y\r\n\t\t};\r\n\t}\r\n};\r\n\r\n// Helper to push or concat based on if the 2nd parameter is an array or not\r\nfunction pushOrConcat(base, toPush) {\r\n\tif (toPush) {\r\n\t\tif (helpers$1.isArray(toPush)) {\r\n\t\t\t// base = base.concat(toPush);\r\n\t\t\tArray.prototype.push.apply(base, toPush);\r\n\t\t} else {\r\n\t\t\tbase.push(toPush);\r\n\t\t}\r\n\t}\r\n\r\n\treturn base;\r\n}\r\n\r\n/**\r\n * Returns array of strings split by newline\r\n * @param {string} value - The value to split by newline.\r\n * @returns {string[]} value if newline present - Returned from String split() method\r\n * @function\r\n */\r\nfunction splitNewlines(str) {\r\n\tif ((typeof str === 'string' || str instanceof String) && str.indexOf('\\n') > -1) {\r\n\t\treturn str.split('\\n');\r\n\t}\r\n\treturn str;\r\n}\r\n\r\n\r\n/**\r\n * Private helper to create a tooltip item model\r\n * @param element - the chart element (point, arc, bar) to create the tooltip item for\r\n * @return new tooltip item\r\n */\r\nfunction createTooltipItem(element) {\r\n\tvar xScale = element._xScale;\r\n\tvar yScale = element._yScale || element._scale; // handle radar || polarArea charts\r\n\tvar index = element._index;\r\n\tvar datasetIndex = element._datasetIndex;\r\n\tvar controller = element._chart.getDatasetMeta(datasetIndex).controller;\r\n\tvar indexScale = controller._getIndexScale();\r\n\tvar valueScale = controller._getValueScale();\r\n\r\n\treturn {\r\n\t\txLabel: xScale ? xScale.getLabelForIndex(index, datasetIndex) : '',\r\n\t\tyLabel: yScale ? yScale.getLabelForIndex(index, datasetIndex) : '',\r\n\t\tlabel: indexScale ? '' + indexScale.getLabelForIndex(index, datasetIndex) : '',\r\n\t\tvalue: valueScale ? '' + valueScale.getLabelForIndex(index, datasetIndex) : '',\r\n\t\tindex: index,\r\n\t\tdatasetIndex: datasetIndex,\r\n\t\tx: element._model.x,\r\n\t\ty: element._model.y\r\n\t};\r\n}\r\n\r\n/**\r\n * Helper to get the reset model for the tooltip\r\n * @param tooltipOpts {object} the tooltip options\r\n */\r\nfunction getBaseModel(tooltipOpts) {\r\n\tvar globalDefaults = core_defaults.global;\r\n\r\n\treturn {\r\n\t\t// Positioning\r\n\t\txPadding: tooltipOpts.xPadding,\r\n\t\tyPadding: tooltipOpts.yPadding,\r\n\t\txAlign: tooltipOpts.xAlign,\r\n\t\tyAlign: tooltipOpts.yAlign,\r\n\r\n\t\t// Drawing direction and text direction\r\n\t\trtl: tooltipOpts.rtl,\r\n\t\ttextDirection: tooltipOpts.textDirection,\r\n\r\n\t\t// Body\r\n\t\tbodyFontColor: tooltipOpts.bodyFontColor,\r\n\t\t_bodyFontFamily: valueOrDefault$8(tooltipOpts.bodyFontFamily, globalDefaults.defaultFontFamily),\r\n\t\t_bodyFontStyle: valueOrDefault$8(tooltipOpts.bodyFontStyle, globalDefaults.defaultFontStyle),\r\n\t\t_bodyAlign: tooltipOpts.bodyAlign,\r\n\t\tbodyFontSize: valueOrDefault$8(tooltipOpts.bodyFontSize, globalDefaults.defaultFontSize),\r\n\t\tbodySpacing: tooltipOpts.bodySpacing,\r\n\r\n\t\t// Title\r\n\t\ttitleFontColor: tooltipOpts.titleFontColor,\r\n\t\t_titleFontFamily: valueOrDefault$8(tooltipOpts.titleFontFamily, globalDefaults.defaultFontFamily),\r\n\t\t_titleFontStyle: valueOrDefault$8(tooltipOpts.titleFontStyle, globalDefaults.defaultFontStyle),\r\n\t\ttitleFontSize: valueOrDefault$8(tooltipOpts.titleFontSize, globalDefaults.defaultFontSize),\r\n\t\t_titleAlign: tooltipOpts.titleAlign,\r\n\t\ttitleSpacing: tooltipOpts.titleSpacing,\r\n\t\ttitleMarginBottom: tooltipOpts.titleMarginBottom,\r\n\r\n\t\t// Footer\r\n\t\tfooterFontColor: tooltipOpts.footerFontColor,\r\n\t\t_footerFontFamily: valueOrDefault$8(tooltipOpts.footerFontFamily, globalDefaults.defaultFontFamily),\r\n\t\t_footerFontStyle: valueOrDefault$8(tooltipOpts.footerFontStyle, globalDefaults.defaultFontStyle),\r\n\t\tfooterFontSize: valueOrDefault$8(tooltipOpts.footerFontSize, globalDefaults.defaultFontSize),\r\n\t\t_footerAlign: tooltipOpts.footerAlign,\r\n\t\tfooterSpacing: tooltipOpts.footerSpacing,\r\n\t\tfooterMarginTop: tooltipOpts.footerMarginTop,\r\n\r\n\t\t// Appearance\r\n\t\tcaretSize: tooltipOpts.caretSize,\r\n\t\tcornerRadius: tooltipOpts.cornerRadius,\r\n\t\tbackgroundColor: tooltipOpts.backgroundColor,\r\n\t\topacity: 0,\r\n\t\tlegendColorBackground: tooltipOpts.multiKeyBackground,\r\n\t\tdisplayColors: tooltipOpts.displayColors,\r\n\t\tborderColor: tooltipOpts.borderColor,\r\n\t\tborderWidth: tooltipOpts.borderWidth\r\n\t};\r\n}\r\n\r\n/**\r\n * Get the size of the tooltip\r\n */\r\nfunction getTooltipSize(tooltip, model) {\r\n\tvar ctx = tooltip._chart.ctx;\r\n\r\n\tvar height = model.yPadding * 2; // Tooltip Padding\r\n\tvar width = 0;\r\n\r\n\t// Count of all lines in the body\r\n\tvar body = model.body;\r\n\tvar combinedBodyLength = body.reduce(function(count, bodyItem) {\r\n\t\treturn count + bodyItem.before.length + bodyItem.lines.length + bodyItem.after.length;\r\n\t}, 0);\r\n\tcombinedBodyLength += model.beforeBody.length + model.afterBody.length;\r\n\r\n\tvar titleLineCount = model.title.length;\r\n\tvar footerLineCount = model.footer.length;\r\n\tvar titleFontSize = model.titleFontSize;\r\n\tvar bodyFontSize = model.bodyFontSize;\r\n\tvar footerFontSize = model.footerFontSize;\r\n\r\n\theight += titleLineCount * titleFontSize; // Title Lines\r\n\theight += titleLineCount ? (titleLineCount - 1) * model.titleSpacing : 0; // Title Line Spacing\r\n\theight += titleLineCount ? model.titleMarginBottom : 0; // Title's bottom Margin\r\n\theight += combinedBodyLength * bodyFontSize; // Body Lines\r\n\theight += combinedBodyLength ? (combinedBodyLength - 1) * model.bodySpacing : 0; // Body Line Spacing\r\n\theight += footerLineCount ? model.footerMarginTop : 0; // Footer Margin\r\n\theight += footerLineCount * (footerFontSize); // Footer Lines\r\n\theight += footerLineCount ? (footerLineCount - 1) * model.footerSpacing : 0; // Footer Line Spacing\r\n\r\n\t// Title width\r\n\tvar widthPadding = 0;\r\n\tvar maxLineWidth = function(line) {\r\n\t\twidth = Math.max(width, ctx.measureText(line).width + widthPadding);\r\n\t};\r\n\r\n\tctx.font = helpers$1.fontString(titleFontSize, model._titleFontStyle, model._titleFontFamily);\r\n\thelpers$1.each(model.title, maxLineWidth);\r\n\r\n\t// Body width\r\n\tctx.font = helpers$1.fontString(bodyFontSize, model._bodyFontStyle, model._bodyFontFamily);\r\n\thelpers$1.each(model.beforeBody.concat(model.afterBody), maxLineWidth);\r\n\r\n\t// Body lines may include some extra width due to the color box\r\n\twidthPadding = model.displayColors ? (bodyFontSize + 2) : 0;\r\n\thelpers$1.each(body, function(bodyItem) {\r\n\t\thelpers$1.each(bodyItem.before, maxLineWidth);\r\n\t\thelpers$1.each(bodyItem.lines, maxLineWidth);\r\n\t\thelpers$1.each(bodyItem.after, maxLineWidth);\r\n\t});\r\n\r\n\t// Reset back to 0\r\n\twidthPadding = 0;\r\n\r\n\t// Footer width\r\n\tctx.font = helpers$1.fontString(footerFontSize, model._footerFontStyle, model._footerFontFamily);\r\n\thelpers$1.each(model.footer, maxLineWidth);\r\n\r\n\t// Add padding\r\n\twidth += 2 * model.xPadding;\r\n\r\n\treturn {\r\n\t\twidth: width,\r\n\t\theight: height\r\n\t};\r\n}\r\n\r\n/**\r\n * Helper to get the alignment of a tooltip given the size\r\n */\r\nfunction determineAlignment(tooltip, size) {\r\n\tvar model = tooltip._model;\r\n\tvar chart = tooltip._chart;\r\n\tvar chartArea = tooltip._chart.chartArea;\r\n\tvar xAlign = 'center';\r\n\tvar yAlign = 'center';\r\n\r\n\tif (model.y < size.height) {\r\n\t\tyAlign = 'top';\r\n\t} else if (model.y > (chart.height - size.height)) {\r\n\t\tyAlign = 'bottom';\r\n\t}\r\n\r\n\tvar lf, rf; // functions to determine left, right alignment\r\n\tvar olf, orf; // functions to determine if left/right alignment causes tooltip to go outside chart\r\n\tvar yf; // function to get the y alignment if the tooltip goes outside of the left or right edges\r\n\tvar midX = (chartArea.left + chartArea.right) / 2;\r\n\tvar midY = (chartArea.top + chartArea.bottom) / 2;\r\n\r\n\tif (yAlign === 'center') {\r\n\t\tlf = function(x) {\r\n\t\t\treturn x <= midX;\r\n\t\t};\r\n\t\trf = function(x) {\r\n\t\t\treturn x > midX;\r\n\t\t};\r\n\t} else {\r\n\t\tlf = function(x) {\r\n\t\t\treturn x <= (size.width / 2);\r\n\t\t};\r\n\t\trf = function(x) {\r\n\t\t\treturn x >= (chart.width - (size.width / 2));\r\n\t\t};\r\n\t}\r\n\r\n\tolf = function(x) {\r\n\t\treturn x + size.width + model.caretSize + model.caretPadding > chart.width;\r\n\t};\r\n\torf = function(x) {\r\n\t\treturn x - size.width - model.caretSize - model.caretPadding < 0;\r\n\t};\r\n\tyf = function(y) {\r\n\t\treturn y <= midY ? 'top' : 'bottom';\r\n\t};\r\n\r\n\tif (lf(model.x)) {\r\n\t\txAlign = 'left';\r\n\r\n\t\t// Is tooltip too wide and goes over the right side of the chart.?\r\n\t\tif (olf(model.x)) {\r\n\t\t\txAlign = 'center';\r\n\t\t\tyAlign = yf(model.y);\r\n\t\t}\r\n\t} else if (rf(model.x)) {\r\n\t\txAlign = 'right';\r\n\r\n\t\t// Is tooltip too wide and goes outside left edge of canvas?\r\n\t\tif (orf(model.x)) {\r\n\t\t\txAlign = 'center';\r\n\t\t\tyAlign = yf(model.y);\r\n\t\t}\r\n\t}\r\n\r\n\tvar opts = tooltip._options;\r\n\treturn {\r\n\t\txAlign: opts.xAlign ? opts.xAlign : xAlign,\r\n\t\tyAlign: opts.yAlign ? opts.yAlign : yAlign\r\n\t};\r\n}\r\n\r\n/**\r\n * Helper to get the location a tooltip needs to be placed at given the initial position (via the vm) and the size and alignment\r\n */\r\nfunction getBackgroundPoint(vm, size, alignment, chart) {\r\n\t// Background Position\r\n\tvar x = vm.x;\r\n\tvar y = vm.y;\r\n\r\n\tvar caretSize = vm.caretSize;\r\n\tvar caretPadding = vm.caretPadding;\r\n\tvar cornerRadius = vm.cornerRadius;\r\n\tvar xAlign = alignment.xAlign;\r\n\tvar yAlign = alignment.yAlign;\r\n\tvar paddingAndSize = caretSize + caretPadding;\r\n\tvar radiusAndPadding = cornerRadius + caretPadding;\r\n\r\n\tif (xAlign === 'right') {\r\n\t\tx -= size.width;\r\n\t} else if (xAlign === 'center') {\r\n\t\tx -= (size.width / 2);\r\n\t\tif (x + size.width > chart.width) {\r\n\t\t\tx = chart.width - size.width;\r\n\t\t}\r\n\t\tif (x < 0) {\r\n\t\t\tx = 0;\r\n\t\t}\r\n\t}\r\n\r\n\tif (yAlign === 'top') {\r\n\t\ty += paddingAndSize;\r\n\t} else if (yAlign === 'bottom') {\r\n\t\ty -= size.height + paddingAndSize;\r\n\t} else {\r\n\t\ty -= (size.height / 2);\r\n\t}\r\n\r\n\tif (yAlign === 'center') {\r\n\t\tif (xAlign === 'left') {\r\n\t\t\tx += paddingAndSize;\r\n\t\t} else if (xAlign === 'right') {\r\n\t\t\tx -= paddingAndSize;\r\n\t\t}\r\n\t} else if (xAlign === 'left') {\r\n\t\tx -= radiusAndPadding;\r\n\t} else if (xAlign === 'right') {\r\n\t\tx += radiusAndPadding;\r\n\t}\r\n\r\n\treturn {\r\n\t\tx: x,\r\n\t\ty: y\r\n\t};\r\n}\r\n\r\nfunction getAlignedX(vm, align) {\r\n\treturn align === 'center'\r\n\t\t? vm.x + vm.width / 2\r\n\t\t: align === 'right'\r\n\t\t\t? vm.x + vm.width - vm.xPadding\r\n\t\t\t: vm.x + vm.xPadding;\r\n}\r\n\r\n/**\r\n * Helper to build before and after body lines\r\n */\r\nfunction getBeforeAfterBodyLines(callback) {\r\n\treturn pushOrConcat([], splitNewlines(callback));\r\n}\r\n\r\nvar exports$4 = core_element.extend({\r\n\tinitialize: function() {\r\n\t\tthis._model = getBaseModel(this._options);\r\n\t\tthis._lastActive = [];\r\n\t},\r\n\r\n\t// Get the title\r\n\t// Args are: (tooltipItem, data)\r\n\tgetTitle: function() {\r\n\t\tvar me = this;\r\n\t\tvar opts = me._options;\r\n\t\tvar callbacks = opts.callbacks;\r\n\r\n\t\tvar beforeTitle = callbacks.beforeTitle.apply(me, arguments);\r\n\t\tvar title = callbacks.title.apply(me, arguments);\r\n\t\tvar afterTitle = callbacks.afterTitle.apply(me, arguments);\r\n\r\n\t\tvar lines = [];\r\n\t\tlines = pushOrConcat(lines, splitNewlines(beforeTitle));\r\n\t\tlines = pushOrConcat(lines, splitNewlines(title));\r\n\t\tlines = pushOrConcat(lines, splitNewlines(afterTitle));\r\n\r\n\t\treturn lines;\r\n\t},\r\n\r\n\t// Args are: (tooltipItem, data)\r\n\tgetBeforeBody: function() {\r\n\t\treturn getBeforeAfterBodyLines(this._options.callbacks.beforeBody.apply(this, arguments));\r\n\t},\r\n\r\n\t// Args are: (tooltipItem, data)\r\n\tgetBody: function(tooltipItems, data) {\r\n\t\tvar me = this;\r\n\t\tvar callbacks = me._options.callbacks;\r\n\t\tvar bodyItems = [];\r\n\r\n\t\thelpers$1.each(tooltipItems, function(tooltipItem) {\r\n\t\t\tvar bodyItem = {\r\n\t\t\t\tbefore: [],\r\n\t\t\t\tlines: [],\r\n\t\t\t\tafter: []\r\n\t\t\t};\r\n\t\t\tpushOrConcat(bodyItem.before, splitNewlines(callbacks.beforeLabel.call(me, tooltipItem, data)));\r\n\t\t\tpushOrConcat(bodyItem.lines, callbacks.label.call(me, tooltipItem, data));\r\n\t\t\tpushOrConcat(bodyItem.after, splitNewlines(callbacks.afterLabel.call(me, tooltipItem, data)));\r\n\r\n\t\t\tbodyItems.push(bodyItem);\r\n\t\t});\r\n\r\n\t\treturn bodyItems;\r\n\t},\r\n\r\n\t// Args are: (tooltipItem, data)\r\n\tgetAfterBody: function() {\r\n\t\treturn getBeforeAfterBodyLines(this._options.callbacks.afterBody.apply(this, arguments));\r\n\t},\r\n\r\n\t// Get the footer and beforeFooter and afterFooter lines\r\n\t// Args are: (tooltipItem, data)\r\n\tgetFooter: function() {\r\n\t\tvar me = this;\r\n\t\tvar callbacks = me._options.callbacks;\r\n\r\n\t\tvar beforeFooter = callbacks.beforeFooter.apply(me, arguments);\r\n\t\tvar footer = callbacks.footer.apply(me, arguments);\r\n\t\tvar afterFooter = callbacks.afterFooter.apply(me, arguments);\r\n\r\n\t\tvar lines = [];\r\n\t\tlines = pushOrConcat(lines, splitNewlines(beforeFooter));\r\n\t\tlines = pushOrConcat(lines, splitNewlines(footer));\r\n\t\tlines = pushOrConcat(lines, splitNewlines(afterFooter));\r\n\r\n\t\treturn lines;\r\n\t},\r\n\r\n\tupdate: function(changed) {\r\n\t\tvar me = this;\r\n\t\tvar opts = me._options;\r\n\r\n\t\t// Need to regenerate the model because its faster than using extend and it is necessary due to the optimization in Chart.Element.transition\r\n\t\t// that does _view = _model if ease === 1. This causes the 2nd tooltip update to set properties in both the view and model at the same time\r\n\t\t// which breaks any animations.\r\n\t\tvar existingModel = me._model;\r\n\t\tvar model = me._model = getBaseModel(opts);\r\n\t\tvar active = me._active;\r\n\r\n\t\tvar data = me._data;\r\n\r\n\t\t// In the case where active.length === 0 we need to keep these at existing values for good animations\r\n\t\tvar alignment = {\r\n\t\t\txAlign: existingModel.xAlign,\r\n\t\t\tyAlign: existingModel.yAlign\r\n\t\t};\r\n\t\tvar backgroundPoint = {\r\n\t\t\tx: existingModel.x,\r\n\t\t\ty: existingModel.y\r\n\t\t};\r\n\t\tvar tooltipSize = {\r\n\t\t\twidth: existingModel.width,\r\n\t\t\theight: existingModel.height\r\n\t\t};\r\n\t\tvar tooltipPosition = {\r\n\t\t\tx: existingModel.caretX,\r\n\t\t\ty: existingModel.caretY\r\n\t\t};\r\n\r\n\t\tvar i, len;\r\n\r\n\t\tif (active.length) {\r\n\t\t\tmodel.opacity = 1;\r\n\r\n\t\t\tvar labelColors = [];\r\n\t\t\tvar labelTextColors = [];\r\n\t\t\ttooltipPosition = positioners[opts.position].call(me, active, me._eventPosition);\r\n\r\n\t\t\tvar tooltipItems = [];\r\n\t\t\tfor (i = 0, len = active.length; i < len; ++i) {\r\n\t\t\t\ttooltipItems.push(createTooltipItem(active[i]));\r\n\t\t\t}\r\n\r\n\t\t\t// If the user provided a filter function, use it to modify the tooltip items\r\n\t\t\tif (opts.filter) {\r\n\t\t\t\ttooltipItems = tooltipItems.filter(function(a) {\r\n\t\t\t\t\treturn opts.filter(a, data);\r\n\t\t\t\t});\r\n\t\t\t}\r\n\r\n\t\t\t// If the user provided a sorting function, use it to modify the tooltip items\r\n\t\t\tif (opts.itemSort) {\r\n\t\t\t\ttooltipItems = tooltipItems.sort(function(a, b) {\r\n\t\t\t\t\treturn opts.itemSort(a, b, data);\r\n\t\t\t\t});\r\n\t\t\t}\r\n\r\n\t\t\t// Determine colors for boxes\r\n\t\t\thelpers$1.each(tooltipItems, function(tooltipItem) {\r\n\t\t\t\tlabelColors.push(opts.callbacks.labelColor.call(me, tooltipItem, me._chart));\r\n\t\t\t\tlabelTextColors.push(opts.callbacks.labelTextColor.call(me, tooltipItem, me._chart));\r\n\t\t\t});\r\n\r\n\r\n\t\t\t// Build the Text Lines\r\n\t\t\tmodel.title = me.getTitle(tooltipItems, data);\r\n\t\t\tmodel.beforeBody = me.getBeforeBody(tooltipItems, data);\r\n\t\t\tmodel.body = me.getBody(tooltipItems, data);\r\n\t\t\tmodel.afterBody = me.getAfterBody(tooltipItems, data);\r\n\t\t\tmodel.footer = me.getFooter(tooltipItems, data);\r\n\r\n\t\t\t// Initial positioning and colors\r\n\t\t\tmodel.x = tooltipPosition.x;\r\n\t\t\tmodel.y = tooltipPosition.y;\r\n\t\t\tmodel.caretPadding = opts.caretPadding;\r\n\t\t\tmodel.labelColors = labelColors;\r\n\t\t\tmodel.labelTextColors = labelTextColors;\r\n\r\n\t\t\t// data points\r\n\t\t\tmodel.dataPoints = tooltipItems;\r\n\r\n\t\t\t// We need to determine alignment of the tooltip\r\n\t\t\ttooltipSize = getTooltipSize(this, model);\r\n\t\t\talignment = determineAlignment(this, tooltipSize);\r\n\t\t\t// Final Size and Position\r\n\t\t\tbackgroundPoint = getBackgroundPoint(model, tooltipSize, alignment, me._chart);\r\n\t\t} else {\r\n\t\t\tmodel.opacity = 0;\r\n\t\t}\r\n\r\n\t\tmodel.xAlign = alignment.xAlign;\r\n\t\tmodel.yAlign = alignment.yAlign;\r\n\t\tmodel.x = backgroundPoint.x;\r\n\t\tmodel.y = backgroundPoint.y;\r\n\t\tmodel.width = tooltipSize.width;\r\n\t\tmodel.height = tooltipSize.height;\r\n\r\n\t\t// Point where the caret on the tooltip points to\r\n\t\tmodel.caretX = tooltipPosition.x;\r\n\t\tmodel.caretY = tooltipPosition.y;\r\n\r\n\t\tme._model = model;\r\n\r\n\t\tif (changed && opts.custom) {\r\n\t\t\topts.custom.call(me, model);\r\n\t\t}\r\n\r\n\t\treturn me;\r\n\t},\r\n\r\n\tdrawCaret: function(tooltipPoint, size) {\r\n\t\tvar ctx = this._chart.ctx;\r\n\t\tvar vm = this._view;\r\n\t\tvar caretPosition = this.getCaretPosition(tooltipPoint, size, vm);\r\n\r\n\t\tctx.lineTo(caretPosition.x1, caretPosition.y1);\r\n\t\tctx.lineTo(caretPosition.x2, caretPosition.y2);\r\n\t\tctx.lineTo(caretPosition.x3, caretPosition.y3);\r\n\t},\r\n\tgetCaretPosition: function(tooltipPoint, size, vm) {\r\n\t\tvar x1, x2, x3, y1, y2, y3;\r\n\t\tvar caretSize = vm.caretSize;\r\n\t\tvar cornerRadius = vm.cornerRadius;\r\n\t\tvar xAlign = vm.xAlign;\r\n\t\tvar yAlign = vm.yAlign;\r\n\t\tvar ptX = tooltipPoint.x;\r\n\t\tvar ptY = tooltipPoint.y;\r\n\t\tvar width = size.width;\r\n\t\tvar height = size.height;\r\n\r\n\t\tif (yAlign === 'center') {\r\n\t\t\ty2 = ptY + (height / 2);\r\n\r\n\t\t\tif (xAlign === 'left') {\r\n\t\t\t\tx1 = ptX;\r\n\t\t\t\tx2 = x1 - caretSize;\r\n\t\t\t\tx3 = x1;\r\n\r\n\t\t\t\ty1 = y2 + caretSize;\r\n\t\t\t\ty3 = y2 - caretSize;\r\n\t\t\t} else {\r\n\t\t\t\tx1 = ptX + width;\r\n\t\t\t\tx2 = x1 + caretSize;\r\n\t\t\t\tx3 = x1;\r\n\r\n\t\t\t\ty1 = y2 - caretSize;\r\n\t\t\t\ty3 = y2 + caretSize;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif (xAlign === 'left') {\r\n\t\t\t\tx2 = ptX + cornerRadius + (caretSize);\r\n\t\t\t\tx1 = x2 - caretSize;\r\n\t\t\t\tx3 = x2 + caretSize;\r\n\t\t\t} else if (xAlign === 'right') {\r\n\t\t\t\tx2 = ptX + width - cornerRadius - caretSize;\r\n\t\t\t\tx1 = x2 - caretSize;\r\n\t\t\t\tx3 = x2 + caretSize;\r\n\t\t\t} else {\r\n\t\t\t\tx2 = vm.caretX;\r\n\t\t\t\tx1 = x2 - caretSize;\r\n\t\t\t\tx3 = x2 + caretSize;\r\n\t\t\t}\r\n\t\t\tif (yAlign === 'top') {\r\n\t\t\t\ty1 = ptY;\r\n\t\t\t\ty2 = y1 - caretSize;\r\n\t\t\t\ty3 = y1;\r\n\t\t\t} else {\r\n\t\t\t\ty1 = ptY + height;\r\n\t\t\t\ty2 = y1 + caretSize;\r\n\t\t\t\ty3 = y1;\r\n\t\t\t\t// invert drawing order\r\n\t\t\t\tvar tmp = x3;\r\n\t\t\t\tx3 = x1;\r\n\t\t\t\tx1 = tmp;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn {x1: x1, x2: x2, x3: x3, y1: y1, y2: y2, y3: y3};\r\n\t},\r\n\r\n\tdrawTitle: function(pt, vm, ctx) {\r\n\t\tvar title = vm.title;\r\n\t\tvar length = title.length;\r\n\t\tvar titleFontSize, titleSpacing, i;\r\n\r\n\t\tif (length) {\r\n\t\t\tvar rtlHelper = getRtlHelper(vm.rtl, vm.x, vm.width);\r\n\r\n\t\t\tpt.x = getAlignedX(vm, vm._titleAlign);\r\n\r\n\t\t\tctx.textAlign = rtlHelper.textAlign(vm._titleAlign);\r\n\t\t\tctx.textBaseline = 'middle';\r\n\r\n\t\t\ttitleFontSize = vm.titleFontSize;\r\n\t\t\ttitleSpacing = vm.titleSpacing;\r\n\r\n\t\t\tctx.fillStyle = vm.titleFontColor;\r\n\t\t\tctx.font = helpers$1.fontString(titleFontSize, vm._titleFontStyle, vm._titleFontFamily);\r\n\r\n\t\t\tfor (i = 0; i < length; ++i) {\r\n\t\t\t\tctx.fillText(title[i], rtlHelper.x(pt.x), pt.y + titleFontSize / 2);\r\n\t\t\t\tpt.y += titleFontSize + titleSpacing; // Line Height and spacing\r\n\r\n\t\t\t\tif (i + 1 === length) {\r\n\t\t\t\t\tpt.y += vm.titleMarginBottom - titleSpacing; // If Last, add margin, remove spacing\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\r\n\tdrawBody: function(pt, vm, ctx) {\r\n\t\tvar bodyFontSize = vm.bodyFontSize;\r\n\t\tvar bodySpacing = vm.bodySpacing;\r\n\t\tvar bodyAlign = vm._bodyAlign;\r\n\t\tvar body = vm.body;\r\n\t\tvar drawColorBoxes = vm.displayColors;\r\n\t\tvar xLinePadding = 0;\r\n\t\tvar colorX = drawColorBoxes ? getAlignedX(vm, 'left') : 0;\r\n\r\n\t\tvar rtlHelper = getRtlHelper(vm.rtl, vm.x, vm.width);\r\n\r\n\t\tvar fillLineOfText = function(line) {\r\n\t\t\tctx.fillText(line, rtlHelper.x(pt.x + xLinePadding), pt.y + bodyFontSize / 2);\r\n\t\t\tpt.y += bodyFontSize + bodySpacing;\r\n\t\t};\r\n\r\n\t\tvar bodyItem, textColor, labelColors, lines, i, j, ilen, jlen;\r\n\t\tvar bodyAlignForCalculation = rtlHelper.textAlign(bodyAlign);\r\n\r\n\t\tctx.textAlign = bodyAlign;\r\n\t\tctx.textBaseline = 'middle';\r\n\t\tctx.font = helpers$1.fontString(bodyFontSize, vm._bodyFontStyle, vm._bodyFontFamily);\r\n\r\n\t\tpt.x = getAlignedX(vm, bodyAlignForCalculation);\r\n\r\n\t\t// Before body lines\r\n\t\tctx.fillStyle = vm.bodyFontColor;\r\n\t\thelpers$1.each(vm.beforeBody, fillLineOfText);\r\n\r\n\t\txLinePadding = drawColorBoxes && bodyAlignForCalculation !== 'right'\r\n\t\t\t? bodyAlign === 'center' ? (bodyFontSize / 2 + 1) : (bodyFontSize + 2)\r\n\t\t\t: 0;\r\n\r\n\t\t// Draw body lines now\r\n\t\tfor (i = 0, ilen = body.length; i < ilen; ++i) {\r\n\t\t\tbodyItem = body[i];\r\n\t\t\ttextColor = vm.labelTextColors[i];\r\n\t\t\tlabelColors = vm.labelColors[i];\r\n\r\n\t\t\tctx.fillStyle = textColor;\r\n\t\t\thelpers$1.each(bodyItem.before, fillLineOfText);\r\n\r\n\t\t\tlines = bodyItem.lines;\r\n\t\t\tfor (j = 0, jlen = lines.length; j < jlen; ++j) {\r\n\t\t\t\t// Draw Legend-like boxes if needed\r\n\t\t\t\tif (drawColorBoxes) {\r\n\t\t\t\t\tvar rtlColorX = rtlHelper.x(colorX);\r\n\r\n\t\t\t\t\t// Fill a white rect so that colours merge nicely if the opacity is < 1\r\n\t\t\t\t\tctx.fillStyle = vm.legendColorBackground;\r\n\t\t\t\t\tctx.fillRect(rtlHelper.leftForLtr(rtlColorX, bodyFontSize), pt.y, bodyFontSize, bodyFontSize);\r\n\r\n\t\t\t\t\t// Border\r\n\t\t\t\t\tctx.lineWidth = 1;\r\n\t\t\t\t\tctx.strokeStyle = labelColors.borderColor;\r\n\t\t\t\t\tctx.strokeRect(rtlHelper.leftForLtr(rtlColorX, bodyFontSize), pt.y, bodyFontSize, bodyFontSize);\r\n\r\n\t\t\t\t\t// Inner square\r\n\t\t\t\t\tctx.fillStyle = labelColors.backgroundColor;\r\n\t\t\t\t\tctx.fillRect(rtlHelper.leftForLtr(rtlHelper.xPlus(rtlColorX, 1), bodyFontSize - 2), pt.y + 1, bodyFontSize - 2, bodyFontSize - 2);\r\n\t\t\t\t\tctx.fillStyle = textColor;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tfillLineOfText(lines[j]);\r\n\t\t\t}\r\n\r\n\t\t\thelpers$1.each(bodyItem.after, fillLineOfText);\r\n\t\t}\r\n\r\n\t\t// Reset back to 0 for after body\r\n\t\txLinePadding = 0;\r\n\r\n\t\t// After body lines\r\n\t\thelpers$1.each(vm.afterBody, fillLineOfText);\r\n\t\tpt.y -= bodySpacing; // Remove last body spacing\r\n\t},\r\n\r\n\tdrawFooter: function(pt, vm, ctx) {\r\n\t\tvar footer = vm.footer;\r\n\t\tvar length = footer.length;\r\n\t\tvar footerFontSize, i;\r\n\r\n\t\tif (length) {\r\n\t\t\tvar rtlHelper = getRtlHelper(vm.rtl, vm.x, vm.width);\r\n\r\n\t\t\tpt.x = getAlignedX(vm, vm._footerAlign);\r\n\t\t\tpt.y += vm.footerMarginTop;\r\n\r\n\t\t\tctx.textAlign = rtlHelper.textAlign(vm._footerAlign);\r\n\t\t\tctx.textBaseline = 'middle';\r\n\r\n\t\t\tfooterFontSize = vm.footerFontSize;\r\n\r\n\t\t\tctx.fillStyle = vm.footerFontColor;\r\n\t\t\tctx.font = helpers$1.fontString(footerFontSize, vm._footerFontStyle, vm._footerFontFamily);\r\n\r\n\t\t\tfor (i = 0; i < length; ++i) {\r\n\t\t\t\tctx.fillText(footer[i], rtlHelper.x(pt.x), pt.y + footerFontSize / 2);\r\n\t\t\t\tpt.y += footerFontSize + vm.footerSpacing;\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\r\n\tdrawBackground: function(pt, vm, ctx, tooltipSize) {\r\n\t\tctx.fillStyle = vm.backgroundColor;\r\n\t\tctx.strokeStyle = vm.borderColor;\r\n\t\tctx.lineWidth = vm.borderWidth;\r\n\t\tvar xAlign = vm.xAlign;\r\n\t\tvar yAlign = vm.yAlign;\r\n\t\tvar x = pt.x;\r\n\t\tvar y = pt.y;\r\n\t\tvar width = tooltipSize.width;\r\n\t\tvar height = tooltipSize.height;\r\n\t\tvar radius = vm.cornerRadius;\r\n\r\n\t\tctx.beginPath();\r\n\t\tctx.moveTo(x + radius, y);\r\n\t\tif (yAlign === 'top') {\r\n\t\t\tthis.drawCaret(pt, tooltipSize);\r\n\t\t}\r\n\t\tctx.lineTo(x + width - radius, y);\r\n\t\tctx.quadraticCurveTo(x + width, y, x + width, y + radius);\r\n\t\tif (yAlign === 'center' && xAlign === 'right') {\r\n\t\t\tthis.drawCaret(pt, tooltipSize);\r\n\t\t}\r\n\t\tctx.lineTo(x + width, y + height - radius);\r\n\t\tctx.quadraticCurveTo(x + width, y + height, x + width - radius, y + height);\r\n\t\tif (yAlign === 'bottom') {\r\n\t\t\tthis.drawCaret(pt, tooltipSize);\r\n\t\t}\r\n\t\tctx.lineTo(x + radius, y + height);\r\n\t\tctx.quadraticCurveTo(x, y + height, x, y + height - radius);\r\n\t\tif (yAlign === 'center' && xAlign === 'left') {\r\n\t\t\tthis.drawCaret(pt, tooltipSize);\r\n\t\t}\r\n\t\tctx.lineTo(x, y + radius);\r\n\t\tctx.quadraticCurveTo(x, y, x + radius, y);\r\n\t\tctx.closePath();\r\n\r\n\t\tctx.fill();\r\n\r\n\t\tif (vm.borderWidth > 0) {\r\n\t\t\tctx.stroke();\r\n\t\t}\r\n\t},\r\n\r\n\tdraw: function() {\r\n\t\tvar ctx = this._chart.ctx;\r\n\t\tvar vm = this._view;\r\n\r\n\t\tif (vm.opacity === 0) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar tooltipSize = {\r\n\t\t\twidth: vm.width,\r\n\t\t\theight: vm.height\r\n\t\t};\r\n\t\tvar pt = {\r\n\t\t\tx: vm.x,\r\n\t\t\ty: vm.y\r\n\t\t};\r\n\r\n\t\t// IE11/Edge does not like very small opacities, so snap to 0\r\n\t\tvar opacity = Math.abs(vm.opacity < 1e-3) ? 0 : vm.opacity;\r\n\r\n\t\t// Truthy/falsey value for empty tooltip\r\n\t\tvar hasTooltipContent = vm.title.length || vm.beforeBody.length || vm.body.length || vm.afterBody.length || vm.footer.length;\r\n\r\n\t\tif (this._options.enabled && hasTooltipContent) {\r\n\t\t\tctx.save();\r\n\t\t\tctx.globalAlpha = opacity;\r\n\r\n\t\t\t// Draw Background\r\n\t\t\tthis.drawBackground(pt, vm, ctx, tooltipSize);\r\n\r\n\t\t\t// Draw Title, Body, and Footer\r\n\t\t\tpt.y += vm.yPadding;\r\n\r\n\t\t\thelpers$1.rtl.overrideTextDirection(ctx, vm.textDirection);\r\n\r\n\t\t\t// Titles\r\n\t\t\tthis.drawTitle(pt, vm, ctx);\r\n\r\n\t\t\t// Body\r\n\t\t\tthis.drawBody(pt, vm, ctx);\r\n\r\n\t\t\t// Footer\r\n\t\t\tthis.drawFooter(pt, vm, ctx);\r\n\r\n\t\t\thelpers$1.rtl.restoreTextDirection(ctx, vm.textDirection);\r\n\r\n\t\t\tctx.restore();\r\n\t\t}\r\n\t},\r\n\r\n\t/**\r\n\t * Handle an event\r\n\t * @private\r\n\t * @param {IEvent} event - The event to handle\r\n\t * @returns {boolean} true if the tooltip changed\r\n\t */\r\n\thandleEvent: function(e) {\r\n\t\tvar me = this;\r\n\t\tvar options = me._options;\r\n\t\tvar changed = false;\r\n\r\n\t\tme._lastActive = me._lastActive || [];\r\n\r\n\t\t// Find Active Elements for tooltips\r\n\t\tif (e.type === 'mouseout') {\r\n\t\t\tme._active = [];\r\n\t\t} else {\r\n\t\t\tme._active = me._chart.getElementsAtEventForMode(e, options.mode, options);\r\n\t\t\tif (options.reverse) {\r\n\t\t\t\tme._active.reverse();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Remember Last Actives\r\n\t\tchanged = !helpers$1.arrayEquals(me._active, me._lastActive);\r\n\r\n\t\t// Only handle target event on tooltip change\r\n\t\tif (changed) {\r\n\t\t\tme._lastActive = me._active;\r\n\r\n\t\t\tif (options.enabled || options.custom) {\r\n\t\t\t\tme._eventPosition = {\r\n\t\t\t\t\tx: e.x,\r\n\t\t\t\t\ty: e.y\r\n\t\t\t\t};\r\n\r\n\t\t\t\tme.update(true);\r\n\t\t\t\tme.pivot();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn changed;\r\n\t}\r\n});\r\n\r\n/**\r\n * @namespace Chart.Tooltip.positioners\r\n */\r\nvar positioners_1 = positioners;\r\n\r\nvar core_tooltip = exports$4;\ncore_tooltip.positioners = positioners_1;\n\nvar valueOrDefault$9 = helpers$1.valueOrDefault;\r\n\r\ncore_defaults._set('global', {\r\n\telements: {},\r\n\tevents: [\r\n\t\t'mousemove',\r\n\t\t'mouseout',\r\n\t\t'click',\r\n\t\t'touchstart',\r\n\t\t'touchmove'\r\n\t],\r\n\thover: {\r\n\t\tonHover: null,\r\n\t\tmode: 'nearest',\r\n\t\tintersect: true,\r\n\t\tanimationDuration: 400\r\n\t},\r\n\tonClick: null,\r\n\tmaintainAspectRatio: true,\r\n\tresponsive: true,\r\n\tresponsiveAnimationDuration: 0\r\n});\r\n\r\n/**\r\n * Recursively merge the given config objects representing the `scales` option\r\n * by incorporating scale defaults in `xAxes` and `yAxes` array items, then\r\n * returns a deep copy of the result, thus doesn't alter inputs.\r\n */\r\nfunction mergeScaleConfig(/* config objects ... */) {\r\n\treturn helpers$1.merge(Object.create(null), [].slice.call(arguments), {\r\n\t\tmerger: function(key, target, source, options) {\r\n\t\t\tif (key === 'xAxes' || key === 'yAxes') {\r\n\t\t\t\tvar slen = source[key].length;\r\n\t\t\t\tvar i, type, scale;\r\n\r\n\t\t\t\tif (!target[key]) {\r\n\t\t\t\t\ttarget[key] = [];\r\n\t\t\t\t}\r\n\r\n\t\t\t\tfor (i = 0; i < slen; ++i) {\r\n\t\t\t\t\tscale = source[key][i];\r\n\t\t\t\t\ttype = valueOrDefault$9(scale.type, key === 'xAxes' ? 'category' : 'linear');\r\n\r\n\t\t\t\t\tif (i >= target[key].length) {\r\n\t\t\t\t\t\ttarget[key].push({});\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (!target[key][i].type || (scale.type && scale.type !== target[key][i].type)) {\r\n\t\t\t\t\t\t// new/untyped scale or type changed: let's apply the new defaults\r\n\t\t\t\t\t\t// then merge source scale to correctly overwrite the defaults.\r\n\t\t\t\t\t\thelpers$1.merge(target[key][i], [core_scaleService.getScaleDefaults(type), scale]);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t// scales type are the same\r\n\t\t\t\t\t\thelpers$1.merge(target[key][i], scale);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\thelpers$1._merger(key, target, source, options);\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n}\r\n\r\n/**\r\n * Recursively merge the given config objects as the root options by handling\r\n * default scale options for the `scales` and `scale` properties, then returns\r\n * a deep copy of the result, thus doesn't alter inputs.\r\n */\r\nfunction mergeConfig(/* config objects ... */) {\r\n\treturn helpers$1.merge(Object.create(null), [].slice.call(arguments), {\r\n\t\tmerger: function(key, target, source, options) {\r\n\t\t\tvar tval = target[key] || Object.create(null);\r\n\t\t\tvar sval = source[key];\r\n\r\n\t\t\tif (key === 'scales') {\r\n\t\t\t\t// scale config merging is complex. Add our own function here for that\r\n\t\t\t\ttarget[key] = mergeScaleConfig(tval, sval);\r\n\t\t\t} else if (key === 'scale') {\r\n\t\t\t\t// used in polar area & radar charts since there is only one scale\r\n\t\t\t\ttarget[key] = helpers$1.merge(tval, [core_scaleService.getScaleDefaults(sval.type), sval]);\r\n\t\t\t} else {\r\n\t\t\t\thelpers$1._merger(key, target, source, options);\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n}\r\n\r\nfunction initConfig(config) {\r\n\tconfig = config || Object.create(null);\r\n\r\n\t// Do NOT use mergeConfig for the data object because this method merges arrays\r\n\t// and so would change references to labels and datasets, preventing data updates.\r\n\tvar data = config.data = config.data || {};\r\n\tdata.datasets = data.datasets || [];\r\n\tdata.labels = data.labels || [];\r\n\r\n\tconfig.options = mergeConfig(\r\n\t\tcore_defaults.global,\r\n\t\tcore_defaults[config.type],\r\n\t\tconfig.options || {});\r\n\r\n\treturn config;\r\n}\r\n\r\nfunction updateConfig(chart) {\r\n\tvar newOptions = chart.options;\r\n\r\n\thelpers$1.each(chart.scales, function(scale) {\r\n\t\tcore_layouts.removeBox(chart, scale);\r\n\t});\r\n\r\n\tnewOptions = mergeConfig(\r\n\t\tcore_defaults.global,\r\n\t\tcore_defaults[chart.config.type],\r\n\t\tnewOptions);\r\n\r\n\tchart.options = chart.config.options = newOptions;\r\n\tchart.ensureScalesHaveIDs();\r\n\tchart.buildOrUpdateScales();\r\n\r\n\t// Tooltip\r\n\tchart.tooltip._options = newOptions.tooltips;\r\n\tchart.tooltip.initialize();\r\n}\r\n\r\nfunction nextAvailableScaleId(axesOpts, prefix, index) {\r\n\tvar id;\r\n\tvar hasId = function(obj) {\r\n\t\treturn obj.id === id;\r\n\t};\r\n\r\n\tdo {\r\n\t\tid = prefix + index++;\r\n\t} while (helpers$1.findIndex(axesOpts, hasId) >= 0);\r\n\r\n\treturn id;\r\n}\r\n\r\nfunction positionIsHorizontal(position) {\r\n\treturn position === 'top' || position === 'bottom';\r\n}\r\n\r\nfunction compare2Level(l1, l2) {\r\n\treturn function(a, b) {\r\n\t\treturn a[l1] === b[l1]\r\n\t\t\t? a[l2] - b[l2]\r\n\t\t\t: a[l1] - b[l1];\r\n\t};\r\n}\r\n\r\nvar Chart = function(item, config) {\r\n\tthis.construct(item, config);\r\n\treturn this;\r\n};\r\n\r\nhelpers$1.extend(Chart.prototype, /** @lends Chart */ {\r\n\t/**\r\n\t * @private\r\n\t */\r\n\tconstruct: function(item, config) {\r\n\t\tvar me = this;\r\n\r\n\t\tconfig = initConfig(config);\r\n\r\n\t\tvar context = platform.acquireContext(item, config);\r\n\t\tvar canvas = context && context.canvas;\r\n\t\tvar height = canvas && canvas.height;\r\n\t\tvar width = canvas && canvas.width;\r\n\r\n\t\tme.id = helpers$1.uid();\r\n\t\tme.ctx = context;\r\n\t\tme.canvas = canvas;\r\n\t\tme.config = config;\r\n\t\tme.width = width;\r\n\t\tme.height = height;\r\n\t\tme.aspectRatio = height ? width / height : null;\r\n\t\tme.options = config.options;\r\n\t\tme._bufferedRender = false;\r\n\t\tme._layers = [];\r\n\r\n\t\t/**\r\n\t\t * Provided for backward compatibility, Chart and Chart.Controller have been merged,\r\n\t\t * the \"instance\" still need to be defined since it might be called from plugins.\r\n\t\t * @prop Chart#chart\r\n\t\t * @deprecated since version 2.6.0\r\n\t\t * @todo remove at version 3\r\n\t\t * @private\r\n\t\t */\r\n\t\tme.chart = me;\r\n\t\tme.controller = me; // chart.chart.controller #inception\r\n\r\n\t\t// Add the chart instance to the global namespace\r\n\t\tChart.instances[me.id] = me;\r\n\r\n\t\t// Define alias to the config data: `chart.data === chart.config.data`\r\n\t\tObject.defineProperty(me, 'data', {\r\n\t\t\tget: function() {\r\n\t\t\t\treturn me.config.data;\r\n\t\t\t},\r\n\t\t\tset: function(value) {\r\n\t\t\t\tme.config.data = value;\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tif (!context || !canvas) {\r\n\t\t\t// The given item is not a compatible context2d element, let's return before finalizing\r\n\t\t\t// the chart initialization but after setting basic chart / controller properties that\r\n\t\t\t// can help to figure out that the chart is not valid (e.g chart.canvas !== null);\r\n\t\t\t// https://github.com/chartjs/Chart.js/issues/2807\r\n\t\t\tconsole.error(\"Failed to create chart: can't acquire context from the given item\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tme.initialize();\r\n\t\tme.update();\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\tinitialize: function() {\r\n\t\tvar me = this;\r\n\r\n\t\t// Before init plugin notification\r\n\t\tcore_plugins.notify(me, 'beforeInit');\r\n\r\n\t\thelpers$1.retinaScale(me, me.options.devicePixelRatio);\r\n\r\n\t\tme.bindEvents();\r\n\r\n\t\tif (me.options.responsive) {\r\n\t\t\t// Initial resize before chart draws (must be silent to preserve initial animations).\r\n\t\t\tme.resize(true);\r\n\t\t}\r\n\r\n\t\tme.initToolTip();\r\n\r\n\t\t// After init plugin notification\r\n\t\tcore_plugins.notify(me, 'afterInit');\r\n\r\n\t\treturn me;\r\n\t},\r\n\r\n\tclear: function() {\r\n\t\thelpers$1.canvas.clear(this);\r\n\t\treturn this;\r\n\t},\r\n\r\n\tstop: function() {\r\n\t\t// Stops any current animation loop occurring\r\n\t\tcore_animations.cancelAnimation(this);\r\n\t\treturn this;\r\n\t},\r\n\r\n\tresize: function(silent) {\r\n\t\tvar me = this;\r\n\t\tvar options = me.options;\r\n\t\tvar canvas = me.canvas;\r\n\t\tvar aspectRatio = (options.maintainAspectRatio && me.aspectRatio) || null;\r\n\r\n\t\t// the canvas render width and height will be casted to integers so make sure that\r\n\t\t// the canvas display style uses the same integer values to avoid blurring effect.\r\n\r\n\t\t// Set to 0 instead of canvas.size because the size defaults to 300x150 if the element is collapsed\r\n\t\tvar newWidth = Math.max(0, Math.floor(helpers$1.getMaximumWidth(canvas)));\r\n\t\tvar newHeight = Math.max(0, Math.floor(aspectRatio ? newWidth / aspectRatio : helpers$1.getMaximumHeight(canvas)));\r\n\r\n\t\tif (me.width === newWidth && me.height === newHeight) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tcanvas.width = me.width = newWidth;\r\n\t\tcanvas.height = me.height = newHeight;\r\n\t\tcanvas.style.width = newWidth + 'px';\r\n\t\tcanvas.style.height = newHeight + 'px';\r\n\r\n\t\thelpers$1.retinaScale(me, options.devicePixelRatio);\r\n\r\n\t\tif (!silent) {\r\n\t\t\t// Notify any plugins about the resize\r\n\t\t\tvar newSize = {width: newWidth, height: newHeight};\r\n\t\t\tcore_plugins.notify(me, 'resize', [newSize]);\r\n\r\n\t\t\t// Notify of resize\r\n\t\t\tif (options.onResize) {\r\n\t\t\t\toptions.onResize(me, newSize);\r\n\t\t\t}\r\n\r\n\t\t\tme.stop();\r\n\t\t\tme.update({\r\n\t\t\t\tduration: options.responsiveAnimationDuration\r\n\t\t\t});\r\n\t\t}\r\n\t},\r\n\r\n\tensureScalesHaveIDs: function() {\r\n\t\tvar options = this.options;\r\n\t\tvar scalesOptions = options.scales || {};\r\n\t\tvar scaleOptions = options.scale;\r\n\r\n\t\thelpers$1.each(scalesOptions.xAxes, function(xAxisOptions, index) {\r\n\t\t\tif (!xAxisOptions.id) {\r\n\t\t\t\txAxisOptions.id = nextAvailableScaleId(scalesOptions.xAxes, 'x-axis-', index);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\thelpers$1.each(scalesOptions.yAxes, function(yAxisOptions, index) {\r\n\t\t\tif (!yAxisOptions.id) {\r\n\t\t\t\tyAxisOptions.id = nextAvailableScaleId(scalesOptions.yAxes, 'y-axis-', index);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tif (scaleOptions) {\r\n\t\t\tscaleOptions.id = scaleOptions.id || 'scale';\r\n\t\t}\r\n\t},\r\n\r\n\t/**\r\n\t * Builds a map of scale ID to scale object for future lookup.\r\n\t */\r\n\tbuildOrUpdateScales: function() {\r\n\t\tvar me = this;\r\n\t\tvar options = me.options;\r\n\t\tvar scales = me.scales || {};\r\n\t\tvar items = [];\r\n\t\tvar updated = Object.keys(scales).reduce(function(obj, id) {\r\n\t\t\tobj[id] = false;\r\n\t\t\treturn obj;\r\n\t\t}, {});\r\n\r\n\t\tif (options.scales) {\r\n\t\t\titems = items.concat(\r\n\t\t\t\t(options.scales.xAxes || []).map(function(xAxisOptions) {\r\n\t\t\t\t\treturn {options: xAxisOptions, dtype: 'category', dposition: 'bottom'};\r\n\t\t\t\t}),\r\n\t\t\t\t(options.scales.yAxes || []).map(function(yAxisOptions) {\r\n\t\t\t\t\treturn {options: yAxisOptions, dtype: 'linear', dposition: 'left'};\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t\t}\r\n\r\n\t\tif (options.scale) {\r\n\t\t\titems.push({\r\n\t\t\t\toptions: options.scale,\r\n\t\t\t\tdtype: 'radialLinear',\r\n\t\t\t\tisDefault: true,\r\n\t\t\t\tdposition: 'chartArea'\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\thelpers$1.each(items, function(item) {\r\n\t\t\tvar scaleOptions = item.options;\r\n\t\t\tvar id = scaleOptions.id;\r\n\t\t\tvar scaleType = valueOrDefault$9(scaleOptions.type, item.dtype);\r\n\r\n\t\t\tif (positionIsHorizontal(scaleOptions.position) !== positionIsHorizontal(item.dposition)) {\r\n\t\t\t\tscaleOptions.position = item.dposition;\r\n\t\t\t}\r\n\r\n\t\t\tupdated[id] = true;\r\n\t\t\tvar scale = null;\r\n\t\t\tif (id in scales && scales[id].type === scaleType) {\r\n\t\t\t\tscale = scales[id];\r\n\t\t\t\tscale.options = scaleOptions;\r\n\t\t\t\tscale.ctx = me.ctx;\r\n\t\t\t\tscale.chart = me;\r\n\t\t\t} else {\r\n\t\t\t\tvar scaleClass = core_scaleService.getScaleConstructor(scaleType);\r\n\t\t\t\tif (!scaleClass) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tscale = new scaleClass({\r\n\t\t\t\t\tid: id,\r\n\t\t\t\t\ttype: scaleType,\r\n\t\t\t\t\toptions: scaleOptions,\r\n\t\t\t\t\tctx: me.ctx,\r\n\t\t\t\t\tchart: me\r\n\t\t\t\t});\r\n\t\t\t\tscales[scale.id] = scale;\r\n\t\t\t}\r\n\r\n\t\t\tscale.mergeTicksOptions();\r\n\r\n\t\t\t// TODO(SB): I think we should be able to remove this custom case (options.scale)\r\n\t\t\t// and consider it as a regular scale part of the \"scales\"\" map only! This would\r\n\t\t\t// make the logic easier and remove some useless? custom code.\r\n\t\t\tif (item.isDefault) {\r\n\t\t\t\tme.scale = scale;\r\n\t\t\t}\r\n\t\t});\r\n\t\t// clear up discarded scales\r\n\t\thelpers$1.each(updated, function(hasUpdated, id) {\r\n\t\t\tif (!hasUpdated) {\r\n\t\t\t\tdelete scales[id];\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tme.scales = scales;\r\n\r\n\t\tcore_scaleService.addScalesToLayout(this);\r\n\t},\r\n\r\n\tbuildOrUpdateControllers: function() {\r\n\t\tvar me = this;\r\n\t\tvar newControllers = [];\r\n\t\tvar datasets = me.data.datasets;\r\n\t\tvar i, ilen;\r\n\r\n\t\tfor (i = 0, ilen = datasets.length; i < ilen; i++) {\r\n\t\t\tvar dataset = datasets[i];\r\n\t\t\tvar meta = me.getDatasetMeta(i);\r\n\t\t\tvar type = dataset.type || me.config.type;\r\n\r\n\t\t\tif (meta.type && meta.type !== type) {\r\n\t\t\t\tme.destroyDatasetMeta(i);\r\n\t\t\t\tmeta = me.getDatasetMeta(i);\r\n\t\t\t}\r\n\t\t\tmeta.type = type;\r\n\t\t\tmeta.order = dataset.order || 0;\r\n\t\t\tmeta.index = i;\r\n\r\n\t\t\tif (meta.controller) {\r\n\t\t\t\tmeta.controller.updateIndex(i);\r\n\t\t\t\tmeta.controller.linkScales();\r\n\t\t\t} else {\r\n\t\t\t\tvar ControllerClass = controllers[meta.type];\r\n\t\t\t\tif (ControllerClass === undefined) {\r\n\t\t\t\t\tthrow new Error('\"' + meta.type + '\" is not a chart type.');\r\n\t\t\t\t}\r\n\r\n\t\t\t\tmeta.controller = new ControllerClass(me, i);\r\n\t\t\t\tnewControllers.push(meta.controller);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn newControllers;\r\n\t},\r\n\r\n\t/**\r\n\t * Reset the elements of all datasets\r\n\t * @private\r\n\t */\r\n\tresetElements: function() {\r\n\t\tvar me = this;\r\n\t\thelpers$1.each(me.data.datasets, function(dataset, datasetIndex) {\r\n\t\t\tme.getDatasetMeta(datasetIndex).controller.reset();\r\n\t\t}, me);\r\n\t},\r\n\r\n\t/**\r\n\t* Resets the chart back to it's state before the initial animation\r\n\t*/\r\n\treset: function() {\r\n\t\tthis.resetElements();\r\n\t\tthis.tooltip.initialize();\r\n\t},\r\n\r\n\tupdate: function(config) {\r\n\t\tvar me = this;\r\n\t\tvar i, ilen;\r\n\r\n\t\tif (!config || typeof config !== 'object') {\r\n\t\t\t// backwards compatibility\r\n\t\t\tconfig = {\r\n\t\t\t\tduration: config,\r\n\t\t\t\tlazy: arguments[1]\r\n\t\t\t};\r\n\t\t}\r\n\r\n\t\tupdateConfig(me);\r\n\r\n\t\t// plugins options references might have change, let's invalidate the cache\r\n\t\t// https://github.com/chartjs/Chart.js/issues/5111#issuecomment-355934167\r\n\t\tcore_plugins._invalidate(me);\r\n\r\n\t\tif (core_plugins.notify(me, 'beforeUpdate') === false) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// In case the entire data object changed\r\n\t\tme.tooltip._data = me.data;\r\n\r\n\t\t// Make sure dataset controllers are updated and new controllers are reset\r\n\t\tvar newControllers = me.buildOrUpdateControllers();\r\n\r\n\t\t// Make sure all dataset controllers have correct meta data counts\r\n\t\tfor (i = 0, ilen = me.data.datasets.length; i < ilen; i++) {\r\n\t\t\tme.getDatasetMeta(i).controller.buildOrUpdateElements();\r\n\t\t}\r\n\r\n\t\tme.updateLayout();\r\n\r\n\t\t// Can only reset the new controllers after the scales have been updated\r\n\t\tif (me.options.animation && me.options.animation.duration) {\r\n\t\t\thelpers$1.each(newControllers, function(controller) {\r\n\t\t\t\tcontroller.reset();\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tme.updateDatasets();\r\n\r\n\t\t// Need to reset tooltip in case it is displayed with elements that are removed\r\n\t\t// after update.\r\n\t\tme.tooltip.initialize();\r\n\r\n\t\t// Last active contains items that were previously in the tooltip.\r\n\t\t// When we reset the tooltip, we need to clear it\r\n\t\tme.lastActive = [];\r\n\r\n\t\t// Do this before render so that any plugins that need final scale updates can use it\r\n\t\tcore_plugins.notify(me, 'afterUpdate');\r\n\r\n\t\tme._layers.sort(compare2Level('z', '_idx'));\r\n\r\n\t\tif (me._bufferedRender) {\r\n\t\t\tme._bufferedRequest = {\r\n\t\t\t\tduration: config.duration,\r\n\t\t\t\teasing: config.easing,\r\n\t\t\t\tlazy: config.lazy\r\n\t\t\t};\r\n\t\t} else {\r\n\t\t\tme.render(config);\r\n\t\t}\r\n\t},\r\n\r\n\t/**\r\n\t * Updates the chart layout unless a plugin returns `false` to the `beforeLayout`\r\n\t * hook, in which case, plugins will not be called on `afterLayout`.\r\n\t * @private\r\n\t */\r\n\tupdateLayout: function() {\r\n\t\tvar me = this;\r\n\r\n\t\tif (core_plugins.notify(me, 'beforeLayout') === false) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tcore_layouts.update(this, this.width, this.height);\r\n\r\n\t\tme._layers = [];\r\n\t\thelpers$1.each(me.boxes, function(box) {\r\n\t\t\t// _configure is called twice, once in core.scale.update and once here.\r\n\t\t\t// Here the boxes are fully updated and at their final positions.\r\n\t\t\tif (box._configure) {\r\n\t\t\t\tbox._configure();\r\n\t\t\t}\r\n\t\t\tme._layers.push.apply(me._layers, box._layers());\r\n\t\t}, me);\r\n\r\n\t\tme._layers.forEach(function(item, index) {\r\n\t\t\titem._idx = index;\r\n\t\t});\r\n\r\n\t\t/**\r\n\t\t * Provided for backward compatibility, use `afterLayout` instead.\r\n\t\t * @method IPlugin#afterScaleUpdate\r\n\t\t * @deprecated since version 2.5.0\r\n\t\t * @todo remove at version 3\r\n\t\t * @private\r\n\t\t */\r\n\t\tcore_plugins.notify(me, 'afterScaleUpdate');\r\n\t\tcore_plugins.notify(me, 'afterLayout');\r\n\t},\r\n\r\n\t/**\r\n\t * Updates all datasets unless a plugin returns `false` to the `beforeDatasetsUpdate`\r\n\t * hook, in which case, plugins will not be called on `afterDatasetsUpdate`.\r\n\t * @private\r\n\t */\r\n\tupdateDatasets: function() {\r\n\t\tvar me = this;\r\n\r\n\t\tif (core_plugins.notify(me, 'beforeDatasetsUpdate') === false) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tfor (var i = 0, ilen = me.data.datasets.length; i < ilen; ++i) {\r\n\t\t\tme.updateDataset(i);\r\n\t\t}\r\n\r\n\t\tcore_plugins.notify(me, 'afterDatasetsUpdate');\r\n\t},\r\n\r\n\t/**\r\n\t * Updates dataset at index unless a plugin returns `false` to the `beforeDatasetUpdate`\r\n\t * hook, in which case, plugins will not be called on `afterDatasetUpdate`.\r\n\t * @private\r\n\t */\r\n\tupdateDataset: function(index) {\r\n\t\tvar me = this;\r\n\t\tvar meta = me.getDatasetMeta(index);\r\n\t\tvar args = {\r\n\t\t\tmeta: meta,\r\n\t\t\tindex: index\r\n\t\t};\r\n\r\n\t\tif (core_plugins.notify(me, 'beforeDatasetUpdate', [args]) === false) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tmeta.controller._update();\r\n\r\n\t\tcore_plugins.notify(me, 'afterDatasetUpdate', [args]);\r\n\t},\r\n\r\n\trender: function(config) {\r\n\t\tvar me = this;\r\n\r\n\t\tif (!config || typeof config !== 'object') {\r\n\t\t\t// backwards compatibility\r\n\t\t\tconfig = {\r\n\t\t\t\tduration: config,\r\n\t\t\t\tlazy: arguments[1]\r\n\t\t\t};\r\n\t\t}\r\n\r\n\t\tvar animationOptions = me.options.animation;\r\n\t\tvar duration = valueOrDefault$9(config.duration, animationOptions && animationOptions.duration);\r\n\t\tvar lazy = config.lazy;\r\n\r\n\t\tif (core_plugins.notify(me, 'beforeRender') === false) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar onComplete = function(animation) {\r\n\t\t\tcore_plugins.notify(me, 'afterRender');\r\n\t\t\thelpers$1.callback(animationOptions && animationOptions.onComplete, [animation], me);\r\n\t\t};\r\n\r\n\t\tif (animationOptions && duration) {\r\n\t\t\tvar animation = new core_animation({\r\n\t\t\t\tnumSteps: duration / 16.66, // 60 fps\r\n\t\t\t\teasing: config.easing || animationOptions.easing,\r\n\r\n\t\t\t\trender: function(chart, animationObject) {\r\n\t\t\t\t\tvar easingFunction = helpers$1.easing.effects[animationObject.easing];\r\n\t\t\t\t\tvar currentStep = animationObject.currentStep;\r\n\t\t\t\t\tvar stepDecimal = currentStep / animationObject.numSteps;\r\n\r\n\t\t\t\t\tchart.draw(easingFunction(stepDecimal), stepDecimal, currentStep);\r\n\t\t\t\t},\r\n\r\n\t\t\t\tonAnimationProgress: animationOptions.onProgress,\r\n\t\t\t\tonAnimationComplete: onComplete\r\n\t\t\t});\r\n\r\n\t\t\tcore_animations.addAnimation(me, animation, duration, lazy);\r\n\t\t} else {\r\n\t\t\tme.draw();\r\n\r\n\t\t\t// See https://github.com/chartjs/Chart.js/issues/3781\r\n\t\t\tonComplete(new core_animation({numSteps: 0, chart: me}));\r\n\t\t}\r\n\r\n\t\treturn me;\r\n\t},\r\n\r\n\tdraw: function(easingValue) {\r\n\t\tvar me = this;\r\n\t\tvar i, layers;\r\n\r\n\t\tme.clear();\r\n\r\n\t\tif (helpers$1.isNullOrUndef(easingValue)) {\r\n\t\t\teasingValue = 1;\r\n\t\t}\r\n\r\n\t\tme.transition(easingValue);\r\n\r\n\t\tif (me.width <= 0 || me.height <= 0) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (core_plugins.notify(me, 'beforeDraw', [easingValue]) === false) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// Because of plugin hooks (before/afterDatasetsDraw), datasets can't\r\n\t\t// currently be part of layers. Instead, we draw\r\n\t\t// layers <= 0 before(default, backward compat), and the rest after\r\n\t\tlayers = me._layers;\r\n\t\tfor (i = 0; i < layers.length && layers[i].z <= 0; ++i) {\r\n\t\t\tlayers[i].draw(me.chartArea);\r\n\t\t}\r\n\r\n\t\tme.drawDatasets(easingValue);\r\n\r\n\t\t// Rest of layers\r\n\t\tfor (; i < layers.length; ++i) {\r\n\t\t\tlayers[i].draw(me.chartArea);\r\n\t\t}\r\n\r\n\t\tme._drawTooltip(easingValue);\r\n\r\n\t\tcore_plugins.notify(me, 'afterDraw', [easingValue]);\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\ttransition: function(easingValue) {\r\n\t\tvar me = this;\r\n\r\n\t\tfor (var i = 0, ilen = (me.data.datasets || []).length; i < ilen; ++i) {\r\n\t\t\tif (me.isDatasetVisible(i)) {\r\n\t\t\t\tme.getDatasetMeta(i).controller.transition(easingValue);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tme.tooltip.transition(easingValue);\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_getSortedDatasetMetas: function(filterVisible) {\r\n\t\tvar me = this;\r\n\t\tvar datasets = me.data.datasets || [];\r\n\t\tvar result = [];\r\n\t\tvar i, ilen;\r\n\r\n\t\tfor (i = 0, ilen = datasets.length; i < ilen; ++i) {\r\n\t\t\tif (!filterVisible || me.isDatasetVisible(i)) {\r\n\t\t\t\tresult.push(me.getDatasetMeta(i));\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tresult.sort(compare2Level('order', 'index'));\r\n\r\n\t\treturn result;\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_getSortedVisibleDatasetMetas: function() {\r\n\t\treturn this._getSortedDatasetMetas(true);\r\n\t},\r\n\r\n\t/**\r\n\t * Draws all datasets unless a plugin returns `false` to the `beforeDatasetsDraw`\r\n\t * hook, in which case, plugins will not be called on `afterDatasetsDraw`.\r\n\t * @private\r\n\t */\r\n\tdrawDatasets: function(easingValue) {\r\n\t\tvar me = this;\r\n\t\tvar metasets, i;\r\n\r\n\t\tif (core_plugins.notify(me, 'beforeDatasetsDraw', [easingValue]) === false) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tmetasets = me._getSortedVisibleDatasetMetas();\r\n\t\tfor (i = metasets.length - 1; i >= 0; --i) {\r\n\t\t\tme.drawDataset(metasets[i], easingValue);\r\n\t\t}\r\n\r\n\t\tcore_plugins.notify(me, 'afterDatasetsDraw', [easingValue]);\r\n\t},\r\n\r\n\t/**\r\n\t * Draws dataset at index unless a plugin returns `false` to the `beforeDatasetDraw`\r\n\t * hook, in which case, plugins will not be called on `afterDatasetDraw`.\r\n\t * @private\r\n\t */\r\n\tdrawDataset: function(meta, easingValue) {\r\n\t\tvar me = this;\r\n\t\tvar args = {\r\n\t\t\tmeta: meta,\r\n\t\t\tindex: meta.index,\r\n\t\t\teasingValue: easingValue\r\n\t\t};\r\n\r\n\t\tif (core_plugins.notify(me, 'beforeDatasetDraw', [args]) === false) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tmeta.controller.draw(easingValue);\r\n\r\n\t\tcore_plugins.notify(me, 'afterDatasetDraw', [args]);\r\n\t},\r\n\r\n\t/**\r\n\t * Draws tooltip unless a plugin returns `false` to the `beforeTooltipDraw`\r\n\t * hook, in which case, plugins will not be called on `afterTooltipDraw`.\r\n\t * @private\r\n\t */\r\n\t_drawTooltip: function(easingValue) {\r\n\t\tvar me = this;\r\n\t\tvar tooltip = me.tooltip;\r\n\t\tvar args = {\r\n\t\t\ttooltip: tooltip,\r\n\t\t\teasingValue: easingValue\r\n\t\t};\r\n\r\n\t\tif (core_plugins.notify(me, 'beforeTooltipDraw', [args]) === false) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\ttooltip.draw();\r\n\r\n\t\tcore_plugins.notify(me, 'afterTooltipDraw', [args]);\r\n\t},\r\n\r\n\t/**\r\n\t * Get the single element that was clicked on\r\n\t * @return An object containing the dataset index and element index of the matching element. Also contains the rectangle that was draw\r\n\t */\r\n\tgetElementAtEvent: function(e) {\r\n\t\treturn core_interaction.modes.single(this, e);\r\n\t},\r\n\r\n\tgetElementsAtEvent: function(e) {\r\n\t\treturn core_interaction.modes.label(this, e, {intersect: true});\r\n\t},\r\n\r\n\tgetElementsAtXAxis: function(e) {\r\n\t\treturn core_interaction.modes['x-axis'](this, e, {intersect: true});\r\n\t},\r\n\r\n\tgetElementsAtEventForMode: function(e, mode, options) {\r\n\t\tvar method = core_interaction.modes[mode];\r\n\t\tif (typeof method === 'function') {\r\n\t\t\treturn method(this, e, options);\r\n\t\t}\r\n\r\n\t\treturn [];\r\n\t},\r\n\r\n\tgetDatasetAtEvent: function(e) {\r\n\t\treturn core_interaction.modes.dataset(this, e, {intersect: true});\r\n\t},\r\n\r\n\tgetDatasetMeta: function(datasetIndex) {\r\n\t\tvar me = this;\r\n\t\tvar dataset = me.data.datasets[datasetIndex];\r\n\t\tif (!dataset._meta) {\r\n\t\t\tdataset._meta = {};\r\n\t\t}\r\n\r\n\t\tvar meta = dataset._meta[me.id];\r\n\t\tif (!meta) {\r\n\t\t\tmeta = dataset._meta[me.id] = {\r\n\t\t\t\ttype: null,\r\n\t\t\t\tdata: [],\r\n\t\t\t\tdataset: null,\r\n\t\t\t\tcontroller: null,\r\n\t\t\t\thidden: null,\t\t\t// See isDatasetVisible() comment\r\n\t\t\t\txAxisID: null,\r\n\t\t\t\tyAxisID: null,\r\n\t\t\t\torder: dataset.order || 0,\r\n\t\t\t\tindex: datasetIndex\r\n\t\t\t};\r\n\t\t}\r\n\r\n\t\treturn meta;\r\n\t},\r\n\r\n\tgetVisibleDatasetCount: function() {\r\n\t\tvar count = 0;\r\n\t\tfor (var i = 0, ilen = this.data.datasets.length; i < ilen; ++i) {\r\n\t\t\tif (this.isDatasetVisible(i)) {\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn count;\r\n\t},\r\n\r\n\tisDatasetVisible: function(datasetIndex) {\r\n\t\tvar meta = this.getDatasetMeta(datasetIndex);\r\n\r\n\t\t// meta.hidden is a per chart dataset hidden flag override with 3 states: if true or false,\r\n\t\t// the dataset.hidden value is ignored, else if null, the dataset hidden state is returned.\r\n\t\treturn typeof meta.hidden === 'boolean' ? !meta.hidden : !this.data.datasets[datasetIndex].hidden;\r\n\t},\r\n\r\n\tgenerateLegend: function() {\r\n\t\treturn this.options.legendCallback(this);\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\tdestroyDatasetMeta: function(datasetIndex) {\r\n\t\tvar id = this.id;\r\n\t\tvar dataset = this.data.datasets[datasetIndex];\r\n\t\tvar meta = dataset._meta && dataset._meta[id];\r\n\r\n\t\tif (meta) {\r\n\t\t\tmeta.controller.destroy();\r\n\t\t\tdelete dataset._meta[id];\r\n\t\t}\r\n\t},\r\n\r\n\tdestroy: function() {\r\n\t\tvar me = this;\r\n\t\tvar canvas = me.canvas;\r\n\t\tvar i, ilen;\r\n\r\n\t\tme.stop();\r\n\r\n\t\t// dataset controllers need to cleanup associated data\r\n\t\tfor (i = 0, ilen = me.data.datasets.length; i < ilen; ++i) {\r\n\t\t\tme.destroyDatasetMeta(i);\r\n\t\t}\r\n\r\n\t\tif (canvas) {\r\n\t\t\tme.unbindEvents();\r\n\t\t\thelpers$1.canvas.clear(me);\r\n\t\t\tplatform.releaseContext(me.ctx);\r\n\t\t\tme.canvas = null;\r\n\t\t\tme.ctx = null;\r\n\t\t}\r\n\r\n\t\tcore_plugins.notify(me, 'destroy');\r\n\r\n\t\tdelete Chart.instances[me.id];\r\n\t},\r\n\r\n\ttoBase64Image: function() {\r\n\t\treturn this.canvas.toDataURL.apply(this.canvas, arguments);\r\n\t},\r\n\r\n\tinitToolTip: function() {\r\n\t\tvar me = this;\r\n\t\tme.tooltip = new core_tooltip({\r\n\t\t\t_chart: me,\r\n\t\t\t_chartInstance: me, // deprecated, backward compatibility\r\n\t\t\t_data: me.data,\r\n\t\t\t_options: me.options.tooltips\r\n\t\t}, me);\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\tbindEvents: function() {\r\n\t\tvar me = this;\r\n\t\tvar listeners = me._listeners = {};\r\n\t\tvar listener = function() {\r\n\t\t\tme.eventHandler.apply(me, arguments);\r\n\t\t};\r\n\r\n\t\thelpers$1.each(me.options.events, function(type) {\r\n\t\t\tplatform.addEventListener(me, type, listener);\r\n\t\t\tlisteners[type] = listener;\r\n\t\t});\r\n\r\n\t\t// Elements used to detect size change should not be injected for non responsive charts.\r\n\t\t// See https://github.com/chartjs/Chart.js/issues/2210\r\n\t\tif (me.options.responsive) {\r\n\t\t\tlistener = function() {\r\n\t\t\t\tme.resize();\r\n\t\t\t};\r\n\r\n\t\t\tplatform.addEventListener(me, 'resize', listener);\r\n\t\t\tlisteners.resize = listener;\r\n\t\t}\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\tunbindEvents: function() {\r\n\t\tvar me = this;\r\n\t\tvar listeners = me._listeners;\r\n\t\tif (!listeners) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tdelete me._listeners;\r\n\t\thelpers$1.each(listeners, function(listener, type) {\r\n\t\t\tplatform.removeEventListener(me, type, listener);\r\n\t\t});\r\n\t},\r\n\r\n\tupdateHoverStyle: function(elements, mode, enabled) {\r\n\t\tvar prefix = enabled ? 'set' : 'remove';\r\n\t\tvar element, i, ilen;\r\n\r\n\t\tfor (i = 0, ilen = elements.length; i < ilen; ++i) {\r\n\t\t\telement = elements[i];\r\n\t\t\tif (element) {\r\n\t\t\t\tthis.getDatasetMeta(element._datasetIndex).controller[prefix + 'HoverStyle'](element);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (mode === 'dataset') {\r\n\t\t\tthis.getDatasetMeta(elements[0]._datasetIndex).controller['_' + prefix + 'DatasetHoverStyle']();\r\n\t\t}\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\teventHandler: function(e) {\r\n\t\tvar me = this;\r\n\t\tvar tooltip = me.tooltip;\r\n\r\n\t\tif (core_plugins.notify(me, 'beforeEvent', [e]) === false) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// Buffer any update calls so that renders do not occur\r\n\t\tme._bufferedRender = true;\r\n\t\tme._bufferedRequest = null;\r\n\r\n\t\tvar changed = me.handleEvent(e);\r\n\t\t// for smooth tooltip animations issue #4989\r\n\t\t// the tooltip should be the source of change\r\n\t\t// Animation check workaround:\r\n\t\t// tooltip._start will be null when tooltip isn't animating\r\n\t\tif (tooltip) {\r\n\t\t\tchanged = tooltip._start\r\n\t\t\t\t? tooltip.handleEvent(e)\r\n\t\t\t\t: changed | tooltip.handleEvent(e);\r\n\t\t}\r\n\r\n\t\tcore_plugins.notify(me, 'afterEvent', [e]);\r\n\r\n\t\tvar bufferedRequest = me._bufferedRequest;\r\n\t\tif (bufferedRequest) {\r\n\t\t\t// If we have an update that was triggered, we need to do a normal render\r\n\t\t\tme.render(bufferedRequest);\r\n\t\t} else if (changed && !me.animating) {\r\n\t\t\t// If entering, leaving, or changing elements, animate the change via pivot\r\n\t\t\tme.stop();\r\n\r\n\t\t\t// We only need to render at this point. Updating will cause scales to be\r\n\t\t\t// recomputed generating flicker & using more memory than necessary.\r\n\t\t\tme.render({\r\n\t\t\t\tduration: me.options.hover.animationDuration,\r\n\t\t\t\tlazy: true\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tme._bufferedRender = false;\r\n\t\tme._bufferedRequest = null;\r\n\r\n\t\treturn me;\r\n\t},\r\n\r\n\t/**\r\n\t * Handle an event\r\n\t * @private\r\n\t * @param {IEvent} event the event to handle\r\n\t * @return {boolean} true if the chart needs to re-render\r\n\t */\r\n\thandleEvent: function(e) {\r\n\t\tvar me = this;\r\n\t\tvar options = me.options || {};\r\n\t\tvar hoverOptions = options.hover;\r\n\t\tvar changed = false;\r\n\r\n\t\tme.lastActive = me.lastActive || [];\r\n\r\n\t\t// Find Active Elements for hover and tooltips\r\n\t\tif (e.type === 'mouseout') {\r\n\t\t\tme.active = [];\r\n\t\t} else {\r\n\t\t\tme.active = me.getElementsAtEventForMode(e, hoverOptions.mode, hoverOptions);\r\n\t\t}\r\n\r\n\t\t// Invoke onHover hook\r\n\t\t// Need to call with native event here to not break backwards compatibility\r\n\t\thelpers$1.callback(options.onHover || options.hover.onHover, [e.native, me.active], me);\r\n\r\n\t\tif (e.type === 'mouseup' || e.type === 'click') {\r\n\t\t\tif (options.onClick) {\r\n\t\t\t\t// Use e.native here for backwards compatibility\r\n\t\t\t\toptions.onClick.call(me, e.native, me.active);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Remove styling for last active (even if it may still be active)\r\n\t\tif (me.lastActive.length) {\r\n\t\t\tme.updateHoverStyle(me.lastActive, hoverOptions.mode, false);\r\n\t\t}\r\n\r\n\t\t// Built in hover styling\r\n\t\tif (me.active.length && hoverOptions.mode) {\r\n\t\t\tme.updateHoverStyle(me.active, hoverOptions.mode, true);\r\n\t\t}\r\n\r\n\t\tchanged = !helpers$1.arrayEquals(me.active, me.lastActive);\r\n\r\n\t\t// Remember Last Actives\r\n\t\tme.lastActive = me.active;\r\n\r\n\t\treturn changed;\r\n\t}\r\n});\r\n\r\n/**\r\n * NOTE(SB) We actually don't use this container anymore but we need to keep it\r\n * for backward compatibility. Though, it can still be useful for plugins that\r\n * would need to work on multiple charts?!\r\n */\r\nChart.instances = {};\r\n\r\nvar core_controller = Chart;\r\n\r\n// DEPRECATIONS\r\n\r\n/**\r\n * Provided for backward compatibility, use Chart instead.\r\n * @class Chart.Controller\r\n * @deprecated since version 2.6\r\n * @todo remove at version 3\r\n * @private\r\n */\r\nChart.Controller = Chart;\r\n\r\n/**\r\n * Provided for backward compatibility, not available anymore.\r\n * @namespace Chart\r\n * @deprecated since version 2.8\r\n * @todo remove at version 3\r\n * @private\r\n */\r\nChart.types = {};\r\n\r\n/**\r\n * Provided for backward compatibility, not available anymore.\r\n * @namespace Chart.helpers.configMerge\r\n * @deprecated since version 2.8.0\r\n * @todo remove at version 3\r\n * @private\r\n */\r\nhelpers$1.configMerge = mergeConfig;\r\n\r\n/**\r\n * Provided for backward compatibility, not available anymore.\r\n * @namespace Chart.helpers.scaleMerge\r\n * @deprecated since version 2.8.0\r\n * @todo remove at version 3\r\n * @private\r\n */\r\nhelpers$1.scaleMerge = mergeScaleConfig;\n\nvar core_helpers = function() {\r\n\r\n\t// -- Basic js utility methods\r\n\r\n\thelpers$1.where = function(collection, filterCallback) {\r\n\t\tif (helpers$1.isArray(collection) && Array.prototype.filter) {\r\n\t\t\treturn collection.filter(filterCallback);\r\n\t\t}\r\n\t\tvar filtered = [];\r\n\r\n\t\thelpers$1.each(collection, function(item) {\r\n\t\t\tif (filterCallback(item)) {\r\n\t\t\t\tfiltered.push(item);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\treturn filtered;\r\n\t};\r\n\thelpers$1.findIndex = Array.prototype.findIndex ?\r\n\t\tfunction(array, callback, scope) {\r\n\t\t\treturn array.findIndex(callback, scope);\r\n\t\t} :\r\n\t\tfunction(array, callback, scope) {\r\n\t\t\tscope = scope === undefined ? array : scope;\r\n\t\t\tfor (var i = 0, ilen = array.length; i < ilen; ++i) {\r\n\t\t\t\tif (callback.call(scope, array[i], i, array)) {\r\n\t\t\t\t\treturn i;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn -1;\r\n\t\t};\r\n\thelpers$1.findNextWhere = function(arrayToSearch, filterCallback, startIndex) {\r\n\t\t// Default to start of the array\r\n\t\tif (helpers$1.isNullOrUndef(startIndex)) {\r\n\t\t\tstartIndex = -1;\r\n\t\t}\r\n\t\tfor (var i = startIndex + 1; i < arrayToSearch.length; i++) {\r\n\t\t\tvar currentItem = arrayToSearch[i];\r\n\t\t\tif (filterCallback(currentItem)) {\r\n\t\t\t\treturn currentItem;\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\thelpers$1.findPreviousWhere = function(arrayToSearch, filterCallback, startIndex) {\r\n\t\t// Default to end of the array\r\n\t\tif (helpers$1.isNullOrUndef(startIndex)) {\r\n\t\t\tstartIndex = arrayToSearch.length;\r\n\t\t}\r\n\t\tfor (var i = startIndex - 1; i >= 0; i--) {\r\n\t\t\tvar currentItem = arrayToSearch[i];\r\n\t\t\tif (filterCallback(currentItem)) {\r\n\t\t\t\treturn currentItem;\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\r\n\t// -- Math methods\r\n\thelpers$1.isNumber = function(n) {\r\n\t\treturn !isNaN(parseFloat(n)) && isFinite(n);\r\n\t};\r\n\thelpers$1.almostEquals = function(x, y, epsilon) {\r\n\t\treturn Math.abs(x - y) < epsilon;\r\n\t};\r\n\thelpers$1.almostWhole = function(x, epsilon) {\r\n\t\tvar rounded = Math.round(x);\r\n\t\treturn ((rounded - epsilon) <= x) && ((rounded + epsilon) >= x);\r\n\t};\r\n\thelpers$1.max = function(array) {\r\n\t\treturn array.reduce(function(max, value) {\r\n\t\t\tif (!isNaN(value)) {\r\n\t\t\t\treturn Math.max(max, value);\r\n\t\t\t}\r\n\t\t\treturn max;\r\n\t\t}, Number.NEGATIVE_INFINITY);\r\n\t};\r\n\thelpers$1.min = function(array) {\r\n\t\treturn array.reduce(function(min, value) {\r\n\t\t\tif (!isNaN(value)) {\r\n\t\t\t\treturn Math.min(min, value);\r\n\t\t\t}\r\n\t\t\treturn min;\r\n\t\t}, Number.POSITIVE_INFINITY);\r\n\t};\r\n\thelpers$1.sign = Math.sign ?\r\n\t\tfunction(x) {\r\n\t\t\treturn Math.sign(x);\r\n\t\t} :\r\n\t\tfunction(x) {\r\n\t\t\tx = +x; // convert to a number\r\n\t\t\tif (x === 0 || isNaN(x)) {\r\n\t\t\t\treturn x;\r\n\t\t\t}\r\n\t\t\treturn x > 0 ? 1 : -1;\r\n\t\t};\r\n\thelpers$1.toRadians = function(degrees) {\r\n\t\treturn degrees * (Math.PI / 180);\r\n\t};\r\n\thelpers$1.toDegrees = function(radians) {\r\n\t\treturn radians * (180 / Math.PI);\r\n\t};\r\n\r\n\t/**\r\n\t * Returns the number of decimal places\r\n\t * i.e. the number of digits after the decimal point, of the value of this Number.\r\n\t * @param {number} x - A number.\r\n\t * @returns {number} The number of decimal places.\r\n\t * @private\r\n\t */\r\n\thelpers$1._decimalPlaces = function(x) {\r\n\t\tif (!helpers$1.isFinite(x)) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tvar e = 1;\r\n\t\tvar p = 0;\r\n\t\twhile (Math.round(x * e) / e !== x) {\r\n\t\t\te *= 10;\r\n\t\t\tp++;\r\n\t\t}\r\n\t\treturn p;\r\n\t};\r\n\r\n\t// Gets the angle from vertical upright to the point about a centre.\r\n\thelpers$1.getAngleFromPoint = function(centrePoint, anglePoint) {\r\n\t\tvar distanceFromXCenter = anglePoint.x - centrePoint.x;\r\n\t\tvar distanceFromYCenter = anglePoint.y - centrePoint.y;\r\n\t\tvar radialDistanceFromCenter = Math.sqrt(distanceFromXCenter * distanceFromXCenter + distanceFromYCenter * distanceFromYCenter);\r\n\r\n\t\tvar angle = Math.atan2(distanceFromYCenter, distanceFromXCenter);\r\n\r\n\t\tif (angle < (-0.5 * Math.PI)) {\r\n\t\t\tangle += 2.0 * Math.PI; // make sure the returned angle is in the range of (-PI/2, 3PI/2]\r\n\t\t}\r\n\r\n\t\treturn {\r\n\t\t\tangle: angle,\r\n\t\t\tdistance: radialDistanceFromCenter\r\n\t\t};\r\n\t};\r\n\thelpers$1.distanceBetweenPoints = function(pt1, pt2) {\r\n\t\treturn Math.sqrt(Math.pow(pt2.x - pt1.x, 2) + Math.pow(pt2.y - pt1.y, 2));\r\n\t};\r\n\r\n\t/**\r\n\t * Provided for backward compatibility, not available anymore\r\n\t * @function Chart.helpers.aliasPixel\r\n\t * @deprecated since version 2.8.0\r\n\t * @todo remove at version 3\r\n\t */\r\n\thelpers$1.aliasPixel = function(pixelWidth) {\r\n\t\treturn (pixelWidth % 2 === 0) ? 0 : 0.5;\r\n\t};\r\n\r\n\t/**\r\n\t * Returns the aligned pixel value to avoid anti-aliasing blur\r\n\t * @param {Chart} chart - The chart instance.\r\n\t * @param {number} pixel - A pixel value.\r\n\t * @param {number} width - The width of the element.\r\n\t * @returns {number} The aligned pixel value.\r\n\t * @private\r\n\t */\r\n\thelpers$1._alignPixel = function(chart, pixel, width) {\r\n\t\tvar devicePixelRatio = chart.currentDevicePixelRatio;\r\n\t\tvar halfWidth = width / 2;\r\n\t\treturn Math.round((pixel - halfWidth) * devicePixelRatio) / devicePixelRatio + halfWidth;\r\n\t};\r\n\r\n\thelpers$1.splineCurve = function(firstPoint, middlePoint, afterPoint, t) {\r\n\t\t// Props to Rob Spencer at scaled innovation for his post on splining between points\r\n\t\t// http://scaledinnovation.com/analytics/splines/aboutSplines.html\r\n\r\n\t\t// This function must also respect \"skipped\" points\r\n\r\n\t\tvar previous = firstPoint.skip ? middlePoint : firstPoint;\r\n\t\tvar current = middlePoint;\r\n\t\tvar next = afterPoint.skip ? middlePoint : afterPoint;\r\n\r\n\t\tvar d01 = Math.sqrt(Math.pow(current.x - previous.x, 2) + Math.pow(current.y - previous.y, 2));\r\n\t\tvar d12 = Math.sqrt(Math.pow(next.x - current.x, 2) + Math.pow(next.y - current.y, 2));\r\n\r\n\t\tvar s01 = d01 / (d01 + d12);\r\n\t\tvar s12 = d12 / (d01 + d12);\r\n\r\n\t\t// If all points are the same, s01 & s02 will be inf\r\n\t\ts01 = isNaN(s01) ? 0 : s01;\r\n\t\ts12 = isNaN(s12) ? 0 : s12;\r\n\r\n\t\tvar fa = t * s01; // scaling factor for triangle Ta\r\n\t\tvar fb = t * s12;\r\n\r\n\t\treturn {\r\n\t\t\tprevious: {\r\n\t\t\t\tx: current.x - fa * (next.x - previous.x),\r\n\t\t\t\ty: current.y - fa * (next.y - previous.y)\r\n\t\t\t},\r\n\t\t\tnext: {\r\n\t\t\t\tx: current.x + fb * (next.x - previous.x),\r\n\t\t\t\ty: current.y + fb * (next.y - previous.y)\r\n\t\t\t}\r\n\t\t};\r\n\t};\r\n\thelpers$1.EPSILON = Number.EPSILON || 1e-14;\r\n\thelpers$1.splineCurveMonotone = function(points) {\r\n\t\t// This function calculates Bézier control points in a similar way than |splineCurve|,\r\n\t\t// but preserves monotonicity of the provided data and ensures no local extremums are added\r\n\t\t// between the dataset discrete points due to the interpolation.\r\n\t\t// See : https://en.wikipedia.org/wiki/Monotone_cubic_interpolation\r\n\r\n\t\tvar pointsWithTangents = (points || []).map(function(point) {\r\n\t\t\treturn {\r\n\t\t\t\tmodel: point._model,\r\n\t\t\t\tdeltaK: 0,\r\n\t\t\t\tmK: 0\r\n\t\t\t};\r\n\t\t});\r\n\r\n\t\t// Calculate slopes (deltaK) and initialize tangents (mK)\r\n\t\tvar pointsLen = pointsWithTangents.length;\r\n\t\tvar i, pointBefore, pointCurrent, pointAfter;\r\n\t\tfor (i = 0; i < pointsLen; ++i) {\r\n\t\t\tpointCurrent = pointsWithTangents[i];\r\n\t\t\tif (pointCurrent.model.skip) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\tpointBefore = i > 0 ? pointsWithTangents[i - 1] : null;\r\n\t\t\tpointAfter = i < pointsLen - 1 ? pointsWithTangents[i + 1] : null;\r\n\t\t\tif (pointAfter && !pointAfter.model.skip) {\r\n\t\t\t\tvar slopeDeltaX = (pointAfter.model.x - pointCurrent.model.x);\r\n\r\n\t\t\t\t// In the case of two points that appear at the same x pixel, slopeDeltaX is 0\r\n\t\t\t\tpointCurrent.deltaK = slopeDeltaX !== 0 ? (pointAfter.model.y - pointCurrent.model.y) / slopeDeltaX : 0;\r\n\t\t\t}\r\n\r\n\t\t\tif (!pointBefore || pointBefore.model.skip) {\r\n\t\t\t\tpointCurrent.mK = pointCurrent.deltaK;\r\n\t\t\t} else if (!pointAfter || pointAfter.model.skip) {\r\n\t\t\t\tpointCurrent.mK = pointBefore.deltaK;\r\n\t\t\t} else if (this.sign(pointBefore.deltaK) !== this.sign(pointCurrent.deltaK)) {\r\n\t\t\t\tpointCurrent.mK = 0;\r\n\t\t\t} else {\r\n\t\t\t\tpointCurrent.mK = (pointBefore.deltaK + pointCurrent.deltaK) / 2;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Adjust tangents to ensure monotonic properties\r\n\t\tvar alphaK, betaK, tauK, squaredMagnitude;\r\n\t\tfor (i = 0; i < pointsLen - 1; ++i) {\r\n\t\t\tpointCurrent = pointsWithTangents[i];\r\n\t\t\tpointAfter = pointsWithTangents[i + 1];\r\n\t\t\tif (pointCurrent.model.skip || pointAfter.model.skip) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\tif (helpers$1.almostEquals(pointCurrent.deltaK, 0, this.EPSILON)) {\r\n\t\t\t\tpointCurrent.mK = pointAfter.mK = 0;\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\talphaK = pointCurrent.mK / pointCurrent.deltaK;\r\n\t\t\tbetaK = pointAfter.mK / pointCurrent.deltaK;\r\n\t\t\tsquaredMagnitude = Math.pow(alphaK, 2) + Math.pow(betaK, 2);\r\n\t\t\tif (squaredMagnitude <= 9) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\ttauK = 3 / Math.sqrt(squaredMagnitude);\r\n\t\t\tpointCurrent.mK = alphaK * tauK * pointCurrent.deltaK;\r\n\t\t\tpointAfter.mK = betaK * tauK * pointCurrent.deltaK;\r\n\t\t}\r\n\r\n\t\t// Compute control points\r\n\t\tvar deltaX;\r\n\t\tfor (i = 0; i < pointsLen; ++i) {\r\n\t\t\tpointCurrent = pointsWithTangents[i];\r\n\t\t\tif (pointCurrent.model.skip) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\tpointBefore = i > 0 ? pointsWithTangents[i - 1] : null;\r\n\t\t\tpointAfter = i < pointsLen - 1 ? pointsWithTangents[i + 1] : null;\r\n\t\t\tif (pointBefore && !pointBefore.model.skip) {\r\n\t\t\t\tdeltaX = (pointCurrent.model.x - pointBefore.model.x) / 3;\r\n\t\t\t\tpointCurrent.model.controlPointPreviousX = pointCurrent.model.x - deltaX;\r\n\t\t\t\tpointCurrent.model.controlPointPreviousY = pointCurrent.model.y - deltaX * pointCurrent.mK;\r\n\t\t\t}\r\n\t\t\tif (pointAfter && !pointAfter.model.skip) {\r\n\t\t\t\tdeltaX = (pointAfter.model.x - pointCurrent.model.x) / 3;\r\n\t\t\t\tpointCurrent.model.controlPointNextX = pointCurrent.model.x + deltaX;\r\n\t\t\t\tpointCurrent.model.controlPointNextY = pointCurrent.model.y + deltaX * pointCurrent.mK;\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\thelpers$1.nextItem = function(collection, index, loop) {\r\n\t\tif (loop) {\r\n\t\t\treturn index >= collection.length - 1 ? collection[0] : collection[index + 1];\r\n\t\t}\r\n\t\treturn index >= collection.length - 1 ? collection[collection.length - 1] : collection[index + 1];\r\n\t};\r\n\thelpers$1.previousItem = function(collection, index, loop) {\r\n\t\tif (loop) {\r\n\t\t\treturn index <= 0 ? collection[collection.length - 1] : collection[index - 1];\r\n\t\t}\r\n\t\treturn index <= 0 ? collection[0] : collection[index - 1];\r\n\t};\r\n\t// Implementation of the nice number algorithm used in determining where axis labels will go\r\n\thelpers$1.niceNum = function(range, round) {\r\n\t\tvar exponent = Math.floor(helpers$1.log10(range));\r\n\t\tvar fraction = range / Math.pow(10, exponent);\r\n\t\tvar niceFraction;\r\n\r\n\t\tif (round) {\r\n\t\t\tif (fraction < 1.5) {\r\n\t\t\t\tniceFraction = 1;\r\n\t\t\t} else if (fraction < 3) {\r\n\t\t\t\tniceFraction = 2;\r\n\t\t\t} else if (fraction < 7) {\r\n\t\t\t\tniceFraction = 5;\r\n\t\t\t} else {\r\n\t\t\t\tniceFraction = 10;\r\n\t\t\t}\r\n\t\t} else if (fraction <= 1.0) {\r\n\t\t\tniceFraction = 1;\r\n\t\t} else if (fraction <= 2) {\r\n\t\t\tniceFraction = 2;\r\n\t\t} else if (fraction <= 5) {\r\n\t\t\tniceFraction = 5;\r\n\t\t} else {\r\n\t\t\tniceFraction = 10;\r\n\t\t}\r\n\r\n\t\treturn niceFraction * Math.pow(10, exponent);\r\n\t};\r\n\t// Request animation polyfill - https://www.paulirish.com/2011/requestanimationframe-for-smart-animating/\r\n\thelpers$1.requestAnimFrame = (function() {\r\n\t\tif (typeof window === 'undefined') {\r\n\t\t\treturn function(callback) {\r\n\t\t\t\tcallback();\r\n\t\t\t};\r\n\t\t}\r\n\t\treturn window.requestAnimationFrame ||\r\n\t\t\twindow.webkitRequestAnimationFrame ||\r\n\t\t\twindow.mozRequestAnimationFrame ||\r\n\t\t\twindow.oRequestAnimationFrame ||\r\n\t\t\twindow.msRequestAnimationFrame ||\r\n\t\t\tfunction(callback) {\r\n\t\t\t\treturn window.setTimeout(callback, 1000 / 60);\r\n\t\t\t};\r\n\t}());\r\n\t// -- DOM methods\r\n\thelpers$1.getRelativePosition = function(evt, chart) {\r\n\t\tvar mouseX, mouseY;\r\n\t\tvar e = evt.originalEvent || evt;\r\n\t\tvar canvas = evt.target || evt.srcElement;\r\n\t\tvar boundingRect = canvas.getBoundingClientRect();\r\n\r\n\t\tvar touches = e.touches;\r\n\t\tif (touches && touches.length > 0) {\r\n\t\t\tmouseX = touches[0].clientX;\r\n\t\t\tmouseY = touches[0].clientY;\r\n\r\n\t\t} else {\r\n\t\t\tmouseX = e.clientX;\r\n\t\t\tmouseY = e.clientY;\r\n\t\t}\r\n\r\n\t\t// Scale mouse coordinates into canvas coordinates\r\n\t\t// by following the pattern laid out by 'jerryj' in the comments of\r\n\t\t// https://www.html5canvastutorials.com/advanced/html5-canvas-mouse-coordinates/\r\n\t\tvar paddingLeft = parseFloat(helpers$1.getStyle(canvas, 'padding-left'));\r\n\t\tvar paddingTop = parseFloat(helpers$1.getStyle(canvas, 'padding-top'));\r\n\t\tvar paddingRight = parseFloat(helpers$1.getStyle(canvas, 'padding-right'));\r\n\t\tvar paddingBottom = parseFloat(helpers$1.getStyle(canvas, 'padding-bottom'));\r\n\t\tvar width = boundingRect.right - boundingRect.left - paddingLeft - paddingRight;\r\n\t\tvar height = boundingRect.bottom - boundingRect.top - paddingTop - paddingBottom;\r\n\r\n\t\t// We divide by the current device pixel ratio, because the canvas is scaled up by that amount in each direction. However\r\n\t\t// the backend model is in unscaled coordinates. Since we are going to deal with our model coordinates, we go back here\r\n\t\tmouseX = Math.round((mouseX - boundingRect.left - paddingLeft) / (width) * canvas.width / chart.currentDevicePixelRatio);\r\n\t\tmouseY = Math.round((mouseY - boundingRect.top - paddingTop) / (height) * canvas.height / chart.currentDevicePixelRatio);\r\n\r\n\t\treturn {\r\n\t\t\tx: mouseX,\r\n\t\t\ty: mouseY\r\n\t\t};\r\n\r\n\t};\r\n\r\n\t// Private helper function to convert max-width/max-height values that may be percentages into a number\r\n\tfunction parseMaxStyle(styleValue, node, parentProperty) {\r\n\t\tvar valueInPixels;\r\n\t\tif (typeof styleValue === 'string') {\r\n\t\t\tvalueInPixels = parseInt(styleValue, 10);\r\n\r\n\t\t\tif (styleValue.indexOf('%') !== -1) {\r\n\t\t\t\t// percentage * size in dimension\r\n\t\t\t\tvalueInPixels = valueInPixels / 100 * node.parentNode[parentProperty];\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tvalueInPixels = styleValue;\r\n\t\t}\r\n\r\n\t\treturn valueInPixels;\r\n\t}\r\n\r\n\t/**\r\n\t * Returns if the given value contains an effective constraint.\r\n\t * @private\r\n\t */\r\n\tfunction isConstrainedValue(value) {\r\n\t\treturn value !== undefined && value !== null && value !== 'none';\r\n\t}\r\n\r\n\t/**\r\n\t * Returns the max width or height of the given DOM node in a cross-browser compatible fashion\r\n\t * @param {HTMLElement} domNode - the node to check the constraint on\r\n\t * @param {string} maxStyle - the style that defines the maximum for the direction we are using ('max-width' / 'max-height')\r\n\t * @param {string} percentageProperty - property of parent to use when calculating width as a percentage\r\n\t * @see {@link https://www.nathanaeljones.com/blog/2013/reading-max-width-cross-browser}\r\n\t */\r\n\tfunction getConstraintDimension(domNode, maxStyle, percentageProperty) {\r\n\t\tvar view = document.defaultView;\r\n\t\tvar parentNode = helpers$1._getParentNode(domNode);\r\n\t\tvar constrainedNode = view.getComputedStyle(domNode)[maxStyle];\r\n\t\tvar constrainedContainer = view.getComputedStyle(parentNode)[maxStyle];\r\n\t\tvar hasCNode = isConstrainedValue(constrainedNode);\r\n\t\tvar hasCContainer = isConstrainedValue(constrainedContainer);\r\n\t\tvar infinity = Number.POSITIVE_INFINITY;\r\n\r\n\t\tif (hasCNode || hasCContainer) {\r\n\t\t\treturn Math.min(\r\n\t\t\t\thasCNode ? parseMaxStyle(constrainedNode, domNode, percentageProperty) : infinity,\r\n\t\t\t\thasCContainer ? parseMaxStyle(constrainedContainer, parentNode, percentageProperty) : infinity);\r\n\t\t}\r\n\r\n\t\treturn 'none';\r\n\t}\r\n\t// returns Number or undefined if no constraint\r\n\thelpers$1.getConstraintWidth = function(domNode) {\r\n\t\treturn getConstraintDimension(domNode, 'max-width', 'clientWidth');\r\n\t};\r\n\t// returns Number or undefined if no constraint\r\n\thelpers$1.getConstraintHeight = function(domNode) {\r\n\t\treturn getConstraintDimension(domNode, 'max-height', 'clientHeight');\r\n\t};\r\n\t/**\r\n\t * @private\r\n \t */\r\n\thelpers$1._calculatePadding = function(container, padding, parentDimension) {\r\n\t\tpadding = helpers$1.getStyle(container, padding);\r\n\r\n\t\treturn padding.indexOf('%') > -1 ? parentDimension * parseInt(padding, 10) / 100 : parseInt(padding, 10);\r\n\t};\r\n\t/**\r\n\t * @private\r\n\t */\r\n\thelpers$1._getParentNode = function(domNode) {\r\n\t\tvar parent = domNode.parentNode;\r\n\t\tif (parent && parent.toString() === '[object ShadowRoot]') {\r\n\t\t\tparent = parent.host;\r\n\t\t}\r\n\t\treturn parent;\r\n\t};\r\n\thelpers$1.getMaximumWidth = function(domNode) {\r\n\t\tvar container = helpers$1._getParentNode(domNode);\r\n\t\tif (!container) {\r\n\t\t\treturn domNode.clientWidth;\r\n\t\t}\r\n\r\n\t\tvar clientWidth = container.clientWidth;\r\n\t\tvar paddingLeft = helpers$1._calculatePadding(container, 'padding-left', clientWidth);\r\n\t\tvar paddingRight = helpers$1._calculatePadding(container, 'padding-right', clientWidth);\r\n\r\n\t\tvar w = clientWidth - paddingLeft - paddingRight;\r\n\t\tvar cw = helpers$1.getConstraintWidth(domNode);\r\n\t\treturn isNaN(cw) ? w : Math.min(w, cw);\r\n\t};\r\n\thelpers$1.getMaximumHeight = function(domNode) {\r\n\t\tvar container = helpers$1._getParentNode(domNode);\r\n\t\tif (!container) {\r\n\t\t\treturn domNode.clientHeight;\r\n\t\t}\r\n\r\n\t\tvar clientHeight = container.clientHeight;\r\n\t\tvar paddingTop = helpers$1._calculatePadding(container, 'padding-top', clientHeight);\r\n\t\tvar paddingBottom = helpers$1._calculatePadding(container, 'padding-bottom', clientHeight);\r\n\r\n\t\tvar h = clientHeight - paddingTop - paddingBottom;\r\n\t\tvar ch = helpers$1.getConstraintHeight(domNode);\r\n\t\treturn isNaN(ch) ? h : Math.min(h, ch);\r\n\t};\r\n\thelpers$1.getStyle = function(el, property) {\r\n\t\treturn el.currentStyle ?\r\n\t\t\tel.currentStyle[property] :\r\n\t\t\tdocument.defaultView.getComputedStyle(el, null).getPropertyValue(property);\r\n\t};\r\n\thelpers$1.retinaScale = function(chart, forceRatio) {\r\n\t\tvar pixelRatio = chart.currentDevicePixelRatio = forceRatio || (typeof window !== 'undefined' && window.devicePixelRatio) || 1;\r\n\t\tif (pixelRatio === 1) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar canvas = chart.canvas;\r\n\t\tvar height = chart.height;\r\n\t\tvar width = chart.width;\r\n\r\n\t\tcanvas.height = height * pixelRatio;\r\n\t\tcanvas.width = width * pixelRatio;\r\n\t\tchart.ctx.scale(pixelRatio, pixelRatio);\r\n\r\n\t\t// If no style has been set on the canvas, the render size is used as display size,\r\n\t\t// making the chart visually bigger, so let's enforce it to the \"correct\" values.\r\n\t\t// See https://github.com/chartjs/Chart.js/issues/3575\r\n\t\tif (!canvas.style.height && !canvas.style.width) {\r\n\t\t\tcanvas.style.height = height + 'px';\r\n\t\t\tcanvas.style.width = width + 'px';\r\n\t\t}\r\n\t};\r\n\t// -- Canvas methods\r\n\thelpers$1.fontString = function(pixelSize, fontStyle, fontFamily) {\r\n\t\treturn fontStyle + ' ' + pixelSize + 'px ' + fontFamily;\r\n\t};\r\n\thelpers$1.longestText = function(ctx, font, arrayOfThings, cache) {\r\n\t\tcache = cache || {};\r\n\t\tvar data = cache.data = cache.data || {};\r\n\t\tvar gc = cache.garbageCollect = cache.garbageCollect || [];\r\n\r\n\t\tif (cache.font !== font) {\r\n\t\t\tdata = cache.data = {};\r\n\t\t\tgc = cache.garbageCollect = [];\r\n\t\t\tcache.font = font;\r\n\t\t}\r\n\r\n\t\tctx.font = font;\r\n\t\tvar longest = 0;\r\n\t\tvar ilen = arrayOfThings.length;\r\n\t\tvar i, j, jlen, thing, nestedThing;\r\n\t\tfor (i = 0; i < ilen; i++) {\r\n\t\t\tthing = arrayOfThings[i];\r\n\r\n\t\t\t// Undefined strings and arrays should not be measured\r\n\t\t\tif (thing !== undefined && thing !== null && helpers$1.isArray(thing) !== true) {\r\n\t\t\t\tlongest = helpers$1.measureText(ctx, data, gc, longest, thing);\r\n\t\t\t} else if (helpers$1.isArray(thing)) {\r\n\t\t\t\t// if it is an array lets measure each element\r\n\t\t\t\t// to do maybe simplify this function a bit so we can do this more recursively?\r\n\t\t\t\tfor (j = 0, jlen = thing.length; j < jlen; j++) {\r\n\t\t\t\t\tnestedThing = thing[j];\r\n\t\t\t\t\t// Undefined strings and arrays should not be measured\r\n\t\t\t\t\tif (nestedThing !== undefined && nestedThing !== null && !helpers$1.isArray(nestedThing)) {\r\n\t\t\t\t\t\tlongest = helpers$1.measureText(ctx, data, gc, longest, nestedThing);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tvar gcLen = gc.length / 2;\r\n\t\tif (gcLen > arrayOfThings.length) {\r\n\t\t\tfor (i = 0; i < gcLen; i++) {\r\n\t\t\t\tdelete data[gc[i]];\r\n\t\t\t}\r\n\t\t\tgc.splice(0, gcLen);\r\n\t\t}\r\n\t\treturn longest;\r\n\t};\r\n\thelpers$1.measureText = function(ctx, data, gc, longest, string) {\r\n\t\tvar textWidth = data[string];\r\n\t\tif (!textWidth) {\r\n\t\t\ttextWidth = data[string] = ctx.measureText(string).width;\r\n\t\t\tgc.push(string);\r\n\t\t}\r\n\t\tif (textWidth > longest) {\r\n\t\t\tlongest = textWidth;\r\n\t\t}\r\n\t\treturn longest;\r\n\t};\r\n\r\n\t/**\r\n\t * @deprecated\r\n\t */\r\n\thelpers$1.numberOfLabelLines = function(arrayOfThings) {\r\n\t\tvar numberOfLines = 1;\r\n\t\thelpers$1.each(arrayOfThings, function(thing) {\r\n\t\t\tif (helpers$1.isArray(thing)) {\r\n\t\t\t\tif (thing.length > numberOfLines) {\r\n\t\t\t\t\tnumberOfLines = thing.length;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\treturn numberOfLines;\r\n\t};\r\n\r\n\thelpers$1.color = !chartjsColor ?\r\n\t\tfunction(value) {\r\n\t\t\tconsole.error('Color.js not found!');\r\n\t\t\treturn value;\r\n\t\t} :\r\n\t\tfunction(value) {\r\n\t\t\t/* global CanvasGradient */\r\n\t\t\tif (value instanceof CanvasGradient) {\r\n\t\t\t\tvalue = core_defaults.global.defaultColor;\r\n\t\t\t}\r\n\r\n\t\t\treturn chartjsColor(value);\r\n\t\t};\r\n\r\n\thelpers$1.getHoverColor = function(colorValue) {\r\n\t\t/* global CanvasPattern */\r\n\t\treturn (colorValue instanceof CanvasPattern || colorValue instanceof CanvasGradient) ?\r\n\t\t\tcolorValue :\r\n\t\t\thelpers$1.color(colorValue).saturate(0.5).darken(0.1).rgbString();\r\n\t};\r\n};\n\nfunction abstract() {\r\n\tthrow new Error(\r\n\t\t'This method is not implemented: either no adapter can ' +\r\n\t\t'be found or an incomplete integration was provided.'\r\n\t);\r\n}\r\n\r\n/**\r\n * Date adapter (current used by the time scale)\r\n * @namespace Chart._adapters._date\r\n * @memberof Chart._adapters\r\n * @private\r\n */\r\n\r\n/**\r\n * Currently supported unit string values.\r\n * @typedef {('millisecond'|'second'|'minute'|'hour'|'day'|'week'|'month'|'quarter'|'year')}\r\n * @memberof Chart._adapters._date\r\n * @name Unit\r\n */\r\n\r\n/**\r\n * @class\r\n */\r\nfunction DateAdapter(options) {\r\n\tthis.options = options || {};\r\n}\r\n\r\nhelpers$1.extend(DateAdapter.prototype, /** @lends DateAdapter */ {\r\n\t/**\r\n\t * Returns a map of time formats for the supported formatting units defined\r\n\t * in Unit as well as 'datetime' representing a detailed date/time string.\r\n\t * @returns {{string: string}}\r\n\t */\r\n\tformats: abstract,\r\n\r\n\t/**\r\n\t * Parses the given `value` and return the associated timestamp.\r\n\t * @param {any} value - the value to parse (usually comes from the data)\r\n\t * @param {string} [format] - the expected data format\r\n\t * @returns {(number|null)}\r\n\t * @function\r\n\t */\r\n\tparse: abstract,\r\n\r\n\t/**\r\n\t * Returns the formatted date in the specified `format` for a given `timestamp`.\r\n\t * @param {number} timestamp - the timestamp to format\r\n\t * @param {string} format - the date/time token\r\n\t * @return {string}\r\n\t * @function\r\n\t */\r\n\tformat: abstract,\r\n\r\n\t/**\r\n\t * Adds the specified `amount` of `unit` to the given `timestamp`.\r\n\t * @param {number} timestamp - the input timestamp\r\n\t * @param {number} amount - the amount to add\r\n\t * @param {Unit} unit - the unit as string\r\n\t * @return {number}\r\n\t * @function\r\n\t */\r\n\tadd: abstract,\r\n\r\n\t/**\r\n\t * Returns the number of `unit` between the given timestamps.\r\n\t * @param {number} max - the input timestamp (reference)\r\n\t * @param {number} min - the timestamp to substract\r\n\t * @param {Unit} unit - the unit as string\r\n\t * @return {number}\r\n\t * @function\r\n\t */\r\n\tdiff: abstract,\r\n\r\n\t/**\r\n\t * Returns start of `unit` for the given `timestamp`.\r\n\t * @param {number} timestamp - the input timestamp\r\n\t * @param {Unit} unit - the unit as string\r\n\t * @param {number} [weekday] - the ISO day of the week with 1 being Monday\r\n\t * and 7 being Sunday (only needed if param *unit* is `isoWeek`).\r\n\t * @function\r\n\t */\r\n\tstartOf: abstract,\r\n\r\n\t/**\r\n\t * Returns end of `unit` for the given `timestamp`.\r\n\t * @param {number} timestamp - the input timestamp\r\n\t * @param {Unit} unit - the unit as string\r\n\t * @function\r\n\t */\r\n\tendOf: abstract,\r\n\r\n\t// DEPRECATIONS\r\n\r\n\t/**\r\n\t * Provided for backward compatibility for scale.getValueForPixel(),\r\n\t * this method should be overridden only by the moment adapter.\r\n\t * @deprecated since version 2.8.0\r\n\t * @todo remove at version 3\r\n\t * @private\r\n\t */\r\n\t_create: function(value) {\r\n\t\treturn value;\r\n\t}\r\n});\r\n\r\nDateAdapter.override = function(members) {\r\n\thelpers$1.extend(DateAdapter.prototype, members);\r\n};\r\n\r\nvar _date = DateAdapter;\n\nvar core_adapters = {\n\t_date: _date\n};\n\n/**\r\n * Namespace to hold static tick generation functions\r\n * @namespace Chart.Ticks\r\n */\r\nvar core_ticks = {\r\n\t/**\r\n\t * Namespace to hold formatters for different types of ticks\r\n\t * @namespace Chart.Ticks.formatters\r\n\t */\r\n\tformatters: {\r\n\t\t/**\r\n\t\t * Formatter for value labels\r\n\t\t * @method Chart.Ticks.formatters.values\r\n\t\t * @param value the value to display\r\n\t\t * @return {string|string[]} the label to display\r\n\t\t */\r\n\t\tvalues: function(value) {\r\n\t\t\treturn helpers$1.isArray(value) ? value : '' + value;\r\n\t\t},\r\n\r\n\t\t/**\r\n\t\t * Formatter for linear numeric ticks\r\n\t\t * @method Chart.Ticks.formatters.linear\r\n\t\t * @param tickValue {number} the value to be formatted\r\n\t\t * @param index {number} the position of the tickValue parameter in the ticks array\r\n\t\t * @param ticks {number[]} the list of ticks being converted\r\n\t\t * @return {string} string representation of the tickValue parameter\r\n\t\t */\r\n\t\tlinear: function(tickValue, index, ticks) {\r\n\t\t\t// If we have lots of ticks, don't use the ones\r\n\t\t\tvar delta = ticks.length > 3 ? ticks[2] - ticks[1] : ticks[1] - ticks[0];\r\n\r\n\t\t\t// If we have a number like 2.5 as the delta, figure out how many decimal places we need\r\n\t\t\tif (Math.abs(delta) > 1) {\r\n\t\t\t\tif (tickValue !== Math.floor(tickValue)) {\r\n\t\t\t\t\t// not an integer\r\n\t\t\t\t\tdelta = tickValue - Math.floor(tickValue);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tvar logDelta = helpers$1.log10(Math.abs(delta));\r\n\t\t\tvar tickString = '';\r\n\r\n\t\t\tif (tickValue !== 0) {\r\n\t\t\t\tvar maxTick = Math.max(Math.abs(ticks[0]), Math.abs(ticks[ticks.length - 1]));\r\n\t\t\t\tif (maxTick < 1e-4) { // all ticks are small numbers; use scientific notation\r\n\t\t\t\t\tvar logTick = helpers$1.log10(Math.abs(tickValue));\r\n\t\t\t\t\tvar numExponential = Math.floor(logTick) - Math.floor(logDelta);\r\n\t\t\t\t\tnumExponential = Math.max(Math.min(numExponential, 20), 0);\r\n\t\t\t\t\ttickString = tickValue.toExponential(numExponential);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tvar numDecimal = -1 * Math.floor(logDelta);\r\n\t\t\t\t\tnumDecimal = Math.max(Math.min(numDecimal, 20), 0); // toFixed has a max of 20 decimal places\r\n\t\t\t\t\ttickString = tickValue.toFixed(numDecimal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\ttickString = '0'; // never show decimal places for 0\r\n\t\t\t}\r\n\r\n\t\t\treturn tickString;\r\n\t\t},\r\n\r\n\t\tlogarithmic: function(tickValue, index, ticks) {\r\n\t\t\tvar remain = tickValue / (Math.pow(10, Math.floor(helpers$1.log10(tickValue))));\r\n\r\n\t\t\tif (tickValue === 0) {\r\n\t\t\t\treturn '0';\r\n\t\t\t} else if (remain === 1 || remain === 2 || remain === 5 || index === 0 || index === ticks.length - 1) {\r\n\t\t\t\treturn tickValue.toExponential();\r\n\t\t\t}\r\n\t\t\treturn '';\r\n\t\t}\r\n\t}\r\n};\n\nvar isArray = helpers$1.isArray;\r\nvar isNullOrUndef = helpers$1.isNullOrUndef;\r\nvar valueOrDefault$a = helpers$1.valueOrDefault;\r\nvar valueAtIndexOrDefault = helpers$1.valueAtIndexOrDefault;\r\n\r\ncore_defaults._set('scale', {\r\n\tdisplay: true,\r\n\tposition: 'left',\r\n\toffset: false,\r\n\r\n\t// grid line settings\r\n\tgridLines: {\r\n\t\tdisplay: true,\r\n\t\tcolor: 'rgba(0,0,0,0.1)',\r\n\t\tlineWidth: 1,\r\n\t\tdrawBorder: true,\r\n\t\tdrawOnChartArea: true,\r\n\t\tdrawTicks: true,\r\n\t\ttickMarkLength: 10,\r\n\t\tzeroLineWidth: 1,\r\n\t\tzeroLineColor: 'rgba(0,0,0,0.25)',\r\n\t\tzeroLineBorderDash: [],\r\n\t\tzeroLineBorderDashOffset: 0.0,\r\n\t\toffsetGridLines: false,\r\n\t\tborderDash: [],\r\n\t\tborderDashOffset: 0.0\r\n\t},\r\n\r\n\t// scale label\r\n\tscaleLabel: {\r\n\t\t// display property\r\n\t\tdisplay: false,\r\n\r\n\t\t// actual label\r\n\t\tlabelString: '',\r\n\r\n\t\t// top/bottom padding\r\n\t\tpadding: {\r\n\t\t\ttop: 4,\r\n\t\t\tbottom: 4\r\n\t\t}\r\n\t},\r\n\r\n\t// label settings\r\n\tticks: {\r\n\t\tbeginAtZero: false,\r\n\t\tminRotation: 0,\r\n\t\tmaxRotation: 50,\r\n\t\tmirror: false,\r\n\t\tpadding: 0,\r\n\t\treverse: false,\r\n\t\tdisplay: true,\r\n\t\tautoSkip: true,\r\n\t\tautoSkipPadding: 0,\r\n\t\tlabelOffset: 0,\r\n\t\t// We pass through arrays to be rendered as multiline labels, we convert Others to strings here.\r\n\t\tcallback: core_ticks.formatters.values,\r\n\t\tminor: {},\r\n\t\tmajor: {}\r\n\t}\r\n});\r\n\r\n/** Returns a new array containing numItems from arr */\r\nfunction sample(arr, numItems) {\r\n\tvar result = [];\r\n\tvar increment = arr.length / numItems;\r\n\tvar i = 0;\r\n\tvar len = arr.length;\r\n\r\n\tfor (; i < len; i += increment) {\r\n\t\tresult.push(arr[Math.floor(i)]);\r\n\t}\r\n\treturn result;\r\n}\r\n\r\nfunction getPixelForGridLine(scale, index, offsetGridLines) {\r\n\tvar length = scale.getTicks().length;\r\n\tvar validIndex = Math.min(index, length - 1);\r\n\tvar lineValue = scale.getPixelForTick(validIndex);\r\n\tvar start = scale._startPixel;\r\n\tvar end = scale._endPixel;\r\n\tvar epsilon = 1e-6; // 1e-6 is margin in pixels for accumulated error.\r\n\tvar offset;\r\n\r\n\tif (offsetGridLines) {\r\n\t\tif (length === 1) {\r\n\t\t\toffset = Math.max(lineValue - start, end - lineValue);\r\n\t\t} else if (index === 0) {\r\n\t\t\toffset = (scale.getPixelForTick(1) - lineValue) / 2;\r\n\t\t} else {\r\n\t\t\toffset = (lineValue - scale.getPixelForTick(validIndex - 1)) / 2;\r\n\t\t}\r\n\t\tlineValue += validIndex < index ? offset : -offset;\r\n\r\n\t\t// Return undefined if the pixel is out of the range\r\n\t\tif (lineValue < start - epsilon || lineValue > end + epsilon) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t}\r\n\treturn lineValue;\r\n}\r\n\r\nfunction garbageCollect(caches, length) {\r\n\thelpers$1.each(caches, function(cache) {\r\n\t\tvar gc = cache.gc;\r\n\t\tvar gcLen = gc.length / 2;\r\n\t\tvar i;\r\n\t\tif (gcLen > length) {\r\n\t\t\tfor (i = 0; i < gcLen; ++i) {\r\n\t\t\t\tdelete cache.data[gc[i]];\r\n\t\t\t}\r\n\t\t\tgc.splice(0, gcLen);\r\n\t\t}\r\n\t});\r\n}\r\n\r\n/**\r\n * Returns {width, height, offset} objects for the first, last, widest, highest tick\r\n * labels where offset indicates the anchor point offset from the top in pixels.\r\n */\r\nfunction computeLabelSizes(ctx, tickFonts, ticks, caches) {\r\n\tvar length = ticks.length;\r\n\tvar widths = [];\r\n\tvar heights = [];\r\n\tvar offsets = [];\r\n\tvar widestLabelSize = 0;\r\n\tvar highestLabelSize = 0;\r\n\tvar i, j, jlen, label, tickFont, fontString, cache, lineHeight, width, height, nestedLabel, widest, highest;\r\n\r\n\tfor (i = 0; i < length; ++i) {\r\n\t\tlabel = ticks[i].label;\r\n\t\ttickFont = ticks[i].major ? tickFonts.major : tickFonts.minor;\r\n\t\tctx.font = fontString = tickFont.string;\r\n\t\tcache = caches[fontString] = caches[fontString] || {data: {}, gc: []};\r\n\t\tlineHeight = tickFont.lineHeight;\r\n\t\twidth = height = 0;\r\n\t\t// Undefined labels and arrays should not be measured\r\n\t\tif (!isNullOrUndef(label) && !isArray(label)) {\r\n\t\t\twidth = helpers$1.measureText(ctx, cache.data, cache.gc, width, label);\r\n\t\t\theight = lineHeight;\r\n\t\t} else if (isArray(label)) {\r\n\t\t\t// if it is an array let's measure each element\r\n\t\t\tfor (j = 0, jlen = label.length; j < jlen; ++j) {\r\n\t\t\t\tnestedLabel = label[j];\r\n\t\t\t\t// Undefined labels and arrays should not be measured\r\n\t\t\t\tif (!isNullOrUndef(nestedLabel) && !isArray(nestedLabel)) {\r\n\t\t\t\t\twidth = helpers$1.measureText(ctx, cache.data, cache.gc, width, nestedLabel);\r\n\t\t\t\t\theight += lineHeight;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\twidths.push(width);\r\n\t\theights.push(height);\r\n\t\toffsets.push(lineHeight / 2);\r\n\t\twidestLabelSize = Math.max(width, widestLabelSize);\r\n\t\thighestLabelSize = Math.max(height, highestLabelSize);\r\n\t}\r\n\tgarbageCollect(caches, length);\r\n\r\n\twidest = widths.indexOf(widestLabelSize);\r\n\thighest = heights.indexOf(highestLabelSize);\r\n\r\n\tfunction valueAt(idx) {\r\n\t\treturn {\r\n\t\t\twidth: widths[idx] || 0,\r\n\t\t\theight: heights[idx] || 0,\r\n\t\t\toffset: offsets[idx] || 0\r\n\t\t};\r\n\t}\r\n\r\n\treturn {\r\n\t\tfirst: valueAt(0),\r\n\t\tlast: valueAt(length - 1),\r\n\t\twidest: valueAt(widest),\r\n\t\thighest: valueAt(highest)\r\n\t};\r\n}\r\n\r\nfunction getTickMarkLength(options) {\r\n\treturn options.drawTicks ? options.tickMarkLength : 0;\r\n}\r\n\r\nfunction getScaleLabelHeight(options) {\r\n\tvar font, padding;\r\n\r\n\tif (!options.display) {\r\n\t\treturn 0;\r\n\t}\r\n\r\n\tfont = helpers$1.options._parseFont(options);\r\n\tpadding = helpers$1.options.toPadding(options.padding);\r\n\r\n\treturn font.lineHeight + padding.height;\r\n}\r\n\r\nfunction parseFontOptions(options, nestedOpts) {\r\n\treturn helpers$1.extend(helpers$1.options._parseFont({\r\n\t\tfontFamily: valueOrDefault$a(nestedOpts.fontFamily, options.fontFamily),\r\n\t\tfontSize: valueOrDefault$a(nestedOpts.fontSize, options.fontSize),\r\n\t\tfontStyle: valueOrDefault$a(nestedOpts.fontStyle, options.fontStyle),\r\n\t\tlineHeight: valueOrDefault$a(nestedOpts.lineHeight, options.lineHeight)\r\n\t}), {\r\n\t\tcolor: helpers$1.options.resolve([nestedOpts.fontColor, options.fontColor, core_defaults.global.defaultFontColor])\r\n\t});\r\n}\r\n\r\nfunction parseTickFontOptions(options) {\r\n\tvar minor = parseFontOptions(options, options.minor);\r\n\tvar major = options.major.enabled ? parseFontOptions(options, options.major) : minor;\r\n\r\n\treturn {minor: minor, major: major};\r\n}\r\n\r\nfunction nonSkipped(ticksToFilter) {\r\n\tvar filtered = [];\r\n\tvar item, index, len;\r\n\tfor (index = 0, len = ticksToFilter.length; index < len; ++index) {\r\n\t\titem = ticksToFilter[index];\r\n\t\tif (typeof item._index !== 'undefined') {\r\n\t\t\tfiltered.push(item);\r\n\t\t}\r\n\t}\r\n\treturn filtered;\r\n}\r\n\r\nfunction getEvenSpacing(arr) {\r\n\tvar len = arr.length;\r\n\tvar i, diff;\r\n\r\n\tif (len < 2) {\r\n\t\treturn false;\r\n\t}\r\n\r\n\tfor (diff = arr[0], i = 1; i < len; ++i) {\r\n\t\tif (arr[i] - arr[i - 1] !== diff) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}\r\n\treturn diff;\r\n}\r\n\r\nfunction calculateSpacing(majorIndices, ticks, axisLength, ticksLimit) {\r\n\tvar evenMajorSpacing = getEvenSpacing(majorIndices);\r\n\tvar spacing = (ticks.length - 1) / ticksLimit;\r\n\tvar factors, factor, i, ilen;\r\n\r\n\t// If the major ticks are evenly spaced apart, place the minor ticks\r\n\t// so that they divide the major ticks into even chunks\r\n\tif (!evenMajorSpacing) {\r\n\t\treturn Math.max(spacing, 1);\r\n\t}\r\n\r\n\tfactors = helpers$1.math._factorize(evenMajorSpacing);\r\n\tfor (i = 0, ilen = factors.length - 1; i < ilen; i++) {\r\n\t\tfactor = factors[i];\r\n\t\tif (factor > spacing) {\r\n\t\t\treturn factor;\r\n\t\t}\r\n\t}\r\n\treturn Math.max(spacing, 1);\r\n}\r\n\r\nfunction getMajorIndices(ticks) {\r\n\tvar result = [];\r\n\tvar i, ilen;\r\n\tfor (i = 0, ilen = ticks.length; i < ilen; i++) {\r\n\t\tif (ticks[i].major) {\r\n\t\t\tresult.push(i);\r\n\t\t}\r\n\t}\r\n\treturn result;\r\n}\r\n\r\nfunction skipMajors(ticks, majorIndices, spacing) {\r\n\tvar count = 0;\r\n\tvar next = majorIndices[0];\r\n\tvar i, tick;\r\n\r\n\tspacing = Math.ceil(spacing);\r\n\tfor (i = 0; i < ticks.length; i++) {\r\n\t\ttick = ticks[i];\r\n\t\tif (i === next) {\r\n\t\t\ttick._index = i;\r\n\t\t\tcount++;\r\n\t\t\tnext = majorIndices[count * spacing];\r\n\t\t} else {\r\n\t\t\tdelete tick.label;\r\n\t\t}\r\n\t}\r\n}\r\n\r\nfunction skip(ticks, spacing, majorStart, majorEnd) {\r\n\tvar start = valueOrDefault$a(majorStart, 0);\r\n\tvar end = Math.min(valueOrDefault$a(majorEnd, ticks.length), ticks.length);\r\n\tvar count = 0;\r\n\tvar length, i, tick, next;\r\n\r\n\tspacing = Math.ceil(spacing);\r\n\tif (majorEnd) {\r\n\t\tlength = majorEnd - majorStart;\r\n\t\tspacing = length / Math.floor(length / spacing);\r\n\t}\r\n\r\n\tnext = start;\r\n\r\n\twhile (next < 0) {\r\n\t\tcount++;\r\n\t\tnext = Math.round(start + count * spacing);\r\n\t}\r\n\r\n\tfor (i = Math.max(start, 0); i < end; i++) {\r\n\t\ttick = ticks[i];\r\n\t\tif (i === next) {\r\n\t\t\ttick._index = i;\r\n\t\t\tcount++;\r\n\t\t\tnext = Math.round(start + count * spacing);\r\n\t\t} else {\r\n\t\t\tdelete tick.label;\r\n\t\t}\r\n\t}\r\n}\r\n\r\nvar Scale = core_element.extend({\r\n\r\n\tzeroLineIndex: 0,\r\n\r\n\t/**\r\n\t * Get the padding needed for the scale\r\n\t * @method getPadding\r\n\t * @private\r\n\t * @returns {Padding} the necessary padding\r\n\t */\r\n\tgetPadding: function() {\r\n\t\tvar me = this;\r\n\t\treturn {\r\n\t\t\tleft: me.paddingLeft || 0,\r\n\t\t\ttop: me.paddingTop || 0,\r\n\t\t\tright: me.paddingRight || 0,\r\n\t\t\tbottom: me.paddingBottom || 0\r\n\t\t};\r\n\t},\r\n\r\n\t/**\r\n\t * Returns the scale tick objects ({label, major})\r\n\t * @since 2.7\r\n\t */\r\n\tgetTicks: function() {\r\n\t\treturn this._ticks;\r\n\t},\r\n\r\n\t/**\r\n\t* @private\r\n\t*/\r\n\t_getLabels: function() {\r\n\t\tvar data = this.chart.data;\r\n\t\treturn this.options.labels || (this.isHorizontal() ? data.xLabels : data.yLabels) || data.labels || [];\r\n\t},\r\n\r\n\t// These methods are ordered by lifecyle. Utilities then follow.\r\n\t// Any function defined here is inherited by all scale types.\r\n\t// Any function can be extended by the scale type\r\n\r\n\t/**\r\n\t * Provided for backward compatibility, not available anymore\r\n\t * @function Chart.Scale.mergeTicksOptions\r\n\t * @deprecated since version 2.8.0\r\n\t * @todo remove at version 3\r\n\t */\r\n\tmergeTicksOptions: function() {\r\n\t\t// noop\r\n\t},\r\n\r\n\tbeforeUpdate: function() {\r\n\t\thelpers$1.callback(this.options.beforeUpdate, [this]);\r\n\t},\r\n\r\n\t/**\r\n\t * @param {number} maxWidth - the max width in pixels\r\n\t * @param {number} maxHeight - the max height in pixels\r\n\t * @param {object} margins - the space between the edge of the other scales and edge of the chart\r\n\t *   This space comes from two sources:\r\n\t *     - padding - space that's required to show the labels at the edges of the scale\r\n\t *     - thickness of scales or legends in another orientation\r\n\t */\r\n\tupdate: function(maxWidth, maxHeight, margins) {\r\n\t\tvar me = this;\r\n\t\tvar tickOpts = me.options.ticks;\r\n\t\tvar sampleSize = tickOpts.sampleSize;\r\n\t\tvar i, ilen, labels, ticks, samplingEnabled;\r\n\r\n\t\t// Update Lifecycle - Probably don't want to ever extend or overwrite this function ;)\r\n\t\tme.beforeUpdate();\r\n\r\n\t\t// Absorb the master measurements\r\n\t\tme.maxWidth = maxWidth;\r\n\t\tme.maxHeight = maxHeight;\r\n\t\tme.margins = helpers$1.extend({\r\n\t\t\tleft: 0,\r\n\t\t\tright: 0,\r\n\t\t\ttop: 0,\r\n\t\t\tbottom: 0\r\n\t\t}, margins);\r\n\r\n\t\tme._ticks = null;\r\n\t\tme.ticks = null;\r\n\t\tme._labelSizes = null;\r\n\t\tme._maxLabelLines = 0;\r\n\t\tme.longestLabelWidth = 0;\r\n\t\tme.longestTextCache = me.longestTextCache || {};\r\n\t\tme._gridLineItems = null;\r\n\t\tme._labelItems = null;\r\n\r\n\t\t// Dimensions\r\n\t\tme.beforeSetDimensions();\r\n\t\tme.setDimensions();\r\n\t\tme.afterSetDimensions();\r\n\r\n\t\t// Data min/max\r\n\t\tme.beforeDataLimits();\r\n\t\tme.determineDataLimits();\r\n\t\tme.afterDataLimits();\r\n\r\n\t\t// Ticks - `this.ticks` is now DEPRECATED!\r\n\t\t// Internal ticks are now stored as objects in the PRIVATE `this._ticks` member\r\n\t\t// and must not be accessed directly from outside this class. `this.ticks` being\r\n\t\t// around for long time and not marked as private, we can't change its structure\r\n\t\t// without unexpected breaking changes. If you need to access the scale ticks,\r\n\t\t// use scale.getTicks() instead.\r\n\r\n\t\tme.beforeBuildTicks();\r\n\r\n\t\t// New implementations should return an array of objects but for BACKWARD COMPAT,\r\n\t\t// we still support no return (`this.ticks` internally set by calling this method).\r\n\t\tticks = me.buildTicks() || [];\r\n\r\n\t\t// Allow modification of ticks in callback.\r\n\t\tticks = me.afterBuildTicks(ticks) || ticks;\r\n\r\n\t\t// Ensure ticks contains ticks in new tick format\r\n\t\tif ((!ticks || !ticks.length) && me.ticks) {\r\n\t\t\tticks = [];\r\n\t\t\tfor (i = 0, ilen = me.ticks.length; i < ilen; ++i) {\r\n\t\t\t\tticks.push({\r\n\t\t\t\t\tvalue: me.ticks[i],\r\n\t\t\t\t\tmajor: false\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tme._ticks = ticks;\r\n\r\n\t\t// Compute tick rotation and fit using a sampled subset of labels\r\n\t\t// We generally don't need to compute the size of every single label for determining scale size\r\n\t\tsamplingEnabled = sampleSize < ticks.length;\r\n\t\tlabels = me._convertTicksToLabels(samplingEnabled ? sample(ticks, sampleSize) : ticks);\r\n\r\n\t\t// _configure is called twice, once here, once from core.controller.updateLayout.\r\n\t\t// Here we haven't been positioned yet, but dimensions are correct.\r\n\t\t// Variables set in _configure are needed for calculateTickRotation, and\r\n\t\t// it's ok that coordinates are not correct there, only dimensions matter.\r\n\t\tme._configure();\r\n\r\n\t\t// Tick Rotation\r\n\t\tme.beforeCalculateTickRotation();\r\n\t\tme.calculateTickRotation();\r\n\t\tme.afterCalculateTickRotation();\r\n\r\n\t\tme.beforeFit();\r\n\t\tme.fit();\r\n\t\tme.afterFit();\r\n\r\n\t\t// Auto-skip\r\n\t\tme._ticksToDraw = tickOpts.display && (tickOpts.autoSkip || tickOpts.source === 'auto') ? me._autoSkip(ticks) : ticks;\r\n\r\n\t\tif (samplingEnabled) {\r\n\t\t\t// Generate labels using all non-skipped ticks\r\n\t\t\tlabels = me._convertTicksToLabels(me._ticksToDraw);\r\n\t\t}\r\n\r\n\t\tme.ticks = labels;   // BACKWARD COMPATIBILITY\r\n\r\n\t\t// IMPORTANT: after this point, we consider that `this.ticks` will NEVER change!\r\n\r\n\t\tme.afterUpdate();\r\n\r\n\t\t// TODO(v3): remove minSize as a public property and return value from all layout boxes. It is unused\r\n\t\t// make maxWidth and maxHeight private\r\n\t\treturn me.minSize;\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_configure: function() {\r\n\t\tvar me = this;\r\n\t\tvar reversePixels = me.options.ticks.reverse;\r\n\t\tvar startPixel, endPixel;\r\n\r\n\t\tif (me.isHorizontal()) {\r\n\t\t\tstartPixel = me.left;\r\n\t\t\tendPixel = me.right;\r\n\t\t} else {\r\n\t\t\tstartPixel = me.top;\r\n\t\t\tendPixel = me.bottom;\r\n\t\t\t// by default vertical scales are from bottom to top, so pixels are reversed\r\n\t\t\treversePixels = !reversePixels;\r\n\t\t}\r\n\t\tme._startPixel = startPixel;\r\n\t\tme._endPixel = endPixel;\r\n\t\tme._reversePixels = reversePixels;\r\n\t\tme._length = endPixel - startPixel;\r\n\t},\r\n\r\n\tafterUpdate: function() {\r\n\t\thelpers$1.callback(this.options.afterUpdate, [this]);\r\n\t},\r\n\r\n\t//\r\n\r\n\tbeforeSetDimensions: function() {\r\n\t\thelpers$1.callback(this.options.beforeSetDimensions, [this]);\r\n\t},\r\n\tsetDimensions: function() {\r\n\t\tvar me = this;\r\n\t\t// Set the unconstrained dimension before label rotation\r\n\t\tif (me.isHorizontal()) {\r\n\t\t\t// Reset position before calculating rotation\r\n\t\t\tme.width = me.maxWidth;\r\n\t\t\tme.left = 0;\r\n\t\t\tme.right = me.width;\r\n\t\t} else {\r\n\t\t\tme.height = me.maxHeight;\r\n\r\n\t\t\t// Reset position before calculating rotation\r\n\t\t\tme.top = 0;\r\n\t\t\tme.bottom = me.height;\r\n\t\t}\r\n\r\n\t\t// Reset padding\r\n\t\tme.paddingLeft = 0;\r\n\t\tme.paddingTop = 0;\r\n\t\tme.paddingRight = 0;\r\n\t\tme.paddingBottom = 0;\r\n\t},\r\n\tafterSetDimensions: function() {\r\n\t\thelpers$1.callback(this.options.afterSetDimensions, [this]);\r\n\t},\r\n\r\n\t// Data limits\r\n\tbeforeDataLimits: function() {\r\n\t\thelpers$1.callback(this.options.beforeDataLimits, [this]);\r\n\t},\r\n\tdetermineDataLimits: helpers$1.noop,\r\n\tafterDataLimits: function() {\r\n\t\thelpers$1.callback(this.options.afterDataLimits, [this]);\r\n\t},\r\n\r\n\t//\r\n\tbeforeBuildTicks: function() {\r\n\t\thelpers$1.callback(this.options.beforeBuildTicks, [this]);\r\n\t},\r\n\tbuildTicks: helpers$1.noop,\r\n\tafterBuildTicks: function(ticks) {\r\n\t\tvar me = this;\r\n\t\t// ticks is empty for old axis implementations here\r\n\t\tif (isArray(ticks) && ticks.length) {\r\n\t\t\treturn helpers$1.callback(me.options.afterBuildTicks, [me, ticks]);\r\n\t\t}\r\n\t\t// Support old implementations (that modified `this.ticks` directly in buildTicks)\r\n\t\tme.ticks = helpers$1.callback(me.options.afterBuildTicks, [me, me.ticks]) || me.ticks;\r\n\t\treturn ticks;\r\n\t},\r\n\r\n\tbeforeTickToLabelConversion: function() {\r\n\t\thelpers$1.callback(this.options.beforeTickToLabelConversion, [this]);\r\n\t},\r\n\tconvertTicksToLabels: function() {\r\n\t\tvar me = this;\r\n\t\t// Convert ticks to strings\r\n\t\tvar tickOpts = me.options.ticks;\r\n\t\tme.ticks = me.ticks.map(tickOpts.userCallback || tickOpts.callback, this);\r\n\t},\r\n\tafterTickToLabelConversion: function() {\r\n\t\thelpers$1.callback(this.options.afterTickToLabelConversion, [this]);\r\n\t},\r\n\r\n\t//\r\n\r\n\tbeforeCalculateTickRotation: function() {\r\n\t\thelpers$1.callback(this.options.beforeCalculateTickRotation, [this]);\r\n\t},\r\n\tcalculateTickRotation: function() {\r\n\t\tvar me = this;\r\n\t\tvar options = me.options;\r\n\t\tvar tickOpts = options.ticks;\r\n\t\tvar numTicks = me.getTicks().length;\r\n\t\tvar minRotation = tickOpts.minRotation || 0;\r\n\t\tvar maxRotation = tickOpts.maxRotation;\r\n\t\tvar labelRotation = minRotation;\r\n\t\tvar labelSizes, maxLabelWidth, maxLabelHeight, maxWidth, tickWidth, maxHeight, maxLabelDiagonal;\r\n\r\n\t\tif (!me._isVisible() || !tickOpts.display || minRotation >= maxRotation || numTicks <= 1 || !me.isHorizontal()) {\r\n\t\t\tme.labelRotation = minRotation;\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tlabelSizes = me._getLabelSizes();\r\n\t\tmaxLabelWidth = labelSizes.widest.width;\r\n\t\tmaxLabelHeight = labelSizes.highest.height - labelSizes.highest.offset;\r\n\r\n\t\t// Estimate the width of each grid based on the canvas width, the maximum\r\n\t\t// label width and the number of tick intervals\r\n\t\tmaxWidth = Math.min(me.maxWidth, me.chart.width - maxLabelWidth);\r\n\t\ttickWidth = options.offset ? me.maxWidth / numTicks : maxWidth / (numTicks - 1);\r\n\r\n\t\t// Allow 3 pixels x2 padding either side for label readability\r\n\t\tif (maxLabelWidth + 6 > tickWidth) {\r\n\t\t\ttickWidth = maxWidth / (numTicks - (options.offset ? 0.5 : 1));\r\n\t\t\tmaxHeight = me.maxHeight - getTickMarkLength(options.gridLines)\r\n\t\t\t\t- tickOpts.padding - getScaleLabelHeight(options.scaleLabel);\r\n\t\t\tmaxLabelDiagonal = Math.sqrt(maxLabelWidth * maxLabelWidth + maxLabelHeight * maxLabelHeight);\r\n\t\t\tlabelRotation = helpers$1.toDegrees(Math.min(\r\n\t\t\t\tMath.asin(Math.min((labelSizes.highest.height + 6) / tickWidth, 1)),\r\n\t\t\t\tMath.asin(Math.min(maxHeight / maxLabelDiagonal, 1)) - Math.asin(maxLabelHeight / maxLabelDiagonal)\r\n\t\t\t));\r\n\t\t\tlabelRotation = Math.max(minRotation, Math.min(maxRotation, labelRotation));\r\n\t\t}\r\n\r\n\t\tme.labelRotation = labelRotation;\r\n\t},\r\n\tafterCalculateTickRotation: function() {\r\n\t\thelpers$1.callback(this.options.afterCalculateTickRotation, [this]);\r\n\t},\r\n\r\n\t//\r\n\r\n\tbeforeFit: function() {\r\n\t\thelpers$1.callback(this.options.beforeFit, [this]);\r\n\t},\r\n\tfit: function() {\r\n\t\tvar me = this;\r\n\t\t// Reset\r\n\t\tvar minSize = me.minSize = {\r\n\t\t\twidth: 0,\r\n\t\t\theight: 0\r\n\t\t};\r\n\r\n\t\tvar chart = me.chart;\r\n\t\tvar opts = me.options;\r\n\t\tvar tickOpts = opts.ticks;\r\n\t\tvar scaleLabelOpts = opts.scaleLabel;\r\n\t\tvar gridLineOpts = opts.gridLines;\r\n\t\tvar display = me._isVisible();\r\n\t\tvar isBottom = opts.position === 'bottom';\r\n\t\tvar isHorizontal = me.isHorizontal();\r\n\r\n\t\t// Width\r\n\t\tif (isHorizontal) {\r\n\t\t\tminSize.width = me.maxWidth;\r\n\t\t} else if (display) {\r\n\t\t\tminSize.width = getTickMarkLength(gridLineOpts) + getScaleLabelHeight(scaleLabelOpts);\r\n\t\t}\r\n\r\n\t\t// height\r\n\t\tif (!isHorizontal) {\r\n\t\t\tminSize.height = me.maxHeight; // fill all the height\r\n\t\t} else if (display) {\r\n\t\t\tminSize.height = getTickMarkLength(gridLineOpts) + getScaleLabelHeight(scaleLabelOpts);\r\n\t\t}\r\n\r\n\t\t// Don't bother fitting the ticks if we are not showing the labels\r\n\t\tif (tickOpts.display && display) {\r\n\t\t\tvar tickFonts = parseTickFontOptions(tickOpts);\r\n\t\t\tvar labelSizes = me._getLabelSizes();\r\n\t\t\tvar firstLabelSize = labelSizes.first;\r\n\t\t\tvar lastLabelSize = labelSizes.last;\r\n\t\t\tvar widestLabelSize = labelSizes.widest;\r\n\t\t\tvar highestLabelSize = labelSizes.highest;\r\n\t\t\tvar lineSpace = tickFonts.minor.lineHeight * 0.4;\r\n\t\t\tvar tickPadding = tickOpts.padding;\r\n\r\n\t\t\tif (isHorizontal) {\r\n\t\t\t\t// A horizontal axis is more constrained by the height.\r\n\t\t\t\tvar isRotated = me.labelRotation !== 0;\r\n\t\t\t\tvar angleRadians = helpers$1.toRadians(me.labelRotation);\r\n\t\t\t\tvar cosRotation = Math.cos(angleRadians);\r\n\t\t\t\tvar sinRotation = Math.sin(angleRadians);\r\n\r\n\t\t\t\tvar labelHeight = sinRotation * widestLabelSize.width\r\n\t\t\t\t\t+ cosRotation * (highestLabelSize.height - (isRotated ? highestLabelSize.offset : 0))\r\n\t\t\t\t\t+ (isRotated ? 0 : lineSpace); // padding\r\n\r\n\t\t\t\tminSize.height = Math.min(me.maxHeight, minSize.height + labelHeight + tickPadding);\r\n\r\n\t\t\t\tvar offsetLeft = me.getPixelForTick(0) - me.left;\r\n\t\t\t\tvar offsetRight = me.right - me.getPixelForTick(me.getTicks().length - 1);\r\n\t\t\t\tvar paddingLeft, paddingRight;\r\n\r\n\t\t\t\t// Ensure that our ticks are always inside the canvas. When rotated, ticks are right aligned\r\n\t\t\t\t// which means that the right padding is dominated by the font height\r\n\t\t\t\tif (isRotated) {\r\n\t\t\t\t\tpaddingLeft = isBottom ?\r\n\t\t\t\t\t\tcosRotation * firstLabelSize.width + sinRotation * firstLabelSize.offset :\r\n\t\t\t\t\t\tsinRotation * (firstLabelSize.height - firstLabelSize.offset);\r\n\t\t\t\t\tpaddingRight = isBottom ?\r\n\t\t\t\t\t\tsinRotation * (lastLabelSize.height - lastLabelSize.offset) :\r\n\t\t\t\t\t\tcosRotation * lastLabelSize.width + sinRotation * lastLabelSize.offset;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tpaddingLeft = firstLabelSize.width / 2;\r\n\t\t\t\t\tpaddingRight = lastLabelSize.width / 2;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Adjust padding taking into account changes in offsets\r\n\t\t\t\t// and add 3 px to move away from canvas edges\r\n\t\t\t\tme.paddingLeft = Math.max((paddingLeft - offsetLeft) * me.width / (me.width - offsetLeft), 0) + 3;\r\n\t\t\t\tme.paddingRight = Math.max((paddingRight - offsetRight) * me.width / (me.width - offsetRight), 0) + 3;\r\n\t\t\t} else {\r\n\t\t\t\t// A vertical axis is more constrained by the width. Labels are the\r\n\t\t\t\t// dominant factor here, so get that length first and account for padding\r\n\t\t\t\tvar labelWidth = tickOpts.mirror ? 0 :\r\n\t\t\t\t\t// use lineSpace for consistency with horizontal axis\r\n\t\t\t\t\t// tickPadding is not implemented for horizontal\r\n\t\t\t\t\twidestLabelSize.width + tickPadding + lineSpace;\r\n\r\n\t\t\t\tminSize.width = Math.min(me.maxWidth, minSize.width + labelWidth);\r\n\r\n\t\t\t\tme.paddingTop = firstLabelSize.height / 2;\r\n\t\t\t\tme.paddingBottom = lastLabelSize.height / 2;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tme.handleMargins();\r\n\r\n\t\tif (isHorizontal) {\r\n\t\t\tme.width = me._length = chart.width - me.margins.left - me.margins.right;\r\n\t\t\tme.height = minSize.height;\r\n\t\t} else {\r\n\t\t\tme.width = minSize.width;\r\n\t\t\tme.height = me._length = chart.height - me.margins.top - me.margins.bottom;\r\n\t\t}\r\n\t},\r\n\r\n\t/**\r\n\t * Handle margins and padding interactions\r\n\t * @private\r\n\t */\r\n\thandleMargins: function() {\r\n\t\tvar me = this;\r\n\t\tif (me.margins) {\r\n\t\t\tme.margins.left = Math.max(me.paddingLeft, me.margins.left);\r\n\t\t\tme.margins.top = Math.max(me.paddingTop, me.margins.top);\r\n\t\t\tme.margins.right = Math.max(me.paddingRight, me.margins.right);\r\n\t\t\tme.margins.bottom = Math.max(me.paddingBottom, me.margins.bottom);\r\n\t\t}\r\n\t},\r\n\r\n\tafterFit: function() {\r\n\t\thelpers$1.callback(this.options.afterFit, [this]);\r\n\t},\r\n\r\n\t// Shared Methods\r\n\tisHorizontal: function() {\r\n\t\tvar pos = this.options.position;\r\n\t\treturn pos === 'top' || pos === 'bottom';\r\n\t},\r\n\tisFullWidth: function() {\r\n\t\treturn this.options.fullWidth;\r\n\t},\r\n\r\n\t// Get the correct value. NaN bad inputs, If the value type is object get the x or y based on whether we are horizontal or not\r\n\tgetRightValue: function(rawValue) {\r\n\t\t// Null and undefined values first\r\n\t\tif (isNullOrUndef(rawValue)) {\r\n\t\t\treturn NaN;\r\n\t\t}\r\n\t\t// isNaN(object) returns true, so make sure NaN is checking for a number; Discard Infinite values\r\n\t\tif ((typeof rawValue === 'number' || rawValue instanceof Number) && !isFinite(rawValue)) {\r\n\t\t\treturn NaN;\r\n\t\t}\r\n\r\n\t\t// If it is in fact an object, dive in one more level\r\n\t\tif (rawValue) {\r\n\t\t\tif (this.isHorizontal()) {\r\n\t\t\t\tif (rawValue.x !== undefined) {\r\n\t\t\t\t\treturn this.getRightValue(rawValue.x);\r\n\t\t\t\t}\r\n\t\t\t} else if (rawValue.y !== undefined) {\r\n\t\t\t\treturn this.getRightValue(rawValue.y);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Value is good, return it\r\n\t\treturn rawValue;\r\n\t},\r\n\r\n\t_convertTicksToLabels: function(ticks) {\r\n\t\tvar me = this;\r\n\t\tvar labels, i, ilen;\r\n\r\n\t\tme.ticks = ticks.map(function(tick) {\r\n\t\t\treturn tick.value;\r\n\t\t});\r\n\r\n\t\tme.beforeTickToLabelConversion();\r\n\r\n\t\t// New implementations should return the formatted tick labels but for BACKWARD\r\n\t\t// COMPAT, we still support no return (`this.ticks` internally changed by calling\r\n\t\t// this method and supposed to contain only string values).\r\n\t\tlabels = me.convertTicksToLabels(ticks) || me.ticks;\r\n\r\n\t\tme.afterTickToLabelConversion();\r\n\r\n\t\t// BACKWARD COMPAT: synchronize `_ticks` with labels (so potentially `this.ticks`)\r\n\t\tfor (i = 0, ilen = ticks.length; i < ilen; ++i) {\r\n\t\t\tticks[i].label = labels[i];\r\n\t\t}\r\n\r\n\t\treturn labels;\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_getLabelSizes: function() {\r\n\t\tvar me = this;\r\n\t\tvar labelSizes = me._labelSizes;\r\n\r\n\t\tif (!labelSizes) {\r\n\t\t\tme._labelSizes = labelSizes = computeLabelSizes(me.ctx, parseTickFontOptions(me.options.ticks), me.getTicks(), me.longestTextCache);\r\n\t\t\tme.longestLabelWidth = labelSizes.widest.width;\r\n\t\t}\r\n\r\n\t\treturn labelSizes;\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_parseValue: function(value) {\r\n\t\tvar start, end, min, max;\r\n\r\n\t\tif (isArray(value)) {\r\n\t\t\tstart = +this.getRightValue(value[0]);\r\n\t\t\tend = +this.getRightValue(value[1]);\r\n\t\t\tmin = Math.min(start, end);\r\n\t\t\tmax = Math.max(start, end);\r\n\t\t} else {\r\n\t\t\tvalue = +this.getRightValue(value);\r\n\t\t\tstart = undefined;\r\n\t\t\tend = value;\r\n\t\t\tmin = value;\r\n\t\t\tmax = value;\r\n\t\t}\r\n\r\n\t\treturn {\r\n\t\t\tmin: min,\r\n\t\t\tmax: max,\r\n\t\t\tstart: start,\r\n\t\t\tend: end\r\n\t\t};\r\n\t},\r\n\r\n\t/**\r\n\t* @private\r\n\t*/\r\n\t_getScaleLabel: function(rawValue) {\r\n\t\tvar v = this._parseValue(rawValue);\r\n\t\tif (v.start !== undefined) {\r\n\t\t\treturn '[' + v.start + ', ' + v.end + ']';\r\n\t\t}\r\n\r\n\t\treturn +this.getRightValue(rawValue);\r\n\t},\r\n\r\n\t/**\r\n\t * Used to get the value to display in the tooltip for the data at the given index\r\n\t * @param index\r\n\t * @param datasetIndex\r\n\t */\r\n\tgetLabelForIndex: helpers$1.noop,\r\n\r\n\t/**\r\n\t * Returns the location of the given data point. Value can either be an index or a numerical value\r\n\t * The coordinate (0, 0) is at the upper-left corner of the canvas\r\n\t * @param value\r\n\t * @param index\r\n\t * @param datasetIndex\r\n\t */\r\n\tgetPixelForValue: helpers$1.noop,\r\n\r\n\t/**\r\n\t * Used to get the data value from a given pixel. This is the inverse of getPixelForValue\r\n\t * The coordinate (0, 0) is at the upper-left corner of the canvas\r\n\t * @param pixel\r\n\t */\r\n\tgetValueForPixel: helpers$1.noop,\r\n\r\n\t/**\r\n\t * Returns the location of the tick at the given index\r\n\t * The coordinate (0, 0) is at the upper-left corner of the canvas\r\n\t */\r\n\tgetPixelForTick: function(index) {\r\n\t\tvar me = this;\r\n\t\tvar offset = me.options.offset;\r\n\t\tvar numTicks = me._ticks.length;\r\n\t\tvar tickWidth = 1 / Math.max(numTicks - (offset ? 0 : 1), 1);\r\n\r\n\t\treturn index < 0 || index > numTicks - 1\r\n\t\t\t? null\r\n\t\t\t: me.getPixelForDecimal(index * tickWidth + (offset ? tickWidth / 2 : 0));\r\n\t},\r\n\r\n\t/**\r\n\t * Utility for getting the pixel location of a percentage of scale\r\n\t * The coordinate (0, 0) is at the upper-left corner of the canvas\r\n\t */\r\n\tgetPixelForDecimal: function(decimal) {\r\n\t\tvar me = this;\r\n\r\n\t\tif (me._reversePixels) {\r\n\t\t\tdecimal = 1 - decimal;\r\n\t\t}\r\n\r\n\t\treturn me._startPixel + decimal * me._length;\r\n\t},\r\n\r\n\tgetDecimalForPixel: function(pixel) {\r\n\t\tvar decimal = (pixel - this._startPixel) / this._length;\r\n\t\treturn this._reversePixels ? 1 - decimal : decimal;\r\n\t},\r\n\r\n\t/**\r\n\t * Returns the pixel for the minimum chart value\r\n\t * The coordinate (0, 0) is at the upper-left corner of the canvas\r\n\t */\r\n\tgetBasePixel: function() {\r\n\t\treturn this.getPixelForValue(this.getBaseValue());\r\n\t},\r\n\r\n\tgetBaseValue: function() {\r\n\t\tvar me = this;\r\n\t\tvar min = me.min;\r\n\t\tvar max = me.max;\r\n\r\n\t\treturn me.beginAtZero ? 0 :\r\n\t\t\tmin < 0 && max < 0 ? max :\r\n\t\t\tmin > 0 && max > 0 ? min :\r\n\t\t\t0;\r\n\t},\r\n\r\n\t/**\r\n\t * Returns a subset of ticks to be plotted to avoid overlapping labels.\r\n\t * @private\r\n\t */\r\n\t_autoSkip: function(ticks) {\r\n\t\tvar me = this;\r\n\t\tvar tickOpts = me.options.ticks;\r\n\t\tvar axisLength = me._length;\r\n\t\tvar ticksLimit = tickOpts.maxTicksLimit || axisLength / me._tickSize() + 1;\r\n\t\tvar majorIndices = tickOpts.major.enabled ? getMajorIndices(ticks) : [];\r\n\t\tvar numMajorIndices = majorIndices.length;\r\n\t\tvar first = majorIndices[0];\r\n\t\tvar last = majorIndices[numMajorIndices - 1];\r\n\t\tvar i, ilen, spacing, avgMajorSpacing;\r\n\r\n\t\t// If there are too many major ticks to display them all\r\n\t\tif (numMajorIndices > ticksLimit) {\r\n\t\t\tskipMajors(ticks, majorIndices, numMajorIndices / ticksLimit);\r\n\t\t\treturn nonSkipped(ticks);\r\n\t\t}\r\n\r\n\t\tspacing = calculateSpacing(majorIndices, ticks, axisLength, ticksLimit);\r\n\r\n\t\tif (numMajorIndices > 0) {\r\n\t\t\tfor (i = 0, ilen = numMajorIndices - 1; i < ilen; i++) {\r\n\t\t\t\tskip(ticks, spacing, majorIndices[i], majorIndices[i + 1]);\r\n\t\t\t}\r\n\t\t\tavgMajorSpacing = numMajorIndices > 1 ? (last - first) / (numMajorIndices - 1) : null;\r\n\t\t\tskip(ticks, spacing, helpers$1.isNullOrUndef(avgMajorSpacing) ? 0 : first - avgMajorSpacing, first);\r\n\t\t\tskip(ticks, spacing, last, helpers$1.isNullOrUndef(avgMajorSpacing) ? ticks.length : last + avgMajorSpacing);\r\n\t\t\treturn nonSkipped(ticks);\r\n\t\t}\r\n\t\tskip(ticks, spacing);\r\n\t\treturn nonSkipped(ticks);\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_tickSize: function() {\r\n\t\tvar me = this;\r\n\t\tvar optionTicks = me.options.ticks;\r\n\r\n\t\t// Calculate space needed by label in axis direction.\r\n\t\tvar rot = helpers$1.toRadians(me.labelRotation);\r\n\t\tvar cos = Math.abs(Math.cos(rot));\r\n\t\tvar sin = Math.abs(Math.sin(rot));\r\n\r\n\t\tvar labelSizes = me._getLabelSizes();\r\n\t\tvar padding = optionTicks.autoSkipPadding || 0;\r\n\t\tvar w = labelSizes ? labelSizes.widest.width + padding : 0;\r\n\t\tvar h = labelSizes ? labelSizes.highest.height + padding : 0;\r\n\r\n\t\t// Calculate space needed for 1 tick in axis direction.\r\n\t\treturn me.isHorizontal()\r\n\t\t\t? h * cos > w * sin ? w / cos : h / sin\r\n\t\t\t: h * sin < w * cos ? h / cos : w / sin;\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_isVisible: function() {\r\n\t\tvar me = this;\r\n\t\tvar chart = me.chart;\r\n\t\tvar display = me.options.display;\r\n\t\tvar i, ilen, meta;\r\n\r\n\t\tif (display !== 'auto') {\r\n\t\t\treturn !!display;\r\n\t\t}\r\n\r\n\t\t// When 'auto', the scale is visible if at least one associated dataset is visible.\r\n\t\tfor (i = 0, ilen = chart.data.datasets.length; i < ilen; ++i) {\r\n\t\t\tif (chart.isDatasetVisible(i)) {\r\n\t\t\t\tmeta = chart.getDatasetMeta(i);\r\n\t\t\t\tif (meta.xAxisID === me.id || meta.yAxisID === me.id) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_computeGridLineItems: function(chartArea) {\r\n\t\tvar me = this;\r\n\t\tvar chart = me.chart;\r\n\t\tvar options = me.options;\r\n\t\tvar gridLines = options.gridLines;\r\n\t\tvar position = options.position;\r\n\t\tvar offsetGridLines = gridLines.offsetGridLines;\r\n\t\tvar isHorizontal = me.isHorizontal();\r\n\t\tvar ticks = me._ticksToDraw;\r\n\t\tvar ticksLength = ticks.length + (offsetGridLines ? 1 : 0);\r\n\r\n\t\tvar tl = getTickMarkLength(gridLines);\r\n\t\tvar items = [];\r\n\t\tvar axisWidth = gridLines.drawBorder ? valueAtIndexOrDefault(gridLines.lineWidth, 0, 0) : 0;\r\n\t\tvar axisHalfWidth = axisWidth / 2;\r\n\t\tvar alignPixel = helpers$1._alignPixel;\r\n\t\tvar alignBorderValue = function(pixel) {\r\n\t\t\treturn alignPixel(chart, pixel, axisWidth);\r\n\t\t};\r\n\t\tvar borderValue, i, tick, lineValue, alignedLineValue;\r\n\t\tvar tx1, ty1, tx2, ty2, x1, y1, x2, y2, lineWidth, lineColor, borderDash, borderDashOffset;\r\n\r\n\t\tif (position === 'top') {\r\n\t\t\tborderValue = alignBorderValue(me.bottom);\r\n\t\t\tty1 = me.bottom - tl;\r\n\t\t\tty2 = borderValue - axisHalfWidth;\r\n\t\t\ty1 = alignBorderValue(chartArea.top) + axisHalfWidth;\r\n\t\t\ty2 = chartArea.bottom;\r\n\t\t} else if (position === 'bottom') {\r\n\t\t\tborderValue = alignBorderValue(me.top);\r\n\t\t\ty1 = chartArea.top;\r\n\t\t\ty2 = alignBorderValue(chartArea.bottom) - axisHalfWidth;\r\n\t\t\tty1 = borderValue + axisHalfWidth;\r\n\t\t\tty2 = me.top + tl;\r\n\t\t} else if (position === 'left') {\r\n\t\t\tborderValue = alignBorderValue(me.right);\r\n\t\t\ttx1 = me.right - tl;\r\n\t\t\ttx2 = borderValue - axisHalfWidth;\r\n\t\t\tx1 = alignBorderValue(chartArea.left) + axisHalfWidth;\r\n\t\t\tx2 = chartArea.right;\r\n\t\t} else {\r\n\t\t\tborderValue = alignBorderValue(me.left);\r\n\t\t\tx1 = chartArea.left;\r\n\t\t\tx2 = alignBorderValue(chartArea.right) - axisHalfWidth;\r\n\t\t\ttx1 = borderValue + axisHalfWidth;\r\n\t\t\ttx2 = me.left + tl;\r\n\t\t}\r\n\r\n\t\tfor (i = 0; i < ticksLength; ++i) {\r\n\t\t\ttick = ticks[i] || {};\r\n\r\n\t\t\t// autoskipper skipped this tick (#4635)\r\n\t\t\tif (isNullOrUndef(tick.label) && i < ticks.length) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\tif (i === me.zeroLineIndex && options.offset === offsetGridLines) {\r\n\t\t\t\t// Draw the first index specially\r\n\t\t\t\tlineWidth = gridLines.zeroLineWidth;\r\n\t\t\t\tlineColor = gridLines.zeroLineColor;\r\n\t\t\t\tborderDash = gridLines.zeroLineBorderDash || [];\r\n\t\t\t\tborderDashOffset = gridLines.zeroLineBorderDashOffset || 0.0;\r\n\t\t\t} else {\r\n\t\t\t\tlineWidth = valueAtIndexOrDefault(gridLines.lineWidth, i, 1);\r\n\t\t\t\tlineColor = valueAtIndexOrDefault(gridLines.color, i, 'rgba(0,0,0,0.1)');\r\n\t\t\t\tborderDash = gridLines.borderDash || [];\r\n\t\t\t\tborderDashOffset = gridLines.borderDashOffset || 0.0;\r\n\t\t\t}\r\n\r\n\t\t\tlineValue = getPixelForGridLine(me, tick._index || i, offsetGridLines);\r\n\r\n\t\t\t// Skip if the pixel is out of the range\r\n\t\t\tif (lineValue === undefined) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\talignedLineValue = alignPixel(chart, lineValue, lineWidth);\r\n\r\n\t\t\tif (isHorizontal) {\r\n\t\t\t\ttx1 = tx2 = x1 = x2 = alignedLineValue;\r\n\t\t\t} else {\r\n\t\t\t\tty1 = ty2 = y1 = y2 = alignedLineValue;\r\n\t\t\t}\r\n\r\n\t\t\titems.push({\r\n\t\t\t\ttx1: tx1,\r\n\t\t\t\tty1: ty1,\r\n\t\t\t\ttx2: tx2,\r\n\t\t\t\tty2: ty2,\r\n\t\t\t\tx1: x1,\r\n\t\t\t\ty1: y1,\r\n\t\t\t\tx2: x2,\r\n\t\t\t\ty2: y2,\r\n\t\t\t\twidth: lineWidth,\r\n\t\t\t\tcolor: lineColor,\r\n\t\t\t\tborderDash: borderDash,\r\n\t\t\t\tborderDashOffset: borderDashOffset,\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\titems.ticksLength = ticksLength;\r\n\t\titems.borderValue = borderValue;\r\n\r\n\t\treturn items;\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_computeLabelItems: function() {\r\n\t\tvar me = this;\r\n\t\tvar options = me.options;\r\n\t\tvar optionTicks = options.ticks;\r\n\t\tvar position = options.position;\r\n\t\tvar isMirrored = optionTicks.mirror;\r\n\t\tvar isHorizontal = me.isHorizontal();\r\n\t\tvar ticks = me._ticksToDraw;\r\n\t\tvar fonts = parseTickFontOptions(optionTicks);\r\n\t\tvar tickPadding = optionTicks.padding;\r\n\t\tvar tl = getTickMarkLength(options.gridLines);\r\n\t\tvar rotation = -helpers$1.toRadians(me.labelRotation);\r\n\t\tvar items = [];\r\n\t\tvar i, ilen, tick, label, x, y, textAlign, pixel, font, lineHeight, lineCount, textOffset;\r\n\r\n\t\tif (position === 'top') {\r\n\t\t\ty = me.bottom - tl - tickPadding;\r\n\t\t\ttextAlign = !rotation ? 'center' : 'left';\r\n\t\t} else if (position === 'bottom') {\r\n\t\t\ty = me.top + tl + tickPadding;\r\n\t\t\ttextAlign = !rotation ? 'center' : 'right';\r\n\t\t} else if (position === 'left') {\r\n\t\t\tx = me.right - (isMirrored ? 0 : tl) - tickPadding;\r\n\t\t\ttextAlign = isMirrored ? 'left' : 'right';\r\n\t\t} else {\r\n\t\t\tx = me.left + (isMirrored ? 0 : tl) + tickPadding;\r\n\t\t\ttextAlign = isMirrored ? 'right' : 'left';\r\n\t\t}\r\n\r\n\t\tfor (i = 0, ilen = ticks.length; i < ilen; ++i) {\r\n\t\t\ttick = ticks[i];\r\n\t\t\tlabel = tick.label;\r\n\r\n\t\t\t// autoskipper skipped this tick (#4635)\r\n\t\t\tif (isNullOrUndef(label)) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\tpixel = me.getPixelForTick(tick._index || i) + optionTicks.labelOffset;\r\n\t\t\tfont = tick.major ? fonts.major : fonts.minor;\r\n\t\t\tlineHeight = font.lineHeight;\r\n\t\t\tlineCount = isArray(label) ? label.length : 1;\r\n\r\n\t\t\tif (isHorizontal) {\r\n\t\t\t\tx = pixel;\r\n\t\t\t\ttextOffset = position === 'top'\r\n\t\t\t\t\t? ((!rotation ? 0.5 : 1) - lineCount) * lineHeight\r\n\t\t\t\t\t: (!rotation ? 0.5 : 0) * lineHeight;\r\n\t\t\t} else {\r\n\t\t\t\ty = pixel;\r\n\t\t\t\ttextOffset = (1 - lineCount) * lineHeight / 2;\r\n\t\t\t}\r\n\r\n\t\t\titems.push({\r\n\t\t\t\tx: x,\r\n\t\t\t\ty: y,\r\n\t\t\t\trotation: rotation,\r\n\t\t\t\tlabel: label,\r\n\t\t\t\tfont: font,\r\n\t\t\t\ttextOffset: textOffset,\r\n\t\t\t\ttextAlign: textAlign\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\treturn items;\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_drawGrid: function(chartArea) {\r\n\t\tvar me = this;\r\n\t\tvar gridLines = me.options.gridLines;\r\n\r\n\t\tif (!gridLines.display) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar ctx = me.ctx;\r\n\t\tvar chart = me.chart;\r\n\t\tvar alignPixel = helpers$1._alignPixel;\r\n\t\tvar axisWidth = gridLines.drawBorder ? valueAtIndexOrDefault(gridLines.lineWidth, 0, 0) : 0;\r\n\t\tvar items = me._gridLineItems || (me._gridLineItems = me._computeGridLineItems(chartArea));\r\n\t\tvar width, color, i, ilen, item;\r\n\r\n\t\tfor (i = 0, ilen = items.length; i < ilen; ++i) {\r\n\t\t\titem = items[i];\r\n\t\t\twidth = item.width;\r\n\t\t\tcolor = item.color;\r\n\r\n\t\t\tif (width && color) {\r\n\t\t\t\tctx.save();\r\n\t\t\t\tctx.lineWidth = width;\r\n\t\t\t\tctx.strokeStyle = color;\r\n\t\t\t\tif (ctx.setLineDash) {\r\n\t\t\t\t\tctx.setLineDash(item.borderDash);\r\n\t\t\t\t\tctx.lineDashOffset = item.borderDashOffset;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tctx.beginPath();\r\n\r\n\t\t\t\tif (gridLines.drawTicks) {\r\n\t\t\t\t\tctx.moveTo(item.tx1, item.ty1);\r\n\t\t\t\t\tctx.lineTo(item.tx2, item.ty2);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (gridLines.drawOnChartArea) {\r\n\t\t\t\t\tctx.moveTo(item.x1, item.y1);\r\n\t\t\t\t\tctx.lineTo(item.x2, item.y2);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tctx.stroke();\r\n\t\t\t\tctx.restore();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (axisWidth) {\r\n\t\t\t// Draw the line at the edge of the axis\r\n\t\t\tvar firstLineWidth = axisWidth;\r\n\t\t\tvar lastLineWidth = valueAtIndexOrDefault(gridLines.lineWidth, items.ticksLength - 1, 1);\r\n\t\t\tvar borderValue = items.borderValue;\r\n\t\t\tvar x1, x2, y1, y2;\r\n\r\n\t\t\tif (me.isHorizontal()) {\r\n\t\t\t\tx1 = alignPixel(chart, me.left, firstLineWidth) - firstLineWidth / 2;\r\n\t\t\t\tx2 = alignPixel(chart, me.right, lastLineWidth) + lastLineWidth / 2;\r\n\t\t\t\ty1 = y2 = borderValue;\r\n\t\t\t} else {\r\n\t\t\t\ty1 = alignPixel(chart, me.top, firstLineWidth) - firstLineWidth / 2;\r\n\t\t\t\ty2 = alignPixel(chart, me.bottom, lastLineWidth) + lastLineWidth / 2;\r\n\t\t\t\tx1 = x2 = borderValue;\r\n\t\t\t}\r\n\r\n\t\t\tctx.lineWidth = axisWidth;\r\n\t\t\tctx.strokeStyle = valueAtIndexOrDefault(gridLines.color, 0);\r\n\t\t\tctx.beginPath();\r\n\t\t\tctx.moveTo(x1, y1);\r\n\t\t\tctx.lineTo(x2, y2);\r\n\t\t\tctx.stroke();\r\n\t\t}\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_drawLabels: function() {\r\n\t\tvar me = this;\r\n\t\tvar optionTicks = me.options.ticks;\r\n\r\n\t\tif (!optionTicks.display) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar ctx = me.ctx;\r\n\t\tvar items = me._labelItems || (me._labelItems = me._computeLabelItems());\r\n\t\tvar i, j, ilen, jlen, item, tickFont, label, y;\r\n\r\n\t\tfor (i = 0, ilen = items.length; i < ilen; ++i) {\r\n\t\t\titem = items[i];\r\n\t\t\ttickFont = item.font;\r\n\r\n\t\t\t// Make sure we draw text in the correct color and font\r\n\t\t\tctx.save();\r\n\t\t\tctx.translate(item.x, item.y);\r\n\t\t\tctx.rotate(item.rotation);\r\n\t\t\tctx.font = tickFont.string;\r\n\t\t\tctx.fillStyle = tickFont.color;\r\n\t\t\tctx.textBaseline = 'middle';\r\n\t\t\tctx.textAlign = item.textAlign;\r\n\r\n\t\t\tlabel = item.label;\r\n\t\t\ty = item.textOffset;\r\n\t\t\tif (isArray(label)) {\r\n\t\t\t\tfor (j = 0, jlen = label.length; j < jlen; ++j) {\r\n\t\t\t\t\t// We just make sure the multiline element is a string here..\r\n\t\t\t\t\tctx.fillText('' + label[j], 0, y);\r\n\t\t\t\t\ty += tickFont.lineHeight;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tctx.fillText(label, 0, y);\r\n\t\t\t}\r\n\t\t\tctx.restore();\r\n\t\t}\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_drawTitle: function() {\r\n\t\tvar me = this;\r\n\t\tvar ctx = me.ctx;\r\n\t\tvar options = me.options;\r\n\t\tvar scaleLabel = options.scaleLabel;\r\n\r\n\t\tif (!scaleLabel.display) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar scaleLabelFontColor = valueOrDefault$a(scaleLabel.fontColor, core_defaults.global.defaultFontColor);\r\n\t\tvar scaleLabelFont = helpers$1.options._parseFont(scaleLabel);\r\n\t\tvar scaleLabelPadding = helpers$1.options.toPadding(scaleLabel.padding);\r\n\t\tvar halfLineHeight = scaleLabelFont.lineHeight / 2;\r\n\t\tvar position = options.position;\r\n\t\tvar rotation = 0;\r\n\t\tvar scaleLabelX, scaleLabelY;\r\n\r\n\t\tif (me.isHorizontal()) {\r\n\t\t\tscaleLabelX = me.left + me.width / 2; // midpoint of the width\r\n\t\t\tscaleLabelY = position === 'bottom'\r\n\t\t\t\t? me.bottom - halfLineHeight - scaleLabelPadding.bottom\r\n\t\t\t\t: me.top + halfLineHeight + scaleLabelPadding.top;\r\n\t\t} else {\r\n\t\t\tvar isLeft = position === 'left';\r\n\t\t\tscaleLabelX = isLeft\r\n\t\t\t\t? me.left + halfLineHeight + scaleLabelPadding.top\r\n\t\t\t\t: me.right - halfLineHeight - scaleLabelPadding.top;\r\n\t\t\tscaleLabelY = me.top + me.height / 2;\r\n\t\t\trotation = isLeft ? -0.5 * Math.PI : 0.5 * Math.PI;\r\n\t\t}\r\n\r\n\t\tctx.save();\r\n\t\tctx.translate(scaleLabelX, scaleLabelY);\r\n\t\tctx.rotate(rotation);\r\n\t\tctx.textAlign = 'center';\r\n\t\tctx.textBaseline = 'middle';\r\n\t\tctx.fillStyle = scaleLabelFontColor; // render in correct colour\r\n\t\tctx.font = scaleLabelFont.string;\r\n\t\tctx.fillText(scaleLabel.labelString, 0, 0);\r\n\t\tctx.restore();\r\n\t},\r\n\r\n\tdraw: function(chartArea) {\r\n\t\tvar me = this;\r\n\r\n\t\tif (!me._isVisible()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tme._drawGrid(chartArea);\r\n\t\tme._drawTitle();\r\n\t\tme._drawLabels();\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_layers: function() {\r\n\t\tvar me = this;\r\n\t\tvar opts = me.options;\r\n\t\tvar tz = opts.ticks && opts.ticks.z || 0;\r\n\t\tvar gz = opts.gridLines && opts.gridLines.z || 0;\r\n\r\n\t\tif (!me._isVisible() || tz === gz || me.draw !== me._draw) {\r\n\t\t\t// backward compatibility: draw has been overridden by custom scale\r\n\t\t\treturn [{\r\n\t\t\t\tz: tz,\r\n\t\t\t\tdraw: function() {\r\n\t\t\t\t\tme.draw.apply(me, arguments);\r\n\t\t\t\t}\r\n\t\t\t}];\r\n\t\t}\r\n\r\n\t\treturn [{\r\n\t\t\tz: gz,\r\n\t\t\tdraw: function() {\r\n\t\t\t\tme._drawGrid.apply(me, arguments);\r\n\t\t\t\tme._drawTitle.apply(me, arguments);\r\n\t\t\t}\r\n\t\t}, {\r\n\t\t\tz: tz,\r\n\t\t\tdraw: function() {\r\n\t\t\t\tme._drawLabels.apply(me, arguments);\r\n\t\t\t}\r\n\t\t}];\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_getMatchingVisibleMetas: function(type) {\r\n\t\tvar me = this;\r\n\t\tvar isHorizontal = me.isHorizontal();\r\n\t\treturn me.chart._getSortedVisibleDatasetMetas()\r\n\t\t\t.filter(function(meta) {\r\n\t\t\t\treturn (!type || meta.type === type)\r\n\t\t\t\t\t&& (isHorizontal ? meta.xAxisID === me.id : meta.yAxisID === me.id);\r\n\t\t\t});\r\n\t}\r\n});\r\n\r\nScale.prototype._draw = Scale.prototype.draw;\r\n\r\nvar core_scale = Scale;\n\nvar isNullOrUndef$1 = helpers$1.isNullOrUndef;\r\n\r\nvar defaultConfig = {\r\n\tposition: 'bottom'\r\n};\r\n\r\nvar scale_category = core_scale.extend({\r\n\tdetermineDataLimits: function() {\r\n\t\tvar me = this;\r\n\t\tvar labels = me._getLabels();\r\n\t\tvar ticksOpts = me.options.ticks;\r\n\t\tvar min = ticksOpts.min;\r\n\t\tvar max = ticksOpts.max;\r\n\t\tvar minIndex = 0;\r\n\t\tvar maxIndex = labels.length - 1;\r\n\t\tvar findIndex;\r\n\r\n\t\tif (min !== undefined) {\r\n\t\t\t// user specified min value\r\n\t\t\tfindIndex = labels.indexOf(min);\r\n\t\t\tif (findIndex >= 0) {\r\n\t\t\t\tminIndex = findIndex;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (max !== undefined) {\r\n\t\t\t// user specified max value\r\n\t\t\tfindIndex = labels.indexOf(max);\r\n\t\t\tif (findIndex >= 0) {\r\n\t\t\t\tmaxIndex = findIndex;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tme.minIndex = minIndex;\r\n\t\tme.maxIndex = maxIndex;\r\n\t\tme.min = labels[minIndex];\r\n\t\tme.max = labels[maxIndex];\r\n\t},\r\n\r\n\tbuildTicks: function() {\r\n\t\tvar me = this;\r\n\t\tvar labels = me._getLabels();\r\n\t\tvar minIndex = me.minIndex;\r\n\t\tvar maxIndex = me.maxIndex;\r\n\r\n\t\t// If we are viewing some subset of labels, slice the original array\r\n\t\tme.ticks = (minIndex === 0 && maxIndex === labels.length - 1) ? labels : labels.slice(minIndex, maxIndex + 1);\r\n\t},\r\n\r\n\tgetLabelForIndex: function(index, datasetIndex) {\r\n\t\tvar me = this;\r\n\t\tvar chart = me.chart;\r\n\r\n\t\tif (chart.getDatasetMeta(datasetIndex).controller._getValueScaleId() === me.id) {\r\n\t\t\treturn me.getRightValue(chart.data.datasets[datasetIndex].data[index]);\r\n\t\t}\r\n\r\n\t\treturn me._getLabels()[index];\r\n\t},\r\n\r\n\t_configure: function() {\r\n\t\tvar me = this;\r\n\t\tvar offset = me.options.offset;\r\n\t\tvar ticks = me.ticks;\r\n\r\n\t\tcore_scale.prototype._configure.call(me);\r\n\r\n\t\tif (!me.isHorizontal()) {\r\n\t\t\t// For backward compatibility, vertical category scale reverse is inverted.\r\n\t\t\tme._reversePixels = !me._reversePixels;\r\n\t\t}\r\n\r\n\t\tif (!ticks) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tme._startValue = me.minIndex - (offset ? 0.5 : 0);\r\n\t\tme._valueRange = Math.max(ticks.length - (offset ? 0 : 1), 1);\r\n\t},\r\n\r\n\t// Used to get data value locations.  Value can either be an index or a numerical value\r\n\tgetPixelForValue: function(value, index, datasetIndex) {\r\n\t\tvar me = this;\r\n\t\tvar valueCategory, labels, idx;\r\n\r\n\t\tif (!isNullOrUndef$1(index) && !isNullOrUndef$1(datasetIndex)) {\r\n\t\t\tvalue = me.chart.data.datasets[datasetIndex].data[index];\r\n\t\t}\r\n\r\n\t\t// If value is a data object, then index is the index in the data array,\r\n\t\t// not the index of the scale. We need to change that.\r\n\t\tif (!isNullOrUndef$1(value)) {\r\n\t\t\tvalueCategory = me.isHorizontal() ? value.x : value.y;\r\n\t\t}\r\n\t\tif (valueCategory !== undefined || (value !== undefined && isNaN(index))) {\r\n\t\t\tlabels = me._getLabels();\r\n\t\t\tvalue = helpers$1.valueOrDefault(valueCategory, value);\r\n\t\t\tidx = labels.indexOf(value);\r\n\t\t\tindex = idx !== -1 ? idx : index;\r\n\t\t\tif (isNaN(index)) {\r\n\t\t\t\tindex = value;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn me.getPixelForDecimal((index - me._startValue) / me._valueRange);\r\n\t},\r\n\r\n\tgetPixelForTick: function(index) {\r\n\t\tvar ticks = this.ticks;\r\n\t\treturn index < 0 || index > ticks.length - 1\r\n\t\t\t? null\r\n\t\t\t: this.getPixelForValue(ticks[index], index + this.minIndex);\r\n\t},\r\n\r\n\tgetValueForPixel: function(pixel) {\r\n\t\tvar me = this;\r\n\t\tvar value = Math.round(me._startValue + me.getDecimalForPixel(pixel) * me._valueRange);\r\n\t\treturn Math.min(Math.max(value, 0), me.ticks.length - 1);\r\n\t},\r\n\r\n\tgetBasePixel: function() {\r\n\t\treturn this.bottom;\r\n\t}\r\n});\r\n\r\n// INTERNAL: static default options, registered in src/index.js\r\nvar _defaults = defaultConfig;\nscale_category._defaults = _defaults;\n\nvar noop = helpers$1.noop;\r\nvar isNullOrUndef$2 = helpers$1.isNullOrUndef;\r\n\r\n/**\r\n * Generate a set of linear ticks\r\n * @param generationOptions the options used to generate the ticks\r\n * @param dataRange the range of the data\r\n * @returns {number[]} array of tick values\r\n */\r\nfunction generateTicks(generationOptions, dataRange) {\r\n\tvar ticks = [];\r\n\t// To get a \"nice\" value for the tick spacing, we will use the appropriately named\r\n\t// \"nice number\" algorithm. See https://stackoverflow.com/questions/8506881/nice-label-algorithm-for-charts-with-minimum-ticks\r\n\t// for details.\r\n\r\n\tvar MIN_SPACING = 1e-14;\r\n\tvar stepSize = generationOptions.stepSize;\r\n\tvar unit = stepSize || 1;\r\n\tvar maxNumSpaces = generationOptions.maxTicks - 1;\r\n\tvar min = generationOptions.min;\r\n\tvar max = generationOptions.max;\r\n\tvar precision = generationOptions.precision;\r\n\tvar rmin = dataRange.min;\r\n\tvar rmax = dataRange.max;\r\n\tvar spacing = helpers$1.niceNum((rmax - rmin) / maxNumSpaces / unit) * unit;\r\n\tvar factor, niceMin, niceMax, numSpaces;\r\n\r\n\t// Beyond MIN_SPACING floating point numbers being to lose precision\r\n\t// such that we can't do the math necessary to generate ticks\r\n\tif (spacing < MIN_SPACING && isNullOrUndef$2(min) && isNullOrUndef$2(max)) {\r\n\t\treturn [rmin, rmax];\r\n\t}\r\n\r\n\tnumSpaces = Math.ceil(rmax / spacing) - Math.floor(rmin / spacing);\r\n\tif (numSpaces > maxNumSpaces) {\r\n\t\t// If the calculated num of spaces exceeds maxNumSpaces, recalculate it\r\n\t\tspacing = helpers$1.niceNum(numSpaces * spacing / maxNumSpaces / unit) * unit;\r\n\t}\r\n\r\n\tif (stepSize || isNullOrUndef$2(precision)) {\r\n\t\t// If a precision is not specified, calculate factor based on spacing\r\n\t\tfactor = Math.pow(10, helpers$1._decimalPlaces(spacing));\r\n\t} else {\r\n\t\t// If the user specified a precision, round to that number of decimal places\r\n\t\tfactor = Math.pow(10, precision);\r\n\t\tspacing = Math.ceil(spacing * factor) / factor;\r\n\t}\r\n\r\n\tniceMin = Math.floor(rmin / spacing) * spacing;\r\n\tniceMax = Math.ceil(rmax / spacing) * spacing;\r\n\r\n\t// If min, max and stepSize is set and they make an evenly spaced scale use it.\r\n\tif (stepSize) {\r\n\t\t// If very close to our whole number, use it.\r\n\t\tif (!isNullOrUndef$2(min) && helpers$1.almostWhole(min / spacing, spacing / 1000)) {\r\n\t\t\tniceMin = min;\r\n\t\t}\r\n\t\tif (!isNullOrUndef$2(max) && helpers$1.almostWhole(max / spacing, spacing / 1000)) {\r\n\t\t\tniceMax = max;\r\n\t\t}\r\n\t}\r\n\r\n\tnumSpaces = (niceMax - niceMin) / spacing;\r\n\t// If very close to our rounded value, use it.\r\n\tif (helpers$1.almostEquals(numSpaces, Math.round(numSpaces), spacing / 1000)) {\r\n\t\tnumSpaces = Math.round(numSpaces);\r\n\t} else {\r\n\t\tnumSpaces = Math.ceil(numSpaces);\r\n\t}\r\n\r\n\tniceMin = Math.round(niceMin * factor) / factor;\r\n\tniceMax = Math.round(niceMax * factor) / factor;\r\n\tticks.push(isNullOrUndef$2(min) ? niceMin : min);\r\n\tfor (var j = 1; j < numSpaces; ++j) {\r\n\t\tticks.push(Math.round((niceMin + j * spacing) * factor) / factor);\r\n\t}\r\n\tticks.push(isNullOrUndef$2(max) ? niceMax : max);\r\n\r\n\treturn ticks;\r\n}\r\n\r\nvar scale_linearbase = core_scale.extend({\r\n\tgetRightValue: function(value) {\r\n\t\tif (typeof value === 'string') {\r\n\t\t\treturn +value;\r\n\t\t}\r\n\t\treturn core_scale.prototype.getRightValue.call(this, value);\r\n\t},\r\n\r\n\thandleTickRangeOptions: function() {\r\n\t\tvar me = this;\r\n\t\tvar opts = me.options;\r\n\t\tvar tickOpts = opts.ticks;\r\n\r\n\t\t// If we are forcing it to begin at 0, but 0 will already be rendered on the chart,\r\n\t\t// do nothing since that would make the chart weird. If the user really wants a weird chart\r\n\t\t// axis, they can manually override it\r\n\t\tif (tickOpts.beginAtZero) {\r\n\t\t\tvar minSign = helpers$1.sign(me.min);\r\n\t\t\tvar maxSign = helpers$1.sign(me.max);\r\n\r\n\t\t\tif (minSign < 0 && maxSign < 0) {\r\n\t\t\t\t// move the top up to 0\r\n\t\t\t\tme.max = 0;\r\n\t\t\t} else if (minSign > 0 && maxSign > 0) {\r\n\t\t\t\t// move the bottom down to 0\r\n\t\t\t\tme.min = 0;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tvar setMin = tickOpts.min !== undefined || tickOpts.suggestedMin !== undefined;\r\n\t\tvar setMax = tickOpts.max !== undefined || tickOpts.suggestedMax !== undefined;\r\n\r\n\t\tif (tickOpts.min !== undefined) {\r\n\t\t\tme.min = tickOpts.min;\r\n\t\t} else if (tickOpts.suggestedMin !== undefined) {\r\n\t\t\tif (me.min === null) {\r\n\t\t\t\tme.min = tickOpts.suggestedMin;\r\n\t\t\t} else {\r\n\t\t\t\tme.min = Math.min(me.min, tickOpts.suggestedMin);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (tickOpts.max !== undefined) {\r\n\t\t\tme.max = tickOpts.max;\r\n\t\t} else if (tickOpts.suggestedMax !== undefined) {\r\n\t\t\tif (me.max === null) {\r\n\t\t\t\tme.max = tickOpts.suggestedMax;\r\n\t\t\t} else {\r\n\t\t\t\tme.max = Math.max(me.max, tickOpts.suggestedMax);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (setMin !== setMax) {\r\n\t\t\t// We set the min or the max but not both.\r\n\t\t\t// So ensure that our range is good\r\n\t\t\t// Inverted or 0 length range can happen when\r\n\t\t\t// ticks.min is set, and no datasets are visible\r\n\t\t\tif (me.min >= me.max) {\r\n\t\t\t\tif (setMin) {\r\n\t\t\t\t\tme.max = me.min + 1;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tme.min = me.max - 1;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (me.min === me.max) {\r\n\t\t\tme.max++;\r\n\r\n\t\t\tif (!tickOpts.beginAtZero) {\r\n\t\t\t\tme.min--;\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\r\n\tgetTickLimit: function() {\r\n\t\tvar me = this;\r\n\t\tvar tickOpts = me.options.ticks;\r\n\t\tvar stepSize = tickOpts.stepSize;\r\n\t\tvar maxTicksLimit = tickOpts.maxTicksLimit;\r\n\t\tvar maxTicks;\r\n\r\n\t\tif (stepSize) {\r\n\t\t\tmaxTicks = Math.ceil(me.max / stepSize) - Math.floor(me.min / stepSize) + 1;\r\n\t\t} else {\r\n\t\t\tmaxTicks = me._computeTickLimit();\r\n\t\t\tmaxTicksLimit = maxTicksLimit || 11;\r\n\t\t}\r\n\r\n\t\tif (maxTicksLimit) {\r\n\t\t\tmaxTicks = Math.min(maxTicksLimit, maxTicks);\r\n\t\t}\r\n\r\n\t\treturn maxTicks;\r\n\t},\r\n\r\n\t_computeTickLimit: function() {\r\n\t\treturn Number.POSITIVE_INFINITY;\r\n\t},\r\n\r\n\thandleDirectionalChanges: noop,\r\n\r\n\tbuildTicks: function() {\r\n\t\tvar me = this;\r\n\t\tvar opts = me.options;\r\n\t\tvar tickOpts = opts.ticks;\r\n\r\n\t\t// Figure out what the max number of ticks we can support it is based on the size of\r\n\t\t// the axis area. For now, we say that the minimum tick spacing in pixels must be 40\r\n\t\t// We also limit the maximum number of ticks to 11 which gives a nice 10 squares on\r\n\t\t// the graph. Make sure we always have at least 2 ticks\r\n\t\tvar maxTicks = me.getTickLimit();\r\n\t\tmaxTicks = Math.max(2, maxTicks);\r\n\r\n\t\tvar numericGeneratorOptions = {\r\n\t\t\tmaxTicks: maxTicks,\r\n\t\t\tmin: tickOpts.min,\r\n\t\t\tmax: tickOpts.max,\r\n\t\t\tprecision: tickOpts.precision,\r\n\t\t\tstepSize: helpers$1.valueOrDefault(tickOpts.fixedStepSize, tickOpts.stepSize)\r\n\t\t};\r\n\t\tvar ticks = me.ticks = generateTicks(numericGeneratorOptions, me);\r\n\r\n\t\tme.handleDirectionalChanges();\r\n\r\n\t\t// At this point, we need to update our max and min given the tick values since we have expanded the\r\n\t\t// range of the scale\r\n\t\tme.max = helpers$1.max(ticks);\r\n\t\tme.min = helpers$1.min(ticks);\r\n\r\n\t\tif (tickOpts.reverse) {\r\n\t\t\tticks.reverse();\r\n\r\n\t\t\tme.start = me.max;\r\n\t\t\tme.end = me.min;\r\n\t\t} else {\r\n\t\t\tme.start = me.min;\r\n\t\t\tme.end = me.max;\r\n\t\t}\r\n\t},\r\n\r\n\tconvertTicksToLabels: function() {\r\n\t\tvar me = this;\r\n\t\tme.ticksAsNumbers = me.ticks.slice();\r\n\t\tme.zeroLineIndex = me.ticks.indexOf(0);\r\n\r\n\t\tcore_scale.prototype.convertTicksToLabels.call(me);\r\n\t},\r\n\r\n\t_configure: function() {\r\n\t\tvar me = this;\r\n\t\tvar ticks = me.getTicks();\r\n\t\tvar start = me.min;\r\n\t\tvar end = me.max;\r\n\t\tvar offset;\r\n\r\n\t\tcore_scale.prototype._configure.call(me);\r\n\r\n\t\tif (me.options.offset && ticks.length) {\r\n\t\t\toffset = (end - start) / Math.max(ticks.length - 1, 1) / 2;\r\n\t\t\tstart -= offset;\r\n\t\t\tend += offset;\r\n\t\t}\r\n\t\tme._startValue = start;\r\n\t\tme._endValue = end;\r\n\t\tme._valueRange = end - start;\r\n\t}\r\n});\n\nvar defaultConfig$1 = {\r\n\tposition: 'left',\r\n\tticks: {\r\n\t\tcallback: core_ticks.formatters.linear\r\n\t}\r\n};\r\n\r\nvar DEFAULT_MIN = 0;\r\nvar DEFAULT_MAX = 1;\r\n\r\nfunction getOrCreateStack(stacks, stacked, meta) {\r\n\tvar key = [\r\n\t\tmeta.type,\r\n\t\t// we have a separate stack for stack=undefined datasets when the opts.stacked is undefined\r\n\t\tstacked === undefined && meta.stack === undefined ? meta.index : '',\r\n\t\tmeta.stack\r\n\t].join('.');\r\n\r\n\tif (stacks[key] === undefined) {\r\n\t\tstacks[key] = {\r\n\t\t\tpos: [],\r\n\t\t\tneg: []\r\n\t\t};\r\n\t}\r\n\r\n\treturn stacks[key];\r\n}\r\n\r\nfunction stackData(scale, stacks, meta, data) {\r\n\tvar opts = scale.options;\r\n\tvar stacked = opts.stacked;\r\n\tvar stack = getOrCreateStack(stacks, stacked, meta);\r\n\tvar pos = stack.pos;\r\n\tvar neg = stack.neg;\r\n\tvar ilen = data.length;\r\n\tvar i, value;\r\n\r\n\tfor (i = 0; i < ilen; ++i) {\r\n\t\tvalue = scale._parseValue(data[i]);\r\n\t\tif (isNaN(value.min) || isNaN(value.max) || meta.data[i].hidden) {\r\n\t\t\tcontinue;\r\n\t\t}\r\n\r\n\t\tpos[i] = pos[i] || 0;\r\n\t\tneg[i] = neg[i] || 0;\r\n\r\n\t\tif (opts.relativePoints) {\r\n\t\t\tpos[i] = 100;\r\n\t\t} else if (value.min < 0 || value.max < 0) {\r\n\t\t\tneg[i] += value.min;\r\n\t\t} else {\r\n\t\t\tpos[i] += value.max;\r\n\t\t}\r\n\t}\r\n}\r\n\r\nfunction updateMinMax(scale, meta, data) {\r\n\tvar ilen = data.length;\r\n\tvar i, value;\r\n\r\n\tfor (i = 0; i < ilen; ++i) {\r\n\t\tvalue = scale._parseValue(data[i]);\r\n\t\tif (isNaN(value.min) || isNaN(value.max) || meta.data[i].hidden) {\r\n\t\t\tcontinue;\r\n\t\t}\r\n\r\n\t\tscale.min = Math.min(scale.min, value.min);\r\n\t\tscale.max = Math.max(scale.max, value.max);\r\n\t}\r\n}\r\n\r\nvar scale_linear = scale_linearbase.extend({\r\n\tdetermineDataLimits: function() {\r\n\t\tvar me = this;\r\n\t\tvar opts = me.options;\r\n\t\tvar chart = me.chart;\r\n\t\tvar datasets = chart.data.datasets;\r\n\t\tvar metasets = me._getMatchingVisibleMetas();\r\n\t\tvar hasStacks = opts.stacked;\r\n\t\tvar stacks = {};\r\n\t\tvar ilen = metasets.length;\r\n\t\tvar i, meta, data, values;\r\n\r\n\t\tme.min = Number.POSITIVE_INFINITY;\r\n\t\tme.max = Number.NEGATIVE_INFINITY;\r\n\r\n\t\tif (hasStacks === undefined) {\r\n\t\t\tfor (i = 0; !hasStacks && i < ilen; ++i) {\r\n\t\t\t\tmeta = metasets[i];\r\n\t\t\t\thasStacks = meta.stack !== undefined;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tfor (i = 0; i < ilen; ++i) {\r\n\t\t\tmeta = metasets[i];\r\n\t\t\tdata = datasets[meta.index].data;\r\n\t\t\tif (hasStacks) {\r\n\t\t\t\tstackData(me, stacks, meta, data);\r\n\t\t\t} else {\r\n\t\t\t\tupdateMinMax(me, meta, data);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\thelpers$1.each(stacks, function(stackValues) {\r\n\t\t\tvalues = stackValues.pos.concat(stackValues.neg);\r\n\t\t\tme.min = Math.min(me.min, helpers$1.min(values));\r\n\t\t\tme.max = Math.max(me.max, helpers$1.max(values));\r\n\t\t});\r\n\r\n\t\tme.min = helpers$1.isFinite(me.min) && !isNaN(me.min) ? me.min : DEFAULT_MIN;\r\n\t\tme.max = helpers$1.isFinite(me.max) && !isNaN(me.max) ? me.max : DEFAULT_MAX;\r\n\r\n\t\t// Common base implementation to handle ticks.min, ticks.max, ticks.beginAtZero\r\n\t\tme.handleTickRangeOptions();\r\n\t},\r\n\r\n\t// Returns the maximum number of ticks based on the scale dimension\r\n\t_computeTickLimit: function() {\r\n\t\tvar me = this;\r\n\t\tvar tickFont;\r\n\r\n\t\tif (me.isHorizontal()) {\r\n\t\t\treturn Math.ceil(me.width / 40);\r\n\t\t}\r\n\t\ttickFont = helpers$1.options._parseFont(me.options.ticks);\r\n\t\treturn Math.ceil(me.height / tickFont.lineHeight);\r\n\t},\r\n\r\n\t// Called after the ticks are built. We need\r\n\thandleDirectionalChanges: function() {\r\n\t\tif (!this.isHorizontal()) {\r\n\t\t\t// We are in a vertical orientation. The top value is the highest. So reverse the array\r\n\t\t\tthis.ticks.reverse();\r\n\t\t}\r\n\t},\r\n\r\n\tgetLabelForIndex: function(index, datasetIndex) {\r\n\t\treturn this._getScaleLabel(this.chart.data.datasets[datasetIndex].data[index]);\r\n\t},\r\n\r\n\t// Utils\r\n\tgetPixelForValue: function(value) {\r\n\t\tvar me = this;\r\n\t\treturn me.getPixelForDecimal((+me.getRightValue(value) - me._startValue) / me._valueRange);\r\n\t},\r\n\r\n\tgetValueForPixel: function(pixel) {\r\n\t\treturn this._startValue + this.getDecimalForPixel(pixel) * this._valueRange;\r\n\t},\r\n\r\n\tgetPixelForTick: function(index) {\r\n\t\tvar ticks = this.ticksAsNumbers;\r\n\t\tif (index < 0 || index > ticks.length - 1) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn this.getPixelForValue(ticks[index]);\r\n\t}\r\n});\r\n\r\n// INTERNAL: static default options, registered in src/index.js\r\nvar _defaults$1 = defaultConfig$1;\nscale_linear._defaults = _defaults$1;\n\nvar valueOrDefault$b = helpers$1.valueOrDefault;\r\nvar log10 = helpers$1.math.log10;\r\n\r\n/**\r\n * Generate a set of logarithmic ticks\r\n * @param generationOptions the options used to generate the ticks\r\n * @param dataRange the range of the data\r\n * @returns {number[]} array of tick values\r\n */\r\nfunction generateTicks$1(generationOptions, dataRange) {\r\n\tvar ticks = [];\r\n\r\n\tvar tickVal = valueOrDefault$b(generationOptions.min, Math.pow(10, Math.floor(log10(dataRange.min))));\r\n\r\n\tvar endExp = Math.floor(log10(dataRange.max));\r\n\tvar endSignificand = Math.ceil(dataRange.max / Math.pow(10, endExp));\r\n\tvar exp, significand;\r\n\r\n\tif (tickVal === 0) {\r\n\t\texp = Math.floor(log10(dataRange.minNotZero));\r\n\t\tsignificand = Math.floor(dataRange.minNotZero / Math.pow(10, exp));\r\n\r\n\t\tticks.push(tickVal);\r\n\t\ttickVal = significand * Math.pow(10, exp);\r\n\t} else {\r\n\t\texp = Math.floor(log10(tickVal));\r\n\t\tsignificand = Math.floor(tickVal / Math.pow(10, exp));\r\n\t}\r\n\tvar precision = exp < 0 ? Math.pow(10, Math.abs(exp)) : 1;\r\n\r\n\tdo {\r\n\t\tticks.push(tickVal);\r\n\r\n\t\t++significand;\r\n\t\tif (significand === 10) {\r\n\t\t\tsignificand = 1;\r\n\t\t\t++exp;\r\n\t\t\tprecision = exp >= 0 ? 1 : precision;\r\n\t\t}\r\n\r\n\t\ttickVal = Math.round(significand * Math.pow(10, exp) * precision) / precision;\r\n\t} while (exp < endExp || (exp === endExp && significand < endSignificand));\r\n\r\n\tvar lastTick = valueOrDefault$b(generationOptions.max, tickVal);\r\n\tticks.push(lastTick);\r\n\r\n\treturn ticks;\r\n}\r\n\r\nvar defaultConfig$2 = {\r\n\tposition: 'left',\r\n\r\n\t// label settings\r\n\tticks: {\r\n\t\tcallback: core_ticks.formatters.logarithmic\r\n\t}\r\n};\r\n\r\n// TODO(v3): change this to positiveOrDefault\r\nfunction nonNegativeOrDefault(value, defaultValue) {\r\n\treturn helpers$1.isFinite(value) && value >= 0 ? value : defaultValue;\r\n}\r\n\r\nvar scale_logarithmic = core_scale.extend({\r\n\tdetermineDataLimits: function() {\r\n\t\tvar me = this;\r\n\t\tvar opts = me.options;\r\n\t\tvar chart = me.chart;\r\n\t\tvar datasets = chart.data.datasets;\r\n\t\tvar isHorizontal = me.isHorizontal();\r\n\t\tfunction IDMatches(meta) {\r\n\t\t\treturn isHorizontal ? meta.xAxisID === me.id : meta.yAxisID === me.id;\r\n\t\t}\r\n\t\tvar datasetIndex, meta, value, data, i, ilen;\r\n\r\n\t\t// Calculate Range\r\n\t\tme.min = Number.POSITIVE_INFINITY;\r\n\t\tme.max = Number.NEGATIVE_INFINITY;\r\n\t\tme.minNotZero = Number.POSITIVE_INFINITY;\r\n\r\n\t\tvar hasStacks = opts.stacked;\r\n\t\tif (hasStacks === undefined) {\r\n\t\t\tfor (datasetIndex = 0; datasetIndex < datasets.length; datasetIndex++) {\r\n\t\t\t\tmeta = chart.getDatasetMeta(datasetIndex);\r\n\t\t\t\tif (chart.isDatasetVisible(datasetIndex) && IDMatches(meta) &&\r\n\t\t\t\t\tmeta.stack !== undefined) {\r\n\t\t\t\t\thasStacks = true;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (opts.stacked || hasStacks) {\r\n\t\t\tvar valuesPerStack = {};\r\n\r\n\t\t\tfor (datasetIndex = 0; datasetIndex < datasets.length; datasetIndex++) {\r\n\t\t\t\tmeta = chart.getDatasetMeta(datasetIndex);\r\n\t\t\t\tvar key = [\r\n\t\t\t\t\tmeta.type,\r\n\t\t\t\t\t// we have a separate stack for stack=undefined datasets when the opts.stacked is undefined\r\n\t\t\t\t\t((opts.stacked === undefined && meta.stack === undefined) ? datasetIndex : ''),\r\n\t\t\t\t\tmeta.stack\r\n\t\t\t\t].join('.');\r\n\r\n\t\t\t\tif (chart.isDatasetVisible(datasetIndex) && IDMatches(meta)) {\r\n\t\t\t\t\tif (valuesPerStack[key] === undefined) {\r\n\t\t\t\t\t\tvaluesPerStack[key] = [];\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tdata = datasets[datasetIndex].data;\r\n\t\t\t\t\tfor (i = 0, ilen = data.length; i < ilen; i++) {\r\n\t\t\t\t\t\tvar values = valuesPerStack[key];\r\n\t\t\t\t\t\tvalue = me._parseValue(data[i]);\r\n\t\t\t\t\t\t// invalid, hidden and negative values are ignored\r\n\t\t\t\t\t\tif (isNaN(value.min) || isNaN(value.max) || meta.data[i].hidden || value.min < 0 || value.max < 0) {\r\n\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tvalues[i] = values[i] || 0;\r\n\t\t\t\t\t\tvalues[i] += value.max;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\thelpers$1.each(valuesPerStack, function(valuesForType) {\r\n\t\t\t\tif (valuesForType.length > 0) {\r\n\t\t\t\t\tvar minVal = helpers$1.min(valuesForType);\r\n\t\t\t\t\tvar maxVal = helpers$1.max(valuesForType);\r\n\t\t\t\t\tme.min = Math.min(me.min, minVal);\r\n\t\t\t\t\tme.max = Math.max(me.max, maxVal);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t} else {\r\n\t\t\tfor (datasetIndex = 0; datasetIndex < datasets.length; datasetIndex++) {\r\n\t\t\t\tmeta = chart.getDatasetMeta(datasetIndex);\r\n\t\t\t\tif (chart.isDatasetVisible(datasetIndex) && IDMatches(meta)) {\r\n\t\t\t\t\tdata = datasets[datasetIndex].data;\r\n\t\t\t\t\tfor (i = 0, ilen = data.length; i < ilen; i++) {\r\n\t\t\t\t\t\tvalue = me._parseValue(data[i]);\r\n\t\t\t\t\t\t// invalid, hidden and negative values are ignored\r\n\t\t\t\t\t\tif (isNaN(value.min) || isNaN(value.max) || meta.data[i].hidden || value.min < 0 || value.max < 0) {\r\n\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tme.min = Math.min(value.min, me.min);\r\n\t\t\t\t\t\tme.max = Math.max(value.max, me.max);\r\n\r\n\t\t\t\t\t\tif (value.min !== 0) {\r\n\t\t\t\t\t\t\tme.minNotZero = Math.min(value.min, me.minNotZero);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tme.min = helpers$1.isFinite(me.min) ? me.min : null;\r\n\t\tme.max = helpers$1.isFinite(me.max) ? me.max : null;\r\n\t\tme.minNotZero = helpers$1.isFinite(me.minNotZero) ? me.minNotZero : null;\r\n\r\n\t\t// Common base implementation to handle ticks.min, ticks.max\r\n\t\tthis.handleTickRangeOptions();\r\n\t},\r\n\r\n\thandleTickRangeOptions: function() {\r\n\t\tvar me = this;\r\n\t\tvar tickOpts = me.options.ticks;\r\n\t\tvar DEFAULT_MIN = 1;\r\n\t\tvar DEFAULT_MAX = 10;\r\n\r\n\t\tme.min = nonNegativeOrDefault(tickOpts.min, me.min);\r\n\t\tme.max = nonNegativeOrDefault(tickOpts.max, me.max);\r\n\r\n\t\tif (me.min === me.max) {\r\n\t\t\tif (me.min !== 0 && me.min !== null) {\r\n\t\t\t\tme.min = Math.pow(10, Math.floor(log10(me.min)) - 1);\r\n\t\t\t\tme.max = Math.pow(10, Math.floor(log10(me.max)) + 1);\r\n\t\t\t} else {\r\n\t\t\t\tme.min = DEFAULT_MIN;\r\n\t\t\t\tme.max = DEFAULT_MAX;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (me.min === null) {\r\n\t\t\tme.min = Math.pow(10, Math.floor(log10(me.max)) - 1);\r\n\t\t}\r\n\t\tif (me.max === null) {\r\n\t\t\tme.max = me.min !== 0\r\n\t\t\t\t? Math.pow(10, Math.floor(log10(me.min)) + 1)\r\n\t\t\t\t: DEFAULT_MAX;\r\n\t\t}\r\n\t\tif (me.minNotZero === null) {\r\n\t\t\tif (me.min > 0) {\r\n\t\t\t\tme.minNotZero = me.min;\r\n\t\t\t} else if (me.max < 1) {\r\n\t\t\t\tme.minNotZero = Math.pow(10, Math.floor(log10(me.max)));\r\n\t\t\t} else {\r\n\t\t\t\tme.minNotZero = DEFAULT_MIN;\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\r\n\tbuildTicks: function() {\r\n\t\tvar me = this;\r\n\t\tvar tickOpts = me.options.ticks;\r\n\t\tvar reverse = !me.isHorizontal();\r\n\r\n\t\tvar generationOptions = {\r\n\t\t\tmin: nonNegativeOrDefault(tickOpts.min),\r\n\t\t\tmax: nonNegativeOrDefault(tickOpts.max)\r\n\t\t};\r\n\t\tvar ticks = me.ticks = generateTicks$1(generationOptions, me);\r\n\r\n\t\t// At this point, we need to update our max and min given the tick values since we have expanded the\r\n\t\t// range of the scale\r\n\t\tme.max = helpers$1.max(ticks);\r\n\t\tme.min = helpers$1.min(ticks);\r\n\r\n\t\tif (tickOpts.reverse) {\r\n\t\t\treverse = !reverse;\r\n\t\t\tme.start = me.max;\r\n\t\t\tme.end = me.min;\r\n\t\t} else {\r\n\t\t\tme.start = me.min;\r\n\t\t\tme.end = me.max;\r\n\t\t}\r\n\t\tif (reverse) {\r\n\t\t\tticks.reverse();\r\n\t\t}\r\n\t},\r\n\r\n\tconvertTicksToLabels: function() {\r\n\t\tthis.tickValues = this.ticks.slice();\r\n\r\n\t\tcore_scale.prototype.convertTicksToLabels.call(this);\r\n\t},\r\n\r\n\t// Get the correct tooltip label\r\n\tgetLabelForIndex: function(index, datasetIndex) {\r\n\t\treturn this._getScaleLabel(this.chart.data.datasets[datasetIndex].data[index]);\r\n\t},\r\n\r\n\tgetPixelForTick: function(index) {\r\n\t\tvar ticks = this.tickValues;\r\n\t\tif (index < 0 || index > ticks.length - 1) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn this.getPixelForValue(ticks[index]);\r\n\t},\r\n\r\n\t/**\r\n\t * Returns the value of the first tick.\r\n\t * @param {number} value - The minimum not zero value.\r\n\t * @return {number} The first tick value.\r\n\t * @private\r\n\t */\r\n\t_getFirstTickValue: function(value) {\r\n\t\tvar exp = Math.floor(log10(value));\r\n\t\tvar significand = Math.floor(value / Math.pow(10, exp));\r\n\r\n\t\treturn significand * Math.pow(10, exp);\r\n\t},\r\n\r\n\t_configure: function() {\r\n\t\tvar me = this;\r\n\t\tvar start = me.min;\r\n\t\tvar offset = 0;\r\n\r\n\t\tcore_scale.prototype._configure.call(me);\r\n\r\n\t\tif (start === 0) {\r\n\t\t\tstart = me._getFirstTickValue(me.minNotZero);\r\n\t\t\toffset = valueOrDefault$b(me.options.ticks.fontSize, core_defaults.global.defaultFontSize) / me._length;\r\n\t\t}\r\n\r\n\t\tme._startValue = log10(start);\r\n\t\tme._valueOffset = offset;\r\n\t\tme._valueRange = (log10(me.max) - log10(start)) / (1 - offset);\r\n\t},\r\n\r\n\tgetPixelForValue: function(value) {\r\n\t\tvar me = this;\r\n\t\tvar decimal = 0;\r\n\r\n\t\tvalue = +me.getRightValue(value);\r\n\r\n\t\tif (value > me.min && value > 0) {\r\n\t\t\tdecimal = (log10(value) - me._startValue) / me._valueRange + me._valueOffset;\r\n\t\t}\r\n\t\treturn me.getPixelForDecimal(decimal);\r\n\t},\r\n\r\n\tgetValueForPixel: function(pixel) {\r\n\t\tvar me = this;\r\n\t\tvar decimal = me.getDecimalForPixel(pixel);\r\n\t\treturn decimal === 0 && me.min === 0\r\n\t\t\t? 0\r\n\t\t\t: Math.pow(10, me._startValue + (decimal - me._valueOffset) * me._valueRange);\r\n\t}\r\n});\r\n\r\n// INTERNAL: static default options, registered in src/index.js\r\nvar _defaults$2 = defaultConfig$2;\nscale_logarithmic._defaults = _defaults$2;\n\nvar valueOrDefault$c = helpers$1.valueOrDefault;\r\nvar valueAtIndexOrDefault$1 = helpers$1.valueAtIndexOrDefault;\r\nvar resolve$4 = helpers$1.options.resolve;\r\n\r\nvar defaultConfig$3 = {\r\n\tdisplay: true,\r\n\r\n\t// Boolean - Whether to animate scaling the chart from the centre\r\n\tanimate: true,\r\n\tposition: 'chartArea',\r\n\r\n\tangleLines: {\r\n\t\tdisplay: true,\r\n\t\tcolor: 'rgba(0,0,0,0.1)',\r\n\t\tlineWidth: 1,\r\n\t\tborderDash: [],\r\n\t\tborderDashOffset: 0.0\r\n\t},\r\n\r\n\tgridLines: {\r\n\t\tcircular: false\r\n\t},\r\n\r\n\t// label settings\r\n\tticks: {\r\n\t\t// Boolean - Show a backdrop to the scale label\r\n\t\tshowLabelBackdrop: true,\r\n\r\n\t\t// String - The colour of the label backdrop\r\n\t\tbackdropColor: 'rgba(255,255,255,0.75)',\r\n\r\n\t\t// Number - The backdrop padding above & below the label in pixels\r\n\t\tbackdropPaddingY: 2,\r\n\r\n\t\t// Number - The backdrop padding to the side of the label in pixels\r\n\t\tbackdropPaddingX: 2,\r\n\r\n\t\tcallback: core_ticks.formatters.linear\r\n\t},\r\n\r\n\tpointLabels: {\r\n\t\t// Boolean - if true, show point labels\r\n\t\tdisplay: true,\r\n\r\n\t\t// Number - Point label font size in pixels\r\n\t\tfontSize: 10,\r\n\r\n\t\t// Function - Used to convert point labels\r\n\t\tcallback: function(label) {\r\n\t\t\treturn label;\r\n\t\t}\r\n\t}\r\n};\r\n\r\nfunction getTickBackdropHeight(opts) {\r\n\tvar tickOpts = opts.ticks;\r\n\r\n\tif (tickOpts.display && opts.display) {\r\n\t\treturn valueOrDefault$c(tickOpts.fontSize, core_defaults.global.defaultFontSize) + tickOpts.backdropPaddingY * 2;\r\n\t}\r\n\treturn 0;\r\n}\r\n\r\nfunction measureLabelSize(ctx, lineHeight, label) {\r\n\tif (helpers$1.isArray(label)) {\r\n\t\treturn {\r\n\t\t\tw: helpers$1.longestText(ctx, ctx.font, label),\r\n\t\t\th: label.length * lineHeight\r\n\t\t};\r\n\t}\r\n\r\n\treturn {\r\n\t\tw: ctx.measureText(label).width,\r\n\t\th: lineHeight\r\n\t};\r\n}\r\n\r\nfunction determineLimits(angle, pos, size, min, max) {\r\n\tif (angle === min || angle === max) {\r\n\t\treturn {\r\n\t\t\tstart: pos - (size / 2),\r\n\t\t\tend: pos + (size / 2)\r\n\t\t};\r\n\t} else if (angle < min || angle > max) {\r\n\t\treturn {\r\n\t\t\tstart: pos - size,\r\n\t\t\tend: pos\r\n\t\t};\r\n\t}\r\n\r\n\treturn {\r\n\t\tstart: pos,\r\n\t\tend: pos + size\r\n\t};\r\n}\r\n\r\n/**\r\n * Helper function to fit a radial linear scale with point labels\r\n */\r\nfunction fitWithPointLabels(scale) {\r\n\r\n\t// Right, this is really confusing and there is a lot of maths going on here\r\n\t// The gist of the problem is here: https://gist.github.com/nnnick/696cc9c55f4b0beb8fe9\r\n\t//\r\n\t// Reaction: https://dl.dropboxusercontent.com/u/34601363/toomuchscience.gif\r\n\t//\r\n\t// Solution:\r\n\t//\r\n\t// We assume the radius of the polygon is half the size of the canvas at first\r\n\t// at each index we check if the text overlaps.\r\n\t//\r\n\t// Where it does, we store that angle and that index.\r\n\t//\r\n\t// After finding the largest index and angle we calculate how much we need to remove\r\n\t// from the shape radius to move the point inwards by that x.\r\n\t//\r\n\t// We average the left and right distances to get the maximum shape radius that can fit in the box\r\n\t// along with labels.\r\n\t//\r\n\t// Once we have that, we can find the centre point for the chart, by taking the x text protrusion\r\n\t// on each side, removing that from the size, halving it and adding the left x protrusion width.\r\n\t//\r\n\t// This will mean we have a shape fitted to the canvas, as large as it can be with the labels\r\n\t// and position it in the most space efficient manner\r\n\t//\r\n\t// https://dl.dropboxusercontent.com/u/34601363/yeahscience.gif\r\n\r\n\tvar plFont = helpers$1.options._parseFont(scale.options.pointLabels);\r\n\r\n\t// Get maximum radius of the polygon. Either half the height (minus the text width) or half the width.\r\n\t// Use this to calculate the offset + change. - Make sure L/R protrusion is at least 0 to stop issues with centre points\r\n\tvar furthestLimits = {\r\n\t\tl: 0,\r\n\t\tr: scale.width,\r\n\t\tt: 0,\r\n\t\tb: scale.height - scale.paddingTop\r\n\t};\r\n\tvar furthestAngles = {};\r\n\tvar i, textSize, pointPosition;\r\n\r\n\tscale.ctx.font = plFont.string;\r\n\tscale._pointLabelSizes = [];\r\n\r\n\tvar valueCount = scale.chart.data.labels.length;\r\n\tfor (i = 0; i < valueCount; i++) {\r\n\t\tpointPosition = scale.getPointPosition(i, scale.drawingArea + 5);\r\n\t\ttextSize = measureLabelSize(scale.ctx, plFont.lineHeight, scale.pointLabels[i]);\r\n\t\tscale._pointLabelSizes[i] = textSize;\r\n\r\n\t\t// Add quarter circle to make degree 0 mean top of circle\r\n\t\tvar angleRadians = scale.getIndexAngle(i);\r\n\t\tvar angle = helpers$1.toDegrees(angleRadians) % 360;\r\n\t\tvar hLimits = determineLimits(angle, pointPosition.x, textSize.w, 0, 180);\r\n\t\tvar vLimits = determineLimits(angle, pointPosition.y, textSize.h, 90, 270);\r\n\r\n\t\tif (hLimits.start < furthestLimits.l) {\r\n\t\t\tfurthestLimits.l = hLimits.start;\r\n\t\t\tfurthestAngles.l = angleRadians;\r\n\t\t}\r\n\r\n\t\tif (hLimits.end > furthestLimits.r) {\r\n\t\t\tfurthestLimits.r = hLimits.end;\r\n\t\t\tfurthestAngles.r = angleRadians;\r\n\t\t}\r\n\r\n\t\tif (vLimits.start < furthestLimits.t) {\r\n\t\t\tfurthestLimits.t = vLimits.start;\r\n\t\t\tfurthestAngles.t = angleRadians;\r\n\t\t}\r\n\r\n\t\tif (vLimits.end > furthestLimits.b) {\r\n\t\t\tfurthestLimits.b = vLimits.end;\r\n\t\t\tfurthestAngles.b = angleRadians;\r\n\t\t}\r\n\t}\r\n\r\n\tscale.setReductions(scale.drawingArea, furthestLimits, furthestAngles);\r\n}\r\n\r\nfunction getTextAlignForAngle(angle) {\r\n\tif (angle === 0 || angle === 180) {\r\n\t\treturn 'center';\r\n\t} else if (angle < 180) {\r\n\t\treturn 'left';\r\n\t}\r\n\r\n\treturn 'right';\r\n}\r\n\r\nfunction fillText(ctx, text, position, lineHeight) {\r\n\tvar y = position.y + lineHeight / 2;\r\n\tvar i, ilen;\r\n\r\n\tif (helpers$1.isArray(text)) {\r\n\t\tfor (i = 0, ilen = text.length; i < ilen; ++i) {\r\n\t\t\tctx.fillText(text[i], position.x, y);\r\n\t\t\ty += lineHeight;\r\n\t\t}\r\n\t} else {\r\n\t\tctx.fillText(text, position.x, y);\r\n\t}\r\n}\r\n\r\nfunction adjustPointPositionForLabelHeight(angle, textSize, position) {\r\n\tif (angle === 90 || angle === 270) {\r\n\t\tposition.y -= (textSize.h / 2);\r\n\t} else if (angle > 270 || angle < 90) {\r\n\t\tposition.y -= textSize.h;\r\n\t}\r\n}\r\n\r\nfunction drawPointLabels(scale) {\r\n\tvar ctx = scale.ctx;\r\n\tvar opts = scale.options;\r\n\tvar pointLabelOpts = opts.pointLabels;\r\n\tvar tickBackdropHeight = getTickBackdropHeight(opts);\r\n\tvar outerDistance = scale.getDistanceFromCenterForValue(opts.ticks.reverse ? scale.min : scale.max);\r\n\tvar plFont = helpers$1.options._parseFont(pointLabelOpts);\r\n\r\n\tctx.save();\r\n\r\n\tctx.font = plFont.string;\r\n\tctx.textBaseline = 'middle';\r\n\r\n\tfor (var i = scale.chart.data.labels.length - 1; i >= 0; i--) {\r\n\t\t// Extra pixels out for some label spacing\r\n\t\tvar extra = (i === 0 ? tickBackdropHeight / 2 : 0);\r\n\t\tvar pointLabelPosition = scale.getPointPosition(i, outerDistance + extra + 5);\r\n\r\n\t\t// Keep this in loop since we may support array properties here\r\n\t\tvar pointLabelFontColor = valueAtIndexOrDefault$1(pointLabelOpts.fontColor, i, core_defaults.global.defaultFontColor);\r\n\t\tctx.fillStyle = pointLabelFontColor;\r\n\r\n\t\tvar angleRadians = scale.getIndexAngle(i);\r\n\t\tvar angle = helpers$1.toDegrees(angleRadians);\r\n\t\tctx.textAlign = getTextAlignForAngle(angle);\r\n\t\tadjustPointPositionForLabelHeight(angle, scale._pointLabelSizes[i], pointLabelPosition);\r\n\t\tfillText(ctx, scale.pointLabels[i], pointLabelPosition, plFont.lineHeight);\r\n\t}\r\n\tctx.restore();\r\n}\r\n\r\nfunction drawRadiusLine(scale, gridLineOpts, radius, index) {\r\n\tvar ctx = scale.ctx;\r\n\tvar circular = gridLineOpts.circular;\r\n\tvar valueCount = scale.chart.data.labels.length;\r\n\tvar lineColor = valueAtIndexOrDefault$1(gridLineOpts.color, index - 1);\r\n\tvar lineWidth = valueAtIndexOrDefault$1(gridLineOpts.lineWidth, index - 1);\r\n\tvar pointPosition;\r\n\r\n\tif ((!circular && !valueCount) || !lineColor || !lineWidth) {\r\n\t\treturn;\r\n\t}\r\n\r\n\tctx.save();\r\n\tctx.strokeStyle = lineColor;\r\n\tctx.lineWidth = lineWidth;\r\n\tif (ctx.setLineDash) {\r\n\t\tctx.setLineDash(gridLineOpts.borderDash || []);\r\n\t\tctx.lineDashOffset = gridLineOpts.borderDashOffset || 0.0;\r\n\t}\r\n\r\n\tctx.beginPath();\r\n\tif (circular) {\r\n\t\t// Draw circular arcs between the points\r\n\t\tctx.arc(scale.xCenter, scale.yCenter, radius, 0, Math.PI * 2);\r\n\t} else {\r\n\t\t// Draw straight lines connecting each index\r\n\t\tpointPosition = scale.getPointPosition(0, radius);\r\n\t\tctx.moveTo(pointPosition.x, pointPosition.y);\r\n\r\n\t\tfor (var i = 1; i < valueCount; i++) {\r\n\t\t\tpointPosition = scale.getPointPosition(i, radius);\r\n\t\t\tctx.lineTo(pointPosition.x, pointPosition.y);\r\n\t\t}\r\n\t}\r\n\tctx.closePath();\r\n\tctx.stroke();\r\n\tctx.restore();\r\n}\r\n\r\nfunction numberOrZero(param) {\r\n\treturn helpers$1.isNumber(param) ? param : 0;\r\n}\r\n\r\nvar scale_radialLinear = scale_linearbase.extend({\r\n\tsetDimensions: function() {\r\n\t\tvar me = this;\r\n\r\n\t\t// Set the unconstrained dimension before label rotation\r\n\t\tme.width = me.maxWidth;\r\n\t\tme.height = me.maxHeight;\r\n\t\tme.paddingTop = getTickBackdropHeight(me.options) / 2;\r\n\t\tme.xCenter = Math.floor(me.width / 2);\r\n\t\tme.yCenter = Math.floor((me.height - me.paddingTop) / 2);\r\n\t\tme.drawingArea = Math.min(me.height - me.paddingTop, me.width) / 2;\r\n\t},\r\n\r\n\tdetermineDataLimits: function() {\r\n\t\tvar me = this;\r\n\t\tvar chart = me.chart;\r\n\t\tvar min = Number.POSITIVE_INFINITY;\r\n\t\tvar max = Number.NEGATIVE_INFINITY;\r\n\r\n\t\thelpers$1.each(chart.data.datasets, function(dataset, datasetIndex) {\r\n\t\t\tif (chart.isDatasetVisible(datasetIndex)) {\r\n\t\t\t\tvar meta = chart.getDatasetMeta(datasetIndex);\r\n\r\n\t\t\t\thelpers$1.each(dataset.data, function(rawValue, index) {\r\n\t\t\t\t\tvar value = +me.getRightValue(rawValue);\r\n\t\t\t\t\tif (isNaN(value) || meta.data[index].hidden) {\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tmin = Math.min(value, min);\r\n\t\t\t\t\tmax = Math.max(value, max);\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tme.min = (min === Number.POSITIVE_INFINITY ? 0 : min);\r\n\t\tme.max = (max === Number.NEGATIVE_INFINITY ? 0 : max);\r\n\r\n\t\t// Common base implementation to handle ticks.min, ticks.max, ticks.beginAtZero\r\n\t\tme.handleTickRangeOptions();\r\n\t},\r\n\r\n\t// Returns the maximum number of ticks based on the scale dimension\r\n\t_computeTickLimit: function() {\r\n\t\treturn Math.ceil(this.drawingArea / getTickBackdropHeight(this.options));\r\n\t},\r\n\r\n\tconvertTicksToLabels: function() {\r\n\t\tvar me = this;\r\n\r\n\t\tscale_linearbase.prototype.convertTicksToLabels.call(me);\r\n\r\n\t\t// Point labels\r\n\t\tme.pointLabels = me.chart.data.labels.map(function() {\r\n\t\t\tvar label = helpers$1.callback(me.options.pointLabels.callback, arguments, me);\r\n\t\t\treturn label || label === 0 ? label : '';\r\n\t\t});\r\n\t},\r\n\r\n\tgetLabelForIndex: function(index, datasetIndex) {\r\n\t\treturn +this.getRightValue(this.chart.data.datasets[datasetIndex].data[index]);\r\n\t},\r\n\r\n\tfit: function() {\r\n\t\tvar me = this;\r\n\t\tvar opts = me.options;\r\n\r\n\t\tif (opts.display && opts.pointLabels.display) {\r\n\t\t\tfitWithPointLabels(me);\r\n\t\t} else {\r\n\t\t\tme.setCenterPoint(0, 0, 0, 0);\r\n\t\t}\r\n\t},\r\n\r\n\t/**\r\n\t * Set radius reductions and determine new radius and center point\r\n\t * @private\r\n\t */\r\n\tsetReductions: function(largestPossibleRadius, furthestLimits, furthestAngles) {\r\n\t\tvar me = this;\r\n\t\tvar radiusReductionLeft = furthestLimits.l / Math.sin(furthestAngles.l);\r\n\t\tvar radiusReductionRight = Math.max(furthestLimits.r - me.width, 0) / Math.sin(furthestAngles.r);\r\n\t\tvar radiusReductionTop = -furthestLimits.t / Math.cos(furthestAngles.t);\r\n\t\tvar radiusReductionBottom = -Math.max(furthestLimits.b - (me.height - me.paddingTop), 0) / Math.cos(furthestAngles.b);\r\n\r\n\t\tradiusReductionLeft = numberOrZero(radiusReductionLeft);\r\n\t\tradiusReductionRight = numberOrZero(radiusReductionRight);\r\n\t\tradiusReductionTop = numberOrZero(radiusReductionTop);\r\n\t\tradiusReductionBottom = numberOrZero(radiusReductionBottom);\r\n\r\n\t\tme.drawingArea = Math.min(\r\n\t\t\tMath.floor(largestPossibleRadius - (radiusReductionLeft + radiusReductionRight) / 2),\r\n\t\t\tMath.floor(largestPossibleRadius - (radiusReductionTop + radiusReductionBottom) / 2));\r\n\t\tme.setCenterPoint(radiusReductionLeft, radiusReductionRight, radiusReductionTop, radiusReductionBottom);\r\n\t},\r\n\r\n\tsetCenterPoint: function(leftMovement, rightMovement, topMovement, bottomMovement) {\r\n\t\tvar me = this;\r\n\t\tvar maxRight = me.width - rightMovement - me.drawingArea;\r\n\t\tvar maxLeft = leftMovement + me.drawingArea;\r\n\t\tvar maxTop = topMovement + me.drawingArea;\r\n\t\tvar maxBottom = (me.height - me.paddingTop) - bottomMovement - me.drawingArea;\r\n\r\n\t\tme.xCenter = Math.floor(((maxLeft + maxRight) / 2) + me.left);\r\n\t\tme.yCenter = Math.floor(((maxTop + maxBottom) / 2) + me.top + me.paddingTop);\r\n\t},\r\n\r\n\tgetIndexAngle: function(index) {\r\n\t\tvar chart = this.chart;\r\n\t\tvar angleMultiplier = 360 / chart.data.labels.length;\r\n\t\tvar options = chart.options || {};\r\n\t\tvar startAngle = options.startAngle || 0;\r\n\r\n\t\t// Start from the top instead of right, so remove a quarter of the circle\r\n\t\tvar angle = (index * angleMultiplier + startAngle) % 360;\r\n\r\n\t\treturn (angle < 0 ? angle + 360 : angle) * Math.PI * 2 / 360;\r\n\t},\r\n\r\n\tgetDistanceFromCenterForValue: function(value) {\r\n\t\tvar me = this;\r\n\r\n\t\tif (helpers$1.isNullOrUndef(value)) {\r\n\t\t\treturn NaN;\r\n\t\t}\r\n\r\n\t\t// Take into account half font size + the yPadding of the top value\r\n\t\tvar scalingFactor = me.drawingArea / (me.max - me.min);\r\n\t\tif (me.options.ticks.reverse) {\r\n\t\t\treturn (me.max - value) * scalingFactor;\r\n\t\t}\r\n\t\treturn (value - me.min) * scalingFactor;\r\n\t},\r\n\r\n\tgetPointPosition: function(index, distanceFromCenter) {\r\n\t\tvar me = this;\r\n\t\tvar thisAngle = me.getIndexAngle(index) - (Math.PI / 2);\r\n\t\treturn {\r\n\t\t\tx: Math.cos(thisAngle) * distanceFromCenter + me.xCenter,\r\n\t\t\ty: Math.sin(thisAngle) * distanceFromCenter + me.yCenter\r\n\t\t};\r\n\t},\r\n\r\n\tgetPointPositionForValue: function(index, value) {\r\n\t\treturn this.getPointPosition(index, this.getDistanceFromCenterForValue(value));\r\n\t},\r\n\r\n\tgetBasePosition: function(index) {\r\n\t\tvar me = this;\r\n\t\tvar min = me.min;\r\n\t\tvar max = me.max;\r\n\r\n\t\treturn me.getPointPositionForValue(index || 0,\r\n\t\t\tme.beginAtZero ? 0 :\r\n\t\t\tmin < 0 && max < 0 ? max :\r\n\t\t\tmin > 0 && max > 0 ? min :\r\n\t\t\t0);\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_drawGrid: function() {\r\n\t\tvar me = this;\r\n\t\tvar ctx = me.ctx;\r\n\t\tvar opts = me.options;\r\n\t\tvar gridLineOpts = opts.gridLines;\r\n\t\tvar angleLineOpts = opts.angleLines;\r\n\t\tvar lineWidth = valueOrDefault$c(angleLineOpts.lineWidth, gridLineOpts.lineWidth);\r\n\t\tvar lineColor = valueOrDefault$c(angleLineOpts.color, gridLineOpts.color);\r\n\t\tvar i, offset, position;\r\n\r\n\t\tif (opts.pointLabels.display) {\r\n\t\t\tdrawPointLabels(me);\r\n\t\t}\r\n\r\n\t\tif (gridLineOpts.display) {\r\n\t\t\thelpers$1.each(me.ticks, function(label, index) {\r\n\t\t\t\tif (index !== 0) {\r\n\t\t\t\t\toffset = me.getDistanceFromCenterForValue(me.ticksAsNumbers[index]);\r\n\t\t\t\t\tdrawRadiusLine(me, gridLineOpts, offset, index);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tif (angleLineOpts.display && lineWidth && lineColor) {\r\n\t\t\tctx.save();\r\n\t\t\tctx.lineWidth = lineWidth;\r\n\t\t\tctx.strokeStyle = lineColor;\r\n\t\t\tif (ctx.setLineDash) {\r\n\t\t\t\tctx.setLineDash(resolve$4([angleLineOpts.borderDash, gridLineOpts.borderDash, []]));\r\n\t\t\t\tctx.lineDashOffset = resolve$4([angleLineOpts.borderDashOffset, gridLineOpts.borderDashOffset, 0.0]);\r\n\t\t\t}\r\n\r\n\t\t\tfor (i = me.chart.data.labels.length - 1; i >= 0; i--) {\r\n\t\t\t\toffset = me.getDistanceFromCenterForValue(opts.ticks.reverse ? me.min : me.max);\r\n\t\t\t\tposition = me.getPointPosition(i, offset);\r\n\t\t\t\tctx.beginPath();\r\n\t\t\t\tctx.moveTo(me.xCenter, me.yCenter);\r\n\t\t\t\tctx.lineTo(position.x, position.y);\r\n\t\t\t\tctx.stroke();\r\n\t\t\t}\r\n\r\n\t\t\tctx.restore();\r\n\t\t}\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_drawLabels: function() {\r\n\t\tvar me = this;\r\n\t\tvar ctx = me.ctx;\r\n\t\tvar opts = me.options;\r\n\t\tvar tickOpts = opts.ticks;\r\n\r\n\t\tif (!tickOpts.display) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar startAngle = me.getIndexAngle(0);\r\n\t\tvar tickFont = helpers$1.options._parseFont(tickOpts);\r\n\t\tvar tickFontColor = valueOrDefault$c(tickOpts.fontColor, core_defaults.global.defaultFontColor);\r\n\t\tvar offset, width;\r\n\r\n\t\tctx.save();\r\n\t\tctx.font = tickFont.string;\r\n\t\tctx.translate(me.xCenter, me.yCenter);\r\n\t\tctx.rotate(startAngle);\r\n\t\tctx.textAlign = 'center';\r\n\t\tctx.textBaseline = 'middle';\r\n\r\n\t\thelpers$1.each(me.ticks, function(label, index) {\r\n\t\t\tif (index === 0 && !tickOpts.reverse) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\toffset = me.getDistanceFromCenterForValue(me.ticksAsNumbers[index]);\r\n\r\n\t\t\tif (tickOpts.showLabelBackdrop) {\r\n\t\t\t\twidth = ctx.measureText(label).width;\r\n\t\t\t\tctx.fillStyle = tickOpts.backdropColor;\r\n\r\n\t\t\t\tctx.fillRect(\r\n\t\t\t\t\t-width / 2 - tickOpts.backdropPaddingX,\r\n\t\t\t\t\t-offset - tickFont.size / 2 - tickOpts.backdropPaddingY,\r\n\t\t\t\t\twidth + tickOpts.backdropPaddingX * 2,\r\n\t\t\t\t\ttickFont.size + tickOpts.backdropPaddingY * 2\r\n\t\t\t\t);\r\n\t\t\t}\r\n\r\n\t\t\tctx.fillStyle = tickFontColor;\r\n\t\t\tctx.fillText(label, 0, -offset);\r\n\t\t});\r\n\r\n\t\tctx.restore();\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_drawTitle: helpers$1.noop\r\n});\r\n\r\n// INTERNAL: static default options, registered in src/index.js\r\nvar _defaults$3 = defaultConfig$3;\nscale_radialLinear._defaults = _defaults$3;\n\nvar deprecated$1 = helpers$1._deprecated;\r\nvar resolve$5 = helpers$1.options.resolve;\r\nvar valueOrDefault$d = helpers$1.valueOrDefault;\r\n\r\n// Integer constants are from the ES6 spec.\r\nvar MIN_INTEGER = Number.MIN_SAFE_INTEGER || -9007199254740991;\r\nvar MAX_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;\r\n\r\nvar INTERVALS = {\r\n\tmillisecond: {\r\n\t\tcommon: true,\r\n\t\tsize: 1,\r\n\t\tsteps: 1000\r\n\t},\r\n\tsecond: {\r\n\t\tcommon: true,\r\n\t\tsize: 1000,\r\n\t\tsteps: 60\r\n\t},\r\n\tminute: {\r\n\t\tcommon: true,\r\n\t\tsize: 60000,\r\n\t\tsteps: 60\r\n\t},\r\n\thour: {\r\n\t\tcommon: true,\r\n\t\tsize: 3600000,\r\n\t\tsteps: 24\r\n\t},\r\n\tday: {\r\n\t\tcommon: true,\r\n\t\tsize: 86400000,\r\n\t\tsteps: 30\r\n\t},\r\n\tweek: {\r\n\t\tcommon: false,\r\n\t\tsize: 604800000,\r\n\t\tsteps: 4\r\n\t},\r\n\tmonth: {\r\n\t\tcommon: true,\r\n\t\tsize: 2.628e9,\r\n\t\tsteps: 12\r\n\t},\r\n\tquarter: {\r\n\t\tcommon: false,\r\n\t\tsize: 7.884e9,\r\n\t\tsteps: 4\r\n\t},\r\n\tyear: {\r\n\t\tcommon: true,\r\n\t\tsize: 3.154e10\r\n\t}\r\n};\r\n\r\nvar UNITS = Object.keys(INTERVALS);\r\n\r\nfunction sorter(a, b) {\r\n\treturn a - b;\r\n}\r\n\r\nfunction arrayUnique(items) {\r\n\tvar hash = {};\r\n\tvar out = [];\r\n\tvar i, ilen, item;\r\n\r\n\tfor (i = 0, ilen = items.length; i < ilen; ++i) {\r\n\t\titem = items[i];\r\n\t\tif (!hash[item]) {\r\n\t\t\thash[item] = true;\r\n\t\t\tout.push(item);\r\n\t\t}\r\n\t}\r\n\r\n\treturn out;\r\n}\r\n\r\nfunction getMin(options) {\r\n\treturn helpers$1.valueOrDefault(options.time.min, options.ticks.min);\r\n}\r\n\r\nfunction getMax(options) {\r\n\treturn helpers$1.valueOrDefault(options.time.max, options.ticks.max);\r\n}\r\n\r\n/**\r\n * Returns an array of {time, pos} objects used to interpolate a specific `time` or position\r\n * (`pos`) on the scale, by searching entries before and after the requested value. `pos` is\r\n * a decimal between 0 and 1: 0 being the start of the scale (left or top) and 1 the other\r\n * extremity (left + width or top + height). Note that it would be more optimized to directly\r\n * store pre-computed pixels, but the scale dimensions are not guaranteed at the time we need\r\n * to create the lookup table. The table ALWAYS contains at least two items: min and max.\r\n *\r\n * @param {number[]} timestamps - timestamps sorted from lowest to highest.\r\n * @param {string} distribution - If 'linear', timestamps will be spread linearly along the min\r\n * and max range, so basically, the table will contains only two items: {min, 0} and {max, 1}.\r\n * If 'series', timestamps will be positioned at the same distance from each other. In this\r\n * case, only timestamps that break the time linearity are registered, meaning that in the\r\n * best case, all timestamps are linear, the table contains only min and max.\r\n */\r\nfunction buildLookupTable(timestamps, min, max, distribution) {\r\n\tif (distribution === 'linear' || !timestamps.length) {\r\n\t\treturn [\r\n\t\t\t{time: min, pos: 0},\r\n\t\t\t{time: max, pos: 1}\r\n\t\t];\r\n\t}\r\n\r\n\tvar table = [];\r\n\tvar items = [min];\r\n\tvar i, ilen, prev, curr, next;\r\n\r\n\tfor (i = 0, ilen = timestamps.length; i < ilen; ++i) {\r\n\t\tcurr = timestamps[i];\r\n\t\tif (curr > min && curr < max) {\r\n\t\t\titems.push(curr);\r\n\t\t}\r\n\t}\r\n\r\n\titems.push(max);\r\n\r\n\tfor (i = 0, ilen = items.length; i < ilen; ++i) {\r\n\t\tnext = items[i + 1];\r\n\t\tprev = items[i - 1];\r\n\t\tcurr = items[i];\r\n\r\n\t\t// only add points that breaks the scale linearity\r\n\t\tif (prev === undefined || next === undefined || Math.round((next + prev) / 2) !== curr) {\r\n\t\t\ttable.push({time: curr, pos: i / (ilen - 1)});\r\n\t\t}\r\n\t}\r\n\r\n\treturn table;\r\n}\r\n\r\n// @see adapted from https://www.anujgakhar.com/2014/03/01/binary-search-in-javascript/\r\nfunction lookup(table, key, value) {\r\n\tvar lo = 0;\r\n\tvar hi = table.length - 1;\r\n\tvar mid, i0, i1;\r\n\r\n\twhile (lo >= 0 && lo <= hi) {\r\n\t\tmid = (lo + hi) >> 1;\r\n\t\ti0 = table[mid - 1] || null;\r\n\t\ti1 = table[mid];\r\n\r\n\t\tif (!i0) {\r\n\t\t\t// given value is outside table (before first item)\r\n\t\t\treturn {lo: null, hi: i1};\r\n\t\t} else if (i1[key] < value) {\r\n\t\t\tlo = mid + 1;\r\n\t\t} else if (i0[key] > value) {\r\n\t\t\thi = mid - 1;\r\n\t\t} else {\r\n\t\t\treturn {lo: i0, hi: i1};\r\n\t\t}\r\n\t}\r\n\r\n\t// given value is outside table (after last item)\r\n\treturn {lo: i1, hi: null};\r\n}\r\n\r\n/**\r\n * Linearly interpolates the given source `value` using the table items `skey` values and\r\n * returns the associated `tkey` value. For example, interpolate(table, 'time', 42, 'pos')\r\n * returns the position for a timestamp equal to 42. If value is out of bounds, values at\r\n * index [0, 1] or [n - 1, n] are used for the interpolation.\r\n */\r\nfunction interpolate$1(table, skey, sval, tkey) {\r\n\tvar range = lookup(table, skey, sval);\r\n\r\n\t// Note: the lookup table ALWAYS contains at least 2 items (min and max)\r\n\tvar prev = !range.lo ? table[0] : !range.hi ? table[table.length - 2] : range.lo;\r\n\tvar next = !range.lo ? table[1] : !range.hi ? table[table.length - 1] : range.hi;\r\n\r\n\tvar span = next[skey] - prev[skey];\r\n\tvar ratio = span ? (sval - prev[skey]) / span : 0;\r\n\tvar offset = (next[tkey] - prev[tkey]) * ratio;\r\n\r\n\treturn prev[tkey] + offset;\r\n}\r\n\r\nfunction toTimestamp(scale, input) {\r\n\tvar adapter = scale._adapter;\r\n\tvar options = scale.options.time;\r\n\tvar parser = options.parser;\r\n\tvar format = parser || options.format;\r\n\tvar value = input;\r\n\r\n\tif (typeof parser === 'function') {\r\n\t\tvalue = parser(value);\r\n\t}\r\n\r\n\t// Only parse if its not a timestamp already\r\n\tif (!helpers$1.isFinite(value)) {\r\n\t\tvalue = typeof format === 'string'\r\n\t\t\t? adapter.parse(value, format)\r\n\t\t\t: adapter.parse(value);\r\n\t}\r\n\r\n\tif (value !== null) {\r\n\t\treturn +value;\r\n\t}\r\n\r\n\t// Labels are in an incompatible format and no `parser` has been provided.\r\n\t// The user might still use the deprecated `format` option for parsing.\r\n\tif (!parser && typeof format === 'function') {\r\n\t\tvalue = format(input);\r\n\r\n\t\t// `format` could return something else than a timestamp, if so, parse it\r\n\t\tif (!helpers$1.isFinite(value)) {\r\n\t\t\tvalue = adapter.parse(value);\r\n\t\t}\r\n\t}\r\n\r\n\treturn value;\r\n}\r\n\r\nfunction parse(scale, input) {\r\n\tif (helpers$1.isNullOrUndef(input)) {\r\n\t\treturn null;\r\n\t}\r\n\r\n\tvar options = scale.options.time;\r\n\tvar value = toTimestamp(scale, scale.getRightValue(input));\r\n\tif (value === null) {\r\n\t\treturn value;\r\n\t}\r\n\r\n\tif (options.round) {\r\n\t\tvalue = +scale._adapter.startOf(value, options.round);\r\n\t}\r\n\r\n\treturn value;\r\n}\r\n\r\n/**\r\n * Figures out what unit results in an appropriate number of auto-generated ticks\r\n */\r\nfunction determineUnitForAutoTicks(minUnit, min, max, capacity) {\r\n\tvar ilen = UNITS.length;\r\n\tvar i, interval, factor;\r\n\r\n\tfor (i = UNITS.indexOf(minUnit); i < ilen - 1; ++i) {\r\n\t\tinterval = INTERVALS[UNITS[i]];\r\n\t\tfactor = interval.steps ? interval.steps : MAX_INTEGER;\r\n\r\n\t\tif (interval.common && Math.ceil((max - min) / (factor * interval.size)) <= capacity) {\r\n\t\t\treturn UNITS[i];\r\n\t\t}\r\n\t}\r\n\r\n\treturn UNITS[ilen - 1];\r\n}\r\n\r\n/**\r\n * Figures out what unit to format a set of ticks with\r\n */\r\nfunction determineUnitForFormatting(scale, numTicks, minUnit, min, max) {\r\n\tvar i, unit;\r\n\r\n\tfor (i = UNITS.length - 1; i >= UNITS.indexOf(minUnit); i--) {\r\n\t\tunit = UNITS[i];\r\n\t\tif (INTERVALS[unit].common && scale._adapter.diff(max, min, unit) >= numTicks - 1) {\r\n\t\t\treturn unit;\r\n\t\t}\r\n\t}\r\n\r\n\treturn UNITS[minUnit ? UNITS.indexOf(minUnit) : 0];\r\n}\r\n\r\nfunction determineMajorUnit(unit) {\r\n\tfor (var i = UNITS.indexOf(unit) + 1, ilen = UNITS.length; i < ilen; ++i) {\r\n\t\tif (INTERVALS[UNITS[i]].common) {\r\n\t\t\treturn UNITS[i];\r\n\t\t}\r\n\t}\r\n}\r\n\r\n/**\r\n * Generates a maximum of `capacity` timestamps between min and max, rounded to the\r\n * `minor` unit using the given scale time `options`.\r\n * Important: this method can return ticks outside the min and max range, it's the\r\n * responsibility of the calling code to clamp values if needed.\r\n */\r\nfunction generate(scale, min, max, capacity) {\r\n\tvar adapter = scale._adapter;\r\n\tvar options = scale.options;\r\n\tvar timeOpts = options.time;\r\n\tvar minor = timeOpts.unit || determineUnitForAutoTicks(timeOpts.minUnit, min, max, capacity);\r\n\tvar stepSize = resolve$5([timeOpts.stepSize, timeOpts.unitStepSize, 1]);\r\n\tvar weekday = minor === 'week' ? timeOpts.isoWeekday : false;\r\n\tvar first = min;\r\n\tvar ticks = [];\r\n\tvar time;\r\n\r\n\t// For 'week' unit, handle the first day of week option\r\n\tif (weekday) {\r\n\t\tfirst = +adapter.startOf(first, 'isoWeek', weekday);\r\n\t}\r\n\r\n\t// Align first ticks on unit\r\n\tfirst = +adapter.startOf(first, weekday ? 'day' : minor);\r\n\r\n\t// Prevent browser from freezing in case user options request millions of milliseconds\r\n\tif (adapter.diff(max, min, minor) > 100000 * stepSize) {\r\n\t\tthrow min + ' and ' + max + ' are too far apart with stepSize of ' + stepSize + ' ' + minor;\r\n\t}\r\n\r\n\tfor (time = first; time < max; time = +adapter.add(time, stepSize, minor)) {\r\n\t\tticks.push(time);\r\n\t}\r\n\r\n\tif (time === max || options.bounds === 'ticks') {\r\n\t\tticks.push(time);\r\n\t}\r\n\r\n\treturn ticks;\r\n}\r\n\r\n/**\r\n * Returns the start and end offsets from edges in the form of {start, end}\r\n * where each value is a relative width to the scale and ranges between 0 and 1.\r\n * They add extra margins on the both sides by scaling down the original scale.\r\n * Offsets are added when the `offset` option is true.\r\n */\r\nfunction computeOffsets(table, ticks, min, max, options) {\r\n\tvar start = 0;\r\n\tvar end = 0;\r\n\tvar first, last;\r\n\r\n\tif (options.offset && ticks.length) {\r\n\t\tfirst = interpolate$1(table, 'time', ticks[0], 'pos');\r\n\t\tif (ticks.length === 1) {\r\n\t\t\tstart = 1 - first;\r\n\t\t} else {\r\n\t\t\tstart = (interpolate$1(table, 'time', ticks[1], 'pos') - first) / 2;\r\n\t\t}\r\n\t\tlast = interpolate$1(table, 'time', ticks[ticks.length - 1], 'pos');\r\n\t\tif (ticks.length === 1) {\r\n\t\t\tend = last;\r\n\t\t} else {\r\n\t\t\tend = (last - interpolate$1(table, 'time', ticks[ticks.length - 2], 'pos')) / 2;\r\n\t\t}\r\n\t}\r\n\r\n\treturn {start: start, end: end, factor: 1 / (start + 1 + end)};\r\n}\r\n\r\nfunction setMajorTicks(scale, ticks, map, majorUnit) {\r\n\tvar adapter = scale._adapter;\r\n\tvar first = +adapter.startOf(ticks[0].value, majorUnit);\r\n\tvar last = ticks[ticks.length - 1].value;\r\n\tvar major, index;\r\n\r\n\tfor (major = first; major <= last; major = +adapter.add(major, 1, majorUnit)) {\r\n\t\tindex = map[major];\r\n\t\tif (index >= 0) {\r\n\t\t\tticks[index].major = true;\r\n\t\t}\r\n\t}\r\n\treturn ticks;\r\n}\r\n\r\nfunction ticksFromTimestamps(scale, values, majorUnit) {\r\n\tvar ticks = [];\r\n\tvar map = {};\r\n\tvar ilen = values.length;\r\n\tvar i, value;\r\n\r\n\tfor (i = 0; i < ilen; ++i) {\r\n\t\tvalue = values[i];\r\n\t\tmap[value] = i;\r\n\r\n\t\tticks.push({\r\n\t\t\tvalue: value,\r\n\t\t\tmajor: false\r\n\t\t});\r\n\t}\r\n\r\n\t// We set the major ticks separately from the above loop because calling startOf for every tick\r\n\t// is expensive when there is a large number of ticks\r\n\treturn (ilen === 0 || !majorUnit) ? ticks : setMajorTicks(scale, ticks, map, majorUnit);\r\n}\r\n\r\nvar defaultConfig$4 = {\r\n\tposition: 'bottom',\r\n\r\n\t/**\r\n\t * Data distribution along the scale:\r\n\t * - 'linear': data are spread according to their time (distances can vary),\r\n\t * - 'series': data are spread at the same distance from each other.\r\n\t * @see https://github.com/chartjs/Chart.js/pull/4507\r\n\t * @since 2.7.0\r\n\t */\r\n\tdistribution: 'linear',\r\n\r\n\t/**\r\n\t * Scale boundary strategy (bypassed by min/max time options)\r\n\t * - `data`: make sure data are fully visible, ticks outside are removed\r\n\t * - `ticks`: make sure ticks are fully visible, data outside are truncated\r\n\t * @see https://github.com/chartjs/Chart.js/pull/4556\r\n\t * @since 2.7.0\r\n\t */\r\n\tbounds: 'data',\r\n\r\n\tadapters: {},\r\n\ttime: {\r\n\t\tparser: false, // false == a pattern string from https://momentjs.com/docs/#/parsing/string-format/ or a custom callback that converts its argument to a moment\r\n\t\tunit: false, // false == automatic or override with week, month, year, etc.\r\n\t\tround: false, // none, or override with week, month, year, etc.\r\n\t\tdisplayFormat: false, // DEPRECATED\r\n\t\tisoWeekday: false, // override week start day - see https://momentjs.com/docs/#/get-set/iso-weekday/\r\n\t\tminUnit: 'millisecond',\r\n\t\tdisplayFormats: {}\r\n\t},\r\n\tticks: {\r\n\t\tautoSkip: false,\r\n\r\n\t\t/**\r\n\t\t * Ticks generation input values:\r\n\t\t * - 'auto': generates \"optimal\" ticks based on scale size and time options.\r\n\t\t * - 'data': generates ticks from data (including labels from data {t|x|y} objects).\r\n\t\t * - 'labels': generates ticks from user given `data.labels` values ONLY.\r\n\t\t * @see https://github.com/chartjs/Chart.js/pull/4507\r\n\t\t * @since 2.7.0\r\n\t\t */\r\n\t\tsource: 'auto',\r\n\r\n\t\tmajor: {\r\n\t\t\tenabled: false\r\n\t\t}\r\n\t}\r\n};\r\n\r\nvar scale_time = core_scale.extend({\r\n\tinitialize: function() {\r\n\t\tthis.mergeTicksOptions();\r\n\t\tcore_scale.prototype.initialize.call(this);\r\n\t},\r\n\r\n\tupdate: function() {\r\n\t\tvar me = this;\r\n\t\tvar options = me.options;\r\n\t\tvar time = options.time || (options.time = {});\r\n\t\tvar adapter = me._adapter = new core_adapters._date(options.adapters.date);\r\n\r\n\t\t// DEPRECATIONS: output a message only one time per update\r\n\t\tdeprecated$1('time scale', time.format, 'time.format', 'time.parser');\r\n\t\tdeprecated$1('time scale', time.min, 'time.min', 'ticks.min');\r\n\t\tdeprecated$1('time scale', time.max, 'time.max', 'ticks.max');\r\n\r\n\t\t// Backward compatibility: before introducing adapter, `displayFormats` was\r\n\t\t// supposed to contain *all* unit/string pairs but this can't be resolved\r\n\t\t// when loading the scale (adapters are loaded afterward), so let's populate\r\n\t\t// missing formats on update\r\n\t\thelpers$1.mergeIf(time.displayFormats, adapter.formats());\r\n\r\n\t\treturn core_scale.prototype.update.apply(me, arguments);\r\n\t},\r\n\r\n\t/**\r\n\t * Allows data to be referenced via 't' attribute\r\n\t */\r\n\tgetRightValue: function(rawValue) {\r\n\t\tif (rawValue && rawValue.t !== undefined) {\r\n\t\t\trawValue = rawValue.t;\r\n\t\t}\r\n\t\treturn core_scale.prototype.getRightValue.call(this, rawValue);\r\n\t},\r\n\r\n\tdetermineDataLimits: function() {\r\n\t\tvar me = this;\r\n\t\tvar chart = me.chart;\r\n\t\tvar adapter = me._adapter;\r\n\t\tvar options = me.options;\r\n\t\tvar unit = options.time.unit || 'day';\r\n\t\tvar min = MAX_INTEGER;\r\n\t\tvar max = MIN_INTEGER;\r\n\t\tvar timestamps = [];\r\n\t\tvar datasets = [];\r\n\t\tvar labels = [];\r\n\t\tvar i, j, ilen, jlen, data, timestamp, labelsAdded;\r\n\t\tvar dataLabels = me._getLabels();\r\n\r\n\t\tfor (i = 0, ilen = dataLabels.length; i < ilen; ++i) {\r\n\t\t\tlabels.push(parse(me, dataLabels[i]));\r\n\t\t}\r\n\r\n\t\tfor (i = 0, ilen = (chart.data.datasets || []).length; i < ilen; ++i) {\r\n\t\t\tif (chart.isDatasetVisible(i)) {\r\n\t\t\t\tdata = chart.data.datasets[i].data;\r\n\r\n\t\t\t\t// Let's consider that all data have the same format.\r\n\t\t\t\tif (helpers$1.isObject(data[0])) {\r\n\t\t\t\t\tdatasets[i] = [];\r\n\r\n\t\t\t\t\tfor (j = 0, jlen = data.length; j < jlen; ++j) {\r\n\t\t\t\t\t\ttimestamp = parse(me, data[j]);\r\n\t\t\t\t\t\ttimestamps.push(timestamp);\r\n\t\t\t\t\t\tdatasets[i][j] = timestamp;\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tdatasets[i] = labels.slice(0);\r\n\t\t\t\t\tif (!labelsAdded) {\r\n\t\t\t\t\t\ttimestamps = timestamps.concat(labels);\r\n\t\t\t\t\t\tlabelsAdded = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tdatasets[i] = [];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (labels.length) {\r\n\t\t\tmin = Math.min(min, labels[0]);\r\n\t\t\tmax = Math.max(max, labels[labels.length - 1]);\r\n\t\t}\r\n\r\n\t\tif (timestamps.length) {\r\n\t\t\ttimestamps = ilen > 1 ? arrayUnique(timestamps).sort(sorter) : timestamps.sort(sorter);\r\n\t\t\tmin = Math.min(min, timestamps[0]);\r\n\t\t\tmax = Math.max(max, timestamps[timestamps.length - 1]);\r\n\t\t}\r\n\r\n\t\tmin = parse(me, getMin(options)) || min;\r\n\t\tmax = parse(me, getMax(options)) || max;\r\n\r\n\t\t// In case there is no valid min/max, set limits based on unit time option\r\n\t\tmin = min === MAX_INTEGER ? +adapter.startOf(Date.now(), unit) : min;\r\n\t\tmax = max === MIN_INTEGER ? +adapter.endOf(Date.now(), unit) + 1 : max;\r\n\r\n\t\t// Make sure that max is strictly higher than min (required by the lookup table)\r\n\t\tme.min = Math.min(min, max);\r\n\t\tme.max = Math.max(min + 1, max);\r\n\r\n\t\t// PRIVATE\r\n\t\tme._table = [];\r\n\t\tme._timestamps = {\r\n\t\t\tdata: timestamps,\r\n\t\t\tdatasets: datasets,\r\n\t\t\tlabels: labels\r\n\t\t};\r\n\t},\r\n\r\n\tbuildTicks: function() {\r\n\t\tvar me = this;\r\n\t\tvar min = me.min;\r\n\t\tvar max = me.max;\r\n\t\tvar options = me.options;\r\n\t\tvar tickOpts = options.ticks;\r\n\t\tvar timeOpts = options.time;\r\n\t\tvar timestamps = me._timestamps;\r\n\t\tvar ticks = [];\r\n\t\tvar capacity = me.getLabelCapacity(min);\r\n\t\tvar source = tickOpts.source;\r\n\t\tvar distribution = options.distribution;\r\n\t\tvar i, ilen, timestamp;\r\n\r\n\t\tif (source === 'data' || (source === 'auto' && distribution === 'series')) {\r\n\t\t\ttimestamps = timestamps.data;\r\n\t\t} else if (source === 'labels') {\r\n\t\t\ttimestamps = timestamps.labels;\r\n\t\t} else {\r\n\t\t\ttimestamps = generate(me, min, max, capacity);\r\n\t\t}\r\n\r\n\t\tif (options.bounds === 'ticks' && timestamps.length) {\r\n\t\t\tmin = timestamps[0];\r\n\t\t\tmax = timestamps[timestamps.length - 1];\r\n\t\t}\r\n\r\n\t\t// Enforce limits with user min/max options\r\n\t\tmin = parse(me, getMin(options)) || min;\r\n\t\tmax = parse(me, getMax(options)) || max;\r\n\r\n\t\t// Remove ticks outside the min/max range\r\n\t\tfor (i = 0, ilen = timestamps.length; i < ilen; ++i) {\r\n\t\t\ttimestamp = timestamps[i];\r\n\t\t\tif (timestamp >= min && timestamp <= max) {\r\n\t\t\t\tticks.push(timestamp);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tme.min = min;\r\n\t\tme.max = max;\r\n\r\n\t\t// PRIVATE\r\n\t\t// determineUnitForFormatting relies on the number of ticks so we don't use it when\r\n\t\t// autoSkip is enabled because we don't yet know what the final number of ticks will be\r\n\t\tme._unit = timeOpts.unit || (tickOpts.autoSkip\r\n\t\t\t? determineUnitForAutoTicks(timeOpts.minUnit, me.min, me.max, capacity)\r\n\t\t\t: determineUnitForFormatting(me, ticks.length, timeOpts.minUnit, me.min, me.max));\r\n\t\tme._majorUnit = !tickOpts.major.enabled || me._unit === 'year' ? undefined\r\n\t\t\t: determineMajorUnit(me._unit);\r\n\t\tme._table = buildLookupTable(me._timestamps.data, min, max, distribution);\r\n\t\tme._offsets = computeOffsets(me._table, ticks, min, max, options);\r\n\r\n\t\tif (tickOpts.reverse) {\r\n\t\t\tticks.reverse();\r\n\t\t}\r\n\r\n\t\treturn ticksFromTimestamps(me, ticks, me._majorUnit);\r\n\t},\r\n\r\n\tgetLabelForIndex: function(index, datasetIndex) {\r\n\t\tvar me = this;\r\n\t\tvar adapter = me._adapter;\r\n\t\tvar data = me.chart.data;\r\n\t\tvar timeOpts = me.options.time;\r\n\t\tvar label = data.labels && index < data.labels.length ? data.labels[index] : '';\r\n\t\tvar value = data.datasets[datasetIndex].data[index];\r\n\r\n\t\tif (helpers$1.isObject(value)) {\r\n\t\t\tlabel = me.getRightValue(value);\r\n\t\t}\r\n\t\tif (timeOpts.tooltipFormat) {\r\n\t\t\treturn adapter.format(toTimestamp(me, label), timeOpts.tooltipFormat);\r\n\t\t}\r\n\t\tif (typeof label === 'string') {\r\n\t\t\treturn label;\r\n\t\t}\r\n\t\treturn adapter.format(toTimestamp(me, label), timeOpts.displayFormats.datetime);\r\n\t},\r\n\r\n\t/**\r\n\t * Function to format an individual tick mark\r\n\t * @private\r\n\t */\r\n\ttickFormatFunction: function(time, index, ticks, format) {\r\n\t\tvar me = this;\r\n\t\tvar adapter = me._adapter;\r\n\t\tvar options = me.options;\r\n\t\tvar formats = options.time.displayFormats;\r\n\t\tvar minorFormat = formats[me._unit];\r\n\t\tvar majorUnit = me._majorUnit;\r\n\t\tvar majorFormat = formats[majorUnit];\r\n\t\tvar tick = ticks[index];\r\n\t\tvar tickOpts = options.ticks;\r\n\t\tvar major = majorUnit && majorFormat && tick && tick.major;\r\n\t\tvar label = adapter.format(time, format ? format : major ? majorFormat : minorFormat);\r\n\t\tvar nestedTickOpts = major ? tickOpts.major : tickOpts.minor;\r\n\t\tvar formatter = resolve$5([\r\n\t\t\tnestedTickOpts.callback,\r\n\t\t\tnestedTickOpts.userCallback,\r\n\t\t\ttickOpts.callback,\r\n\t\t\ttickOpts.userCallback\r\n\t\t]);\r\n\r\n\t\treturn formatter ? formatter(label, index, ticks) : label;\r\n\t},\r\n\r\n\tconvertTicksToLabels: function(ticks) {\r\n\t\tvar labels = [];\r\n\t\tvar i, ilen;\r\n\r\n\t\tfor (i = 0, ilen = ticks.length; i < ilen; ++i) {\r\n\t\t\tlabels.push(this.tickFormatFunction(ticks[i].value, i, ticks));\r\n\t\t}\r\n\r\n\t\treturn labels;\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\tgetPixelForOffset: function(time) {\r\n\t\tvar me = this;\r\n\t\tvar offsets = me._offsets;\r\n\t\tvar pos = interpolate$1(me._table, 'time', time, 'pos');\r\n\t\treturn me.getPixelForDecimal((offsets.start + pos) * offsets.factor);\r\n\t},\r\n\r\n\tgetPixelForValue: function(value, index, datasetIndex) {\r\n\t\tvar me = this;\r\n\t\tvar time = null;\r\n\r\n\t\tif (index !== undefined && datasetIndex !== undefined) {\r\n\t\t\ttime = me._timestamps.datasets[datasetIndex][index];\r\n\t\t}\r\n\r\n\t\tif (time === null) {\r\n\t\t\ttime = parse(me, value);\r\n\t\t}\r\n\r\n\t\tif (time !== null) {\r\n\t\t\treturn me.getPixelForOffset(time);\r\n\t\t}\r\n\t},\r\n\r\n\tgetPixelForTick: function(index) {\r\n\t\tvar ticks = this.getTicks();\r\n\t\treturn index >= 0 && index < ticks.length ?\r\n\t\t\tthis.getPixelForOffset(ticks[index].value) :\r\n\t\t\tnull;\r\n\t},\r\n\r\n\tgetValueForPixel: function(pixel) {\r\n\t\tvar me = this;\r\n\t\tvar offsets = me._offsets;\r\n\t\tvar pos = me.getDecimalForPixel(pixel) / offsets.factor - offsets.end;\r\n\t\tvar time = interpolate$1(me._table, 'pos', pos, 'time');\r\n\r\n\t\t// DEPRECATION, we should return time directly\r\n\t\treturn me._adapter._create(time);\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_getLabelSize: function(label) {\r\n\t\tvar me = this;\r\n\t\tvar ticksOpts = me.options.ticks;\r\n\t\tvar tickLabelWidth = me.ctx.measureText(label).width;\r\n\t\tvar angle = helpers$1.toRadians(me.isHorizontal() ? ticksOpts.maxRotation : ticksOpts.minRotation);\r\n\t\tvar cosRotation = Math.cos(angle);\r\n\t\tvar sinRotation = Math.sin(angle);\r\n\t\tvar tickFontSize = valueOrDefault$d(ticksOpts.fontSize, core_defaults.global.defaultFontSize);\r\n\r\n\t\treturn {\r\n\t\t\tw: (tickLabelWidth * cosRotation) + (tickFontSize * sinRotation),\r\n\t\t\th: (tickLabelWidth * sinRotation) + (tickFontSize * cosRotation)\r\n\t\t};\r\n\t},\r\n\r\n\t/**\r\n\t * Crude approximation of what the label width might be\r\n\t * @private\r\n\t */\r\n\tgetLabelWidth: function(label) {\r\n\t\treturn this._getLabelSize(label).w;\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\tgetLabelCapacity: function(exampleTime) {\r\n\t\tvar me = this;\r\n\t\tvar timeOpts = me.options.time;\r\n\t\tvar displayFormats = timeOpts.displayFormats;\r\n\r\n\t\t// pick the longest format (milliseconds) for guestimation\r\n\t\tvar format = displayFormats[timeOpts.unit] || displayFormats.millisecond;\r\n\t\tvar exampleLabel = me.tickFormatFunction(exampleTime, 0, ticksFromTimestamps(me, [exampleTime], me._majorUnit), format);\r\n\t\tvar size = me._getLabelSize(exampleLabel);\r\n\t\tvar capacity = Math.floor(me.isHorizontal() ? me.width / size.w : me.height / size.h);\r\n\r\n\t\tif (me.options.offset) {\r\n\t\t\tcapacity--;\r\n\t\t}\r\n\r\n\t\treturn capacity > 0 ? capacity : 1;\r\n\t}\r\n});\r\n\r\n// INTERNAL: static default options, registered in src/index.js\r\nvar _defaults$4 = defaultConfig$4;\nscale_time._defaults = _defaults$4;\n\nvar scales = {\r\n\tcategory: scale_category,\r\n\tlinear: scale_linear,\r\n\tlogarithmic: scale_logarithmic,\r\n\tradialLinear: scale_radialLinear,\r\n\ttime: scale_time\r\n};\n\nvar FORMATS = {\r\n\tdatetime: 'MMM D, YYYY, h:mm:ss a',\r\n\tmillisecond: 'h:mm:ss.SSS a',\r\n\tsecond: 'h:mm:ss a',\r\n\tminute: 'h:mm a',\r\n\thour: 'hA',\r\n\tday: 'MMM D',\r\n\tweek: 'll',\r\n\tmonth: 'MMM YYYY',\r\n\tquarter: '[Q]Q - YYYY',\r\n\tyear: 'YYYY'\r\n};\r\n\r\ncore_adapters._date.override(typeof moment === 'function' ? {\r\n\t_id: 'moment', // DEBUG ONLY\r\n\r\n\tformats: function() {\r\n\t\treturn FORMATS;\r\n\t},\r\n\r\n\tparse: function(value, format) {\r\n\t\tif (typeof value === 'string' && typeof format === 'string') {\r\n\t\t\tvalue = moment(value, format);\r\n\t\t} else if (!(value instanceof moment)) {\r\n\t\t\tvalue = moment(value);\r\n\t\t}\r\n\t\treturn value.isValid() ? value.valueOf() : null;\r\n\t},\r\n\r\n\tformat: function(time, format) {\r\n\t\treturn moment(time).format(format);\r\n\t},\r\n\r\n\tadd: function(time, amount, unit) {\r\n\t\treturn moment(time).add(amount, unit).valueOf();\r\n\t},\r\n\r\n\tdiff: function(max, min, unit) {\r\n\t\treturn moment(max).diff(moment(min), unit);\r\n\t},\r\n\r\n\tstartOf: function(time, unit, weekday) {\r\n\t\ttime = moment(time);\r\n\t\tif (unit === 'isoWeek') {\r\n\t\t\treturn time.isoWeekday(weekday).valueOf();\r\n\t\t}\r\n\t\treturn time.startOf(unit).valueOf();\r\n\t},\r\n\r\n\tendOf: function(time, unit) {\r\n\t\treturn moment(time).endOf(unit).valueOf();\r\n\t},\r\n\r\n\t// DEPRECATIONS\r\n\r\n\t/**\r\n\t * Provided for backward compatibility with scale.getValueForPixel().\r\n\t * @deprecated since version 2.8.0\r\n\t * @todo remove at version 3\r\n\t * @private\r\n\t */\r\n\t_create: function(time) {\r\n\t\treturn moment(time);\r\n\t},\r\n} : {});\n\ncore_defaults._set('global', {\r\n\tplugins: {\r\n\t\tfiller: {\r\n\t\t\tpropagate: true\r\n\t\t}\r\n\t}\r\n});\r\n\r\nvar mappers = {\r\n\tdataset: function(source) {\r\n\t\tvar index = source.fill;\r\n\t\tvar chart = source.chart;\r\n\t\tvar meta = chart.getDatasetMeta(index);\r\n\t\tvar visible = meta && chart.isDatasetVisible(index);\r\n\t\tvar points = (visible && meta.dataset._children) || [];\r\n\t\tvar length = points.length || 0;\r\n\r\n\t\treturn !length ? null : function(point, i) {\r\n\t\t\treturn (i < length && points[i]._view) || null;\r\n\t\t};\r\n\t},\r\n\r\n\tboundary: function(source) {\r\n\t\tvar boundary = source.boundary;\r\n\t\tvar x = boundary ? boundary.x : null;\r\n\t\tvar y = boundary ? boundary.y : null;\r\n\r\n\t\tif (helpers$1.isArray(boundary)) {\r\n\t\t\treturn function(point, i) {\r\n\t\t\t\treturn boundary[i];\r\n\t\t\t};\r\n\t\t}\r\n\r\n\t\treturn function(point) {\r\n\t\t\treturn {\r\n\t\t\t\tx: x === null ? point.x : x,\r\n\t\t\t\ty: y === null ? point.y : y,\r\n\t\t\t};\r\n\t\t};\r\n\t}\r\n};\r\n\r\n// @todo if (fill[0] === '#')\r\nfunction decodeFill(el, index, count) {\r\n\tvar model = el._model || {};\r\n\tvar fill = model.fill;\r\n\tvar target;\r\n\r\n\tif (fill === undefined) {\r\n\t\tfill = !!model.backgroundColor;\r\n\t}\r\n\r\n\tif (fill === false || fill === null) {\r\n\t\treturn false;\r\n\t}\r\n\r\n\tif (fill === true) {\r\n\t\treturn 'origin';\r\n\t}\r\n\r\n\ttarget = parseFloat(fill, 10);\r\n\tif (isFinite(target) && Math.floor(target) === target) {\r\n\t\tif (fill[0] === '-' || fill[0] === '+') {\r\n\t\t\ttarget = index + target;\r\n\t\t}\r\n\r\n\t\tif (target === index || target < 0 || target >= count) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn target;\r\n\t}\r\n\r\n\tswitch (fill) {\r\n\t// compatibility\r\n\tcase 'bottom':\r\n\t\treturn 'start';\r\n\tcase 'top':\r\n\t\treturn 'end';\r\n\tcase 'zero':\r\n\t\treturn 'origin';\r\n\t// supported boundaries\r\n\tcase 'origin':\r\n\tcase 'start':\r\n\tcase 'end':\r\n\t\treturn fill;\r\n\t// invalid fill values\r\n\tdefault:\r\n\t\treturn false;\r\n\t}\r\n}\r\n\r\nfunction computeLinearBoundary(source) {\r\n\tvar model = source.el._model || {};\r\n\tvar scale = source.el._scale || {};\r\n\tvar fill = source.fill;\r\n\tvar target = null;\r\n\tvar horizontal;\r\n\r\n\tif (isFinite(fill)) {\r\n\t\treturn null;\r\n\t}\r\n\r\n\t// Backward compatibility: until v3, we still need to support boundary values set on\r\n\t// the model (scaleTop, scaleBottom and scaleZero) because some external plugins and\r\n\t// controllers might still use it (e.g. the Smith chart).\r\n\r\n\tif (fill === 'start') {\r\n\t\ttarget = model.scaleBottom === undefined ? scale.bottom : model.scaleBottom;\r\n\t} else if (fill === 'end') {\r\n\t\ttarget = model.scaleTop === undefined ? scale.top : model.scaleTop;\r\n\t} else if (model.scaleZero !== undefined) {\r\n\t\ttarget = model.scaleZero;\r\n\t} else if (scale.getBasePixel) {\r\n\t\ttarget = scale.getBasePixel();\r\n\t}\r\n\r\n\tif (target !== undefined && target !== null) {\r\n\t\tif (target.x !== undefined && target.y !== undefined) {\r\n\t\t\treturn target;\r\n\t\t}\r\n\r\n\t\tif (helpers$1.isFinite(target)) {\r\n\t\t\thorizontal = scale.isHorizontal();\r\n\t\t\treturn {\r\n\t\t\t\tx: horizontal ? target : null,\r\n\t\t\t\ty: horizontal ? null : target\r\n\t\t\t};\r\n\t\t}\r\n\t}\r\n\r\n\treturn null;\r\n}\r\n\r\nfunction computeCircularBoundary(source) {\r\n\tvar scale = source.el._scale;\r\n\tvar options = scale.options;\r\n\tvar length = scale.chart.data.labels.length;\r\n\tvar fill = source.fill;\r\n\tvar target = [];\r\n\tvar start, end, center, i, point;\r\n\r\n\tif (!length) {\r\n\t\treturn null;\r\n\t}\r\n\r\n\tstart = options.ticks.reverse ? scale.max : scale.min;\r\n\tend = options.ticks.reverse ? scale.min : scale.max;\r\n\tcenter = scale.getPointPositionForValue(0, start);\r\n\tfor (i = 0; i < length; ++i) {\r\n\t\tpoint = fill === 'start' || fill === 'end'\r\n\t\t\t? scale.getPointPositionForValue(i, fill === 'start' ? start : end)\r\n\t\t\t: scale.getBasePosition(i);\r\n\t\tif (options.gridLines.circular) {\r\n\t\t\tpoint.cx = center.x;\r\n\t\t\tpoint.cy = center.y;\r\n\t\t\tpoint.angle = scale.getIndexAngle(i) - Math.PI / 2;\r\n\t\t}\r\n\t\ttarget.push(point);\r\n\t}\r\n\treturn target;\r\n}\r\n\r\nfunction computeBoundary(source) {\r\n\tvar scale = source.el._scale || {};\r\n\r\n\tif (scale.getPointPositionForValue) {\r\n\t\treturn computeCircularBoundary(source);\r\n\t}\r\n\treturn computeLinearBoundary(source);\r\n}\r\n\r\nfunction resolveTarget(sources, index, propagate) {\r\n\tvar source = sources[index];\r\n\tvar fill = source.fill;\r\n\tvar visited = [index];\r\n\tvar target;\r\n\r\n\tif (!propagate) {\r\n\t\treturn fill;\r\n\t}\r\n\r\n\twhile (fill !== false && visited.indexOf(fill) === -1) {\r\n\t\tif (!isFinite(fill)) {\r\n\t\t\treturn fill;\r\n\t\t}\r\n\r\n\t\ttarget = sources[fill];\r\n\t\tif (!target) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (target.visible) {\r\n\t\t\treturn fill;\r\n\t\t}\r\n\r\n\t\tvisited.push(fill);\r\n\t\tfill = target.fill;\r\n\t}\r\n\r\n\treturn false;\r\n}\r\n\r\nfunction createMapper(source) {\r\n\tvar fill = source.fill;\r\n\tvar type = 'dataset';\r\n\r\n\tif (fill === false) {\r\n\t\treturn null;\r\n\t}\r\n\r\n\tif (!isFinite(fill)) {\r\n\t\ttype = 'boundary';\r\n\t}\r\n\r\n\treturn mappers[type](source);\r\n}\r\n\r\nfunction isDrawable(point) {\r\n\treturn point && !point.skip;\r\n}\r\n\r\nfunction drawArea(ctx, curve0, curve1, len0, len1) {\r\n\tvar i, cx, cy, r;\r\n\r\n\tif (!len0 || !len1) {\r\n\t\treturn;\r\n\t}\r\n\r\n\t// building first area curve (normal)\r\n\tctx.moveTo(curve0[0].x, curve0[0].y);\r\n\tfor (i = 1; i < len0; ++i) {\r\n\t\thelpers$1.canvas.lineTo(ctx, curve0[i - 1], curve0[i]);\r\n\t}\r\n\r\n\tif (curve1[0].angle !== undefined) {\r\n\t\tcx = curve1[0].cx;\r\n\t\tcy = curve1[0].cy;\r\n\t\tr = Math.sqrt(Math.pow(curve1[0].x - cx, 2) + Math.pow(curve1[0].y - cy, 2));\r\n\t\tfor (i = len1 - 1; i > 0; --i) {\r\n\t\t\tctx.arc(cx, cy, r, curve1[i].angle, curve1[i - 1].angle, true);\r\n\t\t}\r\n\t\treturn;\r\n\t}\r\n\r\n\t// joining the two area curves\r\n\tctx.lineTo(curve1[len1 - 1].x, curve1[len1 - 1].y);\r\n\r\n\t// building opposite area curve (reverse)\r\n\tfor (i = len1 - 1; i > 0; --i) {\r\n\t\thelpers$1.canvas.lineTo(ctx, curve1[i], curve1[i - 1], true);\r\n\t}\r\n}\r\n\r\nfunction doFill(ctx, points, mapper, view, color, loop) {\r\n\tvar count = points.length;\r\n\tvar span = view.spanGaps;\r\n\tvar curve0 = [];\r\n\tvar curve1 = [];\r\n\tvar len0 = 0;\r\n\tvar len1 = 0;\r\n\tvar i, ilen, index, p0, p1, d0, d1, loopOffset;\r\n\r\n\tctx.beginPath();\r\n\r\n\tfor (i = 0, ilen = count; i < ilen; ++i) {\r\n\t\tindex = i % count;\r\n\t\tp0 = points[index]._view;\r\n\t\tp1 = mapper(p0, index, view);\r\n\t\td0 = isDrawable(p0);\r\n\t\td1 = isDrawable(p1);\r\n\r\n\t\tif (loop && loopOffset === undefined && d0) {\r\n\t\t\tloopOffset = i + 1;\r\n\t\t\tilen = count + loopOffset;\r\n\t\t}\r\n\r\n\t\tif (d0 && d1) {\r\n\t\t\tlen0 = curve0.push(p0);\r\n\t\t\tlen1 = curve1.push(p1);\r\n\t\t} else if (len0 && len1) {\r\n\t\t\tif (!span) {\r\n\t\t\t\tdrawArea(ctx, curve0, curve1, len0, len1);\r\n\t\t\t\tlen0 = len1 = 0;\r\n\t\t\t\tcurve0 = [];\r\n\t\t\t\tcurve1 = [];\r\n\t\t\t} else {\r\n\t\t\t\tif (d0) {\r\n\t\t\t\t\tcurve0.push(p0);\r\n\t\t\t\t}\r\n\t\t\t\tif (d1) {\r\n\t\t\t\t\tcurve1.push(p1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tdrawArea(ctx, curve0, curve1, len0, len1);\r\n\r\n\tctx.closePath();\r\n\tctx.fillStyle = color;\r\n\tctx.fill();\r\n}\r\n\r\nvar plugin_filler = {\r\n\tid: 'filler',\r\n\r\n\tafterDatasetsUpdate: function(chart, options) {\r\n\t\tvar count = (chart.data.datasets || []).length;\r\n\t\tvar propagate = options.propagate;\r\n\t\tvar sources = [];\r\n\t\tvar meta, i, el, source;\r\n\r\n\t\tfor (i = 0; i < count; ++i) {\r\n\t\t\tmeta = chart.getDatasetMeta(i);\r\n\t\t\tel = meta.dataset;\r\n\t\t\tsource = null;\r\n\r\n\t\t\tif (el && el._model && el instanceof elements.Line) {\r\n\t\t\t\tsource = {\r\n\t\t\t\t\tvisible: chart.isDatasetVisible(i),\r\n\t\t\t\t\tfill: decodeFill(el, i, count),\r\n\t\t\t\t\tchart: chart,\r\n\t\t\t\t\tel: el\r\n\t\t\t\t};\r\n\t\t\t}\r\n\r\n\t\t\tmeta.$filler = source;\r\n\t\t\tsources.push(source);\r\n\t\t}\r\n\r\n\t\tfor (i = 0; i < count; ++i) {\r\n\t\t\tsource = sources[i];\r\n\t\t\tif (!source) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\tsource.fill = resolveTarget(sources, i, propagate);\r\n\t\t\tsource.boundary = computeBoundary(source);\r\n\t\t\tsource.mapper = createMapper(source);\r\n\t\t}\r\n\t},\r\n\r\n\tbeforeDatasetsDraw: function(chart) {\r\n\t\tvar metasets = chart._getSortedVisibleDatasetMetas();\r\n\t\tvar ctx = chart.ctx;\r\n\t\tvar meta, i, el, view, points, mapper, color;\r\n\r\n\t\tfor (i = metasets.length - 1; i >= 0; --i) {\r\n\t\t\tmeta = metasets[i].$filler;\r\n\r\n\t\t\tif (!meta || !meta.visible) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\tel = meta.el;\r\n\t\t\tview = el._view;\r\n\t\t\tpoints = el._children || [];\r\n\t\t\tmapper = meta.mapper;\r\n\t\t\tcolor = view.backgroundColor || core_defaults.global.defaultColor;\r\n\r\n\t\t\tif (mapper && color && points.length) {\r\n\t\t\t\thelpers$1.canvas.clipArea(ctx, chart.chartArea);\r\n\t\t\t\tdoFill(ctx, points, mapper, view, color, el._loop);\r\n\t\t\t\thelpers$1.canvas.unclipArea(ctx);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\n\nvar getRtlHelper$1 = helpers$1.rtl.getRtlAdapter;\r\nvar noop$1 = helpers$1.noop;\r\nvar valueOrDefault$e = helpers$1.valueOrDefault;\r\n\r\ncore_defaults._set('global', {\r\n\tlegend: {\r\n\t\tdisplay: true,\r\n\t\tposition: 'top',\r\n\t\talign: 'center',\r\n\t\tfullWidth: true,\r\n\t\treverse: false,\r\n\t\tweight: 1000,\r\n\r\n\t\t// a callback that will handle\r\n\t\tonClick: function(e, legendItem) {\r\n\t\t\tvar index = legendItem.datasetIndex;\r\n\t\t\tvar ci = this.chart;\r\n\t\t\tvar meta = ci.getDatasetMeta(index);\r\n\r\n\t\t\t// See controller.isDatasetVisible comment\r\n\t\t\tmeta.hidden = meta.hidden === null ? !ci.data.datasets[index].hidden : null;\r\n\r\n\t\t\t// We hid a dataset ... rerender the chart\r\n\t\t\tci.update();\r\n\t\t},\r\n\r\n\t\tonHover: null,\r\n\t\tonLeave: null,\r\n\r\n\t\tlabels: {\r\n\t\t\tboxWidth: 40,\r\n\t\t\tpadding: 10,\r\n\t\t\t// Generates labels shown in the legend\r\n\t\t\t// Valid properties to return:\r\n\t\t\t// text : text to display\r\n\t\t\t// fillStyle : fill of coloured box\r\n\t\t\t// strokeStyle: stroke of coloured box\r\n\t\t\t// hidden : if this legend item refers to a hidden item\r\n\t\t\t// lineCap : cap style for line\r\n\t\t\t// lineDash\r\n\t\t\t// lineDashOffset :\r\n\t\t\t// lineJoin :\r\n\t\t\t// lineWidth :\r\n\t\t\tgenerateLabels: function(chart) {\r\n\t\t\t\tvar datasets = chart.data.datasets;\r\n\t\t\t\tvar options = chart.options.legend || {};\r\n\t\t\t\tvar usePointStyle = options.labels && options.labels.usePointStyle;\r\n\r\n\t\t\t\treturn chart._getSortedDatasetMetas().map(function(meta) {\r\n\t\t\t\t\tvar style = meta.controller.getStyle(usePointStyle ? 0 : undefined);\r\n\r\n\t\t\t\t\treturn {\r\n\t\t\t\t\t\ttext: datasets[meta.index].label,\r\n\t\t\t\t\t\tfillStyle: style.backgroundColor,\r\n\t\t\t\t\t\thidden: !chart.isDatasetVisible(meta.index),\r\n\t\t\t\t\t\tlineCap: style.borderCapStyle,\r\n\t\t\t\t\t\tlineDash: style.borderDash,\r\n\t\t\t\t\t\tlineDashOffset: style.borderDashOffset,\r\n\t\t\t\t\t\tlineJoin: style.borderJoinStyle,\r\n\t\t\t\t\t\tlineWidth: style.borderWidth,\r\n\t\t\t\t\t\tstrokeStyle: style.borderColor,\r\n\t\t\t\t\t\tpointStyle: style.pointStyle,\r\n\t\t\t\t\t\trotation: style.rotation,\r\n\r\n\t\t\t\t\t\t// Below is extra data used for toggling the datasets\r\n\t\t\t\t\t\tdatasetIndex: meta.index\r\n\t\t\t\t\t};\r\n\t\t\t\t}, this);\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\r\n\tlegendCallback: function(chart) {\r\n\t\tvar list = document.createElement('ul');\r\n\t\tvar datasets = chart.data.datasets;\r\n\t\tvar i, ilen, listItem, listItemSpan;\r\n\r\n\t\tlist.setAttribute('class', chart.id + '-legend');\r\n\r\n\t\tfor (i = 0, ilen = datasets.length; i < ilen; i++) {\r\n\t\t\tlistItem = list.appendChild(document.createElement('li'));\r\n\t\t\tlistItemSpan = listItem.appendChild(document.createElement('span'));\r\n\t\t\tlistItemSpan.style.backgroundColor = datasets[i].backgroundColor;\r\n\t\t\tif (datasets[i].label) {\r\n\t\t\t\tlistItem.appendChild(document.createTextNode(datasets[i].label));\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn list.outerHTML;\r\n\t}\r\n});\r\n\r\n/**\r\n * Helper function to get the box width based on the usePointStyle option\r\n * @param {object} labelopts - the label options on the legend\r\n * @param {number} fontSize - the label font size\r\n * @return {number} width of the color box area\r\n */\r\nfunction getBoxWidth(labelOpts, fontSize) {\r\n\treturn labelOpts.usePointStyle && labelOpts.boxWidth > fontSize ?\r\n\t\tfontSize :\r\n\t\tlabelOpts.boxWidth;\r\n}\r\n\r\n/**\r\n * IMPORTANT: this class is exposed publicly as Chart.Legend, backward compatibility required!\r\n */\r\nvar Legend = core_element.extend({\r\n\r\n\tinitialize: function(config) {\r\n\t\tvar me = this;\r\n\t\thelpers$1.extend(me, config);\r\n\r\n\t\t// Contains hit boxes for each dataset (in dataset order)\r\n\t\tme.legendHitBoxes = [];\r\n\r\n\t\t/**\r\n \t\t * @private\r\n \t\t */\r\n\t\tme._hoveredItem = null;\r\n\r\n\t\t// Are we in doughnut mode which has a different data type\r\n\t\tme.doughnutMode = false;\r\n\t},\r\n\r\n\t// These methods are ordered by lifecycle. Utilities then follow.\r\n\t// Any function defined here is inherited by all legend types.\r\n\t// Any function can be extended by the legend type\r\n\r\n\tbeforeUpdate: noop$1,\r\n\tupdate: function(maxWidth, maxHeight, margins) {\r\n\t\tvar me = this;\r\n\r\n\t\t// Update Lifecycle - Probably don't want to ever extend or overwrite this function ;)\r\n\t\tme.beforeUpdate();\r\n\r\n\t\t// Absorb the master measurements\r\n\t\tme.maxWidth = maxWidth;\r\n\t\tme.maxHeight = maxHeight;\r\n\t\tme.margins = margins;\r\n\r\n\t\t// Dimensions\r\n\t\tme.beforeSetDimensions();\r\n\t\tme.setDimensions();\r\n\t\tme.afterSetDimensions();\r\n\t\t// Labels\r\n\t\tme.beforeBuildLabels();\r\n\t\tme.buildLabels();\r\n\t\tme.afterBuildLabels();\r\n\r\n\t\t// Fit\r\n\t\tme.beforeFit();\r\n\t\tme.fit();\r\n\t\tme.afterFit();\r\n\t\t//\r\n\t\tme.afterUpdate();\r\n\r\n\t\treturn me.minSize;\r\n\t},\r\n\tafterUpdate: noop$1,\r\n\r\n\t//\r\n\r\n\tbeforeSetDimensions: noop$1,\r\n\tsetDimensions: function() {\r\n\t\tvar me = this;\r\n\t\t// Set the unconstrained dimension before label rotation\r\n\t\tif (me.isHorizontal()) {\r\n\t\t\t// Reset position before calculating rotation\r\n\t\t\tme.width = me.maxWidth;\r\n\t\t\tme.left = 0;\r\n\t\t\tme.right = me.width;\r\n\t\t} else {\r\n\t\t\tme.height = me.maxHeight;\r\n\r\n\t\t\t// Reset position before calculating rotation\r\n\t\t\tme.top = 0;\r\n\t\t\tme.bottom = me.height;\r\n\t\t}\r\n\r\n\t\t// Reset padding\r\n\t\tme.paddingLeft = 0;\r\n\t\tme.paddingTop = 0;\r\n\t\tme.paddingRight = 0;\r\n\t\tme.paddingBottom = 0;\r\n\r\n\t\t// Reset minSize\r\n\t\tme.minSize = {\r\n\t\t\twidth: 0,\r\n\t\t\theight: 0\r\n\t\t};\r\n\t},\r\n\tafterSetDimensions: noop$1,\r\n\r\n\t//\r\n\r\n\tbeforeBuildLabels: noop$1,\r\n\tbuildLabels: function() {\r\n\t\tvar me = this;\r\n\t\tvar labelOpts = me.options.labels || {};\r\n\t\tvar legendItems = helpers$1.callback(labelOpts.generateLabels, [me.chart], me) || [];\r\n\r\n\t\tif (labelOpts.filter) {\r\n\t\t\tlegendItems = legendItems.filter(function(item) {\r\n\t\t\t\treturn labelOpts.filter(item, me.chart.data);\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tif (me.options.reverse) {\r\n\t\t\tlegendItems.reverse();\r\n\t\t}\r\n\r\n\t\tme.legendItems = legendItems;\r\n\t},\r\n\tafterBuildLabels: noop$1,\r\n\r\n\t//\r\n\r\n\tbeforeFit: noop$1,\r\n\tfit: function() {\r\n\t\tvar me = this;\r\n\t\tvar opts = me.options;\r\n\t\tvar labelOpts = opts.labels;\r\n\t\tvar display = opts.display;\r\n\r\n\t\tvar ctx = me.ctx;\r\n\r\n\t\tvar labelFont = helpers$1.options._parseFont(labelOpts);\r\n\t\tvar fontSize = labelFont.size;\r\n\r\n\t\t// Reset hit boxes\r\n\t\tvar hitboxes = me.legendHitBoxes = [];\r\n\r\n\t\tvar minSize = me.minSize;\r\n\t\tvar isHorizontal = me.isHorizontal();\r\n\r\n\t\tif (isHorizontal) {\r\n\t\t\tminSize.width = me.maxWidth; // fill all the width\r\n\t\t\tminSize.height = display ? 10 : 0;\r\n\t\t} else {\r\n\t\t\tminSize.width = display ? 10 : 0;\r\n\t\t\tminSize.height = me.maxHeight; // fill all the height\r\n\t\t}\r\n\r\n\t\t// Increase sizes here\r\n\t\tif (!display) {\r\n\t\t\tme.width = minSize.width = me.height = minSize.height = 0;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tctx.font = labelFont.string;\r\n\r\n\t\tif (isHorizontal) {\r\n\t\t\t// Labels\r\n\r\n\t\t\t// Width of each line of legend boxes. Labels wrap onto multiple lines when there are too many to fit on one\r\n\t\t\tvar lineWidths = me.lineWidths = [0];\r\n\t\t\tvar totalHeight = 0;\r\n\r\n\t\t\tctx.textAlign = 'left';\r\n\t\t\tctx.textBaseline = 'middle';\r\n\r\n\t\t\thelpers$1.each(me.legendItems, function(legendItem, i) {\r\n\t\t\t\tvar boxWidth = getBoxWidth(labelOpts, fontSize);\r\n\t\t\t\tvar width = boxWidth + (fontSize / 2) + ctx.measureText(legendItem.text).width;\r\n\r\n\t\t\t\tif (i === 0 || lineWidths[lineWidths.length - 1] + width + 2 * labelOpts.padding > minSize.width) {\r\n\t\t\t\t\ttotalHeight += fontSize + labelOpts.padding;\r\n\t\t\t\t\tlineWidths[lineWidths.length - (i > 0 ? 0 : 1)] = 0;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Store the hitbox width and height here. Final position will be updated in `draw`\r\n\t\t\t\thitboxes[i] = {\r\n\t\t\t\t\tleft: 0,\r\n\t\t\t\t\ttop: 0,\r\n\t\t\t\t\twidth: width,\r\n\t\t\t\t\theight: fontSize\r\n\t\t\t\t};\r\n\r\n\t\t\t\tlineWidths[lineWidths.length - 1] += width + labelOpts.padding;\r\n\t\t\t});\r\n\r\n\t\t\tminSize.height += totalHeight;\r\n\r\n\t\t} else {\r\n\t\t\tvar vPadding = labelOpts.padding;\r\n\t\t\tvar columnWidths = me.columnWidths = [];\r\n\t\t\tvar columnHeights = me.columnHeights = [];\r\n\t\t\tvar totalWidth = labelOpts.padding;\r\n\t\t\tvar currentColWidth = 0;\r\n\t\t\tvar currentColHeight = 0;\r\n\r\n\t\t\thelpers$1.each(me.legendItems, function(legendItem, i) {\r\n\t\t\t\tvar boxWidth = getBoxWidth(labelOpts, fontSize);\r\n\t\t\t\tvar itemWidth = boxWidth + (fontSize / 2) + ctx.measureText(legendItem.text).width;\r\n\r\n\t\t\t\t// If too tall, go to new column\r\n\t\t\t\tif (i > 0 && currentColHeight + fontSize + 2 * vPadding > minSize.height) {\r\n\t\t\t\t\ttotalWidth += currentColWidth + labelOpts.padding;\r\n\t\t\t\t\tcolumnWidths.push(currentColWidth); // previous column width\r\n\t\t\t\t\tcolumnHeights.push(currentColHeight);\r\n\t\t\t\t\tcurrentColWidth = 0;\r\n\t\t\t\t\tcurrentColHeight = 0;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Get max width\r\n\t\t\t\tcurrentColWidth = Math.max(currentColWidth, itemWidth);\r\n\t\t\t\tcurrentColHeight += fontSize + vPadding;\r\n\r\n\t\t\t\t// Store the hitbox width and height here. Final position will be updated in `draw`\r\n\t\t\t\thitboxes[i] = {\r\n\t\t\t\t\tleft: 0,\r\n\t\t\t\t\ttop: 0,\r\n\t\t\t\t\twidth: itemWidth,\r\n\t\t\t\t\theight: fontSize\r\n\t\t\t\t};\r\n\t\t\t});\r\n\r\n\t\t\ttotalWidth += currentColWidth;\r\n\t\t\tcolumnWidths.push(currentColWidth);\r\n\t\t\tcolumnHeights.push(currentColHeight);\r\n\t\t\tminSize.width += totalWidth;\r\n\t\t}\r\n\r\n\t\tme.width = minSize.width;\r\n\t\tme.height = minSize.height;\r\n\t},\r\n\tafterFit: noop$1,\r\n\r\n\t// Shared Methods\r\n\tisHorizontal: function() {\r\n\t\treturn this.options.position === 'top' || this.options.position === 'bottom';\r\n\t},\r\n\r\n\t// Actually draw the legend on the canvas\r\n\tdraw: function() {\r\n\t\tvar me = this;\r\n\t\tvar opts = me.options;\r\n\t\tvar labelOpts = opts.labels;\r\n\t\tvar globalDefaults = core_defaults.global;\r\n\t\tvar defaultColor = globalDefaults.defaultColor;\r\n\t\tvar lineDefault = globalDefaults.elements.line;\r\n\t\tvar legendHeight = me.height;\r\n\t\tvar columnHeights = me.columnHeights;\r\n\t\tvar legendWidth = me.width;\r\n\t\tvar lineWidths = me.lineWidths;\r\n\r\n\t\tif (!opts.display) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar rtlHelper = getRtlHelper$1(opts.rtl, me.left, me.minSize.width);\r\n\t\tvar ctx = me.ctx;\r\n\t\tvar fontColor = valueOrDefault$e(labelOpts.fontColor, globalDefaults.defaultFontColor);\r\n\t\tvar labelFont = helpers$1.options._parseFont(labelOpts);\r\n\t\tvar fontSize = labelFont.size;\r\n\t\tvar cursor;\r\n\r\n\t\t// Canvas setup\r\n\t\tctx.textAlign = rtlHelper.textAlign('left');\r\n\t\tctx.textBaseline = 'middle';\r\n\t\tctx.lineWidth = 0.5;\r\n\t\tctx.strokeStyle = fontColor; // for strikethrough effect\r\n\t\tctx.fillStyle = fontColor; // render in correct colour\r\n\t\tctx.font = labelFont.string;\r\n\r\n\t\tvar boxWidth = getBoxWidth(labelOpts, fontSize);\r\n\t\tvar hitboxes = me.legendHitBoxes;\r\n\r\n\t\t// current position\r\n\t\tvar drawLegendBox = function(x, y, legendItem) {\r\n\t\t\tif (isNaN(boxWidth) || boxWidth <= 0) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\t// Set the ctx for the box\r\n\t\t\tctx.save();\r\n\r\n\t\t\tvar lineWidth = valueOrDefault$e(legendItem.lineWidth, lineDefault.borderWidth);\r\n\t\t\tctx.fillStyle = valueOrDefault$e(legendItem.fillStyle, defaultColor);\r\n\t\t\tctx.lineCap = valueOrDefault$e(legendItem.lineCap, lineDefault.borderCapStyle);\r\n\t\t\tctx.lineDashOffset = valueOrDefault$e(legendItem.lineDashOffset, lineDefault.borderDashOffset);\r\n\t\t\tctx.lineJoin = valueOrDefault$e(legendItem.lineJoin, lineDefault.borderJoinStyle);\r\n\t\t\tctx.lineWidth = lineWidth;\r\n\t\t\tctx.strokeStyle = valueOrDefault$e(legendItem.strokeStyle, defaultColor);\r\n\r\n\t\t\tif (ctx.setLineDash) {\r\n\t\t\t\t// IE 9 and 10 do not support line dash\r\n\t\t\t\tctx.setLineDash(valueOrDefault$e(legendItem.lineDash, lineDefault.borderDash));\r\n\t\t\t}\r\n\r\n\t\t\tif (labelOpts && labelOpts.usePointStyle) {\r\n\t\t\t\t// Recalculate x and y for drawPoint() because its expecting\r\n\t\t\t\t// x and y to be center of figure (instead of top left)\r\n\t\t\t\tvar radius = boxWidth * Math.SQRT2 / 2;\r\n\t\t\t\tvar centerX = rtlHelper.xPlus(x, boxWidth / 2);\r\n\t\t\t\tvar centerY = y + fontSize / 2;\r\n\r\n\t\t\t\t// Draw pointStyle as legend symbol\r\n\t\t\t\thelpers$1.canvas.drawPoint(ctx, legendItem.pointStyle, radius, centerX, centerY, legendItem.rotation);\r\n\t\t\t} else {\r\n\t\t\t\t// Draw box as legend symbol\r\n\t\t\t\tctx.fillRect(rtlHelper.leftForLtr(x, boxWidth), y, boxWidth, fontSize);\r\n\t\t\t\tif (lineWidth !== 0) {\r\n\t\t\t\t\tctx.strokeRect(rtlHelper.leftForLtr(x, boxWidth), y, boxWidth, fontSize);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tctx.restore();\r\n\t\t};\r\n\r\n\t\tvar fillText = function(x, y, legendItem, textWidth) {\r\n\t\t\tvar halfFontSize = fontSize / 2;\r\n\t\t\tvar xLeft = rtlHelper.xPlus(x, boxWidth + halfFontSize);\r\n\t\t\tvar yMiddle = y + halfFontSize;\r\n\r\n\t\t\tctx.fillText(legendItem.text, xLeft, yMiddle);\r\n\r\n\t\t\tif (legendItem.hidden) {\r\n\t\t\t\t// Strikethrough the text if hidden\r\n\t\t\t\tctx.beginPath();\r\n\t\t\t\tctx.lineWidth = 2;\r\n\t\t\t\tctx.moveTo(xLeft, yMiddle);\r\n\t\t\t\tctx.lineTo(rtlHelper.xPlus(xLeft, textWidth), yMiddle);\r\n\t\t\t\tctx.stroke();\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tvar alignmentOffset = function(dimension, blockSize) {\r\n\t\t\tswitch (opts.align) {\r\n\t\t\tcase 'start':\r\n\t\t\t\treturn labelOpts.padding;\r\n\t\t\tcase 'end':\r\n\t\t\t\treturn dimension - blockSize;\r\n\t\t\tdefault: // center\r\n\t\t\t\treturn (dimension - blockSize + labelOpts.padding) / 2;\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\t// Horizontal\r\n\t\tvar isHorizontal = me.isHorizontal();\r\n\t\tif (isHorizontal) {\r\n\t\t\tcursor = {\r\n\t\t\t\tx: me.left + alignmentOffset(legendWidth, lineWidths[0]),\r\n\t\t\t\ty: me.top + labelOpts.padding,\r\n\t\t\t\tline: 0\r\n\t\t\t};\r\n\t\t} else {\r\n\t\t\tcursor = {\r\n\t\t\t\tx: me.left + labelOpts.padding,\r\n\t\t\t\ty: me.top + alignmentOffset(legendHeight, columnHeights[0]),\r\n\t\t\t\tline: 0\r\n\t\t\t};\r\n\t\t}\r\n\r\n\t\thelpers$1.rtl.overrideTextDirection(me.ctx, opts.textDirection);\r\n\r\n\t\tvar itemHeight = fontSize + labelOpts.padding;\r\n\t\thelpers$1.each(me.legendItems, function(legendItem, i) {\r\n\t\t\tvar textWidth = ctx.measureText(legendItem.text).width;\r\n\t\t\tvar width = boxWidth + (fontSize / 2) + textWidth;\r\n\t\t\tvar x = cursor.x;\r\n\t\t\tvar y = cursor.y;\r\n\r\n\t\t\trtlHelper.setWidth(me.minSize.width);\r\n\r\n\t\t\t// Use (me.left + me.minSize.width) and (me.top + me.minSize.height)\r\n\t\t\t// instead of me.right and me.bottom because me.width and me.height\r\n\t\t\t// may have been changed since me.minSize was calculated\r\n\t\t\tif (isHorizontal) {\r\n\t\t\t\tif (i > 0 && x + width + labelOpts.padding > me.left + me.minSize.width) {\r\n\t\t\t\t\ty = cursor.y += itemHeight;\r\n\t\t\t\t\tcursor.line++;\r\n\t\t\t\t\tx = cursor.x = me.left + alignmentOffset(legendWidth, lineWidths[cursor.line]);\r\n\t\t\t\t}\r\n\t\t\t} else if (i > 0 && y + itemHeight > me.top + me.minSize.height) {\r\n\t\t\t\tx = cursor.x = x + me.columnWidths[cursor.line] + labelOpts.padding;\r\n\t\t\t\tcursor.line++;\r\n\t\t\t\ty = cursor.y = me.top + alignmentOffset(legendHeight, columnHeights[cursor.line]);\r\n\t\t\t}\r\n\r\n\t\t\tvar realX = rtlHelper.x(x);\r\n\r\n\t\t\tdrawLegendBox(realX, y, legendItem);\r\n\r\n\t\t\thitboxes[i].left = rtlHelper.leftForLtr(realX, hitboxes[i].width);\r\n\t\t\thitboxes[i].top = y;\r\n\r\n\t\t\t// Fill the actual label\r\n\t\t\tfillText(realX, y, legendItem, textWidth);\r\n\r\n\t\t\tif (isHorizontal) {\r\n\t\t\t\tcursor.x += width + labelOpts.padding;\r\n\t\t\t} else {\r\n\t\t\t\tcursor.y += itemHeight;\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\thelpers$1.rtl.restoreTextDirection(me.ctx, opts.textDirection);\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_getLegendItemAt: function(x, y) {\r\n\t\tvar me = this;\r\n\t\tvar i, hitBox, lh;\r\n\r\n\t\tif (x >= me.left && x <= me.right && y >= me.top && y <= me.bottom) {\r\n\t\t\t// See if we are touching one of the dataset boxes\r\n\t\t\tlh = me.legendHitBoxes;\r\n\t\t\tfor (i = 0; i < lh.length; ++i) {\r\n\t\t\t\thitBox = lh[i];\r\n\r\n\t\t\t\tif (x >= hitBox.left && x <= hitBox.left + hitBox.width && y >= hitBox.top && y <= hitBox.top + hitBox.height) {\r\n\t\t\t\t\t// Touching an element\r\n\t\t\t\t\treturn me.legendItems[i];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t},\r\n\r\n\t/**\r\n\t * Handle an event\r\n\t * @private\r\n\t * @param {IEvent} event - The event to handle\r\n\t */\r\n\thandleEvent: function(e) {\r\n\t\tvar me = this;\r\n\t\tvar opts = me.options;\r\n\t\tvar type = e.type === 'mouseup' ? 'click' : e.type;\r\n\t\tvar hoveredItem;\r\n\r\n\t\tif (type === 'mousemove') {\r\n\t\t\tif (!opts.onHover && !opts.onLeave) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t} else if (type === 'click') {\r\n\t\t\tif (!opts.onClick) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// Chart event already has relative position in it\r\n\t\thoveredItem = me._getLegendItemAt(e.x, e.y);\r\n\r\n\t\tif (type === 'click') {\r\n\t\t\tif (hoveredItem && opts.onClick) {\r\n\t\t\t\t// use e.native for backwards compatibility\r\n\t\t\t\topts.onClick.call(me, e.native, hoveredItem);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif (opts.onLeave && hoveredItem !== me._hoveredItem) {\r\n\t\t\t\tif (me._hoveredItem) {\r\n\t\t\t\t\topts.onLeave.call(me, e.native, me._hoveredItem);\r\n\t\t\t\t}\r\n\t\t\t\tme._hoveredItem = hoveredItem;\r\n\t\t\t}\r\n\r\n\t\t\tif (opts.onHover && hoveredItem) {\r\n\t\t\t\t// use e.native for backwards compatibility\r\n\t\t\t\topts.onHover.call(me, e.native, hoveredItem);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\n\r\nfunction createNewLegendAndAttach(chart, legendOpts) {\r\n\tvar legend = new Legend({\r\n\t\tctx: chart.ctx,\r\n\t\toptions: legendOpts,\r\n\t\tchart: chart\r\n\t});\r\n\r\n\tcore_layouts.configure(chart, legend, legendOpts);\r\n\tcore_layouts.addBox(chart, legend);\r\n\tchart.legend = legend;\r\n}\r\n\r\nvar plugin_legend = {\r\n\tid: 'legend',\r\n\r\n\t/**\r\n\t * Backward compatibility: since 2.1.5, the legend is registered as a plugin, making\r\n\t * Chart.Legend obsolete. To avoid a breaking change, we export the Legend as part of\r\n\t * the plugin, which one will be re-exposed in the chart.js file.\r\n\t * https://github.com/chartjs/Chart.js/pull/2640\r\n\t * @private\r\n\t */\r\n\t_element: Legend,\r\n\r\n\tbeforeInit: function(chart) {\r\n\t\tvar legendOpts = chart.options.legend;\r\n\r\n\t\tif (legendOpts) {\r\n\t\t\tcreateNewLegendAndAttach(chart, legendOpts);\r\n\t\t}\r\n\t},\r\n\r\n\tbeforeUpdate: function(chart) {\r\n\t\tvar legendOpts = chart.options.legend;\r\n\t\tvar legend = chart.legend;\r\n\r\n\t\tif (legendOpts) {\r\n\t\t\thelpers$1.mergeIf(legendOpts, core_defaults.global.legend);\r\n\r\n\t\t\tif (legend) {\r\n\t\t\t\tcore_layouts.configure(chart, legend, legendOpts);\r\n\t\t\t\tlegend.options = legendOpts;\r\n\t\t\t} else {\r\n\t\t\t\tcreateNewLegendAndAttach(chart, legendOpts);\r\n\t\t\t}\r\n\t\t} else if (legend) {\r\n\t\t\tcore_layouts.removeBox(chart, legend);\r\n\t\t\tdelete chart.legend;\r\n\t\t}\r\n\t},\r\n\r\n\tafterEvent: function(chart, e) {\r\n\t\tvar legend = chart.legend;\r\n\t\tif (legend) {\r\n\t\t\tlegend.handleEvent(e);\r\n\t\t}\r\n\t}\r\n};\n\nvar noop$2 = helpers$1.noop;\r\n\r\ncore_defaults._set('global', {\r\n\ttitle: {\r\n\t\tdisplay: false,\r\n\t\tfontStyle: 'bold',\r\n\t\tfullWidth: true,\r\n\t\tpadding: 10,\r\n\t\tposition: 'top',\r\n\t\ttext: '',\r\n\t\tweight: 2000         // by default greater than legend (1000) to be above\r\n\t}\r\n});\r\n\r\n/**\r\n * IMPORTANT: this class is exposed publicly as Chart.Legend, backward compatibility required!\r\n */\r\nvar Title = core_element.extend({\r\n\tinitialize: function(config) {\r\n\t\tvar me = this;\r\n\t\thelpers$1.extend(me, config);\r\n\r\n\t\t// Contains hit boxes for each dataset (in dataset order)\r\n\t\tme.legendHitBoxes = [];\r\n\t},\r\n\r\n\t// These methods are ordered by lifecycle. Utilities then follow.\r\n\r\n\tbeforeUpdate: noop$2,\r\n\tupdate: function(maxWidth, maxHeight, margins) {\r\n\t\tvar me = this;\r\n\r\n\t\t// Update Lifecycle - Probably don't want to ever extend or overwrite this function ;)\r\n\t\tme.beforeUpdate();\r\n\r\n\t\t// Absorb the master measurements\r\n\t\tme.maxWidth = maxWidth;\r\n\t\tme.maxHeight = maxHeight;\r\n\t\tme.margins = margins;\r\n\r\n\t\t// Dimensions\r\n\t\tme.beforeSetDimensions();\r\n\t\tme.setDimensions();\r\n\t\tme.afterSetDimensions();\r\n\t\t// Labels\r\n\t\tme.beforeBuildLabels();\r\n\t\tme.buildLabels();\r\n\t\tme.afterBuildLabels();\r\n\r\n\t\t// Fit\r\n\t\tme.beforeFit();\r\n\t\tme.fit();\r\n\t\tme.afterFit();\r\n\t\t//\r\n\t\tme.afterUpdate();\r\n\r\n\t\treturn me.minSize;\r\n\r\n\t},\r\n\tafterUpdate: noop$2,\r\n\r\n\t//\r\n\r\n\tbeforeSetDimensions: noop$2,\r\n\tsetDimensions: function() {\r\n\t\tvar me = this;\r\n\t\t// Set the unconstrained dimension before label rotation\r\n\t\tif (me.isHorizontal()) {\r\n\t\t\t// Reset position before calculating rotation\r\n\t\t\tme.width = me.maxWidth;\r\n\t\t\tme.left = 0;\r\n\t\t\tme.right = me.width;\r\n\t\t} else {\r\n\t\t\tme.height = me.maxHeight;\r\n\r\n\t\t\t// Reset position before calculating rotation\r\n\t\t\tme.top = 0;\r\n\t\t\tme.bottom = me.height;\r\n\t\t}\r\n\r\n\t\t// Reset padding\r\n\t\tme.paddingLeft = 0;\r\n\t\tme.paddingTop = 0;\r\n\t\tme.paddingRight = 0;\r\n\t\tme.paddingBottom = 0;\r\n\r\n\t\t// Reset minSize\r\n\t\tme.minSize = {\r\n\t\t\twidth: 0,\r\n\t\t\theight: 0\r\n\t\t};\r\n\t},\r\n\tafterSetDimensions: noop$2,\r\n\r\n\t//\r\n\r\n\tbeforeBuildLabels: noop$2,\r\n\tbuildLabels: noop$2,\r\n\tafterBuildLabels: noop$2,\r\n\r\n\t//\r\n\r\n\tbeforeFit: noop$2,\r\n\tfit: function() {\r\n\t\tvar me = this;\r\n\t\tvar opts = me.options;\r\n\t\tvar minSize = me.minSize = {};\r\n\t\tvar isHorizontal = me.isHorizontal();\r\n\t\tvar lineCount, textSize;\r\n\r\n\t\tif (!opts.display) {\r\n\t\t\tme.width = minSize.width = me.height = minSize.height = 0;\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tlineCount = helpers$1.isArray(opts.text) ? opts.text.length : 1;\r\n\t\ttextSize = lineCount * helpers$1.options._parseFont(opts).lineHeight + opts.padding * 2;\r\n\r\n\t\tme.width = minSize.width = isHorizontal ? me.maxWidth : textSize;\r\n\t\tme.height = minSize.height = isHorizontal ? textSize : me.maxHeight;\r\n\t},\r\n\tafterFit: noop$2,\r\n\r\n\t// Shared Methods\r\n\tisHorizontal: function() {\r\n\t\tvar pos = this.options.position;\r\n\t\treturn pos === 'top' || pos === 'bottom';\r\n\t},\r\n\r\n\t// Actually draw the title block on the canvas\r\n\tdraw: function() {\r\n\t\tvar me = this;\r\n\t\tvar ctx = me.ctx;\r\n\t\tvar opts = me.options;\r\n\r\n\t\tif (!opts.display) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar fontOpts = helpers$1.options._parseFont(opts);\r\n\t\tvar lineHeight = fontOpts.lineHeight;\r\n\t\tvar offset = lineHeight / 2 + opts.padding;\r\n\t\tvar rotation = 0;\r\n\t\tvar top = me.top;\r\n\t\tvar left = me.left;\r\n\t\tvar bottom = me.bottom;\r\n\t\tvar right = me.right;\r\n\t\tvar maxWidth, titleX, titleY;\r\n\r\n\t\tctx.fillStyle = helpers$1.valueOrDefault(opts.fontColor, core_defaults.global.defaultFontColor); // render in correct colour\r\n\t\tctx.font = fontOpts.string;\r\n\r\n\t\t// Horizontal\r\n\t\tif (me.isHorizontal()) {\r\n\t\t\ttitleX = left + ((right - left) / 2); // midpoint of the width\r\n\t\t\ttitleY = top + offset;\r\n\t\t\tmaxWidth = right - left;\r\n\t\t} else {\r\n\t\t\ttitleX = opts.position === 'left' ? left + offset : right - offset;\r\n\t\t\ttitleY = top + ((bottom - top) / 2);\r\n\t\t\tmaxWidth = bottom - top;\r\n\t\t\trotation = Math.PI * (opts.position === 'left' ? -0.5 : 0.5);\r\n\t\t}\r\n\r\n\t\tctx.save();\r\n\t\tctx.translate(titleX, titleY);\r\n\t\tctx.rotate(rotation);\r\n\t\tctx.textAlign = 'center';\r\n\t\tctx.textBaseline = 'middle';\r\n\r\n\t\tvar text = opts.text;\r\n\t\tif (helpers$1.isArray(text)) {\r\n\t\t\tvar y = 0;\r\n\t\t\tfor (var i = 0; i < text.length; ++i) {\r\n\t\t\t\tctx.fillText(text[i], 0, y, maxWidth);\r\n\t\t\t\ty += lineHeight;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tctx.fillText(text, 0, 0, maxWidth);\r\n\t\t}\r\n\r\n\t\tctx.restore();\r\n\t}\r\n});\r\n\r\nfunction createNewTitleBlockAndAttach(chart, titleOpts) {\r\n\tvar title = new Title({\r\n\t\tctx: chart.ctx,\r\n\t\toptions: titleOpts,\r\n\t\tchart: chart\r\n\t});\r\n\r\n\tcore_layouts.configure(chart, title, titleOpts);\r\n\tcore_layouts.addBox(chart, title);\r\n\tchart.titleBlock = title;\r\n}\r\n\r\nvar plugin_title = {\r\n\tid: 'title',\r\n\r\n\t/**\r\n\t * Backward compatibility: since 2.1.5, the title is registered as a plugin, making\r\n\t * Chart.Title obsolete. To avoid a breaking change, we export the Title as part of\r\n\t * the plugin, which one will be re-exposed in the chart.js file.\r\n\t * https://github.com/chartjs/Chart.js/pull/2640\r\n\t * @private\r\n\t */\r\n\t_element: Title,\r\n\r\n\tbeforeInit: function(chart) {\r\n\t\tvar titleOpts = chart.options.title;\r\n\r\n\t\tif (titleOpts) {\r\n\t\t\tcreateNewTitleBlockAndAttach(chart, titleOpts);\r\n\t\t}\r\n\t},\r\n\r\n\tbeforeUpdate: function(chart) {\r\n\t\tvar titleOpts = chart.options.title;\r\n\t\tvar titleBlock = chart.titleBlock;\r\n\r\n\t\tif (titleOpts) {\r\n\t\t\thelpers$1.mergeIf(titleOpts, core_defaults.global.title);\r\n\r\n\t\t\tif (titleBlock) {\r\n\t\t\t\tcore_layouts.configure(chart, titleBlock, titleOpts);\r\n\t\t\t\ttitleBlock.options = titleOpts;\r\n\t\t\t} else {\r\n\t\t\t\tcreateNewTitleBlockAndAttach(chart, titleOpts);\r\n\t\t\t}\r\n\t\t} else if (titleBlock) {\r\n\t\t\tcore_layouts.removeBox(chart, titleBlock);\r\n\t\t\tdelete chart.titleBlock;\r\n\t\t}\r\n\t}\r\n};\n\nvar plugins = {};\r\nvar filler = plugin_filler;\r\nvar legend = plugin_legend;\r\nvar title = plugin_title;\nplugins.filler = filler;\nplugins.legend = legend;\nplugins.title = title;\n\n/**\r\n * @namespace Chart\r\n */\r\n\r\n\r\ncore_controller.helpers = helpers$1;\r\n\r\n// @todo dispatch these helpers into appropriated helpers/helpers.* file and write unit tests!\r\ncore_helpers();\r\n\r\ncore_controller._adapters = core_adapters;\r\ncore_controller.Animation = core_animation;\r\ncore_controller.animationService = core_animations;\r\ncore_controller.controllers = controllers;\r\ncore_controller.DatasetController = core_datasetController;\r\ncore_controller.defaults = core_defaults;\r\ncore_controller.Element = core_element;\r\ncore_controller.elements = elements;\r\ncore_controller.Interaction = core_interaction;\r\ncore_controller.layouts = core_layouts;\r\ncore_controller.platform = platform;\r\ncore_controller.plugins = core_plugins;\r\ncore_controller.Scale = core_scale;\r\ncore_controller.scaleService = core_scaleService;\r\ncore_controller.Ticks = core_ticks;\r\ncore_controller.Tooltip = core_tooltip;\r\n\r\n// Register built-in scales\r\n\r\ncore_controller.helpers.each(scales, function(scale, type) {\r\n\tcore_controller.scaleService.registerScaleType(type, scale, scale._defaults);\r\n});\r\n\r\n// Load to register built-in adapters (as side effects)\r\n\r\n\r\n// Loading built-in plugins\r\n\r\nfor (var k in plugins) {\r\n\tif (plugins.hasOwnProperty(k)) {\r\n\t\tcore_controller.plugins.register(plugins[k]);\r\n\t}\r\n}\r\n\r\ncore_controller.platform.initialize();\r\n\r\nvar src = core_controller;\r\nif (typeof window !== 'undefined') {\r\n\twindow.Chart = core_controller;\r\n}\r\n\r\n// DEPRECATIONS\r\n\r\n/**\r\n * Provided for backward compatibility, not available anymore\r\n * @namespace Chart.Chart\r\n * @deprecated since version 2.8.0\r\n * @todo remove at version 3\r\n * @private\r\n */\r\ncore_controller.Chart = core_controller;\r\n\r\n/**\r\n * Provided for backward compatibility, not available anymore\r\n * @namespace Chart.Legend\r\n * @deprecated since version 2.1.5\r\n * @todo remove at version 3\r\n * @private\r\n */\r\ncore_controller.Legend = plugins.legend._element;\r\n\r\n/**\r\n * Provided for backward compatibility, not available anymore\r\n * @namespace Chart.Title\r\n * @deprecated since version 2.1.5\r\n * @todo remove at version 3\r\n * @private\r\n */\r\ncore_controller.Title = plugins.title._element;\r\n\r\n/**\r\n * Provided for backward compatibility, use Chart.plugins instead\r\n * @namespace Chart.pluginService\r\n * @deprecated since version 2.1.5\r\n * @todo remove at version 3\r\n * @private\r\n */\r\ncore_controller.pluginService = core_controller.plugins;\r\n\r\n/**\r\n * Provided for backward compatibility, inheriting from Chart.PlugingBase has no\r\n * effect, instead simply create/register plugins via plain JavaScript objects.\r\n * @interface Chart.PluginBase\r\n * @deprecated since version 2.5.0\r\n * @todo remove at version 3\r\n * @private\r\n */\r\ncore_controller.PluginBase = core_controller.Element.extend({});\r\n\r\n/**\r\n * Provided for backward compatibility, use Chart.helpers.canvas instead.\r\n * @namespace Chart.canvasHelpers\r\n * @deprecated since version 2.6.0\r\n * @todo remove at version 3\r\n * @private\r\n */\r\ncore_controller.canvasHelpers = core_controller.helpers.canvas;\r\n\r\n/**\r\n * Provided for backward compatibility, use Chart.layouts instead.\r\n * @namespace Chart.layoutService\r\n * @deprecated since version 2.7.3\r\n * @todo remove at version 3\r\n * @private\r\n */\r\ncore_controller.layoutService = core_controller.layouts;\r\n\r\n/**\r\n * Provided for backward compatibility, not available anymore.\r\n * @namespace Chart.LinearScaleBase\r\n * @deprecated since version 2.8\r\n * @todo remove at version 3\r\n * @private\r\n */\r\ncore_controller.LinearScaleBase = scale_linearbase;\r\n\r\n/**\r\n * Provided for backward compatibility, instead we should create a new Chart\r\n * by setting the type in the config (`new Chart(id, {type: '{chart-type}'}`).\r\n * @deprecated since version 2.8.0\r\n * @todo remove at version 3\r\n */\r\ncore_controller.helpers.each(\r\n\t[\r\n\t\t'Bar',\r\n\t\t'Bubble',\r\n\t\t'Doughnut',\r\n\t\t'Line',\r\n\t\t'PolarArea',\r\n\t\t'Radar',\r\n\t\t'Scatter'\r\n\t],\r\n\tfunction(klass) {\r\n\t\tcore_controller[klass] = function(ctx, cfg) {\r\n\t\t\treturn new core_controller(ctx, core_controller.helpers.merge(cfg || {}, {\r\n\t\t\t\ttype: klass.charAt(0).toLowerCase() + klass.slice(1)\r\n\t\t\t}));\r\n\t\t};\r\n\t}\r\n);\n\nreturn src;\n\n})));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/chart.js/dist/Chart.js\n// module id = 820\n// module chunks = 0","import addedDiff from './added.js';\nimport deletedDiff from './deleted.js';\nimport updatedDiff from './updated.js';\n\nconst detailedDiff = (lhs, rhs) => ({\n  added: addedDiff(lhs, rhs),\n  deleted: deletedDiff(lhs, rhs),\n  updated: updatedDiff(lhs, rhs),\n});\n\nexport default detailedDiff;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/deep-object-diff/mjs/detailed.js\n// module id = 963\n// module chunks = 0","import { isDate, isEmptyObject, isObject, hasOwnProperty, makeObjectWithoutPrototype } from './utils.js';\n\nconst diff = (lhs, rhs) => {\n  if (lhs === rhs) return {}; // equal return no diff\n\n  if (!isObject(lhs) || !isObject(rhs)) return rhs; // return updated rhs\n\n  const deletedValues = Object.keys(lhs).reduce((acc, key) => {\n    if (!hasOwnProperty(rhs, key)) {\n      acc[key] = undefined;\n      \n    }\n\n    return acc;\n  }, makeObjectWithoutPrototype());\n\n  if (isDate(lhs) || isDate(rhs)) {\n    if (lhs.valueOf() == rhs.valueOf()) return {};\n    return rhs;\n  }\n\n  return Object.keys(rhs).reduce((acc, key) => {\n    if (!hasOwnProperty(lhs, key)){\n      acc[key] = rhs[key]; // return added r key\n      return acc;\n    } \n\n    const difference = diff(lhs[key], rhs[key]);\n\n    // If the difference is empty, and the lhs is an empty object or the rhs is not an empty object\n    if (isEmptyObject(difference) && !isDate(difference) && (isEmptyObject(lhs[key]) || !isEmptyObject(rhs[key])))\n      return acc; // return no diff\n\n    acc[key] = difference // return updated key\n    return acc; // return updated key\n  }, deletedValues);\n};\n\nexport default diff;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/deep-object-diff/mjs/diff.js\n// module id = 964\n// module chunks = 0","import diff from './diff.js';\nimport addedDiff from './added.js';\nimport deletedDiff from './deleted.js';\nimport updatedDiff from './updated.js';\nimport detailedDiff from './detailed.js';\n\nexport {\n  addedDiff,\n  diff,\n  deletedDiff,\n  updatedDiff,\n  detailedDiff\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/deep-object-diff/mjs/index.js\n// module id = 965\n// module chunks = 0","/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */\nexports.read = function (buffer, offset, isLE, mLen, nBytes) {\n  var e, m\n  var eLen = (nBytes * 8) - mLen - 1\n  var eMax = (1 << eLen) - 1\n  var eBias = eMax >> 1\n  var nBits = -7\n  var i = isLE ? (nBytes - 1) : 0\n  var d = isLE ? -1 : 1\n  var s = buffer[offset + i]\n\n  i += d\n\n  e = s & ((1 << (-nBits)) - 1)\n  s >>= (-nBits)\n  nBits += eLen\n  for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}\n\n  m = e & ((1 << (-nBits)) - 1)\n  e >>= (-nBits)\n  nBits += mLen\n  for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}\n\n  if (e === 0) {\n    e = 1 - eBias\n  } else if (e === eMax) {\n    return m ? NaN : ((s ? -1 : 1) * Infinity)\n  } else {\n    m = m + Math.pow(2, mLen)\n    e = e - eBias\n  }\n  return (s ? -1 : 1) * m * Math.pow(2, e - mLen)\n}\n\nexports.write = function (buffer, value, offset, isLE, mLen, nBytes) {\n  var e, m, c\n  var eLen = (nBytes * 8) - mLen - 1\n  var eMax = (1 << eLen) - 1\n  var eBias = eMax >> 1\n  var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)\n  var i = isLE ? 0 : (nBytes - 1)\n  var d = isLE ? 1 : -1\n  var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0\n\n  value = Math.abs(value)\n\n  if (isNaN(value) || value === Infinity) {\n    m = isNaN(value) ? 1 : 0\n    e = eMax\n  } else {\n    e = Math.floor(Math.log(value) / Math.LN2)\n    if (value * (c = Math.pow(2, -e)) < 1) {\n      e--\n      c *= 2\n    }\n    if (e + eBias >= 1) {\n      value += rt / c\n    } else {\n      value += rt * Math.pow(2, 1 - eBias)\n    }\n    if (value * c >= 2) {\n      e++\n      c /= 2\n    }\n\n    if (e + eBias >= eMax) {\n      m = 0\n      e = eMax\n    } else if (e + eBias >= 1) {\n      m = ((value * c) - 1) * Math.pow(2, mLen)\n      e = e + eBias\n    } else {\n      m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)\n      e = 0\n    }\n  }\n\n  for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}\n\n  e = (e << mLen) | m\n  eLen += mLen\n  for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}\n\n  buffer[offset + i - d] |= s * 128\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ieee754/index.js\n// module id = 966\n// module chunks = 0","module.exports = Array.isArray || function (arr) {\n  return Object.prototype.toString.call(arr) == '[object Array]';\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/isarray/index.js\n// module id = 967\n// module chunks = 0","var map = {\n\t\"./af\": 478,\n\t\"./af.js\": 478,\n\t\"./ar\": 485,\n\t\"./ar-dz\": 479,\n\t\"./ar-dz.js\": 479,\n\t\"./ar-kw\": 480,\n\t\"./ar-kw.js\": 480,\n\t\"./ar-ly\": 481,\n\t\"./ar-ly.js\": 481,\n\t\"./ar-ma\": 482,\n\t\"./ar-ma.js\": 482,\n\t\"./ar-sa\": 483,\n\t\"./ar-sa.js\": 483,\n\t\"./ar-tn\": 484,\n\t\"./ar-tn.js\": 484,\n\t\"./ar.js\": 485,\n\t\"./az\": 486,\n\t\"./az.js\": 486,\n\t\"./be\": 487,\n\t\"./be.js\": 487,\n\t\"./bg\": 488,\n\t\"./bg.js\": 488,\n\t\"./bm\": 489,\n\t\"./bm.js\": 489,\n\t\"./bn\": 491,\n\t\"./bn-bd\": 490,\n\t\"./bn-bd.js\": 490,\n\t\"./bn.js\": 491,\n\t\"./bo\": 492,\n\t\"./bo.js\": 492,\n\t\"./br\": 493,\n\t\"./br.js\": 493,\n\t\"./bs\": 494,\n\t\"./bs.js\": 494,\n\t\"./ca\": 495,\n\t\"./ca.js\": 495,\n\t\"./cs\": 496,\n\t\"./cs.js\": 496,\n\t\"./cv\": 497,\n\t\"./cv.js\": 497,\n\t\"./cy\": 498,\n\t\"./cy.js\": 498,\n\t\"./da\": 499,\n\t\"./da.js\": 499,\n\t\"./de\": 502,\n\t\"./de-at\": 500,\n\t\"./de-at.js\": 500,\n\t\"./de-ch\": 501,\n\t\"./de-ch.js\": 501,\n\t\"./de.js\": 502,\n\t\"./dv\": 503,\n\t\"./dv.js\": 503,\n\t\"./el\": 504,\n\t\"./el.js\": 504,\n\t\"./en-au\": 505,\n\t\"./en-au.js\": 505,\n\t\"./en-ca\": 506,\n\t\"./en-ca.js\": 506,\n\t\"./en-gb\": 507,\n\t\"./en-gb.js\": 507,\n\t\"./en-ie\": 508,\n\t\"./en-ie.js\": 508,\n\t\"./en-il\": 509,\n\t\"./en-il.js\": 509,\n\t\"./en-in\": 510,\n\t\"./en-in.js\": 510,\n\t\"./en-nz\": 511,\n\t\"./en-nz.js\": 511,\n\t\"./en-sg\": 512,\n\t\"./en-sg.js\": 512,\n\t\"./eo\": 513,\n\t\"./eo.js\": 513,\n\t\"./es\": 517,\n\t\"./es-do\": 514,\n\t\"./es-do.js\": 514,\n\t\"./es-mx\": 515,\n\t\"./es-mx.js\": 515,\n\t\"./es-us\": 516,\n\t\"./es-us.js\": 516,\n\t\"./es.js\": 517,\n\t\"./et\": 518,\n\t\"./et.js\": 518,\n\t\"./eu\": 519,\n\t\"./eu.js\": 519,\n\t\"./fa\": 520,\n\t\"./fa.js\": 520,\n\t\"./fi\": 521,\n\t\"./fi.js\": 521,\n\t\"./fil\": 522,\n\t\"./fil.js\": 522,\n\t\"./fo\": 523,\n\t\"./fo.js\": 523,\n\t\"./fr\": 526,\n\t\"./fr-ca\": 524,\n\t\"./fr-ca.js\": 524,\n\t\"./fr-ch\": 525,\n\t\"./fr-ch.js\": 525,\n\t\"./fr.js\": 526,\n\t\"./fy\": 527,\n\t\"./fy.js\": 527,\n\t\"./ga\": 528,\n\t\"./ga.js\": 528,\n\t\"./gd\": 529,\n\t\"./gd.js\": 529,\n\t\"./gl\": 530,\n\t\"./gl.js\": 530,\n\t\"./gom-deva\": 531,\n\t\"./gom-deva.js\": 531,\n\t\"./gom-latn\": 532,\n\t\"./gom-latn.js\": 532,\n\t\"./gu\": 533,\n\t\"./gu.js\": 533,\n\t\"./he\": 534,\n\t\"./he.js\": 534,\n\t\"./hi\": 535,\n\t\"./hi.js\": 535,\n\t\"./hr\": 536,\n\t\"./hr.js\": 536,\n\t\"./hu\": 537,\n\t\"./hu.js\": 537,\n\t\"./hy-am\": 538,\n\t\"./hy-am.js\": 538,\n\t\"./id\": 539,\n\t\"./id.js\": 539,\n\t\"./is\": 540,\n\t\"./is.js\": 540,\n\t\"./it\": 542,\n\t\"./it-ch\": 541,\n\t\"./it-ch.js\": 541,\n\t\"./it.js\": 542,\n\t\"./ja\": 543,\n\t\"./ja.js\": 543,\n\t\"./jv\": 544,\n\t\"./jv.js\": 544,\n\t\"./ka\": 545,\n\t\"./ka.js\": 545,\n\t\"./kk\": 546,\n\t\"./kk.js\": 546,\n\t\"./km\": 547,\n\t\"./km.js\": 547,\n\t\"./kn\": 548,\n\t\"./kn.js\": 548,\n\t\"./ko\": 549,\n\t\"./ko.js\": 549,\n\t\"./ku\": 550,\n\t\"./ku.js\": 550,\n\t\"./ky\": 551,\n\t\"./ky.js\": 551,\n\t\"./lb\": 552,\n\t\"./lb.js\": 552,\n\t\"./lo\": 553,\n\t\"./lo.js\": 553,\n\t\"./lt\": 554,\n\t\"./lt.js\": 554,\n\t\"./lv\": 555,\n\t\"./lv.js\": 555,\n\t\"./me\": 556,\n\t\"./me.js\": 556,\n\t\"./mi\": 557,\n\t\"./mi.js\": 557,\n\t\"./mk\": 558,\n\t\"./mk.js\": 558,\n\t\"./ml\": 559,\n\t\"./ml.js\": 559,\n\t\"./mn\": 560,\n\t\"./mn.js\": 560,\n\t\"./mr\": 561,\n\t\"./mr.js\": 561,\n\t\"./ms\": 563,\n\t\"./ms-my\": 562,\n\t\"./ms-my.js\": 562,\n\t\"./ms.js\": 563,\n\t\"./mt\": 564,\n\t\"./mt.js\": 564,\n\t\"./my\": 565,\n\t\"./my.js\": 565,\n\t\"./nb\": 566,\n\t\"./nb.js\": 566,\n\t\"./ne\": 567,\n\t\"./ne.js\": 567,\n\t\"./nl\": 569,\n\t\"./nl-be\": 568,\n\t\"./nl-be.js\": 568,\n\t\"./nl.js\": 569,\n\t\"./nn\": 570,\n\t\"./nn.js\": 570,\n\t\"./oc-lnc\": 571,\n\t\"./oc-lnc.js\": 571,\n\t\"./pa-in\": 572,\n\t\"./pa-in.js\": 572,\n\t\"./pl\": 573,\n\t\"./pl.js\": 573,\n\t\"./pt\": 575,\n\t\"./pt-br\": 574,\n\t\"./pt-br.js\": 574,\n\t\"./pt.js\": 575,\n\t\"./ro\": 576,\n\t\"./ro.js\": 576,\n\t\"./ru\": 577,\n\t\"./ru.js\": 577,\n\t\"./sd\": 578,\n\t\"./sd.js\": 578,\n\t\"./se\": 579,\n\t\"./se.js\": 579,\n\t\"./si\": 580,\n\t\"./si.js\": 580,\n\t\"./sk\": 581,\n\t\"./sk.js\": 581,\n\t\"./sl\": 582,\n\t\"./sl.js\": 582,\n\t\"./sq\": 583,\n\t\"./sq.js\": 583,\n\t\"./sr\": 585,\n\t\"./sr-cyrl\": 584,\n\t\"./sr-cyrl.js\": 584,\n\t\"./sr.js\": 585,\n\t\"./ss\": 586,\n\t\"./ss.js\": 586,\n\t\"./sv\": 587,\n\t\"./sv.js\": 587,\n\t\"./sw\": 588,\n\t\"./sw.js\": 588,\n\t\"./ta\": 589,\n\t\"./ta.js\": 589,\n\t\"./te\": 590,\n\t\"./te.js\": 590,\n\t\"./tet\": 591,\n\t\"./tet.js\": 591,\n\t\"./tg\": 592,\n\t\"./tg.js\": 592,\n\t\"./th\": 593,\n\t\"./th.js\": 593,\n\t\"./tk\": 594,\n\t\"./tk.js\": 594,\n\t\"./tl-ph\": 595,\n\t\"./tl-ph.js\": 595,\n\t\"./tlh\": 596,\n\t\"./tlh.js\": 596,\n\t\"./tr\": 597,\n\t\"./tr.js\": 597,\n\t\"./tzl\": 598,\n\t\"./tzl.js\": 598,\n\t\"./tzm\": 600,\n\t\"./tzm-latn\": 599,\n\t\"./tzm-latn.js\": 599,\n\t\"./tzm.js\": 600,\n\t\"./ug-cn\": 601,\n\t\"./ug-cn.js\": 601,\n\t\"./uk\": 602,\n\t\"./uk.js\": 602,\n\t\"./ur\": 603,\n\t\"./ur.js\": 603,\n\t\"./uz\": 605,\n\t\"./uz-latn\": 604,\n\t\"./uz-latn.js\": 604,\n\t\"./uz.js\": 605,\n\t\"./vi\": 606,\n\t\"./vi.js\": 606,\n\t\"./x-pseudo\": 607,\n\t\"./x-pseudo.js\": 607,\n\t\"./yo\": 608,\n\t\"./yo.js\": 608,\n\t\"./zh-cn\": 609,\n\t\"./zh-cn.js\": 609,\n\t\"./zh-hk\": 610,\n\t\"./zh-hk.js\": 610,\n\t\"./zh-mo\": 611,\n\t\"./zh-mo.js\": 611,\n\t\"./zh-tw\": 612,\n\t\"./zh-tw.js\": 612\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 968;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale ^\\.\\/.*$\n// module id = 968\n// module chunks = 0","\"use strict\";\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nvar core_1 = require('@angular/core');\nvar modal_1 = require('../components/modal');\nvar AutofocusDirective = (function () {\n    function AutofocusDirective(el, modal) {\n        var _this = this;\n        this.el = el;\n        this.modal = modal;\n        if (modal != null) {\n            this.modal.onOpen.subscribe(function () {\n                _this.el.nativeElement.focus();\n            });\n        }\n    }\n    AutofocusDirective = __decorate([\n        core_1.Directive({\n            selector: '[autofocus]'\n        }), \n        __metadata('design:paramtypes', [core_1.ElementRef, modal_1.ModalComponent])\n    ], AutofocusDirective);\n    return AutofocusDirective;\n}());\nexports.AutofocusDirective = AutofocusDirective;\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXV0b2ZvY3VzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL25nMi1iczQtbW9kYWwvZGlyZWN0aXZlcy9hdXRvZm9jdXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFBLHFCQUFzQyxlQUFlLENBQUMsQ0FBQTtBQUN0RCxzQkFBK0IscUJBQXFCLENBQUMsQ0FBQTtBQUtyRDtJQUNJLDRCQUFvQixFQUFjLEVBQVUsS0FBcUI7UUFEckUsaUJBUUM7UUFQdUIsT0FBRSxHQUFGLEVBQUUsQ0FBWTtRQUFVLFVBQUssR0FBTCxLQUFLLENBQWdCO1FBQzdELEVBQUUsQ0FBQyxDQUFDLEtBQUssSUFBSSxJQUFJLENBQUMsQ0FBQyxDQUFDO1lBQ2hCLElBQUksQ0FBQyxLQUFLLENBQUMsTUFBTSxDQUFDLFNBQVMsQ0FBQztnQkFDeEIsS0FBSSxDQUFDLEVBQUUsQ0FBQyxhQUFhLENBQUMsS0FBSyxFQUFFLENBQUM7WUFDbEMsQ0FBQyxDQUFDLENBQUM7UUFDUCxDQUFDO0lBQ0wsQ0FBQztJQVZMO1FBQUMsZ0JBQVMsQ0FBQztZQUNQLFFBQVEsRUFBRSxhQUFhO1NBQzFCLENBQUM7OzBCQUFBO0lBU0YseUJBQUM7QUFBRCxDQUFDLEFBUkQsSUFRQztBQVJZLDBCQUFrQixxQkFROUIsQ0FBQSJ9\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ng2-bs4-modal/directives/autofocus.js\n// module id = 969\n// module chunks = 0","\"use strict\";\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nvar common_1 = require('@angular/common');\nvar core_1 = require('@angular/core');\nvar autofocus_1 = require('../directives/autofocus');\nvar modal_footer_1 = require('../components/modal-footer');\nvar modal_body_1 = require('../components/modal-body');\nvar modal_header_1 = require('../components/modal-header');\nvar modal_1 = require('../components/modal');\nvar ModalModule = (function () {\n    function ModalModule() {\n    }\n    ModalModule = __decorate([\n        core_1.NgModule({\n            imports: [\n                common_1.CommonModule\n            ],\n            declarations: [\n                modal_1.ModalComponent,\n                modal_header_1.ModalHeaderComponent,\n                modal_body_1.ModalBodyComponent,\n                modal_footer_1.ModalFooterComponent,\n                autofocus_1.AutofocusDirective\n            ],\n            exports: [\n                modal_1.ModalComponent,\n                modal_header_1.ModalHeaderComponent,\n                modal_body_1.ModalBodyComponent,\n                modal_footer_1.ModalFooterComponent,\n                autofocus_1.AutofocusDirective\n            ]\n        }), \n        __metadata('design:paramtypes', [])\n    ], ModalModule);\n    return ModalModule;\n}());\nexports.ModalModule = ModalModule;\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmcyLWJzNC1tb2RhbC5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvbmcyLWJzNC1tb2RhbC9tb2R1bGUvbmcyLWJzNC1tb2RhbC5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFBLHVCQUEyQixpQkFBaUIsQ0FBQyxDQUFBO0FBQzdDLHFCQUF1QixlQUFlLENBQUMsQ0FBQTtBQUN2QywwQkFBaUMseUJBQXlCLENBQUMsQ0FBQTtBQUMzRCw2QkFBbUMsNEJBQTRCLENBQUMsQ0FBQTtBQUNoRSwyQkFBaUMsMEJBQTBCLENBQUMsQ0FBQTtBQUM1RCw2QkFBbUMsNEJBQTRCLENBQUMsQ0FBQTtBQUNoRSxzQkFBNkIscUJBQXFCLENBQUMsQ0FBQTtBQXFCbkQ7SUFBQTtJQUNBLENBQUM7SUFwQkQ7UUFBQyxlQUFRLENBQUM7WUFDTixPQUFPLEVBQUU7Z0JBQ0wscUJBQVk7YUFDZjtZQUNELFlBQVksRUFBRTtnQkFDVixzQkFBYztnQkFDZCxtQ0FBb0I7Z0JBQ3BCLCtCQUFrQjtnQkFDbEIsbUNBQW9CO2dCQUNwQiw4QkFBa0I7YUFDckI7WUFDRCxPQUFPLEVBQUU7Z0JBQ0wsc0JBQWM7Z0JBQ2QsbUNBQW9CO2dCQUNwQiwrQkFBa0I7Z0JBQ2xCLG1DQUFvQjtnQkFDcEIsOEJBQWtCO2FBQ3JCO1NBQ0osQ0FBQzs7bUJBQUE7SUFFRixrQkFBQztBQUFELENBQUMsQUFERCxJQUNDO0FBRFksbUJBQVcsY0FDdkIsQ0FBQSJ9\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ng2-bs4-modal/module/ng2-bs4-modal.module.js\n// module id = 970\n// module chunks = 0","\"use strict\";\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nvar core_1 = require(\"@angular/core\");\nvar chart_js_1 = require(\"chart.js\");\n/* tslint:disable-next-line */\nvar BaseChartDirective = (function () {\n    function BaseChartDirective(element) {\n        this.labels = [];\n        this.options = {};\n        this.chartClick = new core_1.EventEmitter();\n        this.chartHover = new core_1.EventEmitter();\n        this.initFlag = false;\n        this.element = element;\n    }\n    BaseChartDirective.prototype.ngOnInit = function () {\n        this.ctx = this.element.nativeElement.getContext('2d');\n        this.cvs = this.element.nativeElement;\n        this.initFlag = true;\n        if (this.data || this.datasets) {\n            this.refresh();\n        }\n    };\n    BaseChartDirective.prototype.ngOnChanges = function (changes) {\n        if (this.initFlag) {\n            // Check if the changes are in the data or datasets\n            if (changes.hasOwnProperty('data') || changes.hasOwnProperty('datasets')) {\n                if (changes['data']) {\n                    this.updateChartData(changes['data'].currentValue);\n                }\n                else {\n                    this.updateChartData(changes['datasets'].currentValue);\n                }\n                this.chart.update();\n            }\n            else {\n                // otherwise rebuild the chart\n                this.refresh();\n            }\n        }\n    };\n    BaseChartDirective.prototype.ngOnDestroy = function () {\n        if (this.chart) {\n            this.chart.destroy();\n            this.chart = void 0;\n        }\n    };\n    BaseChartDirective.prototype.getChartBuilder = function (ctx /*, data:Array<any>, options:any*/) {\n        var _this = this;\n        var datasets = this.getDatasets();\n        var options = Object.assign({}, this.options);\n        if (this.legend === false) {\n            options.legend = { display: false };\n        }\n        // hock for onHover and onClick events\n        options.hover = options.hover || {};\n        if (!options.hover.onHover) {\n            options.hover.onHover = function (active) {\n                if (active && !active.length) {\n                    return;\n                }\n                _this.chartHover.emit({ active: active });\n            };\n        }\n        if (!options.onClick) {\n            options.onClick = function (event, active) {\n                _this.chartClick.emit({ event: event, active: active });\n            };\n        }\n        var opts = {\n            type: this.chartType,\n            data: {\n                labels: this.labels,\n                datasets: datasets\n            },\n            options: options\n        };\n        return new chart_js_1.Chart(ctx, opts);\n    };\n    BaseChartDirective.prototype.updateChartData = function (newDataValues) {\n        if (Array.isArray(newDataValues[0].data)) {\n            this.chart.data.datasets.forEach(function (dataset, i) {\n                dataset.data = newDataValues[i].data;\n                if (newDataValues[i].label) {\n                    dataset.label = newDataValues[i].label;\n                }\n            });\n        }\n        else {\n            this.chart.data.datasets[0].data = newDataValues;\n        }\n    };\n    BaseChartDirective.prototype.getDatasets = function () {\n        var _this = this;\n        var datasets = void 0;\n        // in case if datasets is not provided, but data is present\n        if (!this.datasets || !this.datasets.length && (this.data && this.data.length)) {\n            if (Array.isArray(this.data[0])) {\n                datasets = this.data.map(function (data, index) {\n                    return { data: data, label: _this.labels[index] || \"Label \" + index };\n                });\n            }\n            else {\n                datasets = [{ data: this.data, label: \"Label 0\" }];\n            }\n        }\n        if (this.datasets && this.datasets.length ||\n            (datasets && datasets.length)) {\n            datasets = (this.datasets || datasets)\n                .map(function (elm, index) {\n                var newElm = Object.assign({}, elm);\n                if (_this.colors && _this.colors.length) {\n                    Object.assign(newElm, _this.colors[index]);\n                }\n                else {\n                    Object.assign(newElm, getColors(_this.chartType, index, newElm.data.length));\n                }\n                return newElm;\n            });\n        }\n        if (!datasets) {\n            throw new Error(\"ng-charts configuration error,\\n      data or datasets field are required to render char \" + this.chartType);\n        }\n        return datasets;\n    };\n    BaseChartDirective.prototype.refresh = function () {\n        // if (this.options && this.options.responsive) {\n        //   setTimeout(() => this.refresh(), 50);\n        // }\n        // todo: remove this line, it is producing flickering\n        this.ngOnDestroy();\n        this.chart = this.getChartBuilder(this.ctx /*, data, this.options*/);\n    };\n    return BaseChartDirective;\n}());\nBaseChartDirective.defaultColors = [\n    [255, 99, 132],\n    [54, 162, 235],\n    [255, 206, 86],\n    [231, 233, 237],\n    [75, 192, 192],\n    [151, 187, 205],\n    [220, 220, 220],\n    [247, 70, 74],\n    [70, 191, 189],\n    [253, 180, 92],\n    [148, 159, 177],\n    [77, 83, 96]\n];\n__decorate([\n    core_1.Input(),\n    __metadata(\"design:type\", Array)\n], BaseChartDirective.prototype, \"data\", void 0);\n__decorate([\n    core_1.Input(),\n    __metadata(\"design:type\", Array)\n], BaseChartDirective.prototype, \"datasets\", void 0);\n__decorate([\n    core_1.Input(),\n    __metadata(\"design:type\", Array)\n], BaseChartDirective.prototype, \"labels\", void 0);\n__decorate([\n    core_1.Input(),\n    __metadata(\"design:type\", Object)\n], BaseChartDirective.prototype, \"options\", void 0);\n__decorate([\n    core_1.Input(),\n    __metadata(\"design:type\", String)\n], BaseChartDirective.prototype, \"chartType\", void 0);\n__decorate([\n    core_1.Input(),\n    __metadata(\"design:type\", Array)\n], BaseChartDirective.prototype, \"colors\", void 0);\n__decorate([\n    core_1.Input(),\n    __metadata(\"design:type\", Boolean)\n], BaseChartDirective.prototype, \"legend\", void 0);\n__decorate([\n    core_1.Output(),\n    __metadata(\"design:type\", core_1.EventEmitter)\n], BaseChartDirective.prototype, \"chartClick\", void 0);\n__decorate([\n    core_1.Output(),\n    __metadata(\"design:type\", core_1.EventEmitter)\n], BaseChartDirective.prototype, \"chartHover\", void 0);\nBaseChartDirective = __decorate([\n    core_1.Directive({ selector: 'canvas[baseChart]', exportAs: 'base-chart' }),\n    __metadata(\"design:paramtypes\", [core_1.ElementRef])\n], BaseChartDirective);\nexports.BaseChartDirective = BaseChartDirective;\nfunction rgba(colour, alpha) {\n    return 'rgba(' + colour.concat(alpha).join(',') + ')';\n}\nfunction getRandomInt(min, max) {\n    return Math.floor(Math.random() * (max - min + 1)) + min;\n}\nfunction formatLineColor(colors) {\n    return {\n        backgroundColor: rgba(colors, 0.4),\n        borderColor: rgba(colors, 1),\n        pointBackgroundColor: rgba(colors, 1),\n        pointBorderColor: '#fff',\n        pointHoverBackgroundColor: '#fff',\n        pointHoverBorderColor: rgba(colors, 0.8)\n    };\n}\nfunction formatBarColor(colors) {\n    return {\n        backgroundColor: rgba(colors, 0.6),\n        borderColor: rgba(colors, 1),\n        hoverBackgroundColor: rgba(colors, 0.8),\n        hoverBorderColor: rgba(colors, 1)\n    };\n}\nfunction formatPieColors(colors) {\n    return {\n        backgroundColor: colors.map(function (color) { return rgba(color, 0.6); }),\n        borderColor: colors.map(function () { return '#fff'; }),\n        pointBackgroundColor: colors.map(function (color) { return rgba(color, 1); }),\n        pointBorderColor: colors.map(function () { return '#fff'; }),\n        pointHoverBackgroundColor: colors.map(function (color) { return rgba(color, 1); }),\n        pointHoverBorderColor: colors.map(function (color) { return rgba(color, 1); })\n    };\n}\nfunction formatPolarAreaColors(colors) {\n    return {\n        backgroundColor: colors.map(function (color) { return rgba(color, 0.6); }),\n        borderColor: colors.map(function (color) { return rgba(color, 1); }),\n        hoverBackgroundColor: colors.map(function (color) { return rgba(color, 0.8); }),\n        hoverBorderColor: colors.map(function (color) { return rgba(color, 1); })\n    };\n}\nfunction getRandomColor() {\n    return [getRandomInt(0, 255), getRandomInt(0, 255), getRandomInt(0, 255)];\n}\n/**\n * Generate colors for line|bar charts\n * @param index\n * @returns {number[]|Color}\n */\nfunction generateColor(index) {\n    return BaseChartDirective.defaultColors[index] || getRandomColor();\n}\n/**\n * Generate colors for pie|doughnut charts\n * @param count\n * @returns {Colors}\n */\nfunction generateColors(count) {\n    var colorsArr = new Array(count);\n    for (var i = 0; i < count; i++) {\n        colorsArr[i] = BaseChartDirective.defaultColors[i] || getRandomColor();\n    }\n    return colorsArr;\n}\n/**\n * Generate colors by chart type\n * @param chartType\n * @param index\n * @param count\n * @returns {Color}\n */\nfunction getColors(chartType, index, count) {\n    if (chartType === 'pie' || chartType === 'doughnut') {\n        return formatPieColors(generateColors(count));\n    }\n    if (chartType === 'polarArea') {\n        return formatPolarAreaColors(generateColors(count));\n    }\n    if (chartType === 'line' || chartType === 'radar') {\n        return formatLineColor(generateColor(index));\n    }\n    if (chartType === 'bar' || chartType === 'horizontalBar') {\n        return formatBarColor(generateColor(index));\n    }\n    return generateColor(index);\n}\nvar ChartsModule = (function () {\n    function ChartsModule() {\n    }\n    return ChartsModule;\n}());\nChartsModule = __decorate([\n    core_1.NgModule({\n        declarations: [\n            BaseChartDirective\n        ],\n        exports: [\n            BaseChartDirective\n        ],\n        imports: []\n    })\n], ChartsModule);\nexports.ChartsModule = ChartsModule;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ng2-charts/charts/charts.js\n// module id = 971\n// module chunks = 0","\"use strict\";\nfunction __export(m) {\n    for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\n}\n__export(require(\"./charts/charts\"));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ng2-charts/index.js\n// module id = 972\n// module chunks = 0","\"use strict\";\nvar FileType = (function () {\n    function FileType() {\n    }\n    FileType.getMimeClass = function (file) {\n        var mimeClass = 'application';\n        if (this.mime_psd.indexOf(file.type) !== -1) {\n            mimeClass = 'image';\n        }\n        else if (file.type.match('image.*')) {\n            mimeClass = 'image';\n        }\n        else if (file.type.match('video.*')) {\n            mimeClass = 'video';\n        }\n        else if (file.type.match('audio.*')) {\n            mimeClass = 'audio';\n        }\n        else if (file.type === 'application/pdf') {\n            mimeClass = 'pdf';\n        }\n        else if (this.mime_compress.indexOf(file.type) !== -1) {\n            mimeClass = 'compress';\n        }\n        else if (this.mime_doc.indexOf(file.type) !== -1) {\n            mimeClass = 'doc';\n        }\n        else if (this.mime_xsl.indexOf(file.type) !== -1) {\n            mimeClass = 'xls';\n        }\n        else if (this.mime_ppt.indexOf(file.type) !== -1) {\n            mimeClass = 'ppt';\n        }\n        if (mimeClass === 'application') {\n            mimeClass = this.fileTypeDetection(file.name);\n        }\n        return mimeClass;\n    };\n    FileType.fileTypeDetection = function (inputFilename) {\n        var types = {\n            'jpg': 'image',\n            'jpeg': 'image',\n            'tif': 'image',\n            'psd': 'image',\n            'bmp': 'image',\n            'png': 'image',\n            'nef': 'image',\n            'tiff': 'image',\n            'cr2': 'image',\n            'dwg': 'image',\n            'cdr': 'image',\n            'ai': 'image',\n            'indd': 'image',\n            'pin': 'image',\n            'cdp': 'image',\n            'skp': 'image',\n            'stp': 'image',\n            '3dm': 'image',\n            'mp3': 'audio',\n            'wav': 'audio',\n            'wma': 'audio',\n            'mod': 'audio',\n            'm4a': 'audio',\n            'compress': 'compress',\n            'rar': 'compress',\n            '7z': 'compress',\n            'lz': 'compress',\n            'z01': 'compress',\n            'pdf': 'pdf',\n            'xls': 'xls',\n            'xlsx': 'xls',\n            'ods': 'xls',\n            'mp4': 'video',\n            'avi': 'video',\n            'wmv': 'video',\n            'mpg': 'video',\n            'mts': 'video',\n            'flv': 'video',\n            '3gp': 'video',\n            'vob': 'video',\n            'm4v': 'video',\n            'mpeg': 'video',\n            'm2ts': 'video',\n            'mov': 'video',\n            'doc': 'doc',\n            'docx': 'doc',\n            'eps': 'doc',\n            'txt': 'doc',\n            'odt': 'doc',\n            'rtf': 'doc',\n            'ppt': 'ppt',\n            'pptx': 'ppt',\n            'pps': 'ppt',\n            'ppsx': 'ppt',\n            'odp': 'ppt'\n        };\n        var chunks = inputFilename.split('.');\n        if (chunks.length < 2) {\n            return 'application';\n        }\n        var extension = chunks[chunks.length - 1].toLowerCase();\n        if (types[extension] === undefined) {\n            return 'application';\n        }\n        else {\n            return types[extension];\n        }\n    };\n    /*  MS office  */\n    FileType.mime_doc = [\n        'application/msword',\n        'application/msword',\n        'application/vnd.openxmlformats-officedocument.wordprocessingml.document',\n        'application/vnd.openxmlformats-officedocument.wordprocessingml.template',\n        'application/vnd.ms-word.document.macroEnabled.12',\n        'application/vnd.ms-word.template.macroEnabled.12'\n    ];\n    FileType.mime_xsl = [\n        'application/vnd.ms-excel',\n        'application/vnd.ms-excel',\n        'application/vnd.ms-excel',\n        'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',\n        'application/vnd.openxmlformats-officedocument.spreadsheetml.template',\n        'application/vnd.ms-excel.sheet.macroEnabled.12',\n        'application/vnd.ms-excel.template.macroEnabled.12',\n        'application/vnd.ms-excel.addin.macroEnabled.12',\n        'application/vnd.ms-excel.sheet.binary.macroEnabled.12'\n    ];\n    FileType.mime_ppt = [\n        'application/vnd.ms-powerpoint',\n        'application/vnd.ms-powerpoint',\n        'application/vnd.ms-powerpoint',\n        'application/vnd.ms-powerpoint',\n        'application/vnd.openxmlformats-officedocument.presentationml.presentation',\n        'application/vnd.openxmlformats-officedocument.presentationml.template',\n        'application/vnd.openxmlformats-officedocument.presentationml.slideshow',\n        'application/vnd.ms-powerpoint.addin.macroEnabled.12',\n        'application/vnd.ms-powerpoint.presentation.macroEnabled.12',\n        'application/vnd.ms-powerpoint.presentation.macroEnabled.12',\n        'application/vnd.ms-powerpoint.slideshow.macroEnabled.12'\n    ];\n    /* PSD */\n    FileType.mime_psd = [\n        'image/photoshop',\n        'image/x-photoshop',\n        'image/psd',\n        'application/photoshop',\n        'application/psd',\n        'zz-application/zz-winassoc-psd'\n    ];\n    /* Compressed files */\n    FileType.mime_compress = [\n        'application/x-gtar',\n        'application/x-gcompress',\n        'application/compress',\n        'application/x-tar',\n        'application/x-rar-compressed',\n        'application/octet-stream'\n    ];\n    return FileType;\n}());\nexports.FileType = FileType;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ng2-file-upload/file-upload/file-type.class.js\n// module id = 973\n// module chunks = 0","\"use strict\";\nvar common_1 = require('@angular/common');\nvar core_1 = require('@angular/core');\nvar file_drop_directive_1 = require('./file-drop.directive');\nvar file_select_directive_1 = require('./file-select.directive');\nvar FileUploadModule = (function () {\n    function FileUploadModule() {\n    }\n    FileUploadModule.decorators = [\n        { type: core_1.NgModule, args: [{\n                    imports: [common_1.CommonModule],\n                    declarations: [file_drop_directive_1.FileDropDirective, file_select_directive_1.FileSelectDirective],\n                    exports: [file_drop_directive_1.FileDropDirective, file_select_directive_1.FileSelectDirective]\n                },] },\n    ];\n    /** @nocollapse */\n    FileUploadModule.ctorParameters = function () { return []; };\n    return FileUploadModule;\n}());\nexports.FileUploadModule = FileUploadModule;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ng2-file-upload/file-upload/file-upload.module.js\n// module id = 974\n// module chunks = 0","\"use strict\";\nvar file_like_object_class_1 = require('./file-like-object.class');\nvar file_item_class_1 = require('./file-item.class');\nvar file_type_class_1 = require('./file-type.class');\nfunction isFile(value) {\n    return (File && value instanceof File);\n}\nvar FileUploader = (function () {\n    function FileUploader(options) {\n        this.isUploading = false;\n        this.queue = [];\n        this.progress = 0;\n        this._nextIndex = 0;\n        this.options = {\n            autoUpload: false,\n            isHTML5: true,\n            filters: [],\n            removeAfterUpload: false,\n            disableMultipart: false\n        };\n        this.setOptions(options);\n    }\n    FileUploader.prototype.setOptions = function (options) {\n        this.options = Object.assign(this.options, options);\n        this.authToken = options.authToken;\n        this.authTokenHeader = options.authTokenHeader || 'Authorization';\n        this.autoUpload = options.autoUpload;\n        this.options.filters.unshift({ name: 'queueLimit', fn: this._queueLimitFilter });\n        if (this.options.maxFileSize) {\n            this.options.filters.unshift({ name: 'fileSize', fn: this._fileSizeFilter });\n        }\n        if (this.options.allowedFileType) {\n            this.options.filters.unshift({ name: 'fileType', fn: this._fileTypeFilter });\n        }\n        if (this.options.allowedMimeType) {\n            this.options.filters.unshift({ name: 'mimeType', fn: this._mimeTypeFilter });\n        }\n        for (var i = 0; i < this.queue.length; i++) {\n            this.queue[i].url = this.options.url;\n        }\n        // this.options.filters.unshift({name: 'folder', fn: this._folderFilter});\n    };\n    FileUploader.prototype.addToQueue = function (files, options, filters) {\n        var _this = this;\n        var list = [];\n        for (var _i = 0, files_1 = files; _i < files_1.length; _i++) {\n            var file = files_1[_i];\n            list.push(file);\n        }\n        var arrayOfFilters = this._getFilters(filters);\n        var count = this.queue.length;\n        var addedFileItems = [];\n        list.map(function (some) {\n            if (!options) {\n                options = _this.options;\n            }\n            var temp = new file_like_object_class_1.FileLikeObject(some);\n            if (_this._isValidFile(temp, arrayOfFilters, options)) {\n                var fileItem = new file_item_class_1.FileItem(_this, some, options);\n                addedFileItems.push(fileItem);\n                _this.queue.push(fileItem);\n                _this._onAfterAddingFile(fileItem);\n            }\n            else {\n                var filter = arrayOfFilters[_this._failFilterIndex];\n                _this._onWhenAddingFileFailed(temp, filter, options);\n            }\n        });\n        if (this.queue.length !== count) {\n            this._onAfterAddingAll(addedFileItems);\n            this.progress = this._getTotalProgress();\n        }\n        this._render();\n        if (this.options.autoUpload) {\n            this.uploadAll();\n        }\n    };\n    FileUploader.prototype.removeFromQueue = function (value) {\n        var index = this.getIndexOfItem(value);\n        var item = this.queue[index];\n        if (item.isUploading) {\n            item.cancel();\n        }\n        this.queue.splice(index, 1);\n        this.progress = this._getTotalProgress();\n    };\n    FileUploader.prototype.clearQueue = function () {\n        while (this.queue.length) {\n            this.queue[0].remove();\n        }\n        this.progress = 0;\n    };\n    FileUploader.prototype.uploadItem = function (value) {\n        var index = this.getIndexOfItem(value);\n        var item = this.queue[index];\n        var transport = this.options.isHTML5 ? '_xhrTransport' : '_iframeTransport';\n        item._prepareToUploading();\n        if (this.isUploading) {\n            return;\n        }\n        this.isUploading = true;\n        this[transport](item);\n    };\n    FileUploader.prototype.cancelItem = function (value) {\n        var index = this.getIndexOfItem(value);\n        var item = this.queue[index];\n        var prop = this.options.isHTML5 ? item._xhr : item._form;\n        if (item && item.isUploading) {\n            prop.abort();\n        }\n    };\n    FileUploader.prototype.uploadAll = function () {\n        var items = this.getNotUploadedItems().filter(function (item) { return !item.isUploading; });\n        if (!items.length) {\n            return;\n        }\n        items.map(function (item) { return item._prepareToUploading(); });\n        items[0].upload();\n    };\n    FileUploader.prototype.cancelAll = function () {\n        var items = this.getNotUploadedItems();\n        items.map(function (item) { return item.cancel(); });\n    };\n    FileUploader.prototype.isFile = function (value) {\n        return isFile(value);\n    };\n    FileUploader.prototype.isFileLikeObject = function (value) {\n        return value instanceof file_like_object_class_1.FileLikeObject;\n    };\n    FileUploader.prototype.getIndexOfItem = function (value) {\n        return typeof value === 'number' ? value : this.queue.indexOf(value);\n    };\n    FileUploader.prototype.getNotUploadedItems = function () {\n        return this.queue.filter(function (item) { return !item.isUploaded; });\n    };\n    FileUploader.prototype.getReadyItems = function () {\n        return this.queue\n            .filter(function (item) { return (item.isReady && !item.isUploading); })\n            .sort(function (item1, item2) { return item1.index - item2.index; });\n    };\n    FileUploader.prototype.destroy = function () {\n        return void 0;\n        /*forEach(this._directives, (key) => {\n         forEach(this._directives[key], (object) => {\n         object.destroy();\n         });\n         });*/\n    };\n    FileUploader.prototype.onAfterAddingAll = function (fileItems) {\n        return { fileItems: fileItems };\n    };\n    FileUploader.prototype.onBuildItemForm = function (fileItem, form) {\n        return { fileItem: fileItem, form: form };\n    };\n    FileUploader.prototype.onAfterAddingFile = function (fileItem) {\n        return { fileItem: fileItem };\n    };\n    FileUploader.prototype.onWhenAddingFileFailed = function (item, filter, options) {\n        return { item: item, filter: filter, options: options };\n    };\n    FileUploader.prototype.onBeforeUploadItem = function (fileItem) {\n        return { fileItem: fileItem };\n    };\n    FileUploader.prototype.onProgressItem = function (fileItem, progress) {\n        return { fileItem: fileItem, progress: progress };\n    };\n    FileUploader.prototype.onProgressAll = function (progress) {\n        return { progress: progress };\n    };\n    FileUploader.prototype.onSuccessItem = function (item, response, status, headers) {\n        return { item: item, response: response, status: status, headers: headers };\n    };\n    FileUploader.prototype.onErrorItem = function (item, response, status, headers) {\n        return { item: item, response: response, status: status, headers: headers };\n    };\n    FileUploader.prototype.onCancelItem = function (item, response, status, headers) {\n        return { item: item, response: response, status: status, headers: headers };\n    };\n    FileUploader.prototype.onCompleteItem = function (item, response, status, headers) {\n        return { item: item, response: response, status: status, headers: headers };\n    };\n    FileUploader.prototype.onCompleteAll = function () {\n        return void 0;\n    };\n    FileUploader.prototype._mimeTypeFilter = function (item) {\n        return !(this.options.allowedMimeType && this.options.allowedMimeType.indexOf(item.type) === -1);\n    };\n    FileUploader.prototype._fileSizeFilter = function (item) {\n        return !(this.options.maxFileSize && item.size > this.options.maxFileSize);\n    };\n    FileUploader.prototype._fileTypeFilter = function (item) {\n        return !(this.options.allowedFileType &&\n            this.options.allowedFileType.indexOf(file_type_class_1.FileType.getMimeClass(item)) === -1);\n    };\n    FileUploader.prototype._onErrorItem = function (item, response, status, headers) {\n        item._onError(response, status, headers);\n        this.onErrorItem(item, response, status, headers);\n    };\n    FileUploader.prototype._onCompleteItem = function (item, response, status, headers) {\n        item._onComplete(response, status, headers);\n        this.onCompleteItem(item, response, status, headers);\n        var nextItem = this.getReadyItems()[0];\n        this.isUploading = false;\n        if (nextItem) {\n            nextItem.upload();\n            return;\n        }\n        this.onCompleteAll();\n        this.progress = this._getTotalProgress();\n        this._render();\n    };\n    FileUploader.prototype._headersGetter = function (parsedHeaders) {\n        return function (name) {\n            if (name) {\n                return parsedHeaders[name.toLowerCase()] || void 0;\n            }\n            return parsedHeaders;\n        };\n    };\n    FileUploader.prototype._xhrTransport = function (item) {\n        var _this = this;\n        var xhr = item._xhr = new XMLHttpRequest();\n        var sendable;\n        this._onBeforeUploadItem(item);\n        // todo\n        /*item.formData.map(obj => {\n         obj.map((value, key) => {\n         form.append(key, value);\n         });\n         });*/\n        if (typeof item._file.size !== 'number') {\n            throw new TypeError('The file specified is no longer valid');\n        }\n        if (!this.options.disableMultipart) {\n            sendable = new FormData();\n            this._onBuildItemForm(item, sendable);\n            sendable.append(item.alias, item._file, item.file.name);\n            if (this.options.additionalParameter !== undefined) {\n                Object.keys(this.options.additionalParameter).forEach(function (key) {\n                    sendable.append(key, _this.options.additionalParameter[key]);\n                });\n            }\n        }\n        else {\n            sendable = item._file;\n        }\n        xhr.upload.onprogress = function (event) {\n            var progress = Math.round(event.lengthComputable ? event.loaded * 100 / event.total : 0);\n            _this._onProgressItem(item, progress);\n        };\n        xhr.onload = function () {\n            var headers = _this._parseHeaders(xhr.getAllResponseHeaders());\n            var response = _this._transformResponse(xhr.response, headers);\n            var gist = _this._isSuccessCode(xhr.status) ? 'Success' : 'Error';\n            var method = '_on' + gist + 'Item';\n            _this[method](item, response, xhr.status, headers);\n            _this._onCompleteItem(item, response, xhr.status, headers);\n        };\n        xhr.onerror = function () {\n            var headers = _this._parseHeaders(xhr.getAllResponseHeaders());\n            var response = _this._transformResponse(xhr.response, headers);\n            _this._onErrorItem(item, response, xhr.status, headers);\n            _this._onCompleteItem(item, response, xhr.status, headers);\n        };\n        xhr.onabort = function () {\n            var headers = _this._parseHeaders(xhr.getAllResponseHeaders());\n            var response = _this._transformResponse(xhr.response, headers);\n            _this._onCancelItem(item, response, xhr.status, headers);\n            _this._onCompleteItem(item, response, xhr.status, headers);\n        };\n        xhr.open(item.method, item.url, true);\n        xhr.withCredentials = item.withCredentials;\n        if (this.options.headers) {\n            for (var _i = 0, _a = this.options.headers; _i < _a.length; _i++) {\n                var header = _a[_i];\n                xhr.setRequestHeader(header.name, header.value);\n            }\n        }\n        if (item.headers.length) {\n            for (var _b = 0, _c = item.headers; _b < _c.length; _b++) {\n                var header = _c[_b];\n                xhr.setRequestHeader(header.name, header.value);\n            }\n        }\n        if (this.authToken) {\n            xhr.setRequestHeader(this.authTokenHeader, this.authToken);\n        }\n        xhr.send(sendable);\n        this._render();\n    };\n    FileUploader.prototype._getTotalProgress = function (value) {\n        if (value === void 0) { value = 0; }\n        if (this.options.removeAfterUpload) {\n            return value;\n        }\n        var notUploaded = this.getNotUploadedItems().length;\n        var uploaded = notUploaded ? this.queue.length - notUploaded : this.queue.length;\n        var ratio = 100 / this.queue.length;\n        var current = value * ratio / 100;\n        return Math.round(uploaded * ratio + current);\n    };\n    FileUploader.prototype._getFilters = function (filters) {\n        if (!filters) {\n            return this.options.filters;\n        }\n        if (Array.isArray(filters)) {\n            return filters;\n        }\n        if (typeof filters === 'string') {\n            var names_1 = filters.match(/[^\\s,]+/g);\n            return this.options.filters\n                .filter(function (filter) { return names_1.indexOf(filter.name) !== -1; });\n        }\n        return this.options.filters;\n    };\n    FileUploader.prototype._render = function () {\n        return void 0;\n        // todo: ?\n    };\n    // protected _folderFilter(item:FileItem):boolean {\n    //   return !!(item.size || item.type);\n    // }\n    FileUploader.prototype._queueLimitFilter = function () {\n        return this.options.queueLimit === undefined || this.queue.length < this.options.queueLimit;\n    };\n    FileUploader.prototype._isValidFile = function (file, filters, options) {\n        var _this = this;\n        this._failFilterIndex = -1;\n        return !filters.length ? true : filters.every(function (filter) {\n            _this._failFilterIndex++;\n            return filter.fn.call(_this, file, options);\n        });\n    };\n    FileUploader.prototype._isSuccessCode = function (status) {\n        return (status >= 200 && status < 300) || status === 304;\n    };\n    /* tslint:disable */\n    FileUploader.prototype._transformResponse = function (response, headers) {\n        // todo: ?\n        /*var headersGetter = this._headersGetter(headers);\n         forEach($http.defaults.transformResponse, (transformFn) => {\n         response = transformFn(response, headersGetter);\n         });*/\n        return response;\n    };\n    /* tslint:enable */\n    FileUploader.prototype._parseHeaders = function (headers) {\n        var parsed = {};\n        var key;\n        var val;\n        var i;\n        if (!headers) {\n            return parsed;\n        }\n        headers.split('\\n').map(function (line) {\n            i = line.indexOf(':');\n            key = line.slice(0, i).trim().toLowerCase();\n            val = line.slice(i + 1).trim();\n            if (key) {\n                parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n            }\n        });\n        return parsed;\n    };\n    /*protected _iframeTransport(item:FileItem) {\n     // todo: implement it later\n     }*/\n    FileUploader.prototype._onWhenAddingFileFailed = function (item, filter, options) {\n        this.onWhenAddingFileFailed(item, filter, options);\n    };\n    FileUploader.prototype._onAfterAddingFile = function (item) {\n        this.onAfterAddingFile(item);\n    };\n    FileUploader.prototype._onAfterAddingAll = function (items) {\n        this.onAfterAddingAll(items);\n    };\n    FileUploader.prototype._onBeforeUploadItem = function (item) {\n        item._onBeforeUpload();\n        this.onBeforeUploadItem(item);\n    };\n    FileUploader.prototype._onBuildItemForm = function (item, form) {\n        item._onBuildForm(form);\n        this.onBuildItemForm(item, form);\n    };\n    FileUploader.prototype._onProgressItem = function (item, progress) {\n        var total = this._getTotalProgress(progress);\n        this.progress = total;\n        item._onProgress(progress);\n        this.onProgressItem(item, progress);\n        this.onProgressAll(total);\n        this._render();\n    };\n    /* tslint:disable */\n    FileUploader.prototype._onSuccessItem = function (item, response, status, headers) {\n        item._onSuccess(response, status, headers);\n        this.onSuccessItem(item, response, status, headers);\n    };\n    /* tslint:enable */\n    FileUploader.prototype._onCancelItem = function (item, response, status, headers) {\n        item._onCancel(response, status, headers);\n        this.onCancelItem(item, response, status, headers);\n    };\n    return FileUploader;\n}());\nexports.FileUploader = FileUploader;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ng2-file-upload/file-upload/file-uploader.class.js\n// module id = 975\n// module chunks = 0","\"use strict\";\nfunction __export(m) {\n    for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\n}\n__export(require('./index'));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ng2-file-upload/ng2-file-upload.js\n// module id = 976\n// module chunks = 0","export * from './localStorage';\r\nexport * from './sessionStorage';\r\nexport * from './webStorage';\r\n//# sourceMappingURL=index.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ng2-webstorage/dist/decorators/index.js\n// module id = 977\n// module chunks = 0","import { WebStorageDecorator } from './webStorage';\r\nimport { STORAGE } from '../enums/storage';\r\nexport function LocalStorage(webSKey) {\r\n    return function (targetedClass, raw) {\r\n        WebStorageDecorator(webSKey, STORAGE.local, targetedClass, raw);\r\n    };\r\n}\r\n;\r\n//# sourceMappingURL=localStorage.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ng2-webstorage/dist/decorators/localStorage.js\n// module id = 978\n// module chunks = 0","import { WebStorageDecorator } from './webStorage';\r\nimport { STORAGE } from '../enums/storage';\r\nexport function SessionStorage(webSKey) {\r\n    return function (targetedClass, raw) {\r\n        WebStorageDecorator(webSKey, STORAGE.session, targetedClass, raw);\r\n    };\r\n}\r\n;\r\n//# sourceMappingURL=sessionStorage.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ng2-webstorage/dist/decorators/sessionStorage.js\n// module id = 979\n// module chunks = 0","export var MockStorageHelper = (function () {\r\n    function MockStorageHelper() {\r\n    }\r\n    MockStorageHelper.isSecuredField = function (field) {\r\n        return !!~MockStorageHelper.securedFields.indexOf(field);\r\n    };\r\n    MockStorageHelper.getStorage = function (sType) {\r\n        if (!this.mockStorages[sType])\r\n            this.mockStorages[sType] = MockStorageHelper.generateStorage();\r\n        return this.mockStorages[sType];\r\n    };\r\n    MockStorageHelper.generateStorage = function () {\r\n        var storage = {};\r\n        Object.defineProperties(storage, {\r\n            setItem: {\r\n                writable: false,\r\n                enumerable: false,\r\n                configurable: false,\r\n                value: function (key, value) {\r\n                    if (!MockStorageHelper.isSecuredField(key))\r\n                        this[key] = value;\r\n                },\r\n            },\r\n            getItem: {\r\n                writable: false,\r\n                enumerable: false,\r\n                configurable: false,\r\n                value: function (key) {\r\n                    return !MockStorageHelper.isSecuredField(key) ? this[key] || null : null;\r\n                },\r\n            },\r\n            removeItem: {\r\n                writable: false,\r\n                enumerable: false,\r\n                configurable: false,\r\n                value: function (key) {\r\n                    if (!MockStorageHelper.isSecuredField(key))\r\n                        delete this[key];\r\n                },\r\n            },\r\n            length: {\r\n                enumerable: false,\r\n                configurable: false,\r\n                get: function () {\r\n                    return Object.keys(this).length;\r\n                }\r\n            }\r\n        });\r\n        return storage;\r\n    };\r\n    MockStorageHelper.securedFields = ['setItem', 'getItem', 'removeItem', 'length'];\r\n    MockStorageHelper.mockStorages = {};\r\n    return MockStorageHelper;\r\n}());\r\n//# sourceMappingURL=mockStorage.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ng2-webstorage/dist/helpers/mockStorage.js\n// module id = 980\n// module chunks = 0","export * from './webStorage';\r\nexport * from './storage';\r\nexport * from './config';\r\n//# sourceMappingURL=index.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ng2-webstorage/dist/interfaces/index.js\n// module id = 981\n// module chunks = 0","//# sourceMappingURL=storage.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ng2-webstorage/dist/interfaces/storage.js\n// module id = 982\n// module chunks = 0","//# sourceMappingURL=webStorage.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ng2-webstorage/dist/interfaces/webStorage.js\n// module id = 983\n// module chunks = 0","var __extends = (this && this.__extends) || function (d, b) {\r\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n    function __() { this.constructor = d; }\r\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nimport { Injectable } from '@angular/core';\r\nimport { STORAGE } from '../enums/storage';\r\nimport { WebStorageService } from './webStorage';\r\nexport var LocalStorageService = (function (_super) {\r\n    __extends(LocalStorageService, _super);\r\n    function LocalStorageService() {\r\n        _super.call(this, STORAGE.local);\r\n    }\r\n    LocalStorageService.decorators = [\r\n        { type: Injectable },\r\n    ];\r\n    /** @nocollapse */\r\n    LocalStorageService.ctorParameters = function () { return []; };\r\n    return LocalStorageService;\r\n}(WebStorageService));\r\n//# sourceMappingURL=localStorage.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ng2-webstorage/dist/services/localStorage.js\n// module id = 984\n// module chunks = 0","var __extends = (this && this.__extends) || function (d, b) {\r\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n    function __() { this.constructor = d; }\r\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nimport { Injectable } from '@angular/core';\r\nimport { STORAGE } from '../enums/storage';\r\nimport { WebStorageService } from './webStorage';\r\nexport var SessionStorageService = (function (_super) {\r\n    __extends(SessionStorageService, _super);\r\n    function SessionStorageService() {\r\n        _super.call(this, STORAGE.session);\r\n    }\r\n    SessionStorageService.decorators = [\r\n        { type: Injectable },\r\n    ];\r\n    /** @nocollapse */\r\n    SessionStorageService.ctorParameters = function () { return []; };\r\n    return SessionStorageService;\r\n}(WebStorageService));\r\n//# sourceMappingURL=sessionStorage.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ng2-webstorage/dist/services/sessionStorage.js\n// module id = 985\n// module chunks = 0","module.exports = \"<modal #loginModal>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Logga in</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t\\n\\t\\t<div class=\\\"row\\\" *ngIf=\\\"!isLoggingIn\\\">\\n\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t<input [disabled]=\\\"isLoggingIn\\\" class=\\\"form-control\\\" type=\\\"text\\\" [(ngModel)]=\\\"username\\\" placeholder=\\\"Användarnamn\\\" (keypress)=\\\"checkEnter($event)\\\">\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t<input [disabled]=\\\"isLoggingIn\\\" class=\\\"form-control\\\" type=\\\"password\\\" [(ngModel)]=\\\"password\\\" placeholder=\\\"Lösenord\\\" (keypress)=\\\"checkEnter($event)\\\">\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n\\t\\t<div class=\\\"row\\\" *ngIf=\\\"isLoggingIn\\\">\\n\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t<div class=\\\"form-group center\\\">\\n\\t\\t\\t\\t\\t<p>\\n\\t\\t\\t\\t\\t<i class=\\\"fa fa-circle-o-notch fa-spin fa-2x fa-fw\\\"></i><br />\\n\\t\\t\\t\\t\\t</p>\\n\\t\\t\\t\\t\\t<p>\\n\\t\\t\\t\\t\\tLoggar in\\n\\t\\t\\t\\t\\t</p>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t<span>{{loginErrorMessage}}</span>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n    </modal-body>\\n\\t\\t<modal-footer>\\n        <button type=\\\"button\\\" [disabled]=\\\"isLoggingIn\\\" class=\\\"btn btn-primary\\\" (click)=\\\"performLogin()\\\">Logga in</button>\\n    </modal-footer>\\n</modal>\\n\\n<owe-header></owe-header>\\n\\n<div id=\\\"wrapper\\\" [ngClass]=\\\"{'toggled' : showMenu}\\\">\\t\\n\\t\\n\\t<div class=\\\"mobile-menu inverse no-border-radius\\\">\\n\\t\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t<div class=\\\"menu-button\\\"><button class=\\\"btn btn-default\\\" (click)=\\\"showMenu = !showMenu\\\"><i class=\\\"fa fa-bars\\\"></i></button></div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t</div>\\n\\n\\t<search-sidebar #searchSideBar></search-sidebar>\\n\\n  <div id=\\\"sidebar-wrapper\\\" [ngClass]=\\\"{ 'search-open' : searchIsVisible }\\\">\\t  \\n\\t\\t<div id=\\\"nav-header\\\">\\n\\t\\t\\tOWE\\n\\t\\t</div>\\n\\t\\t<div id=\\\"nav-search\\\">\\n\\t\\t\\t<div class=\\\"search-div\\\">\\n\\t\\t\\t\\t<i class=\\\"fa fa-search\\\" aria-hidden=\\\"true\\\"></i>\\n\\t\\t\\t\\t<form autocomplete=\\\"off\\\" style=\\\"float:right;clear:none;width:90%;\\\">\\n\\t\\t\\t\\t\\t<input type=\\\"text\\\" placeholder=\\\"Snabbsök\\\" autocomplete=\\\"off\\\" name=\\\"searchPhrase\\\" [(ngModel)]=\\\"searchPhrase\\\" (ngModelChange)=\\\"openSearch($event)\\\"/>\\n\\t\\t\\t\\t</form>\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n\\t\\t<div class=\\\"nav-side-menu\\\">\\t\\t  \\n\\t\\t\\t<div class=\\\"menu-list\\\">\\n\\t\\t\\t\\t<ul id=\\\"menu-content\\\" class=\\\"menu-content collapsed out\\\">\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t<li routerLink=\\\"dashboard/\\\" routerLinkActive=\\\"active\\\">\\n\\t\\t\\t\\t\\t\\t<a>\\n\\t\\t\\t\\t\\t\\t\\t<i class=\\\"fa fa-dashboard fa-lg\\\"></i> Start\\n\\t\\t\\t\\t\\t\\t</a>\\n\\t\\t\\t\\t\\t</li>\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t<li routerLinkActive=\\\"active\\\">\\n\\t\\t\\t\\t\\t\\t<a>\\n\\t\\t\\t\\t\\t\\t\\t<i class=\\\"fa fa-phone fa-lg\\\"></i> Telefonväxel\\n\\t\\t\\t\\t\\t\\t</a>\\n\\t\\t\\t\\t\\t</li>\\t\\n\\t\\t\\t\\t\\t<ul class=\\\"sub-menu\\\" id=\\\"phones\\\">\\n\\t\\t\\t\\t\\t\\t<li routerLink=\\\"phones/agents/\\\" routerLinkActive=\\\"active\\\"><a>Agenter</a></li>\\n\\t\\t\\t\\t\\t\\t<li routerLink=\\\"phones/queues/\\\" routerLinkActive=\\\"active\\\"><a>Köer</a></li>\\n\\t\\t\\t\\t\\t\\t<li routerLink=\\\"phones/events/\\\" routerLinkActive=\\\"active\\\"><a>Händelser</a></li>\\n\\t\\t\\t\\t\\t\\t<li routerLink=\\\"phones/log/\\\" routerLinkActive=\\\"active\\\"><a>Logg</a></li>\\n\\t\\t\\t\\t\\t</ul>\\n\\t\\t\\t\\t\\t<li routerLinkActive=\\\"active\\\">\\n\\t\\t\\t\\t\\t\\t<a>\\n\\t\\t\\t\\t\\t\\t\\t<i class=\\\"fa fa-list-ol fa-lg\\\"></i> Rapporter\\n\\t\\t\\t\\t\\t\\t</a>\\n\\t\\t\\t\\t\\t</li>\\t\\n\\t\\t\\t\\t\\t<ul class=\\\"sub-menu\\\" id=\\\"phones\\\">\\n\\t\\t\\t\\t\\t\\t<li routerLink=\\\"reports/sales/\\\" routerLinkActive=\\\"active\\\"><a>Försäljning</a></li>\\n\\t\\t\\t\\t\\t</ul>\\n\\t\\t\\t\\t\\t<li routerLink=\\\"activitylog/\\\" routerLinkActive=\\\"active\\\">\\n\\t\\t\\t\\t\\t\\t<a>\\n\\t\\t\\t\\t\\t\\t\\t<i class=\\\"fa fa-briefcase fa-lg\\\"></i> Aktivitetslog\\n\\t\\t\\t\\t\\t\\t</a>\\n\\t\\t\\t\\t\\t</li>\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t<li routerLink=\\\"companies/\\\" routerLinkActive=\\\"active\\\">\\n\\t\\t\\t\\t\\t\\t<a>\\n\\t\\t\\t\\t\\t\\t\\t<i class=\\\"fa fa-building fa-lg\\\"></i> Kunder\\n\\t\\t\\t\\t\\t\\t</a>\\n\\t\\t\\t\\t\\t</li>\\n\\t\\t\\t\\t\\t<ul class=\\\"sub-menu\\\" id=\\\"support\\\">\\n\\t\\t\\t\\t\\t\\t<li routerLink=\\\"prospects/\\\" routerLinkActive=\\\"active\\\"><a >Prospekt</a></li>\\n\\t\\t\\t\\t\\t\\t<li routerLink=\\\"orders/\\\" routerLinkActive=\\\"active\\\"><a >Ordrar</a></li>\\n\\t\\t\\t\\t\\t\\t<li routerLink=\\\"invoices/\\\" routerLinkActive=\\\"active\\\"><a >Fakturor</a></li>\\n\\t\\t\\t\\t\\t\\t<li routerLink=\\\"subscriptions/\\\" routerLinkActive=\\\"active\\\"><a >Förnyelser</a></li>\\n\\t\\t\\t\\t\\t</ul>\\n\\t\\t\\t\\t\\t<li (click)=\\\"activitiesSubmenuVisible = !activitiesSubmenuVisible\\\">\\n\\t\\t\\t\\t\\t\\t<a><i class=\\\"fa fa-tasks fa-lg\\\"></i> Aktiviteter <span class=\\\"arrow\\\"></span></a>\\n\\t\\t\\t\\t\\t</li>\\n\\t\\t\\t\\t\\t<ul class=\\\"sub-menu\\\" id=\\\"support\\\">\\n\\t\\t\\t\\t\\t\\t<li routerLink=\\\"activities/week/\\\" routerLinkActive=\\\"active\\\"><a >Veckans</a> <span class=\\\"badge badge-danger pull-right\\\" *ngIf=\\\"weekActivityCount > 0\\\">{{weekActivityCount}}</span></li>\\n\\t\\t\\t\\t\\t\\t<li routerLink=\\\"activities/mine/\\\" routerLinkActive=\\\"active\\\"><a >Mina aktiviteter</a> <span class=\\\"badge badge-danger pull-right\\\" *ngIf=\\\"myActivityCount > 0\\\">{{myActivityCount}}</span></li>\\n\\t\\t\\t\\t\\t\\t<li routerLink=\\\"activities/inhouse/\\\" routerLinkActive=\\\"active\\\"><a >Interna</a> <span class=\\\"badge badge-danger pull-right\\\" *ngIf=\\\"weekActivityCount > 0\\\">{{inhouseActivityCount}}</span></li>\\n\\t\\t\\t\\t\\t\\t<li routerLink=\\\"activities/all/\\\" routerLinkActive=\\\"active\\\"><a >Alla</a></li>\\n\\t\\t\\t\\t\\t</ul>\\n\\t\\t\\t\\t\\t<li (click)=\\\"supportSubmenuVisible = !supportSubmenuVisible\\\">\\n\\t\\t\\t\\t\\t\\t<a><i class=\\\"fa fa-support fa-lg\\\"></i> Support <span class=\\\"arrow\\\"></span></a>\\n\\t\\t\\t\\t\\t</li>\\n\\t\\t\\t\\t\\t<ul class=\\\"sub-menu\\\" id=\\\"support\\\">\\n\\t\\t\\t\\t\\t\\t<li routerLink=\\\"support/all/\\\" routerLinkActive=\\\"active\\\"><a>Alla</a> <span *ngIf=\\\"supportQuota && supportQuota.qouta > 0 && (supportQuota.quota_used / supportQuota.quota) > 0.8\\\" class=\\\"badge badge-info pull-right\\\">{{((supportQuota.quota_used / supportQuota.quota) * 100).toFixed(1)}}%</span> <span *ngIf=\\\"supportQuota && supportQuota.quota == 0\\\" class=\\\"badge badge-info pull-right\\\">{{(supportQuota.quota_used / (1000 * 1000 * 1000)).toFixed(1)}} gb</span> <span class=\\\"badge badge-danger pull-right\\\" *ngIf=\\\"allSupportIssueCount > 0\\\">{{allSupportIssueCount}}</span></li>\\n\\t\\t\\t\\t\\t\\t<li routerLink=\\\"support/mine/\\\" routerLinkActive=\\\"active\\\"><a>Mina ärenden</a> <span class=\\\"badge badge-danger pull-right\\\" *ngIf=\\\"mySupportIssueCount > 0\\\">{{mySupportIssueCount}}</span></li>\\n\\t\\t\\t\\t\\t\\t<li routerLink=\\\"support/private/\\\" routerLinkActive=\\\"active\\\"><a>Privat inkorg</a> <span *ngIf=\\\"myQuota && myQuota.quota > 0 && (myQuota.quota_used / myQuota.quota) > 0.8\\\" class=\\\"badge badge-info pull-right\\\">{{((myQuota.quota_used / myQuota.quota) * 100).toFixed(1)}}%</span> <span *ngIf=\\\"myQuota && myQuota.quota == 0\\\" class=\\\"badge badge-info pull-right\\\">{{(myQuota.quota_used / (1000 * 1000 * 1000)).toFixed(1)}} gb</span> <span class=\\\"badge badge-danger pull-right\\\" *ngIf=\\\"myPrivateSupportIssueCount > 0\\\">{{myPrivateSupportIssueCount}}</span></li>\\n\\t\\t\\t\\t\\t</ul>\\n\\t\\t\\t\\t\\t<li (click)=\\\"domainsSubmenuVisible = !domainsSubmenuVisible\\\" [ngClass]=\\\"{'collapsed' : !domainsSubmenuVisible}\\\">\\n\\t\\t\\t\\t\\t\\t<a><i class=\\\"fa fa-globe\\\"></i> Domäner <span class=\\\"arrow\\\"></span></a>\\n\\t\\t\\t\\t\\t</li>\\n\\t\\t\\t\\t\\t<ul class=\\\"sub-menu\\\" id=\\\"support\\\" [ngClass]=\\\"{'hidden' : !domainsSubmenuVisible}\\\">\\n\\t\\t\\t\\t\\t\\t<li routerLink=\\\"/domains/all\\\" routerLinkActive=\\\"active\\\"><a >Alla</a></li>\\n\\t\\t\\t\\t\\t\\t<li routerLink=\\\"/domains/expires\\\" routerLinkActive=\\\"active\\\"><a >Förfaller</a></li>\\n\\t\\t\\t\\t\\t\\t<li routerLink=\\\"/domains/expired\\\" routerLinkActive=\\\"active\\\"><a >Förfallna</a></li>\\n\\t\\t\\t\\t\\t\\t<li routerLink=\\\"/domains/archived\\\" routerLinkActive=\\\"active\\\"><a >Arkiverade</a></li>\\n\\t\\t\\t\\t\\t</ul>\\n\\t\\t\\t\\t\\t<li routerLink=\\\"layouts/\\\" routerLinkActive=\\\"active\\\">\\n\\t\\t\\t\\t\\t\\t<a>\\n\\t\\t\\t\\t\\t\\t\\t<i class=\\\"fa fa-picture-o\\\"></i> Förslag\\n\\t\\t\\t\\t\\t\\t</a>\\n\\t\\t\\t\\t\\t</li>\\n\\t\\t\\t\\t\\t<li (click)=\\\"storageSubmenuVisible = !storageSubmenuVisible\\\" [ngClass]=\\\"{'collapsed' : !storageSubmenuVisible}\\\">\\n\\t\\t\\t\\t\\t\\t<a><i class=\\\"fa fa-archive fa-lg\\\"></i> Lagring <span class=\\\"arrow\\\"></span></a>\\n\\t\\t\\t\\t\\t</li>\\n\\t\\t\\t\\t\\t<ul class=\\\"sub-menu\\\" id=\\\"support\\\" [ngClass]=\\\"{'hidden' : !storageSubmenuVisible}\\\">\\n\\t\\t\\t\\t\\t\\t<li routerLink=\\\"/storage/hsd-synology-backup\\\" routerLinkActive=\\\"active\\\"><a >Gamla mambafiler</a></li>\\n\\t\\t\\t\\t\\t\\t<li routerLink=\\\"/storage/hsd-sites\\\" routerLinkActive=\\\"active\\\"><a>Filarkiv</a></li>\\n\\t\\t\\t\\t\\t\\t<li routerLink=\\\"/storage/hsd-sites-glacier\\\" routerLinkActive=\\\"active\\\"><a >Filarkiv - Nedstängda konton</a></li>\\n\\t\\t\\t\\t\\t\\t<li routerLink=\\\"/storage/hsd-public\\\" routerLinkActive=\\\"active\\\"><a>Hemsidor</a></li>\\n\\t\\t\\t\\t\\t\\t<li routerLink=\\\"/storage/hsd-public-glacier\\\" routerLinkActive=\\\"active\\\"><a >Hemsidor - Nedstängda konton</a></li>\\n\\t\\t\\t\\t\\t\\t<li routerLink=\\\"/storage/hsd-mailstore\\\" routerLinkActive=\\\"active\\\"><a>Borttagna mailkonton</a></li>\\n\\t\\t\\t\\t\\t\\t<li routerLink=\\\"/storage/hsd-mamba-sync\\\" routerLinkActive=\\\"active\\\"><a>Synkmapp -> Mamba</a></li>\\n\\t\\t\\t\\t\\t\\t<li routerLink=\\\"/storage/hsd-incoming-bucket\\\" routerLinkActive=\\\"active\\\"><a>Inkommande mail</a></li>\\n\\t\\t\\t\\t\\t</ul>\\n\\t\\t\\t\\t\\t<li (click)=\\\"mailSubmenuVisible = !mailSubmenuVisible\\\" [ngClass]=\\\"{'collapsed' : !mailSubmenuVisible}\\\">\\n\\t\\t\\t\\t\\t\\t<a><i class=\\\"fa fa-envelope fa-lg\\\"></i> E-post <span class=\\\"arrow\\\"></span></a>\\n\\t\\t\\t\\t\\t</li>\\n\\t\\t\\t\\t\\t<ul class=\\\"sub-menu\\\" id=\\\"support\\\" [ngClass]=\\\"{'hidden' : !mailSubmenuVisible}\\\">\\n\\t\\t\\t\\t\\t\\t<li routerLink=\\\"/email/imap-sync\\\" routerLinkActive=\\\"active\\\"><a>Synka mail</a></li>\\n\\t\\t\\t\\t\\t</ul>\\n\\t\\t\\t\\t\\t<li (click)=\\\"login()\\\" *ngIf=\\\"!isSignedIn\\\">\\n\\t\\t\\t\\t\\t\\t<a>\\n\\t\\t\\t\\t\\t\\t\\t<i class=\\\"fa fa-sign-in fa-lg\\\"></i> Logga in\\n\\t\\t\\t\\t\\t\\t</a>\\n\\t\\t\\t\\t\\t</li>\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t<li (click)=\\\"logout()\\\" *ngIf=\\\"isSignedIn\\\">\\n\\t\\t\\t\\t\\t\\t<a>\\n\\t\\t\\t\\t\\t\\t\\t<i class=\\\"fa fa-sign-out fa-lg\\\"></i> Logga ut\\n\\t\\t\\t\\t\\t\\t</a>\\n\\t\\t\\t\\t\\t</li>\\n\\t\\t\\t\\t</ul>\\t\\t\\t\\t\\t\\n\\t\\t\\t</div>\\t\\t     \\n\\t\\t</div>\\t\\t\\n\\t</div>\\n\\t\\n  <div id=\\\"page-content-wrapper\\\">\\n      <div class=\\\"container-fluid full-height-fill full-width-fill p52\\\">\\n          <router-outlet></router-outlet>\\n      </div>\\n  </div>\\n</div>\\n\\n<modal #errorModal>\\n\\t<modal-header [show-close]=\\\"false\\\">\\n\\t\\t\\t<h4 class=\\\"modal-title\\\">Fel</h4>\\n\\t</modal-header>\\n\\t<modal-body>\\n\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t<p>\\n\\t\\t\\t\\t{{errorMessage}}\\n\\t\\t\\t</p>\\n\\t\\t</div>\\t\\n\\t</modal-body>\\n</modal>\\n\\n<domaininfo #domainInfo></domaininfo>\\n<account-info-modal #accountInfoModal></account-info-modal>\\n<create-activity-modal #createActivityModal></create-activity-modal>\\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/app.component.html\n// module id = 987\n// module chunks = 0","module.exports = \"\\n\\n<div class=\\\"center\\\" *ngIf=\\\"!loaded\\\">\\n\\t<p>\\n\\t\\t<i class=\\\"fa fa-circle-o-notch fa-spin fa-3x fa-fw\\\"></i>\\n\\t</p>\\n</div>\\n\\n<file-upload #fileUpload></file-upload>\\n<email-utils *ngIf=\\\"company\\\" [companyId]=\\\"company.companyId\\\" #emailUtils></email-utils>\\n\\n<div *ngIf=\\\"loaded\\\" class=\\\"row form-group\\\">\\n\\t<div class=\\\"col-md-12\\\">\\n\\t\\t<ul class=\\\"nav nav-tabs\\\">\\n\\t\\t\\t<li role=\\\"presentation\\\" [ngClass]=\\\"{'active' : show == 'info'}\\\"><a (click)=\\\"show = 'info'\\\">Info</a></li>\\n\\t\\t\\t<li *ngIf=\\\"account.type == 'wordpress'\\\" role=\\\"presentation\\\" [ngClass]=\\\"{'active' : show == 'wordpress'}\\\"><a (click)=\\\"show = 'wordpress'\\\">Wordpress</a></li>\\n\\t\\t\\t<li *ngIf=\\\"account.type == 'wphost'\\\" role=\\\"presentation\\\" [ngClass]=\\\"{'active' : show == 'wphost'}\\\"><a (click)=\\\"show = 'wphost'\\\">Wordpress</a></li>\\n\\t\\t\\t<li role=\\\"presentation\\\" [ngClass]=\\\"{'active' : show == 'users'}\\\"><a (click)=\\\"show = 'users'\\\">Användare</a></li>\\n\\t\\t\\t<li role=\\\"presentation\\\" [ngClass]=\\\"{'active' : show == 'emailaccounts'}\\\"><a (click)=\\\"show = 'emailaccounts'\\\">E-post</a></li>\\n\\t\\t\\t<li role=\\\"presentation\\\" [ngClass]=\\\"{'active' : show == 'modules'}\\\"><a (click)=\\\"show = 'modules'\\\">Moduler</a></li>\\n\\t\\t</ul>\\n\\t</div>\\n</div>\\n\\n<div class=\\\"row\\\" *ngIf=\\\"loaded && wphostInfo\\\" [ngClass]=\\\"{'hidden' : show != 'wphost'}\\\"> <!-- modules div -->\\n\\t<div class=\\\"col-md-12\\\">\\n\\t\\t<div class=\\\"row form-group\\\">\\n\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\t\\t\\t\\t<ul>\\n\\t\\t\\t\\t\\t<li>Wordpress Server: <a target=\\\"_blank\\\" href=\\\"https://{{account.wphost}}\\\">{{account.wphost}}</a></li>\\n\\t\\t\\t\\t\\t<li>Wordpress version: {{wphostInfo.version}}</li>\\n\\t\\t\\t\\t\\t<li>Wordpress updatering: {{wphostInfo.update_info}}</li>\\n\\t\\t\\t\\t\\t<li>Total storlek på filer: \\n\\t\\t\\t\\t\\t\\t<ul *ngFor=\\\"let d of wphostInfo.disk\\\">\\n\\t\\t\\t\\t\\t\\t\\t<li>{{d}}</li>\\n\\t\\t\\t\\t\\t\\t</ul>\\n\\t\\t\\t\\t\\t</li>\\n\\t\\t\\t\\t</ul>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"col-md-6\\\" *ngIf=\\\"wphostInfo.dns.length\\\">\\n\\t\\t\\t\\t<table class='table'>\\n\\t\\t\\t\\t\\t<thead><tr><th>Namn</th><th>Status</th><th>Pekar till</th></tr></thead>\\n\\t\\t\\t\\t\\t<tbody>\\n\\t\\t\\t\\t\\t\\t<tr *ngFor=\\\"let d of wphostInfo.dns\\\">\\n\\t\\t\\t\\t\\t\\t\\t<td><a href=\\\"https://{d.record}\\\" target=\\\"_blank\\\">{{d.record}}</a></td>\\n\\t\\t\\t\\t\\t\\t\\t<td>{{d.status}}</td>\\n\\t\\t\\t\\t\\t\\t\\t<td>{{d.points}}</td>\\n\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t</tbody>\\n\\t\\t\\t\\t</table>\\n\\t\\t\\t\\t<button [disabled]=\\\"!canPublish\\\" type='button' class='btn btn-info' (click)=\\\"publishWp()\\\">Publicera</button>\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n\\t</div>\\n\\t<div class=\\\"col-md-12\\\">\\n\\t\\t<div class=\\\"row form-group\\\">\\n\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t<a href=\\\"javascript:;\\\" (click)=\\\"showWordpressInfo = !showWordpressInfo\\\"><i class=\\\"fa\\\" [ngClass]=\\\"{'fa-plus-square-o' : !showWordpressInfo, 'fa-minus-square-o' : showWordpressInfo}\\\"></i> Detaljer</a>\\n\\t\\t\\t\\t<div *ngIf=\\\"showWordpressInfo\\\">\\n\\t\\t\\t\\t\\t<code style=\\\"line-break: anywhere;\\\">\\n\\t\\t\\t\\t\\t\\t{{ wordpressInfoString }}\\n\\t\\t\\t\\t\\t</code>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n\\t</div>\\n</div>\\n\\n<div class=\\\"row\\\" *ngIf=\\\"loaded && wordpressInfo\\\" [ngClass]=\\\"{'hidden' : show != 'wordpress'}\\\"> <!-- modules div -->\\n\\t<div class=\\\"col-md-12\\\">\\n\\t\\t<div class=\\\"row form-group\\\">\\n\\t\\t\\t<div class=\\\"col-md-4\\\">\\n\\t\\t\\t\\tIP-adress: <a target=\\\"_blank\\\" href=\\\"http://{{wordpressInfo.publicIpAddress}}\\\">{{wordpressInfo.publicIpAddress}}</a><br />\\n\\t\\t\\t\\tState: {{wordpressInfo.state.name}} ({{wordpressInfo.state.code}})\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n\\t</div>\\n\\t<div class=\\\"col-md-12\\\">\\n\\t\\t<div class=\\\"row form-group\\\">\\n\\t\\t\\t<div class=\\\"col-md-4\\\">\\n\\t\\t\\t\\t<button [disabled]=\\\"wordpressInfo.state.code != 16 || wordpressInfo.state.code == 80\\\"  type=\\\"button\\\" class=\\\"btn btn-info btn-block\\\" (click)=\\\"stopWordpressInstance(wordpressInfo.name)\\\">\\n\\t\\t\\t\\t\\t<span *ngIf=\\\"wordpressInfo.state.code == 64\\\">Stoppar</span>\\n\\t\\t\\t\\t\\t<span *ngIf=\\\"wordpressInfo.state.code == 16\\\">Stoppa</span>\\n\\t\\t\\t\\t\\t<span *ngIf=\\\"wordpressInfo.state.code == 80\\\">Stoppad</span>\\n\\t\\t\\t\\t\\t<span *ngIf=\\\"wordpressInfo.state.code == 0\\\">väntar ...</span>\\n\\t\\t\\t\\t</button>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"col-md-4\\\">\\n\\t\\t\\t\\t<button [disabled]=\\\"wordpressInfo.state.code != 80\\\"  type=\\\"button\\\" class=\\\"btn btn-info btn-block\\\" (click)=\\\"startWordpressInstance(wordpressInfo.name)\\\">\\n\\t\\t\\t\\t\\t<span *ngIf=\\\"wordpressInfo.state.code == 80\\\">Starta</span>\\n\\t\\t\\t\\t\\t<span *ngIf=\\\"wordpressInfo.state.code == 16\\\">Startad</span>\\n\\t\\t\\t\\t\\t<span *ngIf=\\\"wordpressInfo.state.code == 64\\\">Startar</span>\\n\\t\\t\\t\\t\\t<span *ngIf=\\\"wordpressInfo.state.code == 0\\\">väntar ...</span>\\n\\t\\t\\t\\t</button>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"col-md-4\\\">\\n\\t\\t\\t\\t<button *ngIf=\\\"wordpressInfo.state.code == 16\\\" type=\\\"button\\\" class=\\\"btn btn-info btn-block\\\" (click)=\\\"rebootWordpressInstance(wordpressInfo.name)\\\">\\n\\t\\t\\t\\t\\tStarta om\\n\\t\\t\\t\\t</button>\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n\\t</div>\\t\\n\\t<div class=\\\"col-md-12\\\">\\n\\t\\t<div class=\\\"row form-group\\\">\\n\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t<a href=\\\"javascript:;\\\" (click)=\\\"showWordpressInfo = !showWordpressInfo\\\"><i class=\\\"fa\\\" [ngClass]=\\\"{'fa-plus-square-o' : !showWordpressInfo, 'fa-minus-square-o' : showWordpressInfo}\\\"></i> Detaljer</a>\\n\\t\\t\\t\\t<div *ngIf=\\\"showWordpressInfo\\\">\\n\\t\\t\\t\\t\\t<code style=\\\"line-break: anywhere;\\\">\\n\\t\\t\\t\\t\\t\\t{{ wordpressInfoString }}\\n\\t\\t\\t\\t\\t</code>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n\\t</div>\\n</div>\\n\\n<div class=\\\"row\\\" *ngIf=\\\"loaded && emailAccounts\\\" [ngClass]=\\\"{'hidden' : show != 'emailaccounts'}\\\"> <!-- modules div -->\\n\\t<div class=\\\"col-md-12 module-list\\\">\\n\\t\\t<div class=\\\"row form-group\\\">\\n\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t<button class=\\\"btn btn-primary\\\" (click)=\\\"addEmailAccount()\\\">Lägg till e-postkonto</button>\\n\\t\\t\\t\\t<button class=\\\"btn btn-primary\\\" (click)=\\\"addEmailAlias()\\\">Lägg till alias</button>\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t<table width=\\\"100%\\\" class=\\\"table table-sm\\\"> \\n\\t\\t\\t\\t\\t<thead>\\n\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t<th>Alias</th>\\n\\t\\t\\t\\t\\t\\t\\t<th>Destination</th>\\n\\t\\t\\t\\t\\t\\t\\t<th>Id</th>\\n\\t\\t\\t\\t\\t\\t\\t<th></th>\\n\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t</thead>\\n\\t\\t\\t\\t\\t<tbody *ngFor=\\\"let a of emailAccounts.aliases\\\">\\n\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t<td nowrap>\\n\\t\\t\\t\\t\\t\\t\\t\\t<a href=\\\"javascript:;\\\" (click)=\\\"editEmail(a)\\\">{{a.email}}</a>\\n\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t<td nowrap width=\\\"100%\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t{{a.dest}}\\n\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t<td nowrap>\\n\\t\\t\\t\\t\\t\\t\\t\\t{{a.id}}\\n\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t<td nowrap>\\n\\t\\t\\t\\t\\t\\t\\t\\t<a href=\\\"javascript:;\\\" (click)=\\\"editAlias(a)\\\">Redigera</a>\\n\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t</tbody>\\n\\t\\t\\t\\t\\t<tbody *ngIf=\\\"emailAccounts.aliases.length == 0\\\">\\n\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t<td colspan=\\\"4\\\">Det finns inga alias att visa</td>\\n\\t\\t\\t\\t\\t</tbody>\\n\\t\\t\\t\\t\\t<thead>\\n\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t<th>Epostadress</th>\\n\\t\\t\\t\\t\\t\\t\\t<th>Quota</th>\\n\\t\\t\\t\\t\\t\\t\\t<th>Id</th>\\n\\t\\t\\t\\t\\t\\t\\t<th></th>\\n\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t</thead>\\n\\t\\t\\t\\t\\t<tbody *ngFor=\\\"let a of emailAccounts.accounts\\\">\\n\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t<td nowrap>\\n\\t\\t\\t\\t\\t\\t\\t\\t<a href=\\\"javascript:;\\\" (click)=\\\"editEmail(a)\\\">{{a.email}}</a>\\n\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t<td nowrap width=\\\"100%\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"a.quota == 0\\\">Obegränsad storlek</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"a.quota != 0\\\">{{(a.quota_used / 1024 / 1024) | number:'1.1-1'}}Mb av {{(a.quota / 1024 / 1024) | number:'1.1-1'}}Mb</span>\\n\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t<td nowrap>\\n\\t\\t\\t\\t\\t\\t\\t\\t{{a.mailId}}\\n\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t<td nowrap>\\n\\t\\t\\t\\t\\t\\t\\t\\t<a href=\\\"javascript:;\\\" (click)=\\\"editEmail(a)\\\">Redigera</a>\\n\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t</tbody>\\n\\t\\t\\t\\t\\t<tbody *ngIf=\\\"emailAccounts.aliases.length == 0\\\">\\n\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t<td colspan=\\\"4\\\">Det finns inga epostkonton att visa</td>\\n\\t\\t\\t\\t\\t</tbody>\\n\\t\\t\\t\\t</table>\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n\\t</div>\\n</div>\\n\\n<div class=\\\"row\\\" *ngIf=\\\"loaded\\\" [ngClass]=\\\"{'hidden' : show != 'modules'}\\\"> <!-- modules div -->\\n\\t<div class=\\\"col-md-12 module-list\\\">\\n\\t\\t<div class=\\\"row form-group\\\">\\n\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t<input type=\\\"search\\\" class=\\\"form-control\\\" placeholder=\\\"Sök\\\" [(ngModel)]=\\\"moduleSearch\\\"/>\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n\\t\\t<div class=\\\"row form-group\\\">\\n\\t\\t\\t<div class=\\\"col-md-12 module-list\\\">\\n\\t\\t\\t\\t<div *ngFor=\\\"let m of availableModules\\\">\\n\\t\\t\\t\\t\\t<div class=\\\"row form-group\\\" *ngIf=\\\"moduleSearch == '' || m.title.toLowerCase().indexOf(moduleSearch.toLowerCase()) != -1\\\">\\n\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-10\\\">\\n\\t\\t\\t\\t\\t\\t\\t{{m.title}}\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-2\\\">\\n\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-block pull-right btn-success\\\" (click)=\\\"disableModule(m)\\\" *ngIf=\\\"m.active && !m.disabling && !m.enabling\\\">Aktiv</button>\\n\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-block pull-right btn-danger\\\" (click)=\\\"enableModule(m)\\\" *ngIf=\\\"!m.active && !m.disabling && !m.enabling\\\">Inaktiv</button>\\n\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-block pull-right btn-success\\\" *ngIf=\\\"m.disabling\\\">Inaktiverar <i class=\\\"fa fa-spin fa-circle-o-notch\\\"></i></button>\\n\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-block pull-right btn-danger\\\" *ngIf=\\\"m.enabling\\\">Aktiverar <i class=\\\"fa fa-spin fa-circle-o-notch\\\"></i></button>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n\\t</div>\\n</div>\\n\\n<div class=\\\"row\\\" *ngIf=\\\"loaded\\\" [ngClass]=\\\"{'hidden' : show != 'info'}\\\"> <!-- info div -->\\n\\t<div class=\\\"col-md-6\\\">\\t\\t\\n\\t\\t<div class=\\\"row form-group\\\">\\n\\t\\t\\t<div class=\\\"col-md-8\\\">\\n\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" placeholder=\\\"Prefix\\\" [(ngModel)]=\\\"account.prefix\\\" readonly />\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"col-md-4\\\">\\n\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-info btn-block dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"account.active == 1\\\">Aktiv</span>\\n\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"account.active == 0\\\">Inaktiv</span>\\n\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"setActive()\\\">Aktiv</a>\\n\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"setInactive()\\\">Inaktiv</a>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n\\t\\t<div class=\\\"row form-group\\\">\\n\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t<small>Arkiveringsstatus:\\n\\t\\t\\t\\t<span *ngIf=\\\"account.s3status == 'normal'\\\">Normal</span> \\n\\t\\t\\t\\t<span *ngIf=\\\"account.s3status == 'archiving'\\\">Arkiverar</span>\\n\\t\\t\\t\\t<span *ngIf=\\\"account.s3status == 'archived'\\\">Arkiverad</span>\\n\\t\\t\\t\\t<span *ngIf=\\\"account.s3status == 'restoring'\\\">Återställer</span>\\n\\t\\t\\t\\t<span *ngIf=\\\"account.s3status == 'restored'\\\">Återställd</span>\\n\\t\\t\\t\\t<span *ngIf=\\\"account.s3status == 'error'\\\">Fel</span>\\n\\t\\t\\t\\t</small>\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n\\t\\t<div class=\\\"row form-group\\\">\\n\\t\\t\\t<div class=\\\"col-md-8\\\">\\n\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-info btn-block dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\">{{_accountStatuses[account.statusId]}}</span>\\n\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t<a *ngFor=\\\"let s of accountStatuses\\\" class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"setStatus(s.statusId)\\\">{{s.name}}</a>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"col-md-4\\\">\\n\\t\\t\\t\\t<button  type=\\\"button\\\" class=\\\"btn btn-info btn-block\\\" (click)=\\\"showInfoModal()\\\" [disabled]=\\\"!infoTemplates[account.statusId] || (account.statusId == 2 && this.layoutImageUrl == null)\\\">Skicka info</button>\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t<span *ngIf=\\\"account.statusLog && account.statusLog.length > 0\\\">\\n\\t\\t\\t\\t<small><date-formatter [date]=\\\"account.statusLog[0].createdDate\\\"></date-formatter></small><br />\\n\\t\\t\\t\\t<small>{{account.statusLog[0].note}}</small>\\n\\t\\t\\t</span>\\n\\t\\t</div>\\n\\t\\t<div class=\\\"row form-group\\\">\\n\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-info btn-block dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"account.userId != null\\\">{{account.firstName}} {{account.lastName}}</span>\\n\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"account.userId == null\\\">Otilldelad</span>\\n\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"assignTo({ userId : 0, firstName : '', lastName : ''})\\\">Otilldelad</a>\\n\\t\\t\\t\\t\\t<div class=\\\"dropdown-divider\\\"></div>\\n\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" *ngFor=\\\"let u of availableUsers\\\" (click)=\\\"setOwner(u)\\\">{{u.lastName}}, {{u.firstName}}</a>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t<textarea [readonly]=\\\"!edit\\\" style=\\\"height:222px\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"account.noteStr\\\"></textarea>\\n\\t\\t</div>\\n\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t<button class=\\\"btn btn-primary\\\" *ngIf=\\\"!edit\\\" (click)=\\\"edit = true\\\">Ändra</button>\\n\\t\\t\\t<button class=\\\"btn btn-danger\\\" *ngIf=\\\"edit\\\" (click)=\\\"edit = false\\\">Avbryt</button>\\n\\t\\t\\t<button class=\\\"btn btn-primary\\\" *ngIf=\\\"edit\\\" (click)=\\\"saveNote()\\\">Spara</button>\\n\\t\\t\\t<a *ngIf=\\\"account.type != 'wordpress' && account.type != 'wphost'\\\" class=\\\"btn btn-info pull-right\\\" target=\\\"_blank\\\" href=\\\"https://admin.hemsidadirekt.se/login.php?accountId={{account.accountId}}&hash={{account.loginhash}}\\\"><i class=\\\"fa fa-sign-in\\\"></i> Logga in</a>\\n\\t\\t\\t<a *ngIf=\\\"account.type == 'wordpress' && wordpressInfo && account.statusId < 13\\\" class=\\\"btn btn-info pull-right\\\" target=\\\"_blank\\\" href=\\\"http://{{account.prefix}}.generatorhallen.se/gh-login.php?user=User&prefix={{account.prefix}}&hash={{account.loginhash}}\\\"><i class=\\\"fa fa-sign-in\\\"></i> Logga in</a>\\n\\t\\t\\t<a *ngIf=\\\"account.type == 'wphost' && wordpressInfo && account.statusId < 13\\\" class=\\\"btn btn-info pull-right\\\" target=\\\"_blank\\\" href=\\\"http://{{account.prefix}}.hemsidadirekt.se/gh-login.php?user=User&prefix={{account.prefix}}&hash={{account.loginhash}}\\\"><i class=\\\"fa fa-sign-in\\\"></i> Logga in</a>\\n\\t\\t\\t<a *ngIf=\\\"(account.type == 'wordpress' || account.type == 'wphost') && wordpressInfo && account.statusId == 13 && company\\\" class=\\\"btn btn-info pull-right\\\" target=\\\"_blank\\\" href=\\\"http://www.{{company.domain[0].domain}}/gh-login.php?user=User&prefix={{account.prefix}}&hash={{account.loginhash}}\\\"><i class=\\\"fa fa-sign-in\\\"></i> Logga in</a>\\n\\t\\t</div>\\n\\t</div>\\n\\t<div class=\\\"col-md-6\\\">\\n\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t<div class=\\\"layout-image-container\\\">\\n\\t\\t\\t\\t<a *ngIf=\\\"layoutImageUrl\\\" href=\\\"{{layoutImageUrl}}\\\" target=\\\"_blank\\\"><img src=\\\"{{layoutImageUrl}}\\\" class=\\\"layout-image\\\"/></a>\\n\\t\\t\\t\\t<img *ngIf=\\\"!layoutImageUrl\\\" src=\\\"/assets/css/missing-image.png\\\" class=\\\"layout-image missing\\\"/>\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\t\\t\\t\\t<button class=\\\"btn btn-primary btn-block\\\" (click)=\\\"uploadLayoutImage()\\\" *ngIf=\\\"layoutImageUrl\\\"><i class=\\\"fa fa-upload\\\"></i> Nytt förslag</button>\\n\\t\\t\\t\\t<button class=\\\"btn btn-primary btn-block\\\" (click)=\\\"uploadLayoutImage()\\\" *ngIf=\\\"!layoutImageUrl\\\"><i class=\\\"fa fa-upload\\\"></i> Ladda upp förslag</button>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\t\\t\\t\\t<button class=\\\"btn btn-danger btn-block\\\" (click)=\\\"confirmRemoveLayoutImage()\\\" *ngIf=\\\"layoutImageUrl\\\"><i class=\\\"fa fa-trash\\\"></i> Ta bort</button>\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t</div>\\n\\t</div>\\n</div> <!-- / info div -->\\n\\n<div class=\\\"row\\\" *ngIf=\\\"loaded\\\" [ngClass]=\\\"{'hidden' : show != 'users'}\\\"> <!-- users div -->\\n\\t<div class=\\\"col-md-12\\\">\\n\\t\\t<div class=\\\"form-group\\\" *ngIf=\\\"!account.isWordpress\\\">\\n\\t\\t\\t<button class=\\\"btn btn-primary\\\" (click)=\\\"addNewUser()\\\">Lägg till användare</button>\\n\\t\\t</div>\\n\\t\\t<table class=\\\"table\\\">\\n\\t\\t\\t<tr>\\n\\t\\t\\t\\t<th>Namn</th>\\n\\t\\t\\t\\t<th>Användarnamn</th>\\n\\t\\t\\t\\t<th *ngIf=\\\"account.isWordpress\\\">Lösenord</th>\\n\\t\\t\\t\\t<th></th>\\n\\t\\t\\t\\t<th>E-post</th>\\n\\t\\t\\t\\t<th></th>\\n\\t\\t\\t</tr>\\n\\t\\t\\t<tr *ngFor=\\\"let u of account.users\\\">\\n\\t\\t\\t\\t<td class=\\\"vert-align\\\">{{u.name}}</td>\\n\\t\\t\\t\\t<td *ngIf=\\\"!account.isWordpress\\\" class=\\\"vert-align\\\">{{u.username}}</td>\\n\\t\\t\\t\\t<td *ngIf=\\\"account.isWordpress\\\" class=\\\"vert-align\\\">user</td>\\n\\t\\t\\t\\t<td *ngIf=\\\"account.isWordpress\\\" class=\\\"vert-align\\\">{{account.password}}</td>\\n\\t\\t\\t\\t<td *ngIf=\\\"!account.isWordpress\\\" class=\\\"vert-align\\\"><a href=\\\"https://admin.hemsidadirekt.se/login.php?accountId={{account.accountId}}&hash={{u.loginhash}}\\\" target=\\\"_blank\\\">Logga in</a></td>\\n\\t\\t\\t\\t<td *ngIf=\\\"account.isWordpress\\\" class=\\\"vert-align\\\"><a href=\\\"{{account.login_url}}\\\" target=\\\"_blank\\\">Logga in</a></td>\\n\\t\\t\\t\\t<td *ngIf=\\\"!account.isWordpress && wordpressInfo && account.statusId == 13 && company\\\" class=\\\"vert-align\\\"><a href=\\\"http://www.{{company.domain[0].domain}}/gh-login.php?user=User&prefix={{account.prefix}}&hash={{account.loginhash}}\\\" target=\\\"_blank\\\">Logga in</a></td>\\n\\t\\t\\t\\t<td class=\\\"vert-align\\\">{{u.email}}</td>\\n\\t\\t\\t\\t<td >\\n\\t\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-info btn-sm btn-block dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\">Åtgärd</span>\\n\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"sendLoginDetails(u)\\\">Skicka välkomstmail</a>\\n\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"sendDomainInfo(u)\\\">Skicka domäninfomail</a>\\n\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"sendStartGuide(u)\\\">Skicka starthjälpen</a>\\n\\t\\t\\t\\t\\t\\t\\t<a *ngIf=\\\"account.type != 'wordpress'\\\" class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"setUserPassword(u)\\\">Byt lösenord</a>\\n\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"setUserEmail(u)\\\">Ändra e-postadress</a>\\n\\t\\t\\t\\t\\t\\t\\t<a *ngIf=\\\"account.type != 'wordpress'\\\" class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"deleteUser(u)\\\">Ta bort</a>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</td>\\n\\t\\t\\t</tr>\\n\\t\\t</table>\\n\\t</div>\\n</div> <!-- / users div -->\\n\\n<modal #confirmRemoveLayoutImageModal>\\n\\t<modal-header [show-close]=\\\"true\\\">\\n\\t\\t<h4 class=\\\"modal-title\\\">Ta bort förslag</h4>\\n\\t</modal-header>\\n\\t<modal-body>\\n\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\tVill du ta bort förslaget? Detta går inte att göra ogjort, någonsin.\\n\\t\\t</div>\\n\\t</modal-body>\\n\\t<modal-footer>\\n\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-default\\\" data-dismiss=\\\"modal\\\" (click)=\\\"confirmRemoveLayoutImageModal.close()\\\">Avbryt</button>\\n\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-danger\\\" data-dismiss=\\\"modal\\\" (click)=\\\"removeLayoutImage()\\\">Ta bort</button>\\n\\t</modal-footer>\\n</modal>\\n\\n<modal #createActivityModal>\\n\\t<modal-header [show-close]=\\\"true\\\">\\n\\t\\t<h4 class=\\\"modal-title\\\">Skapa aktivitet</h4>\\n\\t</modal-header>\\n\\t<modal-body>\\n\\t\\t<div *ngIf=\\\"account.statusId == 9\\\">\\n\\t\\t\\t<h5>Hemsida under produktion</h5>\\n\\t\\t\\t<p>2 aktiviteter bör skapas när status går till status 'Hemsida, under produktion'. <strong>Hemsida, Klipp upp</strong> och <strong>Hemsida, under produktion</strong></p>\\n\\t\\t</div>\\n\\t</modal-body>\\n\\t<modal-footer>\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-default\\\" (click)=\\\"closeCreateActivityModal()\\\">Jag gör det sen</button>\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-success\\\" (click)=\\\"createActivitiesAndClose()\\\">Skapa dessa nu</button>\\n\\t</modal-footer>\\n</modal>\\n\\n<modal #noLayoutImageModal>\\n\\t<modal-header [show-close]=\\\"true\\\">\\n\\t\\t<h4 class=\\\"modal-title\\\">Inget förslag</h4>\\n\\t</modal-header>\\n\\t<modal-body>\\n\\t\\t<div class=\\\"center\\\" *ngIf=\\\"this.layoutImageUrl == null\\\">\\n\\t\\t\\t<p>Ingen förslagsbild är uppladdad. Du måste ladda upp en bild innan du kan skicka ut informationsmail.</p>\\n\\t\\t</div>\\n\\t</modal-body>\\n\\t<modal-footer *ngIf=\\\"!noLayoutImageModal\\\">\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-default\\\" data-dismiss=\\\"modal\\\" (click)=\\\"noLayoutImageModal.dismiss()\\\">Stäng</button>\\n\\t</modal-footer>\\n</modal>\\n\\n<modal #sendInfoModal>\\n\\t<modal-header [show-close]=\\\"true\\\">\\n\\t\\t\\t<h4 class=\\\"modal-title\\\">Skicka statusinfo</h4>\\n\\t</modal-header>\\n\\t<modal-body>\\n\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t<p>\\n\\t\\t\\tFöljande information om denna statusändring kommer att skickas till den kontakt du väljer i listan nedan.\\n\\t\\t\\t</p>\\n\\t\\t</div>\\n\\t\\t<div class=\\\"row form-group\\\">\\n\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"selectedContactEmail\\\" placeholder=\\\"E-postadress\\\">\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-info btn-block dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\">{{selectedFirstName}} {{selectedLastName}} <{{selectedContactEmail}}></span>\\n\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t<a *ngFor=\\\"let c of contactEmails\\\" class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"selectedContactEmail = c.adress; selectedFirstName = c.firstName; selectedLastName = c.lastName\\\">{{c.firstName}} {{c.lastName}} <{{c.adress}}></a>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"infoSubject\\\" placeholder=\\\"Ämnesrad\\\"/>\\n\\t\\t</div>\\n\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t<textarea class=\\\"form-control\\\" rows=\\\"10\\\" placeholder=\\\"Eventuellt meddelande till kund är frivilligt ...\\\" [(ngModel)]=\\\"infoMessage\\\"></textarea>\\n\\t\\t</div>\\n\\t</modal-body>\\n\\t<modal-footer>\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-default\\\" (click)=\\\"closeInfoModal(undefined, true)\\\">Avbryt</button>\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-primary\\\" (click)=\\\"sendInfoMail()\\\">Skicka</button>\\n\\t</modal-footer>\\n</modal>\\n\\n<modal #sendDetailsModal>\\n\\t<modal-header [show-close]=\\\"true\\\">\\n\\t\\t\\t<h4 class=\\\"modal-title\\\">Skicka info</h4>\\n\\t</modal-header>\\n\\t<modal-body>\\n\\t\\t<div class=\\\"row form-group\\\">\\n\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"selectedContactEmail\\\" placeholder=\\\"E-postadress\\\">\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"infoSubject\\\" placeholder=\\\"Ämnesrad\\\"/>\\n\\t\\t</div>\\n\\t\\t<ul class=\\\"nav nav-tabs\\\">\\n\\t\\t\\t<li role=\\\"presentation\\\" [ngClass]=\\\"{'active' : detailsTab == 'message'}\\\"><a (click)=\\\"detailsTab = 'message'\\\">Meddelande</a></li>\\n\\t\\t\\t<li role=\\\"presentation\\\" [ngClass]=\\\"{'active' : detailsTab == 'preview'}\\\"><a (click)=\\\"detailsTab = 'preview'\\\">Förhandsgranskning</a></li>\\n\\t\\t</ul>\\n\\t\\t<div class=\\\"form-group\\\" *ngIf=\\\"detailsTab == 'message'\\\">\\n\\t\\t\\t<textarea class=\\\"form-control\\\" rows=\\\"10\\\" placeholder=\\\"Eventuellt meddelande till kund är frivilligt ...\\\" (ngModelChange)=\\\"infoTextChanged($event)\\\" [(ngModel)]=\\\"infoMessage\\\"></textarea>\\n\\t\\t</div>\\n\\t\\t<div class=\\\"form-group mailPreview\\\" [innerHTML]=\\\"infoTextPreview\\\" *ngIf=\\\"detailsTab == 'preview'\\\">\\n\\t\\t</div>\\n\\t</modal-body>\\n\\t<modal-footer>\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-default\\\" data-dismiss=\\\"modal\\\" (click)=\\\"sendDetailsModal.dismiss()\\\">Avbryt</button>\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-primary\\\" (click)=\\\"sendInfoMail(sendDetailsModal)\\\">Skicka</button>\\n\\t</modal-footer>\\n</modal>\\n\\n<modal #confirmDeleteUserModal>\\n\\t<modal-header [show-close]=\\\"true\\\">\\n\\t\\t\\t<h4 class=\\\"modal-title\\\">Ta bort användare</h4>\\n\\t</modal-header>\\n\\t<modal-body>\\n\\t\\t<div class=\\\"row form-group\\\">\\n\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\tVill du verkligen ta bort användaren <strong *ngIf=\\\"userToDelete\\\">{{userToDelete.username}}</strong>? Detta kan inte göras ogjort.\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n\\t</modal-body>\\n\\t<modal-footer>\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-default\\\" data-dismiss=\\\"modal\\\" (click)=\\\"deleteUserModal.dismiss()\\\">Avbryt</button>\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-primary\\\" (click)=\\\"confirmDeleteUser()\\\">Spara</button>\\n\\t</modal-footer>\\n</modal>\\n\\n<modal #addUserModal>\\n\\t<modal-header [show-close]=\\\"true\\\">\\n\\t\\t\\t<h4 class=\\\"modal-title\\\">Ny användare</h4>\\n\\t</modal-header>\\n\\t<modal-body>\\n\\t\\t<div class=\\\"row form-group\\\">\\n\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"newUserData.name\\\" placeholder=\\\"Namn\\\">\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n\\t\\t<div class=\\\"row form-group\\\">\\n\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"newUserData.email\\\" placeholder=\\\"E-post\\\">\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n\\t\\t<div class=\\\"row form-group\\\">\\n\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"newUserData.username\\\" placeholder=\\\"Användarnamn\\\">\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n\\t\\t<div class=\\\"row form-group\\\">\\n\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"newUserData.password\\\" placeholder=\\\"Lösenord\\\">\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n\\t\\t<div class=\\\"row form-group\\\">\\n\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t<button class=\\\"btn btn-primary\\\" (click)=\\\"generateRandomPassword()\\\">Generera ett lösenord</button>\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n\\t</modal-body>\\n\\t<modal-footer>\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-default\\\" data-dismiss=\\\"modal\\\" (click)=\\\"addUserModal.dismiss()\\\">Avbryt</button>\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-primary\\\" [disabled]=\\\"!newUserData.name ||!newUserData.email ||!newUserData.username ||!newUserData.password\\\" (click)=\\\"addUser()\\\">Skapa användare</button>\\n\\t</modal-footer>\\n</modal>\\n\\n<modal #setUserPasswordModal>\\n\\t<modal-header [show-close]=\\\"true\\\">\\n\\t\\t\\t<h4 class=\\\"modal-title\\\">Byt lösenord</h4>\\n\\t</modal-header>\\n\\t<modal-body>\\n\\t\\t<div class=\\\"row form-group\\\">\\n\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"newPassword\\\" placeholder=\\\"Nytt lösenord\\\">\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n\\t\\t<div class=\\\"row form-group\\\">\\n\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t<button class=\\\"btn btn-primary\\\" (click)=\\\"generateRandomPassword()\\\">Generera ett lösenord</button>\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n\\t</modal-body>\\n\\t<modal-footer>\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-default\\\" data-dismiss=\\\"modal\\\" (click)=\\\"sendDetailsModal.dismiss()\\\">Avbryt</button>\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-primary\\\" (click)=\\\"saveUserPassword()\\\">Spara</button>\\n\\t</modal-footer>\\n</modal>\\n\\n<modal #setUserEmailModal>\\n\\t<modal-header [show-close]=\\\"true\\\">\\n\\t\\t\\t<h4 class=\\\"modal-title\\\">Ändra e-postadress</h4>\\n\\t</modal-header>\\n\\t<modal-body>\\n\\t\\t<div class=\\\"row form-group\\\">\\n\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"newEmail\\\" placeholder=\\\"Ny e-postadress\\\">\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n\\t</modal-body>\\n\\t<modal-footer>\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-default\\\" data-dismiss=\\\"modal\\\" (click)=\\\"sendDetailsModal.dismiss()\\\">Avbryt</button>\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-primary\\\" (click)=\\\"saveUserEmail()\\\">Spara</button>\\n\\t</modal-footer>\\n</modal>\\n\\n<modal #waitModal>\\n\\t<modal-header [show-close]=\\\"true\\\">\\n\\t\\t\\t<h4 class=\\\"modal-title\\\">Vänta</h4>\\n\\t</modal-header>\\n\\t<modal-body>\\n\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t<i class=\\\"fa fa-circle-o-notch fa-spin fa-3x fa-fw\\\"></i><br />\\n\\t\\t\\tvänta ...\\n\\t\\t</div>\\n\\t</modal-body>\\n</modal>\\n\\n<modal #errorModal>\\n\\t<modal-header [show-close]=\\\"false\\\">\\n\\t\\t\\t<h4 class=\\\"modal-title\\\">Fel</h4>\\n\\t</modal-header>\\n\\t<modal-body>\\n\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t{{errorMessage}}\\n\\t\\t</div>\\n\\t</modal-body>\\n\\t<modal-footer *ngIf=\\\"!sendError || sent\\\">\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-default\\\" (click)=\\\"closeErrorDialog()\\\">Stäng</button>\\n\\t</modal-footer>\\n</modal>\\n\\n<modal #saveModal>\\n\\t<modal-header [show-close]=\\\"true\\\">\\n\\t\\t\\t<h4 class=\\\"modal-title\\\">Vänta</h4>\\n\\t</modal-header>\\n\\t<modal-body>\\n\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t<i class=\\\"fa fa-circle-o-notch fa-spin fa-3x fa-fw\\\"></i><br />\\n\\t\\t\\tsparar ...\\n\\t\\t</div>\\n\\t</modal-body>\\n\\t<modal-footer *ngIf=\\\"!sendError || sent\\\">\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-default\\\" data-dismiss=\\\"modal\\\" (click)=\\\"waitModal.dismiss()\\\">Stäng</button>\\n\\t</modal-footer>\\n</modal>\\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/components/templates/accountinfo.html\n// module id = 988\n// module chunks = 0","module.exports = \"<modal #accountInfoModal>\\n\\t\\t<modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Kontoinfo</h4>\\n    </modal-header>\\n\\t\\t<modal-body>\\n\\t\\t\\t<account-info #accountInfo></account-info>\\n\\t\\t</modal-body>\\n\\t\\t<modal-footer>\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-default\\\" (click)=\\\"dismissModal()\\\">Stäng</button>\\n\\t\\t\\t<button type=\\\"button\\\" [disabled]=\\\"!accountInfo || !accountInfo.loaded\\\" class=\\\"btn btn-danger\\\" (click)=\\\"deleteAccountModal.open()\\\">Ta bort</button>\\n\\t\\t</modal-footer>\\n</modal>\\n\\n<modal #deleteAccountModal>\\n\\t<modal-header [show-close]=\\\"true\\\">\\n\\t\\t<h4 class=\\\"modal-title\\\">Ta bort konto</h4>\\n\\t</modal-header>\\n\\t<modal-body>\\n\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\tÄr du säker på att du vill ta bort kontot? Alla domäner och epostkonton/alias kommer också att tas bort. Detta kan inte göras ogjort.\\n\\t\\t</div>\\n\\t</modal-body>\\n\\t<modal-footer *ngIf=\\\"!noLayoutImageModal\\\">\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-danger\\\" (click)=\\\"deleteAccountModal.close(); deleteAccount()\\\">Ta bort</button>\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-default\\\" (click)=\\\"deleteAccountModal.close()\\\">Avbryt</button>\\n\\t</modal-footer>\\n</modal>\\n\\n<modal #waitModal>\\n\\t<modal-header [show-close]=\\\"true\\\">\\n\\t\\t\\t<h4 class=\\\"modal-title\\\">Vänta</h4>\\n\\t</modal-header>\\n\\t<modal-body>\\n\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t<i class=\\\"fa fa-circle-o-notch fa-spin fa-3x fa-fw\\\"></i><br />\\n\\t\\t\\tvänta ...\\n\\t\\t</div>\\n\\t</modal-body>\\n</modal>\\n\\n<modal #deletingAccountModal>\\n\\t<modal-header [show-close]=\\\"true\\\">\\n\\t\\t\\t<h4 class=\\\"modal-title\\\">Vänta</h4>\\n\\t</modal-header>\\n\\t<modal-body>\\n\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t<i class=\\\"fa fa-circle-o-notch fa-spin fa-3x fa-fw\\\"></i><br />\\n\\t\\t\\t{{ deleteAccountStatus }}\\n\\t\\t</div>\\n\\t</modal-body>\\n</modal>\\n\\n<modal #errorModal>\\n\\t<modal-header [show-close]=\\\"true\\\">\\n\\t\\t\\t<h4 class=\\\"modal-title\\\">Fel</h4>\\n\\t</modal-header>\\n\\t<modal-body>\\n\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t{{errorMessage}}\\n\\t\\t</div>\\n\\t</modal-body>\\n\\t<modal-footer *ngIf=\\\"!sendError || sent\\\">\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-default\\\" data-dismiss=\\\"modal\\\" (click)=\\\"errorModal.dismiss()\\\">Stäng</button>\\n\\t</modal-footer>\\n</modal>\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/components/templates/accountinfomodal.html\n// module id = 989\n// module chunks = 0","module.exports = \"\\n<mailcomposer #newMailComposer>\\n\\n</mailcomposer>\\n\\n<modal #savingModal>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Sparar</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t\\t<p>\\n\\t\\t\\t\\t\\t<i class=\\\"fa fa-circle-o-notch fa-spin fa-3x fa-fw\\\"></i>\\n\\t\\t\\t\\t</p>\\n\\t\\t\\t\\t<p>\\n\\t\\t\\t\\t\\tVänta lite, sparar ...\\n\\t\\t\\t\\t</p>\\n\\t\\t\\t</div>\\t\\n    </modal-body>\\n</modal>\\n\\n<div class=\\\"row b-b-1\\\">\\n\\t<div class=\\\"col-md-12\\\">\\n\\t\\t<h3><a href=\\\"javascript:;\\\" (click)=\\\"closeActivity()\\\"><i class=\\\"fa fa-close\\\"></i></a>\\n\\t\\t<span class=\\\"nomobile\\\">Aktivitetsdetaljer</span><small class=\\\"nomobile\\\"> - </small><small *ngIf=\\\"loaded\\\">{{activity.name}}</small></h3>\\n\\t</div>\\n</div>\\n\\n<div class=\\\"row\\\" *ngIf=\\\"!loaded\\\">\\n\\t<div class=\\\"col-md-12 centered navbar\\\">\\t\\n\\t\\t\\t<i class=\\\"fa fa-circle-o-notch fa-spin fa-3x fa-fw\\\"></i>\\n\\t</div>\\n</div>\\t\\t\\n\\n<div *ngIf=\\\"loaded\\\" class=\\\"p-b-3\\\">\\n\\n\\t<div class=\\\"row\\\">\\n\\t\\t\\t\\n\\t\\t<div class=\\\"col-md-12 navbar\\\" *ngIf=\\\"loaded\\\">\\n\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t<div class=\\\"btn-group\\\">\\n\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-success pull-right\\\" (click)=\\\"save()\\\"><i class=\\\"fa fa-floppy-o\\\"></i> <span class=\\\"nomobile\\\">Spara</span></button>\\n\\t\\t\\t</div>\\n\\n\\t\\t\\t<div class=\\\"btn-group\\\" data-toggle=\\\"buttons\\\">\\n\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-warning dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t<span class=\\\"sr-onlys nomobile\\\" *ngIf=\\\"activity.statusId == 2\\\">Startklar</span>\\n\\t\\t\\t\\t\\t<span class=\\\"sr-onlys nomobile\\\" *ngIf=\\\"activity.statusId == 3\\\">Startad</span>\\n\\t\\t\\t\\t\\t<span class=\\\"sr-onlys nomobile\\\" *ngIf=\\\"activity.statusId == 4\\\">Avstannad</span>\\n\\t\\t\\t\\t\\t<span class=\\\"sr-onlys nomobile\\\" *ngIf=\\\"activity.statusId == 5\\\">Lansering</span>\\n\\t\\t\\t\\t\\t<span class=\\\"sr-onlys nomobile\\\" *ngIf=\\\"activity.statusId == 6\\\">Avslutad</span>\\n\\t\\t\\t\\t\\t<span class=\\\"sr-onlys nomobile\\\" *ngIf=\\\"activity.statusId == 7\\\">Väntar</span>\\n\\t\\t\\t\\t\\t<span class=\\\"sr-onlys nodesktop\\\"><i class=\\\"fa fa-flag\\\"></i></span>\\n\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\t\\t\\t  \\n\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"setStatus(2)\\\">Startklar</a>\\n\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"setStatus(3)\\\">Startad</a>\\n\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"setStatus(4)\\\">Avstannad</a>\\n\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"setStatus(5)\\\">Lansering</a>\\n\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"setStatus(6)\\\">Avslutad</a>\\n\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"setStatus(7)\\\">Väntar</a>\\t\\t    \\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\t\\t\\n\\t\\t\\t\\n\\t\\t\\t<div class=\\\"btn-group\\\">\\n\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-primary dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t<span class=\\\"sr-onlys nomobile\\\" *ngIf=\\\"activity.userId != 26\\\">{{activity.firstName}} {{activity.lastName}}</span>\\n\\t\\t\\t\\t\\t<span class=\\\"sr-onlys nomobile\\\" *ngIf=\\\"activity.userId == 26\\\">Otilldelad</span>\\n\\t\\t\\t\\t\\t<span class=\\\"sr-onlys nodesktop\\\"><i class=\\\"fa fa-user\\\"></i></span>\\n\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"assignTo({ userId : 26, firstName : '', lastName : ''})\\\">Otilldelad</a>\\n\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"assignTo({ userId : user.userId, firstName : user.firstName, lastName : user.lastName})\\\">Tilldela till mig</a>\\n\\t\\t\\t\\t\\t<div class=\\\"dropdown-divider\\\"></div>\\n\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" *ngFor=\\\"let u of availableUsers\\\" (click)=\\\"assignTo(u)\\\">{{u.lastName}}, {{u.firstName}}</a>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t\\t\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-info\\\" (click)=\\\"sendMail()\\\" [disabled]=\\\"!companyInfo.loaded\\\"><i class=\\\"fa fa-envelope\\\"></i> <span class=\\\"nomobile\\\">Svara kund</span></button>\\n\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-info\\\" (click)=\\\"createNewFromThis()\\\" [disabled]=\\\"!companyInfo.loaded\\\"><i class=\\\"fa fa-plus\\\"></i> <span class=\\\"nomobile\\\">Skapa ny aktivitet</span></button>\\n\\n\\t\\t</div>\\n\\t\\t\\n\\t</div>\\n\\n\\t<div class=\\\"row\\\">\\n\\t\\t<div class=\\\"col-md-9\\\">\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t<ul class=\\\"nav nav-tabs\\\">\\n\\t\\t\\t\\t\\t<li role=\\\"presentation\\\" [ngClass]=\\\"{'active' : show == 'description'}\\\"><a (click)=\\\"show = 'description'\\\">Aktivitet</a></li>\\n\\t\\t\\t\\t\\t<li role=\\\"presentation\\\" [ngClass]=\\\"{'active' : show == 'note'}\\\"><a (click)=\\\"show = 'note'\\\">Anteckningar <i *ngIf=\\\"activity.note != ''\\\" class=\\\"fa fa-comment-o\\\" aria-hidden=\\\"true\\\"></i></a></li>\\n\\t\\t\\t\\t\\t<li *ngIf=\\\"referencedSupportIssue\\\" role=\\\"presentation\\\" [ngClass]=\\\"{'active' : show == 'support'}\\\"><a (click)=\\\"show = 'support'\\\">Supportärende</a></li>\\n\\t\\t\\t\\t\\t<li *ngIf=\\\"_activity.companyId\\\" role=\\\"presentation\\\" [ngClass]=\\\"{'active' : show == 'history'}\\\"><a (click)=\\\"openHistoryTab()\\\">Historik</a></li>\\n\\t\\t\\t\\t\\t<li *ngIf=\\\"_activity.accountId\\\" role=\\\"presentation\\\" [ngClass]=\\\"{'active' : show == 'account'}\\\"><a (click)=\\\"show = 'account'\\\">Konto</a></li>\\n\\t\\t\\t\\t</ul>\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t</div>\\n\\t\\t<div class=\\\"col-md-3\\\">\\n\\t\\t</div>\\n\\t</div>\\n\\t\\n\\t<div class=\\\"row\\\">\\n\\n\\t\\t<div class=\\\"col-md-9 height-100 form-group\\\">\\t\\n\\t\\t\\n\\t\\t\\t\\t<div class=\\\"mail-contents height-100\\\" [ngClass]=\\\"{'hidden' : show != 'description'}\\\">\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t<div class=\\\"html-note\\\">\\n\\t\\t\\t\\t\\t\\t<div *ngIf=\\\"edit\\\">\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-9\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"activity.name\\\" [ngModelOptions]=\\\"{standalone: true}\\\" />\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-3\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"btn-group full-width\\\" *ngIf=\\\"accounts\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn full-width btn-info dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\">#{{activityAccount.prefix}}</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" *ngFor=\\\"let a of accounts\\\" (click)=\\\"activityAccount = a\\\">#{{a.prefix}}</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-12 form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<textarea class=\\\"form-control\\\" rows=\\\"25\\\" [(ngModel)]=\\\"activity.description\\\" [ngModelOptions]=\\\"{standalone: true}\\\"></textarea>\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-6 form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<datepicker [placeholder]=\\\"'Startdatum'\\\" [date]=\\\"activity.startDate * 1000\\\" #activityStartDate></datepicker>\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-6 form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<datepicker [placeholder]=\\\"'Slutdatum'\\\" [date]=\\\"activity.endDate * 1000\\\" #activityEndDate></datepicker>\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t<div *ngIf=\\\"!edit\\\">\\n\\t\\t\\t\\t\\t\\t\\t<h4>{{activity.name}} <small *ngIf=\\\"referencedSupportIssue\\\"> - från Supportärende <a href=\\\"javascript:;\\\" routerLink=\\\"/support/{{referencedSupportIssue._id}}/view/{{path}}:{{activity.taskId}}\\\">{{referencedSupportIssue._id}}</a></small></h4>\\n\\t\\t\\t\\t\\t\\t\\t<h5>#{{activity.prefix}}</h5>\\n\\t\\t\\t\\t\\t\\t\\t<p>\\n\\t\\t\\t\\t\\t\\t\\t\\tStart: <date-formatter [time]=\\\"false\\\" [date]=\\\"activity.startDate\\\"></date-formatter>\\n\\t\\t\\t\\t\\t\\t\\t\\t- Slut: <date-formatter [time]=\\\"false\\\" [date]=\\\"activity.endDate\\\"></date-formatter>\\n\\t\\t\\t\\t\\t\\t\\t</p>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t<div class=\\\"mail-contents height-100\\\" [ngClass]=\\\"{'hidden' : show != 'note'}\\\">\\n\\t\\t\\t\\t\\t<div class=\\\"html-note\\\">\\n\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t<textarea class=\\\"form-control\\\" rows=\\\"25\\\" [(ngModel)]=\\\"activity.note\\\" [ngModelOptions]=\\\"{standalone: true}\\\"></textarea>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t<div class=\\\"mail-contents height-100\\\" [ngClass]=\\\"{'hidden' : show != 'support'}\\\">\\n\\n\\t\\t\\t\\t\\t<div class=\\\"support-history\\\" *ngIf=\\\"referencedSupportIssue\\\">\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t<div *ngIf=\\\"referencedSupportIssue._source.headers['x-spam-result'] == 'yes'\\\" class=\\\"spam\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<i class=\\\"fa fa-trash-o\\\"></i> Detta ärende är markerat som skräppost. <button (click)=\\\"markSpam()\\\" class=\\\"pull-right btn btn-xs button-primary\\\">Flytta till skräpmappen</button>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t\\t\\t<div class=\\\"attachments\\\" *ngIf=\\\"referencedSupportIssue._source.attachments && referencedSupportIssue._source.attachments.length > 0\\\">\\n\\t\\t\\t\\t\\t\\t\\t<span class=\\\"issue-check small\\\" *ngFor=\\\"let a of referencedSupportIssue._source.attachments\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<i *ngIf=\\\"referencedSupportIssue._source.company\\\" (click)=\\\"toggleAttachmentSelected(a)\\\" [ngClass]=\\\"{'fa-check-square-o' : a.selected, 'fa-square-o' : !a.selected}\\\" class=\\\"fa w1\\\"></i> <a href=\\\"https://s3-eu-west-1.amazonaws.com/hsd-incoming-bucket/attachments/{{referencedSupportIssue._id}}/{{a.contentId}}\\\" class=\\\"attachment-file\\\"><i class=\\\"fa fa-file\\\"></i> {{a.generatedFileName}}</a>\\n\\t\\t\\t\\t\\t\\t\\t</span>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t<div class=\\\"attachments attachments-toolbar\\\" [ngClass]=\\\"{'hidden' : !hasSelectedAttachments}\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<a href=\\\"javascript:;\\\" (click)=\\\"copyToMamba()\\\"><i class=\\\"fa fa-hdd-o\\\"></i> Kopiera till mamba</a> | <a href=\\\"javascript:;\\\" (click)=\\\"copyToStorage()\\\"><i class=\\\"fa fa-globe\\\"></i> Kopiera till filarkivet</a>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t\\t\\t<h4>Ämne: {{referencedSupportIssue._source.subject||'inget ämne'}}</h4>\\n\\t\\t\\t\\t\\t\\t<h5>Från: {{referencedSupportIssue._source.headers.from}}</h5>\\n\\t\\t\\t\\t\\t\\t<h5>Till: {{referencedSupportIssue._source.headers.to}}<span *ngIf=\\\"referencedSupportIssue._source.headers.cc\\\">, Kopia: {{referencedSupportIssue._source.headers.cc}}</span></h5>\\n\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t<h5><date-formatter [date]=\\\"referencedSupportIssue._source.date\\\"></date-formatter></h5>\\n\\n\\t\\t\\t\\t\\t\\t<div class=\\\"issue-headers\\\" [ngClass]=\\\"{'hidden' : !showHeaders}\\\">\\n\\t\\t\\t\\t\\t\\t\\t<span *ngFor=\\\"let h of referencedSupportIssue.headers\\\">\\n\\t\\t\\t\\t\\t\\t\\t<strong>{{h.name}}:</strong> {{h.value}}<br />\\n\\t\\t\\t\\t\\t\\t\\t</span>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t\\t\\t<p>\\n\\t\\t\\t\\t\\t\\t\\t<a [ngClass]=\\\"{'l-active' : showSource == 'html'}\\\" href=\\\"javascript:;\\\" (click)=\\\"showSource = 'html'\\\">html</a> | <a [ngClass]=\\\"{'l-active' : showSource == 'text'}\\\" href=\\\"javascript:;\\\" (click)=\\\"showSource = 'text'\\\">text</a>\\n\\t\\t\\t\\t\\t\\t</p>\\n\\n\\t\\t\\t\\t\\t\\t<html-source [ngClass]=\\\"{'hidden' : showSource != 'html'}\\\" [source]=\\\"referencedSupportIssue._source.html || '...'\\\"></html-source>\\n\\t\\t\\t\\t\\t\\t<html-source [ngClass]=\\\"{'hidden' : showSource != 'text'}\\\" [source]=\\\"'<pre>' + (referencedSupportIssue._source.text || '...') + '</pre>'\\\"></html-source>\\n\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t\\n\\t\\t\\t\\t<!-- history -->\\n\\t\\t\\t\\t<div [ngClass]=\\\"{hidden : show != 'history'}\\\" class=\\\"row customer-history height-100\\\">\\n\\t\\t\\t\\t\\t<communication-history #history></communication-history>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\n\\t\\t\\t\\t<!-- account -->\\n\\t\\t\\t\\t<div class=\\\"mail-contents height-100\\\" [ngClass]=\\\"{'hidden' : show != 'account'}\\\">\\n\\t\\t\\t\\t\\t<account-info [accountId]=\\\"_activity.accountId\\\" #accountInfo></account-info>\\n\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t</div>\\n\\n\\t\\t\\t<div class=\\\"col-md-3 height-100 form-group\\\">\\n\\t\\t\\t\\t<div class=\\\"height-100 panel panel-default\\\">\\n\\t\\t\\t\\t\\t<div class=\\\"panel-body\\\">\\n\\t\\t\\t\\t\\t\\t<customer-info [refPath]=\\\"customerInfoRefPath\\\" [companyId]=\\\"activity.companyId\\\" (onLoadCompany)=\\\"handleOnCompanyLoaded($event)\\\" (onAssignCompany)=\\\"handleOnCompanyAssigned($event)\\\" (onUnAssignCompany)=\\\"handleOnCompanyUnAssigned()\\\" #companyInfo></customer-info>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\n\\t\\t</div>\\n\\n</div>\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/components/templates/activitydetails.html\n// module id = 990\n// module chunks = 0","module.exports = \"\\n<modal #loadingModal>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Vänta</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t\\t<p>\\n\\t\\t\\t\\t\\t<i class=\\\"fa fa-circle-o-notch fa-spin fa-3x fa-fw\\\"></i>\\n\\t\\t\\t\\t</p>\\n\\t\\t\\t</div>\\t\\n    </modal-body>\\n</modal>\\n\\n<create-activity-modal #createActivityModal></create-activity-modal>\\n\\n<div class=\\\"support-content row\\\">\\n\\n\\t<div class=\\\"nomobile\\\">\\n\\t\\t<nav class=\\\"navbar navbar-toggleable-md navbar-light bg-faded\\\">\\n\\t\\t\\t<div class=\\\"form-inline\\\">\\n\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t<button *ngIf=\\\"listType != 'mine'\\\"type=\\\"button\\\"[disabled]=\\\"creatingActivity\\\" class=\\\"btn btn-primary\\\" (click)=\\\"createActivity({})\\\">Skapa ny</button>\\n\\t\\t\\t\\t\\t<button *ngIf=\\\"listType == 'mine'\\\" type=\\\"button\\\"[disabled]=\\\"creatingActivity\\\" class=\\\"btn btn-primary\\\" (click)=\\\"createActivity({ user : user })\\\">Skapa ny</button>\\n\\t\\t\\t\\t\\t<button class=\\\"btn activity-count\\\">Visar {{activities.length}} av {{totalIssues}} aktiviteter</button>\\t\\t\\n\\t\\t\\t\\t\\t<div class=\\\"btn-group\\\" role=\\\"group\\\" aria-label=\\\"Basic example\\\" *ngIf=\\\"!isMine\\\">\\n\\t\\t\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-primary dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngFor=\\\"let user of availableUsers\\\" [ngClass]=\\\"{'hidden' : filter.userId != user.userId}\\\">{{user.firstName}} {{user.lastName}}</span>\\n\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" [ngClass]=\\\"{'hidden' : filter.userId > 0}\\\">Alla</span>\\n\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" [ngClass]=\\\"{'hidden' : filter.userId != 26}\\\">Otilldelad</span>\\n\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\" aria-labelledby=\\\"dropdownMenuButton\\\">\\n\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"setFilterAssignedTo(null)\\\">Alla</a>\\n\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"setFilterAssignedTo({ userId : 26, firstName : '', lastName : '', name : 'Otilldelad'})\\\">Otilldelad</a>\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-divider\\\"></div>\\n\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" *ngFor=\\\"let user of availableUsers\\\" (click)=\\\"setFilterAssignedTo(user)\\\">{{user.lastName}}, {{user.firstName}}</a>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t<div class=\\\"btn-group\\\" role=\\\"group\\\" aria-label=\\\"Basic example\\\">\\n\\t\\t\\t\\t\\t\\t<button *ngFor=\\\"let btn of filterButtons\\\" (click)=\\\"toggleFilterButton(btn, true)\\\" type=\\\"button\\\" class=\\\"btn\\\" [ngClass]=\\\"{'btn-primary' : !btn.checked, 'btn-success' : btn.checked}\\\">{{btn.name}}</button>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t<div class=\\\"form-inline pull-right\\\">\\n\\t\\t\\t\\t\\t<form autocomplete=\\\"off\\\" style=\\\"float:left;margin-right: 10px;\\\"><input name=\\\"apa\\\" class=\\\"form-control\\\" type=\\\"text\\\" (keyup)=\\\"searchActivities()\\\" [(ngModel)]=\\\"filter.phrase\\\" placeholder=\\\"Sök\\\" #searchFilter></form>\\n\\t\\t\\t\\t\\t<button (click)=\\\"reload()\\\" type=\\\"button\\\" class=\\\"btn btn-primary\\\"><i class=\\\"fa fa-refresh\\\" [ngClass]=\\\"{'fa-circle-o-notch fa-spin fa-f' : refreshing}\\\"></i> Uppdatera</button>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t</nav>\\n\\t</div>\\n\\n\\t<div class=\\\"nodesktop\\\">\\n\\t\\t<nav class=\\\"navbar navbar-toggleable-md navbar-light bg-faded\\\">\\n\\t\\t\\t<div class=\\\"form-inline\\\">\\n\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t<div class=\\\"btn-group\\\" role=\\\"group\\\" aria-label=\\\"Basic example\\\">\\n\\t\\t\\t\\t\\t\\t<button *ngFor=\\\"let btn of filterButtons\\\" (click)=\\\"toggleFilterButton(btn, true)\\\" type=\\\"button\\\" class=\\\"btn\\\" [ngClass]=\\\"{'btn-primary' : !btn.checked, 'btn-success' : btn.checked}\\\">{{btn.name}}</button>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t</nav>\\n\\t</div>\\n\\t\\t\\t\\t\\t\\t\\n\\t<div class=\\\"support-pane-master height-100 p-b-3\\\" [ngClass]=\\\"{'collapsed' : showActivityInfo}\\\">\\n\\t\\t\\n\\t\\t<div class=\\\"activity-list\\\"\\n\\t\\t            infinite-scroll\\n\\t\\t            [infiniteScrollDistance]=\\\"2\\\"\\n\\t\\t            [infiniteScrollThrottle]=\\\"500\\\"\\n\\t\\t            (scrolled)=\\\"onScroll()\\\"\\n\\t\\t            [scrollWindow]=\\\"false\\\">\\n\\t\\t\\t\\n\\t\\t\\t<div class=\\\"support-list-toolbar nomobile\\\" [ngClass]=\\\"{'open' : hasSelectedActivities, 'hidden' : showActivityInfo}\\\">\\n\\t\\t\\t\\t<div class=\\\"dropdown-owe\\\">\\n\\t\\t\\t\\t\\t<a class=\\\"dropdown-toggle\\\" id=\\\"dropdownMenuButton\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\"><i class=\\\"fa fa-flag-o\\\"></i></a>\\n\\t\\t\\t\\t  <div class=\\\"dropdown-menu\\\" aria-labelledby=\\\"dropdownMenuButton\\\">\\n\\t\\t\\t\\t    <a class=\\\"dropdown-item\\\" *ngFor=\\\"let btn of filterButtons\\\" (click)=\\\"setStatus(btn.id)\\\">{{btn.name}}</a>\\n\\t\\t\\t\\t  </div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t<div class=\\\"dropdown-owe\\\">\\n\\t\\t\\t\\t\\t<a class=\\\"dropdown-toggle\\\" id=\\\"dropdownMenuButton\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\"><i class=\\\"fa fa-user\\\"></i></a>\\n\\t\\t\\t\\t  <div class=\\\"dropdown-menu\\\" aria-labelledby=\\\"dropdownMenuButton\\\">\\n\\t\\t\\t\\t\\t  <a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"assignTo({ userId : 26, firstName : '', lastName : '', name : 'Otilldelad'})\\\">Otilldelad</a>\\n\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"assignTo({ userId : user.userId, firstName : user.firstName, lastName : user.lastName })\\\">Tilldela till mig</a>\\n\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-divider\\\"></div>\\n\\t\\t\\t\\t    <a class=\\\"dropdown-item\\\" *ngFor=\\\"let user of availableUsers\\\" (click)=\\\"assignTo(user)\\\">{{user.lastName}}, {{user.firstName}}</a>\\n\\t\\t\\t\\t  </div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t<a class=\\\"counter\\\">( {{numSelected}} )</a>\\n\\t\\t\\t</div>\\n\\n\\t\\t\\t<div class=\\\"nodesktop\\\">\\n\\t\\t\\t\\t<nav class=\\\"navbar navbar-toggleable-md navbar-light bg-faded\\\" [ngClass]=\\\"{'hidden' : !hasSelectedActivities || showActivityInfo}\\\">\\n\\t\\t\\t\\t\\t<div class=\\\"form-inline\\\">\\n\\t\\t\\t\\t\\t\\t<div class=\\\"btn-group w-50\\\" role=\\\"group\\\" aria-label=\\\"Basic example\\\">\\n\\t\\t\\t\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-block btn-primary dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<i class=\\\"fa fa-flag-o\\\"></i> Sätt status\\n\\t\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\" aria-labelledby=\\\"dropdownMenuButton\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" *ngFor=\\\"let btn of filterButtons\\\" (click)=\\\"setStatus(btn.id)\\\">{{btn.name}}</a>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t<div class=\\\"btn-group w-50\\\" role=\\\"group\\\" aria-label=\\\"Basic example\\\">\\n\\t\\t\\t\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-block btn-primary dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<i class=\\\"fa fa-user\\\"></i> Tilldela\\n\\t\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\" aria-labelledby=\\\"dropdownMenuButton\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"assignTo({ userId : 26, firstName : '', lastName : '', name : 'Otilldelad'})\\\">Otilldelad</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"assignTo({ userId : user.userId, firstName : user.firstName, lastName : user.lastName })\\\">Tilldela till mig</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-divider\\\"></div>\\n\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" *ngFor=\\\"let user of availableUsers\\\" (click)=\\\"assignTo(user)\\\">{{user.lastName}}, {{user.firstName}}</a>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</nav>\\n\\t\\t\\t</div>\\n\\n\\t\\t\\t<table class=\\\"table table-sm\\\">\\n\\t\\t\\t  <thead>\\n\\t\\t\\t    <tr>\\n\\t\\t\\t\\t    <th class=\\\"issue-check\\\"><i class=\\\"fa fa-check-square-o\\\" (click)=\\\"setAllSelected()\\\"></i></th>\\n\\t\\t\\t\\t\\t\\t<th class=\\\"nomobile\\\">&nbsp;</th>\\n\\t\\t\\t      <th width=\\\"10%\\\" class=\\\"nomobile\\\">Kund</th>\\n\\t\\t\\t      <th>Beskrivning</th>\\n\\t\\t \\t\\t\\t\\t<th class=\\\"nomobile\\\">Ägare</th>\\n\\t\\t\\t      <th class=\\\"nomobile\\\" nowrap><a href=\\\"javascript:;\\\" (click)=\\\"setOrder('endDate')\\\">Stop</a> <i *ngIf=\\\"filter.orderBy == 'endDate'\\\" class=\\\"fa fa-angle-double-up\\\"></i></th>\\n\\t\\t\\t      <th class=\\\"nomobile\\\" nowrap *ngIf=\\\"filter.statusId.indexOf(6) != -1\\\"><a href=\\\"javascript:;\\\" (click)=\\\"setOrder('stopDate')\\\">Avslutad</a> <i *ngIf=\\\"filter.orderBy == 'stopDate'\\\" class=\\\"fa fa-angle-double-down\\\"></i></th>\\n\\t\\t \\t\\t\\t\\t<th class=\\\"nomobile\\\">Status</th>\\n\\t\\t\\t      <!--<th>Start</th>-->\\n\\t\\t\\t    </tr>\\n\\t\\t\\t  </thead>\\n\\t\\t\\t  <tbody [ngClass]=\\\"{'hidden' : loading || activities.length > 0}\\\">\\n\\t\\t\\t\\t  <tr>\\n\\t\\t\\t\\t\\t  <td colspan=\\\"9\\\" align=\\\"center\\\">\\n\\t\\t\\t\\t\\t\\t  Det finns inga aktiviteter att visa.\\n\\t\\t\\t\\t\\t  </td>\\n\\t\\t\\t\\t  </tr>\\n\\t\\t\\t  </tbody>\\n\\t\\t\\t  <tbody *ngFor=\\\"let activity of activities\\\" [ngClass]=\\\"{'moved' : activity.hidden, 'mine' : activity.userId == user.userId}\\\">\\n\\t\\t\\t\\t  <tr>\\n\\t\\t\\t\\t\\t  <td class=\\\"vert-align issue-check\\\" (click)=\\\"activity.selected = !activity.selected; toggleActivityToolbar()\\\" scope=\\\"row\\\">\\n\\t\\t\\t\\t\\t\\t  <i class=\\\"fa\\\" [ngClass]=\\\"{'fa-square-o' : !activity.selected, 'fa-check-square-o' : activity.selected}\\\"></i>\\n\\t\\t\\t\\t\\t  </td>\\n\\t\\t\\t\\t\\t\\t<td nowrap=\\\"nowrap\\\" width=\\\"100\\\" class=\\\"vert-align nomobile\\\">\\n\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-danger btn-xs\\\" *ngIf=\\\"activity.endDate < today\\\">förfallit</button>\\n\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-warning btn-xs\\\" *ngIf=\\\"activity.endDate >= today && activity.endDate < tomorrow\\\">idag</button>\\n\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-success btn-xs\\\" *ngIf=\\\"activity.endDate >= today && activity.endDate >= tomorrow\\\">ok</button>\\n\\t\\t\\t\\t\\t\\t</td>\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t  <td nowrap=\\\"nowrap\\\" (click)=\\\"activity.selected = !activity.selected; toggleActivityToolbar()\\\"  class=\\\"vert-align nomobile\\\">\\n\\t\\t\\t\\t\\t\\t  <span *ngIf=\\\"activity.companyId > 0\\\">{{activity.companyName}}<br /><small>#{{activity.prefix}}</small><br /></span>\\n\\t\\t\\t\\t\\t\\t  <span *ngIf=\\\"activity.companyId == 0\\\">ingen kund satt<br /></span>\\t\\t\\t\\t\\t\\t  \\n\\t\\t\\t\\t\\t  </td>\\n\\t\\t\\t\\t\\t  <td width=\\\"100%\\\">\\n\\t\\t\\t\\t\\t\\t  <a href=\\\"javascript:;\\\" routerLink=\\\"/activities/{{listType}}/{{activity.taskId}}\\\">\\n\\t\\t\\t\\t\\t\\t\\t  <span>{{activity.name}}</span><br />\\n\\t\\t\\t\\t\\t\\t\\t  <small *ngIf=\\\"activity.description\\\" [innerHTML]=\\\"activity.description|truncate:[75]\\\"></small>\\n\\t\\t\\t\\t\\t\\t\\t\\t<small *ngIf=\\\"!activity.description\\\" [innerHTML]=\\\"'Ingen text'\\\"></small>\\n\\t\\t\\t\\t\\t\\t  </a>\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"nodesktop\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"activity.companyId > 0\\\">{{activity.companyName}} - <small>#{{activity.prefix}}</small></span><span *ngIf=\\\"activity.companyId == 0\\\">ingen kund satt<br /></span>\\t\\t\\t\\t\\t\\t  \\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t<td nowrap=\\\"nowrap\\\" class=\\\"vert-align nomobile\\\" >\\n\\t\\t\\t\\t\\t\\t  <span *ngIf=\\\"activity.userId != 26\\\">{{activity.firstName}} {{activity.lastName}}</span>\\n\\t\\t\\t\\t\\t\\t  <span *ngIf=\\\"activity.userId == 26\\\"><em>Otilldelad</em></span>\\n\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t<td nowrap=\\\"nowrap\\\" class=\\\"vert-align nomobile\\\"><date-formatter [time]=\\\"false\\\" [date]=\\\"activity.endDate\\\"></date-formatter></td>\\n\\t\\t\\t\\t\\t\\t<td nowrap=\\\"nowrap\\\" class=\\\"vert-align nomobile\\\" *ngIf=\\\"filter.statusId.indexOf(6) != -1\\\"><date-formatter [time]=\\\"false\\\" [date]=\\\"activity.stopDate\\\"></date-formatter></td>\\n\\t\\t\\t\\t\\t  <td nowrap=\\\"nowrap\\\" class=\\\"vert-align nomobile\\\">\\t\\t\\t\\t\\t\\t  \\n\\t\\t\\t\\t\\t\\t  <div class=\\\"btn-group btn-group-sm\\\" data-toggle=\\\"buttons\\\" *ngIf=\\\"activity.userId == user.userId || user.scope == 'admin'\\\">\\n\\t\\t\\t\\t\\t\\t\\t  <button type=\\\"button\\\" class=\\\"btn btn-primary dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t\\t    <span class=\\\"sr-onlys\\\" *ngIf=\\\"activity.statusId == 2\\\">Startklar</span>\\n\\t\\t\\t\\t\\t\\t\\t    <span class=\\\"sr-onlys\\\" *ngIf=\\\"activity.statusId == 3\\\">Startad</span>\\n\\t\\t\\t\\t\\t\\t\\t    <span class=\\\"sr-onlys\\\" *ngIf=\\\"activity.statusId == 4\\\">Avstannad</span>\\n\\t\\t\\t\\t\\t\\t\\t    <span class=\\\"sr-onlys\\\" *ngIf=\\\"activity.statusId == 5\\\">Lansering</span>\\n\\t\\t\\t\\t\\t\\t\\t    <span class=\\\"sr-onlys\\\" *ngIf=\\\"activity.statusId == 6\\\">Avslutad</span>\\n\\t\\t\\t\\t\\t\\t\\t    <span class=\\\"sr-onlys\\\" *ngIf=\\\"activity.statusId == 7\\\">Väntar</span>\\n\\t\\t\\t\\t\\t\\t\\t  </button>\\n\\t\\t\\t\\t\\t\\t\\t  <div class=\\\"dropdown-menu\\\">\\t\\t\\t  \\n\\t\\t\\t\\t\\t\\t\\t    <a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"setActivityStatus(activity, 2, true)\\\">Startklar</a>\\n\\t\\t\\t\\t\\t\\t\\t    <a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"setActivityStatus(activity, 3, true)\\\">Startad</a>\\n\\t\\t\\t\\t\\t\\t\\t    <a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"setActivityStatus(activity, 4, true)\\\">Avstannad</a>\\n\\t\\t\\t\\t\\t\\t\\t    <a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"setActivityStatus(activity, 5, true)\\\">Lansering</a>\\n\\t\\t\\t\\t\\t\\t\\t    <a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"setActivityStatus(activity, 6, true)\\\">Avslutad</a>\\n\\t\\t\\t\\t\\t\\t\\t    <a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"setActivityStatus(activity, 7, true)\\\">Väntar</a>\\t\\t    \\n\\t\\t\\t\\t\\t\\t\\t  </div>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t  </tr>\\n\\t\\t\\t\\t</tbody>\\n\\t\\t\\t  <tbody>\\n\\t\\t\\t\\t\\t<tr [ngClass]=\\\"{'hidden' : !loading}\\\">\\n\\t\\t\\t\\t\\t\\t<td colspan=\\\"9\\\" align=\\\"center\\\">\\n\\t\\t\\t\\t\\t\\t\\t<i class=\\\"fa fa-circle-o-notch fa-spin fa-2x fa-fw\\\"></i>\\n\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t  </tbody>\\n\\t\\t\\t</table>\\n\\t\\t</div>\\n\\t\\n\\t</div>\\n\\t\\n\\t<div class=\\\"support-pane-details container-fluid full-height-fill full-width-fill\\\" [ngClass]=\\\"{'collapsed' : !showActivityInfo}\\\">\\n\\t\\t<div class=\\\"height-100 scrollable\\\">\\n\\t\\t\\t<!--\\n\\t\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t\\t<div class=\\\"col-md-12 navbar vert-align\\\">\\n\\t\\t\\t\\t\\t<div class=\\\"support-navbar\\\">\\n\\t\\t\\t\\t\\t\\t<a href=\\\"javascript:;\\\" (click)=\\\"closeSelectedActivity()\\\"><i class=\\\"fa fa-close\\\"></i></a>\\n\\t\\t\\t\\t\\t\\t<div class=\\\"support-nav-buttons\\\">\\n\\t\\t\\t\\t\\t\\t\\t<a href=\\\"javascript:;\\\" (click)=\\\"prevActivity()\\\"><i class=\\\"fa fa-chevron-left\\\"></i></a>\\n\\t\\t\\t\\t\\t\\t\\t<a href=\\\"javascript:;\\\" (click)=\\\"nextActivity()\\\"><i class=\\\"fa fa-chevron-right\\\"></i></a>\\t\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t\\t-->\\n\\t\\t\\t<router-outlet></router-outlet>\\n\\t\\t</div>\\n\\t</div>\\n\\n</div>\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/components/templates/activitylist.html\n// module id = 991\n// module chunks = 0","module.exports = \"\\n<modal #detailsModal>\\n\\t<modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Detaljer</h4>\\n    </modal-header>\\n    <modal-body *ngIf=\\\"detailsItem\\\">\\n\\t\\t\\t<div class=\\\"timeline-heading\\\">\\n\\t\\t\\t\\t<h5>\\n\\t\\t\\t\\t\\t<span *ngIf=\\\"detailsItem.status == 'in'\\\"><i class=\\\"fa fa-arrow-right\\\"></i> {{detailsItem.subject|truncate:[30]}} från {{detailsItem.replyTo}}</span>\\n\\t\\t\\t\\t\\t<span *ngIf=\\\"detailsItem.status == 'out'\\\"><i class=\\\"fa fa-arrow-left\\\"></i> {{detailsItem.subject|truncate:[30]}} från {{detailsItem.replyTo}}</span>\\n\\t\\t\\t\\t\\t<span *ngIf=\\\"detailsItem._source\\\"><a href=\\\"javascript:;\\\" routerLink=\\\"/support/all/{{detailsItem._id}}/contents/companies:{{companyId}}:history\\\"><i class=\\\"fa fa-arrow-right\\\"></i> {{(detailsItem._source.headers.subject||'inget ämne')|truncate:[30]}}</a> från {{detailsItem._source.from[0].address}}</span>\\n\\t\\t\\t\\t\\t<span *ngIf=\\\"detailsItem.isReply\\\"><a href=\\\"javascript:;\\\" routerLink=\\\"/support/all/{{detailsItem._id}}/contents/companies:{{companyId}}:history\\\"><i class=\\\"fa fa-arrow-left\\\"></i> {{(detailsItem.subject||'inget ämne')|truncate:[30]}}</a> från {{detailsItem.from.firstName}} {{detailsItem.from.lastName}}</span>\\n\\t\\t\\t\\t\\t<span *ngIf=\\\"detailsItem.taskId && !detailsItem.communicationId\\\"><i class=\\\"fa fa-wrench\\\"></i> {{detailsItem.name}}</span>\\n\\t\\t\\t\\t\\t<span *ngIf=\\\"detailsItem.communicationId\\\"><i class=\\\"fa fa-wrench\\\"></i> {{detailsItem.cType}}</span>\\n\\t\\t\\t\\t\\t<small class=\\\"pull-right\\\"><date-formatter [date]=\\\"detailsItem.startDate || (detailsItem.createdDate || (detailsItem._source ? detailsItem._source.date : detailsItem.date))\\\"></date-formatter></small>\\n\\t\\t\\t\\t</h5>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div *ngIf=\\\"detailsItem.taskId\\\">\\n\\t\\t\\t\\t\\t<p [innerHTML]=\\\"detailsItem.description|nl2br\\\"></p>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div *ngIf=\\\"detailsItem.communicationId\\\">\\n\\t\\t\\t\\t\\t<p [innerHTML]=\\\"detailsItem.note|nl2br\\\"></p>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div *ngIf=\\\"detailsItem._source\\\">\\n\\t\\t\\t\\t\\t<p [innerHTML]=\\\"(detailsItem._source.text || detailsItem._source.html) | nl2br\\\"></p>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div *ngIf=\\\"detailsItem.isReply\\\">\\n\\t\\t\\t\\t\\t<p [innerHTML]=\\\"(detailsItem.content)\\\"></p>\\n\\t\\t\\t\\t\\t<div class=\\\"in-reply-to\\\">\\n\\t\\t\\t\\t\\t\\tSkickat som svar på: <a href=\\\"javascript:;\\\" routerLink=\\\"/support/all/{{detailsItem.inReplyTo._id}}/contents/companies:{{companyId}}:history\\\">{{detailsItem.inReplyTo._source.headers.subject || 'inget ämne'}}</a> från {{detailsItem.inReplyTo._source.from[0].name || detailsItem.inReplyTo._source.from[0].email}}\\n\\t\\t\\t\\t\\t\\t<div class=\\\"in-reply-to-msg\\\" [innerHTML]=\\\"detailsItem.inReplyTo._source.html || detailsItem.inReplyTo._source.text\\\"></div>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div *ngIf=\\\"detailsItem.supportId\\\">\\n\\t\\t\\t\\t\\t<p [innerHTML]=\\\"detailsItem.body\\\"></p>\\n\\t\\t\\t</div>\\n    </modal-body>\\n\\t\\t<modal-footer>\\n\\t\\t\\t<button class=\\\"btn btn-danger\\\" (click)=\\\"detailsModal.dismiss()\\\">Stäng</button>\\n\\t\\t</modal-footer>\\n</modal>\\n\\n<div class=\\\"support-pane-master row height-100 p-b-3\\\" [ngClass]=\\\"{'collapsed' : showActivityInfo}\\\">\\n\\t\\t\\n\\t<div class=\\\"nomobile\\\">\\n\\t\\t<nav class=\\\"navbar navbar-toggleable-md navbar-light bg-faded\\\">\\n\\t\\t\\t<div class=\\\"form-inline\\\">\\n\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t<div class=\\\"btn-group\\\" role=\\\"group\\\" aria-label=\\\"Basic example\\\">\\n\\t\\t\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-primary dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngFor=\\\"let user of availableUsers\\\" [ngClass]=\\\"{'hidden' : filter.userId != user.userId}\\\">{{user.firstName}} {{user.lastName}}</span>\\n\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" [ngClass]=\\\"{'hidden' : filter.userId > 0}\\\">Välj person</span>\\n\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\" aria-labelledby=\\\"dropdownMenuButton\\\">\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-divider\\\"></div>\\n\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" *ngFor=\\\"let user of availableUsers\\\" (click)=\\\"setFilterUser(user)\\\">{{user.lastName}}, {{user.firstName}}</a>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t<div *ngIf=\\\"_loadingCompanies\\\"><i  class=\\\"fa fa-spin fa-spinner\\\"></i> vänta, laddar företag ...</div>\\n\\t\\t\\t\\t\\t<div class=\\\"btn-group\\\" role=\\\"group\\\" aria-label=\\\"Basic example\\\" [ngClass]=\\\"{'hidden' : companies.length == 0 || _loadingCompanies}\\\">\\n\\t\\t\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-primary dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngFor=\\\"let company of companies\\\" [ngClass]=\\\"{'hidden' : filter.companyId == 0 || filter.companyId != company.companyId}\\\">{{company.name}}</span>\\n\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" [ngClass]=\\\"{'hidden' : filter.companyId > 0}\\\">5 senaste företagen</span>\\n\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\" aria-labelledby=\\\"dropdownMenuButton\\\">\\n\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"setFilterCompany(null)\\\">5 senaste företagen</a>\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-divider\\\"></div>\\n\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" *ngFor=\\\"let company of companies\\\" (click)=\\\"setFilterCompany(company)\\\">{{company.name}} <small>(<date-formatter [date]=\\\"company.lastActivityDate\\\"></date-formatter>)</small></a>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t<div class=\\\"form-group\\\" [ngClass]=\\\"{'hidden' : accounts.length == 0 || _loadingCompanies}\\\">\\n\\t\\t\\t\\t\\t<div class=\\\"btn-group\\\" role=\\\"group\\\" aria-label=\\\"Basic example\\\" >\\n\\t\\t\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-primary dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngFor=\\\"let account of accounts\\\" [ngClass]=\\\"{'hidden' : filter.accountId != account.accountId}\\\">Händelser för #{{account.prefix}}</span>\\n\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" [ngClass]=\\\"{'hidden' : filter.accountId > 0}\\\">Alla händelser</span>\\n\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\" aria-labelledby=\\\"dropdownMenuButton\\\">\\n\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"setFilterAccount(null)\\\">Alla händelser</a>\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-divider\\\"></div>\\n\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" *ngFor=\\\"let account of accounts\\\" (click)=\\\"setFilterAccount(account)\\\">#{{account.prefix}}</a>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t<div class=\\\"form-inline pull-right\\\">\\n\\t\\t\\t\\t\\t<button (click)=\\\"reload()\\\" type=\\\"button\\\" class=\\\"btn btn-primary\\\"><i class=\\\"fa fa-refresh\\\" [ngClass]=\\\"{'fa-circle-o-notch fa-spin fa-f' : refreshing}\\\"></i> Uppdatera</button>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t</nav>\\n\\t</div>\\n\\n\\t\\t<div class=\\\"height-100\\\" style=\\\"position:relative\\\">\\n\\t\\t\\t<div class=\\\"row\\\" *ngIf=\\\"loading\\\">\\n\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t<div class=\\\"centered\\\">\\n\\t\\t\\t\\t\\t\\t<i class=\\\"fa fa-spin fa-spinner\\\"></i> vänta, laddar ...\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"height-100\\\">\\n\\t\\t\\t\\t<div class=\\\"col-md-12 height-100 pl-2\\\" style=\\\"padding-left: 2em\\\">\\n\\t\\t\\t\\t\\t<div class=\\\"history-list height-100 scrollable\\\">\\n\\t\\t\\t\\t\\t\\t<ul class=\\\"timeline\\\" *ngIf=\\\"filteredHistory && filteredHistory.length > 0\\\">\\n\\t\\t\\t\\t\\t\\t\\t<li *ngFor=\\\"let h of filteredHistory; let myIndex = index;\\\" [ngClass]=\\\"{'has-timeline-divider' : h.hasDivider}\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"timeline-divider\\\" *ngIf=\\\"h.hasDivider\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<div><date-formatter [time]=\\\"false\\\" [date]=\\\"h.dividerDate\\\" [useDayName]=\\\"true\\\"></date-formatter></div>\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"timeline-badge\\\" [ngClass]=\\\"{'warning' : (h.taskId && !h.communicationId), \\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t'primary' : h.communicationId && h.typeId == 9, \\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t'success' : h.communicationId && (h.typeId == 21 || h.typeId == 22 || h.typeId == 23),\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t'info' : h.communicationId && (h.typeId != 9 && h.typeId != 21 && h.typeId != 22 && h.typeId != 23),\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t'danger' : h._source || h.supportId || h.isReply}\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<i class=\\\"fa fa-bolt\\\" *ngIf=\\\"h.communicationId\\\"></i>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<i class=\\\"fa fa-wrench\\\" *ngIf=\\\"h.taskId && !h.communicationId\\\"></i>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<i class=\\\"fa fa-envelope\\\" *ngIf=\\\"h._source || h.isReply || h.supportId\\\"></i>\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"timeline-panel\\\" (click)=\\\"detailsItem = h; detailsModal.open()\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"timeline-heading\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<h5>{{h.companyName}} {{h.prefix}}</h5>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<h6>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"h.status == 'in'\\\"><i class=\\\"fa fa-arrow-right\\\"></i> {{h.subject|truncate:[30]}} från {{h.replyTo}}</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"h.status == 'out'\\\"><i class=\\\"fa fa-arrow-left\\\"></i> {{h.subject|truncate:[30]}} från {{h.replyTo}}</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"h._source\\\"><a href=\\\"javascript:;\\\" routerLink=\\\"/support/all/{{h._id}}/contents/companies:{{companyId}}:history\\\"><i class=\\\"fa fa-arrow-right\\\"></i> {{(h._source.headers.subject||'inget ämne')|truncate:[30]}}</a></span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<small *ngIf=\\\"h._source\\\"><a name=\\\"id-{{h._id}}\\\">{{h._id}}</a></small>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"h.isReply\\\"><a href=\\\"javascript:;\\\" routerLink=\\\"/support/all/{{h._id}}/contents/companies:{{companyId}}:history\\\"><i class=\\\"fa fa-arrow-left\\\"></i> {{(h.subject||'inget ämne')|truncate:[30]}}</a></span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"h.taskId && !h.communicationId\\\"><i class=\\\"fa fa-wrench\\\"></i> <a href=\\\"javascript:;\\\" routerLink=\\\"/activities/all/{{h.taskId}}/{{_returnPath}}\\\">{{h.name}}</a></span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"h.communicationId\\\"><i class=\\\"fa fa-wrench\\\"></i> {{h.cType}}</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<small class=\\\"pull-right p-t-4px\\\"><date-formatter [date]=\\\"h.startDate || (h.createdDate || (h._source ? h._source.date : h.date))\\\"></date-formatter> \\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t- <span *ngIf=\\\"h.communicationId && !h.taskId\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"h.userId==26\\\">System</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"h.userId != 26\\\">{{h.firstName}} {{h.lastName}}</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"h._source\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t{{h._source.from[0].address}}\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"h.isReply\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t{{h.from.firstName}} {{h.from.lastName}}\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"h.taskId\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t{{h.firstName}} {{h.lastName}}\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</small>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</h6>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"timeline-body\\\" *ngIf=\\\"h.taskId && !h.communicationId\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<p *ngIf=\\\"!h.showAll\\\" class=\\\"timeline-collapsed\\\" [innerHTML]=\\\"h.description|truncate:[200]\\\"></p>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<p [innerHTML]=\\\"h.description\\\" *ngIf=\\\"h.showAll\\\"></p>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"timeline-body\\\" *ngIf=\\\"h.communicationId\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<p *ngIf=\\\"!h.showAll\\\" class=\\\"timeline-collapsed\\\" [innerHTML]=\\\"h.note|truncate:[200]\\\"></p>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<p [innerHTML]=\\\"h.note\\\" *ngIf=\\\"h.showAll\\\"></p>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"timeline-body\\\" *ngIf=\\\"h._source\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<p *ngIf=\\\"!h.showAll\\\" class=\\\"timeline-collapsed\\\" [innerHTML]=\\\"(h._source.text || h._source.html)|truncate:[200]|nl2br\\\"></p>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<p [innerHTML]=\\\"(h._source.text || h._source.html) | nl2br\\\" *ngIf=\\\"h.showAll\\\"></p>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"timeline-body\\\" *ngIf=\\\"h.isReply\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<p *ngIf=\\\"!h.showAll\\\" class=\\\"timeline-collapsed\\\" [innerHTML]=\\\"(h.content)|truncate:[200]\\\"></p>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<p [innerHTML]=\\\"(h.content)\\\" *ngIf=\\\"h.showAll\\\"></p>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<p class=\\\"in-reply-to\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tSvar på: <a href=\\\"javascript:;\\\" routerLink=\\\"/support/all/{{h.inReplyTo._id}}/contents/companies:{{companyId}}:history\\\">{{h.inReplyTo._source.headers.subject || 'inget ämne'}}</a> från {{h.inReplyTo._source.from[0].name || h.inReplyTo._source.from[0].email}}\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</p>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"timeline-body\\\" *ngIf=\\\"h.supportId\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<p *ngIf=\\\"!h.showAll\\\" class=\\\"timeline-collapsed\\\" [innerHTML]=\\\"h.body|truncate:[200]\\\"></p>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<p [innerHTML]=\\\"h.body\\\" *ngIf=\\\"h.showAll\\\"></p>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t</li>\\n\\t\\t\\t\\t\\t\\t\\t<li class=\\\"clearfix no-float\\\"></li>\\n\\t\\t\\t\\t\\t\\t</ul>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n\\n</div>\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/components/templates/activitylog.html\n// module id = 992\n// module chunks = 0","module.exports = \"<modal #infoModal>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Ändra / lägg till adress</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div *ngIf=\\\"address\\\">\\n\\t\\t\\t\\t<form [formGroup]=\\\"addressForm\\\">\\n\\t\\t\\t\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<label>Typ</label><br />\\n\\t\\t\\t\\t\\t\\t\\t\\t<button type=\\\"button\\\" [disabled]=\\\"address.adressTypeId == 1\\\" class=\\\"btn btn-block btn-info dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngFor=\\\"let t of addressTypes\\\" [ngClass]=\\\"{'hidden' : t.adressTypeId != address.adressTypeId}\\\">{{t.name}}</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" *ngFor=\\\"let t of addressTypes\\\" [ngClass]=\\\"{'hidden' : t.adressTypeId == 1}\\\" (click)=\\\"address.adressTypeId = t.adressTypeId; address.name = t.name\\\">{{t.name}}</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t<label>Adress</label>\\n\\t\\t\\t\\t\\t\\t<input formControlName=\\\"adress1\\\" class=\\\"form-control\\\" type=\\\"text\\\" placeholder=\\\"Adress\\\" />\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t<input formControlName=\\\"adress2\\\" class=\\\"form-control\\\" type=\\\"text\\\" placeholder=\\\"Adress\\\" />\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t<label>Postnr</label>\\n\\t\\t\\t\\t\\t\\t<input formControlName=\\\"postalCode\\\" class=\\\"form-control\\\" type=\\\"text\\\" placeholder=\\\"Adress\\\" />\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t<label>Stad</label>\\n\\t\\t\\t\\t\\t\\t<input formControlName=\\\"city\\\" class=\\\"form-control\\\" type=\\\"text\\\" placeholder=\\\"Adress\\\" />\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<label>Land</label><br />\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-block btn-info dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngFor=\\\"let c of countries\\\" [ngClass]=\\\"{'hidden' : c.countryId != address.countryId}\\\">{{c.country}}</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" *ngFor=\\\"let c of countries\\\" (click)=\\\"address.countryId = c.countryId; address.country = c.country\\\">{{c.country}}</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t<div *ngIf=\\\"formErrors.adress1\\\" class=\\\"alert alert-danger\\\" [innerHTML]=\\\"formErrors.adress1\\\">\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</form>\\n\\t\\t\\t</div>\\n    </modal-body>\\n\\t\\t<modal-footer *ngIf=\\\"addressForm\\\">\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-default\\\"  (click)=\\\"cancelSave()\\\">Avbryt</button>\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-danger\\\" *ngIf=\\\"address && address.adressId && address.adressTypeId != 1\\\" (click)=\\\"confirmDeleteModal.open()\\\">Ta bort</button>\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-primary\\\" [disabled]=\\\"formErrors.adress1 || formErrors.adress2 || formErrors.city || formErrors.postalCode\\\" (click)=\\\"saveAddress()\\\">Spara</button>\\n\\t\\t</modal-footer>\\n</modal>\\n\\n<modal #loadingModal>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Vänta</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t\\t<i class=\\\"fa fa-circle-o-notch fa-spin fa-3x fa-fw\\\"></i>\\n\\t\\t\\t</div>\\t\\n    </modal-body>\\n</modal>\\n\\n<modal #errorModal>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Fel</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t\\t{{errorMessage}}\\n\\t\\t\\t</div>\\t\\n    </modal-body>\\n\\t\\t<modal-footer>\\n\\t\\t\\t<button  type=\\\"button\\\" class=\\\"btn btn-default\\\"  (click)=\\\"errorModal.dismiss()\\\">Stäng</button>\\n\\t\\t</modal-footer>\\n</modal>\\n\\n\\n<modal #confirmDeleteModal>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Ta bort</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t\\tVill du verkligen ta bort denna adress? Detta val går inte att ångra.\\n\\t\\t\\t</div>\\t\\n    </modal-body>\\n\\t\\t<modal-footer>\\n\\t\\t\\t<button  type=\\\"button\\\" class=\\\"btn btn-danger\\\"  (click)=\\\"confirmDeleteModal.dismiss()\\\">Avbryt</button>\\n\\t\\t\\t<button  type=\\\"button\\\" class=\\\"btn btn-success\\\"  (click)=\\\"confirmDeleteModal.close(); deleteAddress()\\\">Ja, ta bort</button>\\n\\t\\t</modal-footer>\\n</modal>\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/components/templates/addressinfo.html\n// module id = 993\n// module chunks = 0","module.exports = \"<modal #savingModal>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Sparar</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t\\t<p>\\n\\t\\t\\t\\t\\t<i class=\\\"fa fa-circle-o-notch fa-spin fa-3x fa-fw\\\"></i>\\n\\t\\t\\t\\t</p>\\n\\t\\t\\t\\t<p>\\n\\t\\t\\t\\t\\tVänta lite, sparar ...\\n\\t\\t\\t\\t</p>\\n\\t\\t\\t</div>\\t\\n    </modal-body>\\n</modal>\\n\\n<modal #newCorrModal>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Ny korrespondens</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t<select placeholder=\\\"Välj konto att koppla korr till\\\" class=\\\"form-control\\\" *ngIf=\\\"accounts && accounts.length > 0\\\" [(ngModel)]=\\\"selectedAccountId\\\">\\n\\t\\t\\t\\t\\t<option *ngIf=\\\"selectedAccountId == 0\\\" [value]=\\\"0\\\">Välj konto att koppla korr till</option>\\n\\t\\t\\t\\t\\t<option *ngFor=\\\"let a of accounts\\\" [value]=\\\"a.accountId\\\">{{a.prefix}}</option>\\n\\t\\t\\t\\t</select>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t<textarea class=\\\"form-control\\\" rows=\\\"15\\\" placeholder=\\\"Skriv ditt meddelande här\\\" [(ngModel)]=\\\"newCommunicationText\\\"></textarea>\\n\\t\\t\\t</div>\\n    </modal-body>\\n\\t\\t<modal-footer>\\n\\t\\t\\t<button class=\\\"btn btn-danger\\\" (click)=\\\"newCorrModal.dismiss()\\\">Avbryt</button>\\n\\t\\t\\t<button class=\\\"btn btn-primary\\\" (click)=\\\"saveCommunication()\\\">Spara</button>\\n\\t\\t</modal-footer>\\n</modal>\\n\\n<modal #detailsModal>\\n\\t<modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Detaljer</h4>\\n    </modal-header>\\n    <modal-body *ngIf=\\\"detailsItem\\\">\\n\\t\\t\\t<div class=\\\"timeline-heading\\\">\\n\\t\\t\\t\\t<h5>\\n\\t\\t\\t\\t\\t<span *ngIf=\\\"detailsItem.status == 'in'\\\"><i class=\\\"fa fa-arrow-right\\\"></i> {{detailsItem.subject|truncate:[30]}} från {{detailsItem.replyTo}}</span>\\n\\t\\t\\t\\t\\t<span *ngIf=\\\"detailsItem.status == 'out'\\\"><i class=\\\"fa fa-arrow-left\\\"></i> {{detailsItem.subject|truncate:[30]}} från {{detailsItem.replyTo}}</span>\\n\\t\\t\\t\\t\\t<span *ngIf=\\\"detailsItem._source\\\"><a href=\\\"javascript:;\\\" routerLink=\\\"/support/all/{{detailsItem._id}}/contents/companies:{{companyId}}:history\\\"><i class=\\\"fa fa-arrow-right\\\"></i> {{(detailsItem._source.headers.subject||'inget ämne')|truncate:[30]}}</a> från {{detailsItem._source.from[0].address}}</span>\\n\\t\\t\\t\\t\\t<span *ngIf=\\\"detailsItem.isReply\\\"><a href=\\\"javascript:;\\\" routerLink=\\\"/support/all/{{detailsItem._id}}/contents/companies:{{companyId}}:history\\\"><i class=\\\"fa fa-arrow-left\\\"></i> {{(detailsItem.subject||'inget ämne')|truncate:[30]}}</a> från {{detailsItem.from.firstName}} {{detailsItem.from.lastName}}</span>\\n\\t\\t\\t\\t\\t<span *ngIf=\\\"detailsItem.taskId && !detailsItem.communicationId\\\"><i class=\\\"fa fa-wrench\\\"></i> {{detailsItem.name}}</span>\\n\\t\\t\\t\\t\\t<span *ngIf=\\\"detailsItem.communicationId\\\"><i class=\\\"fa fa-wrench\\\"></i> {{detailsItem.cType}}</span>\\n\\t\\t\\t\\t\\t<small class=\\\"pull-right\\\"><date-formatter [date]=\\\"detailsItem.startDate || (detailsItem.createdDate || (detailsItem._source ? detailsItem._source.date : detailsItem.date))\\\"></date-formatter></small>\\n\\t\\t\\t\\t</h5>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div *ngIf=\\\"detailsItem.taskId\\\">\\n\\t\\t\\t\\t\\t<p [innerHTML]=\\\"detailsItem.description|nl2br\\\" style=\\\"max-height : 500px; overflow: scroll;\\\"></p>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div *ngIf=\\\"detailsItem.communicationId\\\">\\n\\t\\t\\t\\t\\t<p [innerHTML]=\\\"detailsItem.note|nl2br\\\" style=\\\"max-height : 500px; overflow: scroll;\\\"></p>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div *ngIf=\\\"detailsItem._source\\\">\\n\\t\\t\\t\\t\\t<p [innerHTML]=\\\"(detailsItem._source.text || detailsItem._source.html) | nl2br\\\" style=\\\"max-height : 500px; overflow: scroll;\\\"></p>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div *ngIf=\\\"detailsItem.typeId == 24\\\">\\n\\t\\t\\t\\t<p [innerHTML]=\\\"(detailsItem.html)\\\"></p>\\n\\t\\t\\t\\t<div *ngIf=\\\"detailsItem.attachments\\\">\\n\\t\\t\\t\\t\\t<br /><strong>Bifogade filer:</strong><br />\\n\\t\\t\\t\\t\\t<span *ngFor=\\\"let a of detailsItem.attachments\\\"><a href=\\\"javascript:;\\\" (click)=\\\"downloadAttachment('hsd-incoming-bucket', a.path)\\\">{{a.filename}}</a> <br /></span>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div *ngIf=\\\"detailsItem.isReply\\\">\\n\\t\\t\\t\\t<p [innerHTML]=\\\"(detailsItem.content)\\\" style=\\\"max-height : 500px; overflow: scroll;\\\"></p>\\n\\t\\t\\t\\t<div class=\\\"in-reply-to\\\">\\n\\t\\t\\t\\t\\tSkickat som svar på: <a href=\\\"javascript:;\\\" routerLink=\\\"/support/all/{{detailsItem.inReplyTo._id}}/contents/companies:{{companyId}}:history\\\">{{detailsItem.inReplyTo._source.headers.subject || 'inget ämne'}}</a> från {{detailsItem.inReplyTo._source.from[0].name || detailsItem.inReplyTo._source.from[0].email}}\\n\\t\\t\\t\\t\\t<!--<div class=\\\"in-reply-to-msg\\\" [innerHTML]=\\\"detailsItem.inReplyTo._source.html || detailsItem.inReplyTo._source.text\\\"></div>-->\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t<div *ngIf=\\\"detailsItem.attachments\\\">\\n\\t\\t\\t\\t\\t<br /><strong>Bifogade filer:</strong><br />\\n\\t\\t\\t\\t\\t<span *ngFor=\\\"let a of detailsItem.attachments\\\"><a href=\\\"javascript:;\\\" (click)=\\\"downloadAttachment('hsd-incoming-bucket', a.path)\\\">{{a.filename}}</a> <br /></span>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t\\t<!--\\n\\t\\t\\t<div *ngIf=\\\"detailsItem.isReply\\\">\\n\\t\\t\\t\\t<p [innerHTML]=\\\"(detailsItem.content)\\\"></p>\\n\\t\\t\\t\\t<div class=\\\"in-reply-to\\\">\\n\\t\\t\\t\\t\\tSkickat som svar på: <a href=\\\"javascript:;\\\" routerLink=\\\"/support/all/{{detailsItem.inReplyTo._id}}/contents/companies:{{companyId}}:history\\\">{{detailsItem.inReplyTo._source.headers.subject || 'inget ämne'}}</a> från {{detailsItem.inReplyTo._source.from[0].name || detailsItem.inReplyTo._source.from[0].email}}\\n\\t\\t\\t\\t\\t<div class=\\\"in-reply-to-msg\\\" [innerHTML]=\\\"detailsItem.inReplyTo._source.html || detailsItem.inReplyTo._source.text\\\"></div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t\\t-->\\n\\t\\t\\t<div *ngIf=\\\"detailsItem.supportId\\\">\\n\\t\\t\\t\\t\\t<p [innerHTML]=\\\"detailsItem.body\\\"></p>\\n\\t\\t\\t</div>\\n    </modal-body>\\n\\t\\t<modal-footer>\\n\\t\\t\\t<button class=\\\"btn btn-danger\\\" (click)=\\\"detailsModal.dismiss()\\\">Stäng</button>\\n\\t\\t</modal-footer>\\n</modal>\\n\\n<div class=\\\"height-100\\\" style=\\\"position:relative\\\">\\n  <div class=\\\"row height-100\\\">\\n\\t\\t<div class=\\\"col-md-6 height-100\\\">\\n\\t\\t\\t<div class=\\\"centered\\\" *ngIf=\\\"loading\\\">\\n\\t\\t\\t\\t<i class=\\\"fa fa-spin fa-spinner\\\"></i> vänta, laddar ...\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"history-list height-100  scrollable\\\">\\n\\t\\t\\t\\t<ul class=\\\"timeline\\\" *ngIf=\\\"filteredHistory && filteredHistory.length > 0\\\">\\n\\t\\t\\t\\t\\t<li *ngFor=\\\"let h of filteredHistory; let myIndex = index;\\\" [ngClass]=\\\"{'has-timeline-divider' : h.hasDivider}\\\">\\n\\t\\t\\t\\t\\t\\t<div class=\\\"timeline-divider\\\" *ngIf=\\\"h.hasDivider\\\">\\n\\t\\t\\t\\t\\t\\t\\t<div><date-formatter [time]=\\\"false\\\" [date]=\\\"h.dividerDate\\\" [useDayName]=\\\"true\\\"></date-formatter></div>\\t\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t<div class=\\\"timeline-badge\\\" [ngClass]=\\\"{'warning' : (h.taskId && !h.communicationId), \\n\\t\\t\\t\\t\\t\\t\\t\\t\\t'primary' : h.communicationId && h.typeId == 9, \\n\\t\\t\\t\\t\\t\\t\\t\\t\\t'success' : h.communicationId && (h.typeId == 21 || h.typeId == 22 || h.typeId == 23 || h.typeId == 24),\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t'info' : h.communicationId && (h.typeId != 9 && h.typeId != 21 && h.typeId != 22 && h.typeId != 23 && h.typeId != 24),\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t'danger' : h._source || h.supportId || h.isReply}\\\">\\n\\t\\t\\t\\t\\t\\t\\t<i class=\\\"fa fa-bolt\\\" *ngIf=\\\"h.communicationId\\\"></i>\\n\\t\\t\\t\\t\\t\\t\\t<i class=\\\"fa fa-wrench\\\" *ngIf=\\\"h.taskId && !h.communicationId\\\"></i>\\n\\t\\t\\t\\t\\t\\t\\t<i class=\\\"fa fa-envelope\\\" *ngIf=\\\"h._source || h.isReply || h.supportId\\\"></i>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t<div class=\\\"timeline-panel\\\" (click)=\\\"detailsItem = h; detailsModal.open()\\\">\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"timeline-heading\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<h5>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"h.status == 'in'\\\"><i class=\\\"fa fa-arrow-right\\\"></i> {{h.subject|truncate:[30]}} från {{h.replyTo}}</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"h.status == 'out'\\\"><i class=\\\"fa fa-arrow-left\\\"></i> {{h.subject|truncate:[30]}} från {{h.replyTo}}</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"h._source\\\"><a href=\\\"javascript:;\\\" routerLink=\\\"/support/all/{{h._id}}/contents/companies:{{companyId}}:history\\\"><i class=\\\"fa fa-arrow-right\\\"></i> {{(h._source.headers.subject||'inget ämne')|truncate:[30]}}</a></span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<small *ngIf=\\\"h._source\\\"><a name=\\\"id-{{h._id}}\\\">{{h._id}}</a></small>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"h.isReply\\\"><a href=\\\"javascript:;\\\" routerLink=\\\"/support/all/{{h._id}}/contents/companies:{{companyId}}:history\\\"><i class=\\\"fa fa-arrow-left\\\"></i> {{(h.subject||'inget ämne')|truncate:[30]}}</a></span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"h.taskId && !h.communicationId\\\"><i class=\\\"fa fa-wrench\\\"></i> <a href=\\\"javascript:;\\\" routerLink=\\\"/activities/all/{{h.taskId}}/{{_returnPath}}\\\">{{h.name}}</a></span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"h.communicationId\\\"><i class=\\\"fa fa-wrench\\\"></i> {{h.cType}}</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<small class=\\\"pull-right p-t-4px\\\"><date-formatter [date]=\\\"h.startDate || (h.createdDate || (h._source ? h._source.date : h.date))\\\"></date-formatter> \\n\\t\\t\\t\\t\\t\\t\\t\\t\\t- <span *ngIf=\\\"h.communicationId && !h.taskId\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"h.userId==26\\\">System</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t  \\t<span *ngIf=\\\"h.userId != 26\\\">{{h.firstName}} {{h.lastName}}</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"h._source\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t{{h._source.from[0].address}}\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"h.isReply\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t{{h.from.firstName}} {{h.from.lastName}}\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"h.taskId\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t{{h.firstName}} {{h.lastName}}\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</small>\\n\\t\\t\\t\\t\\t\\t\\t\\t</h5>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"timeline-body\\\" *ngIf=\\\"h.taskId && !h.communicationId\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<p *ngIf=\\\"!h.showAll\\\" class=\\\"timeline-collapsed\\\" [innerHTML]=\\\"h.description|truncate:[200]\\\"></p>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<p [innerHTML]=\\\"h.description\\\" *ngIf=\\\"h.showAll\\\"></p>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"timeline-body\\\" *ngIf=\\\"h.communicationId && h.typeId != 24\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<p *ngIf=\\\"!h.showAll\\\" class=\\\"timeline-collapsed\\\" [innerHTML]=\\\"h.note|truncate:[200]\\\"></p>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<p [innerHTML]=\\\"h.note\\\" *ngIf=\\\"h.showAll\\\"></p>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"timeline-body\\\" *ngIf=\\\"h._source\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<p *ngIf=\\\"!h.showAll\\\" class=\\\"timeline-collapsed\\\" [innerHTML]=\\\"(h._source.text || h._source.html)|truncate:[200]|nl2br\\\"></p>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<p [innerHTML]=\\\"(h._source.text || h._source.html) | nl2br\\\" *ngIf=\\\"h.showAll\\\"></p>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"timeline-body\\\" *ngIf=\\\"h.isReply\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<p *ngIf=\\\"!h.showAll\\\" class=\\\"timeline-collapsed\\\" [innerHTML]=\\\"(h.content)|truncate:[200]\\\"></p>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<p [innerHTML]=\\\"(h.content)\\\" *ngIf=\\\"h.showAll\\\"></p>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<p class=\\\"in-reply-to\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tSvar på: <a href=\\\"javascript:;\\\" routerLink=\\\"/support/all/{{h.inReplyTo._id}}/contents/companies:{{companyId}}:history\\\">{{h.inReplyTo._source.headers.subject || 'inget ämne'}}</a> från {{h.inReplyTo._source.from[0].name || h.inReplyTo._source.from[0].email}}\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</p>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"timeline-body\\\" *ngIf=\\\"h.typeId == 24\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<p *ngIf=\\\"!h.showAll\\\" class=\\\"timeline-collapsed\\\" [innerHTML]=\\\"(h.text)|truncate:[200]\\\"></p>\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t<p [innerHTML]=\\\"(h.text)\\\" *ngIf=\\\"h.showAll\\\"></p>\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t<p *ngIf=\\\"h.attachments\\\">{{h.attachments.length}} bifogade filer</p>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"timeline-body\\\" *ngIf=\\\"h.supportId\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<p *ngIf=\\\"!h.showAll\\\" class=\\\"timeline-collapsed\\\" [innerHTML]=\\\"h.body|truncate:[200]\\\"></p>\\n\\t\\t\\t\\t\\t\\t\\t\\t<p [innerHTML]=\\\"h.body\\\" *ngIf=\\\"h.showAll\\\"></p>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</li>\\n\\t\\t\\t\\t\\t<li class=\\\"clearfix no-float\\\"></li>\\n\\t\\t\\t\\t</ul>\\n\\t\\t\\t\\t<div *ngIf=\\\"!loading\\\" style=\\\"margin-bottom: 100px; text-align: center;\\\">\\n\\t\\t\\t\\t\\t<div *ngIf=\\\"loadingMore\\\">\\n\\t\\t\\t\\t\\t\\t<i class=\\\"fa fa-spin fa-spinner\\\"></i>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t<div  *ngIf=\\\"!loadingMore\\\">\\n\\t\\t\\t\\t\\t\\t<div style=\\\"padding: 5px; text-align: center;\\\">Laddat från allt fr.o.m {{ historyLaterThanDate.toLocaleDateString() }}</div>\\n\\t\\t\\t\\t\\t\\t<div class=\\\"timeline-divider\\\" style=\\\"cursor: pointer;white-space: nowrap;\\\" (click)=\\\"loadMoreHistory()\\\">\\n\\t\\t\\t\\t\\t\\t\\t<div style=\\\"padding: 5px 2px;background:#eee;\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\tLadda fler...\\n\\t\\t\\t\\t\\t\\t\\t</div>\\t\\n\\t\\t\\t\\t\\t\\t</div>\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n\\t\\t<div class=\\\"col-md-6\\\">\\n\\t\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-sm\\\" (click)=\\\"refresh()\\\"><i class=\\\"fa\\\" [ngClass]=\\\"{'fa-refresh' : !loading, 'fa-spin fa-spinner' : loading}\\\"></i> Uppdatera</button>\\n\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-sm\\\" (click)=\\\"addCommunication()\\\"><i class=\\\"fa fa-pencil\\\"></i> Ny korr</button>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" (keyup)=\\\"searchHistory()\\\" [(ngModel)]=\\\"searchKeyword\\\" placeholder=\\\"Sök...\\\" />\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-sm\\\" (click)=\\\"_showActivities = !_showActivities; searchHistory()\\\"><i *ngIf=\\\"_showActivities\\\" class=\\\"fa fa-check\\\"></i> Aktiveteter</button>\\n\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-sm\\\" (click)=\\\"_showSupport = !_showSupport; searchHistory()\\\"><i *ngIf=\\\"_showSupport\\\" class=\\\"fa fa-check\\\"></i> Supportärenden</button>\\n\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-sm\\\" (click)=\\\"_showEvents = !_showEvents; searchHistory()\\\"><i *ngIf=\\\"_showEvents\\\" class=\\\"fa fa-check\\\"></i> Händelser</button>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t<span *ngFor=\\\"let a of accounts\\\">\\n\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-sm\\\" (click)=\\\"a.includeInHistory = !a.includeInHistory; searchHistory()\\\"><i *ngIf=\\\"a.includeInHistory\\\" class=\\\"fa fa-check\\\"></i> #{{a.prefix}}</button>\\n\\t\\t\\t\\t\\t\\t</span>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n  </div>\\n</div>\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/components/templates/communicationhistory.html\n// module id = 994\n// module chunks = 0","module.exports = \"\\n<div class=\\\"support-content\\\">\\n\\n\\t<div class=\\\"row\\\">\\n\\t\\t<nav class=\\\"navbar navbar-light bg-faded\\\">\\n\\t\\t\\t\\n\\t\\t\\t<button class=\\\"btn activity-count\\\">Visar {{companies.length}} av {{totalCompanies}} kunder</button>\\n\\t\\t\\t\\n\\t\\t\\t<div class=\\\"btn-group\\\" role=\\\"group\\\" aria-label=\\\"Basic example\\\">\\n\\t\\t\\t  <button *ngFor=\\\"let btn of filterButtons\\\" (click)=\\\"toggleFilterButton(btn)\\\" type=\\\"button\\\" class=\\\"btn\\\" [ngClass]=\\\"{'btn-primary' : !btn.checked, 'btn-success' : btn.checked}\\\">{{btn.name}}</button>\\n\\t\\t\\t</div>\\n\\t\\t\\t\\n\\t\\t\\t<div class=\\\"btn-group\\\" role=\\\"group\\\" aria-label=\\\"Basic example\\\">\\n\\t\\t\\t  <button (click)=\\\"filter.needsToHaveActiveSubscription = !filter.needsToHaveActiveSubscription; searchCompanies()\\\" type=\\\"button\\\" class=\\\"btn\\\" [ngClass]=\\\"{'btn-primary' : !filter.needsToHaveActiveSubscription, 'btn-success' : filter.needsToHaveActiveSubscription}\\\">Aktiva</button>\\n\\t\\t\\t</div>\\t\\n\\n\\t\\t\\t<div class=\\\"btn-group\\\" role=\\\"group\\\" aria-label=\\\"Basic example\\\">\\n\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-info btn-block dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\">{{_accountStatuses[filter.accountStatusId]}}</span>\\n\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t<a *ngFor=\\\"let s of accountStatuses\\\" class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"setStatusFilter(s.statusId)\\\">{{s.name}}</a>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\n\\t\\t  <form class=\\\"form-inline pull-xs-right m-l-1\\\">\\n\\t      <button (click)=\\\"reload()\\\" type=\\\"button\\\" class=\\\"btn btn-primary\\\"><i class=\\\"fa fa-refresh\\\" [ngClass]=\\\"{'fa-circle-o-notch fa-spin fa-f' : refreshing}\\\"></i> Uppdatera</button>\\n\\t\\t  </form>\\n\\t\\t  \\n\\t\\t  <div class=\\\"form-inline pull-xs-right\\\">\\n\\t\\t    <input class=\\\"form-control\\\" type=\\\"text\\\" (keyup)=\\\"searchCompanies()\\\" [(ngModel)]=\\\"filter.phrase\\\" placeholder=\\\"Sök\\\" #searchFilter>\\n\\t\\t  </div>\\n\\t\\t  \\n\\t\\t</nav>\\n\\t</div>\\n\\t\\n\\t<div class=\\\"support-pane-master row full-height-fill full-width-fill p48\\\" [ngClass]=\\\"{'collapsed' : showCompanyInfo}\\\">\\n\\t\\t\\n\\t\\t<div class=\\\"activity-list\\\"\\n\\t\\t            infinite-scroll\\n\\t\\t            [infiniteScrollDistance]=\\\"2\\\"\\n\\t\\t            [infiniteScrollThrottle]=\\\"500\\\"\\n\\t\\t            (scrolled)=\\\"onScroll()\\\"\\n\\t\\t            [scrollWindow]=\\\"false\\\">\\n\\t\\t\\n\\t\\t\\t<table class=\\\"table table-sm\\\">\\n\\n\\t\\t\\t  <thead >\\n\\t\\t\\t    <tr>\\n\\t\\t\\t\\t    <th class=\\\"issue-check\\\">\\n\\t\\t\\t\\t\\t\\t\\t  <i class=\\\"fa fa-check-square-o\\\" (click)=\\\"setAllSelected()\\\"></i>\\n\\t\\t\\t\\t    </th>\\n\\t\\t\\t      <th width=\\\"10%\\\" nowrap=\\\"nowrap\\\">Namn</th>\\n\\t\\t\\t\\t\\t\\t<th>Abonnemang</th>\\n\\t\\t\\t      <th>Prefix</th>\\n\\t\\t\\t      <th>Domän</th>\\n\\t\\t\\t      <th>Konton</th>\\n\\t\\t\\t      <th>Organisationsnr</th>\\n\\t\\t\\t\\t\\t\\t<td>Kundtyp</td>\\n\\t\\t\\t    </tr>\\n\\t\\t\\t  </thead>\\n\\n\\t\\t\\t\\t<tbody *ngFor=\\\"let c of companies\\\">\\n\\t\\t\\t\\t  <tr>\\n\\t\\t\\t\\t\\t  <td class=\\\"vert-align\\\" (click)=\\\"c.selected = !c.selected; toggleCompanyToolbar()\\\" scope=\\\"row\\\" nowrap=\\\"nowrap\\\" class=\\\"issue-check\\\">\\n\\t\\t\\t\\t\\t\\t  <i class=\\\"fa\\\" [ngClass]=\\\"{'fa-square-o' : !c.selected, 'fa-check-square-o' : c.selected}\\\"></i>\\n\\t\\t\\t\\t\\t  </td>\\n\\t\\t\\t\\t\\t\\t<td width=\\\"100%\\\" nowrap=\\\"nowrap\\\" class=\\\"vert-align\\\"><a href=\\\"javascript:;\\\" routerLink=\\\"/companies/{{c.companyId}}\\\"><em *ngIf=\\\"c.name == '' || c.name == ' '\\\">Inget namn</em>{{c.name}}</a></td>\\n\\t\\t\\t\\t\\t\\t<td nowrap=\\\"nowrap\\\" class=\\\"vert-align\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"!c.subscriptionId\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t-\\n\\t\\t\\t\\t\\t\\t\\t\\t</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"c.subscriptionId && c.subscriptionStatus == 1\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tAktiv \\n\\t\\t\\t\\t\\t\\t\\t\\t</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"c.subscriptionId && c.subscriptionStatus == 0\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tUppsagd <span *ngIf=\\\"c.subscriptionId && c.subscriptionStatus == 0\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<date-formatter [time]=\\\"false\\\" [date]=\\\"c.subscriptionExpireDate\\\"></date-formatter>\\n\\t\\t\\t\\t\\t\\t\\t\\t</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t</span>\\n\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t<td class=\\\"vert-align\\\" nowrap>\\n\\t\\t\\t\\t\\t\\t\\t<a href=\\\"javascript:;\\\" routerLink=\\\"/companies/{{c.companyId}}/accounts-{{c.accountId}}\\\" [ngClass]=\\\"{'strikethrough' : c.accountActive == 0}\\\">#{{c.prefix}}</a>\\n\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t<td class=\\\"vert-align\\\" nowrap><a href=\\\"javascript:;\\\" routerLink=\\\"/companies/{{c.companyId}}/domains\\\" [ngClass]=\\\"{'strikethrough' : c.domainStatus == 7}\\\">{{c.domain}}</a></td>\\n\\t\\t\\t\\t\\t\\t<td class=\\\"vert-align\\\">{{c.numAccounts}}</td>\\n\\t\\t\\t\\t\\t\\t<td class=\\\"vert-align\\\" nowrap>{{c.orgNr}}</td>\\n\\t\\t\\t\\t\\t\\t<th nowrap=\\\"nowrap\\\">{{c.statusName}}</th>\\n\\t\\t\\t\\t  </tr>\\n\\t\\t\\t\\t</tbody>\\n\\n        <tbody>\\n\\t\\t\\t\\t\\t<tr [ngClass]=\\\"{'hidden' : !loading}\\\">\\n\\t\\t\\t\\t\\t\\t<td colspan=\\\"9\\\" align=\\\"center\\\">\\n\\t\\t\\t\\t\\t\\t\\t<i class=\\\"fa fa-circle-o-notch fa-spin fa-2x fa-fw\\\"></i>\\n\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t  </tbody>\\n        \\n    </table>\\n\\n\\t\\t</div>\\n\\n  </div>\\n\\n\\t<div class=\\\"support-pane-details full-height-fill full-width-fill row\\\" [ngClass]=\\\"{'collapsed' : !showCompanyInfo}\\\">\\n\\t\\t<div class=\\\"col-md-12 p-relative height-100\\\">\\n\\t\\t\\t<div class=\\\"support-navbar\\\">\\n\\t\\t\\t\\t<a href=\\\"javascript:;\\\" (click)=\\\"closeSelectedCompany()\\\"><i class=\\\"fa fa-close\\\"></i></a>\\n\\t\\t\\t\\t<div class=\\\"support-nav-buttons\\\">\\n\\t\\t\\t\\t\\t<a href=\\\"javascript:;\\\" (click)=\\\"prevCompany()\\\"><i class=\\\"fa fa-chevron-left\\\"></i></a>\\n\\t\\t\\t\\t\\t<a href=\\\"javascript:;\\\" (click)=\\\"nextCompany()\\\"><i class=\\\"fa fa-chevron-right\\\"></i></a>\\t\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t\\t<router-outlet></router-outlet>\\n\\t\\t\\t<!--\\n\\t\\t\\t<customer-full-info [canAssign]=\\\"false\\\" #companyInfo></customer-full-info>-->\\n\\t\\t</div>\\t\\n\\t</div>\\n\\n</div>\\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/components/templates/companylist.html\n// module id = 995\n// module chunks = 0","module.exports = \"<modal #createAccountModal>\\n    <modal-header [show-close]=\\\"true\\\">\\n        <h4 class=\\\"modal-title\\\">Nytt konto</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t\\t<div class=\\\"form-inline col-md-12\\\">\\n\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"newAccountDetails.prefix\\\" pattern=\\\"[a-zA-Z0-9]+\\\" placeholder=\\\"#prefix\\\" (ngModelChange)=\\\"lookupPrefix()\\\"/>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t<div class=\\\"btn-group\\\">\\n\\t\\t\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-info btn-block dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"newAccountDetails.status == 0\\\">Aktiv</span>\\n\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"newAccountDetails.status == 1\\\">Intern</span>\\n\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"newAccountDetails.status == 10\\\">Demo</span>\\n\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"newAccountDetails.status = 0\\\">Aktiv</a>\\n\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"newAccountDetails.status = 1\\\">Intern</a>\\n\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"newAccountDetails.status = 10\\\">Demo</a>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t<div class=\\\"btn-group\\\">\\n\\t\\t\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-info btn-block dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"newAccountDetails.type == 'wphost'\\\">Wordpress</span>\\n\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"newAccountDetails.type == 'wordpress'\\\">Wordpress (Lightsail)</span>\\n\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"newAccountDetails.type == 'production'\\\">Standard</span>\\n\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"setHostingType('wphost')\\\">Wordpress</a>\\n\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"setHostingType('wordpress')\\\">Wordpress (Lightsail)</a>\\n\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"setHostingType('production')\\\">Standard</a>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t<div class=\\\"btn-group\\\">\\n\\t\\t\\t\\t\\t\\t<button *ngIf=\\\"newAccountDetails.type == 'wordpress'\\\" type=\\\"button\\\" class=\\\"btn btn-info btn-block dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\">{{instanceSnapshotName}}</span>\\n\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t\\t\\t<a *ngFor=\\\"let snap of wordPressSnapshots\\\" class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"instanceSnapshotName = snap.name; instanceSnapshotZone = snap.location.regionName + 'a'\\\">{{snap.name}} - {{snap.location.regionName}}</a>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t<div class=\\\"btn-group\\\">\\n\\t\\t\\t\\t\\t\\t<button *ngIf=\\\"newAccountDetails.type == 'wphost'\\\" type=\\\"button\\\" class=\\\"btn btn-info btn-block dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\">{{wphost.host}}</span>\\n\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t\\t\\t<a *ngFor=\\\"let server of servers\\\" class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"setWphost(server)\\\">{{server.name}} - {{server.instanceType}}</a>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t<div class=\\\"btn-group\\\">\\n\\t\\t\\t\\t\\t\\t<button *ngIf=\\\"newAccountDetails.type == 'wphost' && wphostTemplates\\\" type=\\\"button\\\" class=\\\"btn btn-info btn-block dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\">{{wphostTemplate}}</span>\\n\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t\\t\\t<a *ngFor=\\\"let account of wphostTemplates\\\" class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\"\\n\\t\\t\\t\\t\\t\\t\\t\\t(click)=\\\"setWphostTemplate(account.prefix)\\\">{{account.prefix}}</a>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"row error\\\">\\n\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t<div class=\\\"alert alert-danger\\\" *ngIf=\\\"prefixExists && !lookingUpPrefix\\\">\\n\\t\\t\\t\\t\\t\\tPrefixet finns redan\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t<div class=\\\"form-group\\\" *ngIf=\\\"lookingUpPrefix\\\">\\n\\t\\t\\t \\t\\t  <i class=\\\"fa fa-circle-o-notch fa-spin fa-fw\\\"></i> kontrollerar prefix\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"row\\\" *ngIf=\\\"newAccountDetails.skipAccount == false\\\">\\n\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"newAccountDetails.email\\\" placeholder=\\\"Epostadress till admin\\\" />\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t<div class=\\\"checkbox\\\">\\n\\t\\t\\t\\t\\t\\t<label>\\n\\t\\t\\t\\t\\t\\t\\t<input type=\\\"checkbox\\\" [(ngModel)]=\\\"newAccountDetails.hasDomain\\\"> Lägg till ett domännamn\\n\\t\\t\\t\\t\\t\\t</label>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"row\\\" *ngIf=\\\"newAccountDetails.hasDomain\\\">\\n\\t\\t\\t\\t<div class=\\\"col-md-8\\\">\\n\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"newAccountDetails.domain\\\" placeholder=\\\"Domännamn\\\" (ngModelChange)=\\\"lookupDomain()\\\"/>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t<div class=\\\"col-md-4\\\">\\n\\t\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-info btn-block dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"newAccountDetails.domainType == 1\\\">Ompekning</span>\\n\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"newAccountDetails.domainType == 5\\\">Nyregistrering</span>\\n\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"newAccountDetails.domainType == 4\\\">Befintlig</span>\\n\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"newAccountDetails.domainType = 1\\\">Ompekning</a>\\n\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"newAccountDetails.domainType = 5\\\">Nyregistrering</a>\\n\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"newAccountDetails.domainType = 4\\\">Befintlig</a>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"row error\\\">\\n\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t<div class=\\\"alert alert-danger\\\" *ngIf=\\\"(domainExists || domainRegistered) && !lookingUpDomain && domainLookupCompleted\\\">\\n\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"domainRegistered\\\">Domänen är redan registrerad och måste pekas om</span>\\n\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"domainExists && domainNotMine\\\">Domänen finns redan</span>\\n\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"domainExists && !domainNotMine\\\">Domänen finns redan på det här kontot, välj 'Befintlig' i listan till höger</span>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t<div class=\\\"alert alert-success\\\" *ngIf=\\\"!domainExists && !domainRegistered && !lookingUpDomain && domainLookupCompleted\\\">\\n\\t\\t\\t\\t\\t\\t<span>Domänen kommer att registreras</span>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t<div class=\\\"form-group\\\" *ngIf=\\\"lookingUpDomain\\\">\\n\\t\\t\\t \\t\\t  <i class=\\\"fa fa-circle-o-notch fa-spin fa-fw\\\"></i> kontrollerar domännamn\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t<div class=\\\"checkbox\\\">\\n\\t\\t\\t\\t\\t\\t<label>\\n\\t\\t\\t\\t\\t\\t\\t<input type=\\\"checkbox\\\" [disabled]=\\\"!newAccountDetails.hasDomain\\\" [(ngModel)]=\\\"newAccountDetails.hasSSL\\\"> Använd HTTPS\\n\\t\\t\\t\\t\\t\\t</label>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t<div class=\\\"checkbox\\\">\\n\\t\\t\\t\\t\\t\\t<label>\\n\\t\\t\\t\\t\\t\\t\\t<input type=\\\"checkbox\\\" [(ngModel)]=\\\"newAccountDetails.hasMaterial\\\"> Material finns\\n\\t\\t\\t\\t\\t\\t</label>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"row\\\" *ngIf=\\\"newAccountDetails.hasMaterial\\\">\\n\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"newAccountDetails.materialDomain\\\" placeholder=\\\"Ange adress till befintligt material\\\" />\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n    </modal-body>\\n\\t\\t<modal-footer>\\n        <button type=\\\"button\\\" class=\\\"btn btn-danger\\\" data-dismiss=\\\"modal\\\" (click)=\\\"closeCreateAccountModal('cancelled')\\\">Avbryt</button>\\n        <button *ngIf=\\\"newAccountDetails.skipAccount\\\" type=\\\"button\\\" class=\\\"btn btn-primary\\\" (click)=\\\"doCreateAccount()\\\">Konvertera</button>\\n        <button *ngIf=\\\"!newAccountDetails.skipAccount\\\" type=\\\"button\\\" class=\\\"btn btn-primary\\\" [disabled]=\\\"lookinUpPrefix || !prefixValid || !newAccountDetails.prefix || (domainExists && domainNotMine)\\\" (click)=\\\"doCreateAccount()\\\">Skapa</button>\\n    </modal-footer>\\n</modal>\\n\\n<modal #creatingModal>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Vänta</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t\\t<p *ngIf=\\\"!createError\\\">\\n\\t\\t\\t\\t\\t<i class=\\\"fa fa-circle-o-notch fa-spin fa-3x fa-fw\\\"></i>\\n\\t\\t\\t\\t</p>\\n\\t\\t\\t\\t<p *ngIf=\\\"!createError\\\">\\n\\t\\t\\t\\t\\t{{ createStatus }}\\n\\t\\t\\t\\t</p>\\n\\t\\t\\t\\t<p *ngIf=\\\"createError\\\">\\n\\t\\t\\t\\t\\t{{createError}}\\n\\t\\t\\t\\t</p>\\n\\t\\t\\t</div>\\t\\n    </modal-body>\\n</modal>\\n\\n<modal #errorModal>\\n    <modal-header [show-close]=\\\"true\\\">\\n        <h4 class=\\\"modal-title\\\">Fel</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t\\t<p>\\n\\t\\t\\t\\t\\t{{errorMessage}}\\n\\t\\t\\t\\t</p>\\n\\t\\t\\t</div>\\t\\n    </modal-body>\\n</modal>\\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/components/templates/createaccountmodal.html\n// module id = 996\n// module chunks = 0","module.exports = \"<modal #createActivityModal>\\n    <modal-header [show-close]=\\\"true\\\">\\n        <h4 class=\\\"modal-title\\\">Ny aktivitet</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<customer-info [ngClass]=\\\"{'hidden' : newActivityCompany}\\\" [companyId]=\\\"null\\\" (onAssignCompany)=\\\"handleOnCompanyAssigned($event)\\\" (onUnAssignCompany)=\\\"handleOnCompanyUnAssigned()\\\" #activityCompanyInfo></customer-info>\\n\\t\\t\\t<div [ngClass]=\\\"{'hidden' : !newActivityCompany}\\\">\\n\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t<label>Namn:</label>\\n\\t\\t\\t\\t\\t<select [disabled]=\\\"creatingActivity\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"newActivityName\\\" [ngModelOptions]=\\\"{standalone: true}\\\">\\n\\t\\t\\t\\t\\t\\t<option *ngFor=\\\"let at of activityTypes\\\" value=\\\"{{at.value}}\\\">{{at.text}}</option>\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t</select>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t<div class=\\\"form-group\\\" *ngIf=\\\"newActivityName == 'Annat'\\\">\\n\\t\\t\\t\\t\\t<label>Annat:</label>\\n\\t\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"newActivityName_\\\" [ngModelOptions]=\\\"{standalone: true}\\\" />\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t<label>Beskrivning</label>\\n\\t\\t\\t\\t\\t<textarea [disabled]=\\\"creatingActivity\\\" class=\\\"form-control\\\" rows=\\\"15\\\" cols=\\\"200\\\" [(ngModel)]=\\\"newActivityDescription\\\" [ngModelOptions]=\\\"{standalone: true}\\\"></textarea>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t<div class='row form-group'>\\n\\t\\t\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\t\\t\\t\\t\\t\\t<datepicker [placeholder]=\\\"'Startdatum'\\\" #newActivityStartDate></datepicker>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\t\\t\\t\\t\\t\\t<datepicker [placeholder]=\\\"'Slutdatum'\\\" #newActivityEndDate></datepicker>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t<div class=\\\"row form-group\\\">\\n\\t\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t\\t<div class=\\\"btn-group\\\" *ngIf=\\\"newActivityCompany && newActivityCompany.accounts\\\">\\n\\t\\t\\t\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-info dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"newActivityAccount\\\">#{{newActivityAccount.prefix}}</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"(newActivityCompany && newActivityCompany.accounts.length == 0)\\\">inget prefix</span>\\n\\t\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" *ngFor=\\\"let a of newActivityCompany.accounts\\\" (click)=\\\"newActivityAccount = a\\\">#{{a.prefix}}</a>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t<div class=\\\"btn-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-warning dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"newActivityStatus == 2\\\">Startklar</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"newActivityStatus == 3\\\">Startad</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"newActivityStatus == 4\\\">Avstannad</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"newActivityStatus == 5\\\">Lansering</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"newActivityStatus == 6\\\">Avslutad</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"newActivityStatus == 7\\\">Väntar</span>\\n\\t\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\t\\t\\t  \\n\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"newActivityStatus = 2\\\">Startklar</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"newActivityStatus = 3\\\">Startad</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"newActivityStatus = 4\\\">Avstannad</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"newActivityStatus = 5\\\">Lansering</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"newActivityStatus = 6\\\">Avslutad</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"newActivityStatus = 7\\\">Väntar</a>\\t\\t    \\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t<div class=\\\"btn-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-primary dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"newActivityUser.userId != 26\\\">{{newActivityUser.firstName}} {{newActivityUser.lastName}}</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"newActivityUser.userId == 26\\\">Otilldelad</span>\\n\\t\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"newActivityUser = { userId : 26, name : 'Otilldelad' }\\\">Otilldelad</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"newActivityUser = { userId : user.userId, firstName : user.firstName, lastName : user.lastName}\\\">Tilldela till mig</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-divider\\\"></div>\\n\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" *ngFor=\\\"let u of availableUsers\\\" (click)=\\\"newActivityUser = u\\\">{{u.lastName}}, {{u.firstName}}</a>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t<div class=\\\"row form-group\\\" *ngIf=\\\"(newActivityCompany && newActivityCompany.accounts.length == 0)\\\">\\n\\t\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t\\tFel, företaget har inga konton. Kan inte skapa aktivetet.\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n    </modal-body>\\n\\t\\t<modal-footer>\\n        <button type=\\\"button\\\" class=\\\"btn btn-danger\\\" data-dismiss=\\\"modal\\\" (click)=\\\"closeCreateActivityModal('cancelled')\\\">Avbryt</button>\\n        <button type=\\\"button\\\"[disabled]=\\\"creatingActivity || (newActivityCompany && newActivityCompany.accounts.length == 0)\\\" class=\\\"btn btn-primary\\\" (click)=\\\"doCreateActivity()\\\">Skapa</button>\\n    </modal-footer>\\n</modal>\\n\\n<modal #creatingModal>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Vänta</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t\\t<p *ngIf=\\\"!createError\\\">\\n\\t\\t\\t\\t\\t<i class=\\\"fa fa-circle-o-notch fa-spin fa-3x fa-fw\\\"></i>\\n\\t\\t\\t\\t</p>\\n\\t\\t\\t\\t<p *ngIf=\\\"!createError\\\">\\n\\t\\t\\t\\t\\tSkapar aktivitet ...\\n\\t\\t\\t\\t</p>\\n\\t\\t\\t\\t<p *ngIf=\\\"createError\\\">\\n\\t\\t\\t\\t\\t{{createError}}\\n\\t\\t\\t\\t</p>\\n\\t\\t\\t</div>\\t\\n    </modal-body>\\n</modal>\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/components/templates/createactivitymodal.html\n// module id = 997\n// module chunks = 0","module.exports = \"\\n<style>\\n\\t.orderstatus_1 { color : orange; }\\n\\t.orderstatus_2 { color : green; }\\n\\t.orderstatus_3 { color : peru; }\\n\\t.orderstatus_4 { color : red; }\\n\\t.orderstatus_5 { color : blueviolet; }\\n\\t\\n\\t.invoicestatus_1 { color : orange; }\\n\\t.invoicestatus_2 { color : green; }\\n\\t.invoicestatus_3 { color : red; }\\n\\t.invoicestatus_4 { color : black; }\\n\\t.invoicestatus_5 { color : blueviolet; }\\n\\n</style>\\n\\n<mailcomposer #newMailComposer>\\n</mailcomposer>\\n\\n<smscomposer #newSmsComposer>\\n</smscomposer>\\n\\n<modal #changeDateModal>\\n\\t<modal-header [show-close]=\\\"false\\\">\\n\\t\\t\\t<h4 class=\\\"modal-title\\\">Ändra datum</h4>\\n\\t</modal-header>\\n\\t<modal-body>\\n\\t\\t<div class=\\\"form-group row\\\">\\n\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t<label>Förnyelsedatum</label>\\n\\t\\t\\t\\t<datepicker [placeholder]=\\\"'Datum'\\\" [date]=\\\"dateToChange * 1000\\\" #dateToChangePicker></datepicker>\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n\\t</modal-body>\\n\\t<modal-footer>\\n\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-primary\\\" (click)=\\\"changeDateModal.dismiss()\\\">Avbryt</button>\\n\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-primary\\\" (click)=\\\"setChangedDateCallback()\\\">Spara</button>\\n\\t</modal-footer>\\n</modal>\\n\\n<modal #confirmCreateInvoiceModal>\\n\\t<modal-header [show-close]=\\\"false\\\">\\n\\t\\t\\t<h4 class=\\\"modal-title\\\">Skapa fakturor</h4>\\n\\t</modal-header>\\n\\t<modal-body>\\t\\t\\t\\n\\t\\t<div class=\\\"btn-group\\\">\\n\\t\\t\\t<label>Skapa i följande system</label><br />\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-info dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"invoiceSystem == 'svea'\\\">Svea Ekonomi</span>\\n\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"invoiceSystem == 'fortnox'\\\">Fortnox</span>\\n\\t\\t\\t</button>\\n\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"invoiceSystem = 'svea'\\\">Svea Ekonomi</a>\\n\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"invoiceSystem = 'fortnox'\\\">Fortnox</a>\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n\\t</modal-body>\\n\\t<modal-footer>\\n\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-default\\\"  (click)=\\\"confirmCreateInvoiceModal.close()\\\">Avbryt</button>\\n\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-success\\\" (click)=\\\"confirmCreateSystemInvoice()\\\">Skapa</button>\\n\\t</modal-footer>\\n</modal>\\n\\n<modal #confirmSendModal>\\n\\t<modal-header [show-close]=\\\"false\\\">\\n\\t\\t\\t<h4 class=\\\"modal-title\\\">Skicka fakturor</h4>\\n\\t</modal-header>\\n\\t<modal-body>\\n\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\tVill du skicka fakturan?\\n\\t\\t</div>\\t\\t\\t\\t\\n\\t</modal-body>\\n\\t<modal-footer>\\n\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-default\\\"  (click)=\\\"confirmSendModal.close()\\\">Avbryt</button>\\n\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-danger\\\" (click)=\\\"confirmSendSystemInvoice()\\\">Ja, skicka</button>\\n\\t</modal-footer>\\n</modal>\\n\\n<modal #orderModal>\\n    <modal-header [show-close]=\\\"true\\\">\\n        <h4 class=\\\"modal-title\\\">Ny order</h4>\\n    </modal-header>\\n    <modal-body *ngIf=\\\"company\\\">\\n\\t\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t\\t<div class=\\\"col-md-12 form-group\\\">\\n\\t\\t\\t\\t\\t<button class=\\\"btn btn-block btn-primary dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t{{newOrderObject.orderType.name}}\\n\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" *ngFor=\\\"let ot of orderTypes\\\" (click)=\\\"newOrderObject.orderType = ot\\\">{{ot.name}}</a>\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t\\t<div class=\\\"col-md-6 form-group\\\">\\n\\t\\t\\t\\t\\t<button class=\\\"btn btn-block btn-primary dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t{{newOrderObject.contact.firstName}} {{newOrderObject.contact.lastName}}\\n\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" *ngFor=\\\"let c of company.contacts\\\" (click)=\\\"newOrderObject.contact = c\\\">{{c.firstName}} {{c.lastName}}</a>\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t<div class=\\\"col-md-6 form-group\\\">\\n\\t\\t\\t\\t\\t<button class=\\\"btn btn-block btn-primary dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t{{newOrderObject.address.name}}: {{newOrderObject.address.adress1}}\\n\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" *ngFor=\\\"let a of company.addresses\\\" (click)=\\\"newOrderObject.address = a\\\">{{a.name}}: {{a.adress1}}</a>\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t\\t<div class=\\\"col-md-8\\\">\\n\\t\\t\\t\\t\\t<span *ngIf=\\\"!availableProducts\\\"><i class=\\\"fa fa-spin fa-circle-o-notch\\\"></i> laddar produkter</span>\\n\\t\\t\\t\\t\\t<select placeholder=\\\"Välj produkt att lägga till\\\" class=\\\"form-control\\\" *ngIf=\\\"availableProducts\\\" [(ngModel)]=\\\"selectedProduct\\\">\\n\\t\\t\\t\\t\\t\\t<option *ngFor=\\\"let p of availableProducts\\\" [value]=\\\"p.productId\\\">{{p.name}}</option>\\n\\t\\t\\t\\t\\t</select>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t<div class=\\\"col-md-2\\\">\\n\\t\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"selectedCount\\\" />\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t<div class=\\\"col-md-2\\\">\\n\\t\\t\\t\\t\\t<button class=\\\"btn btn-primary btn-block\\\" (click)=\\\"addSelectedProduct()\\\">Lägg till</button>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t\\t<h5>Orderrader</h5>\\n\\t\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t\\t<div class=\\\"form-group col-md-12\\\">\\n\\t\\t\\t\\t\\t<table class=\\\"table\\\">\\n\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t<th>Antal</th>\\n\\t\\t\\t\\t\\t\\t\\t<th>Art.nr </th>\\n\\t\\t\\t\\t\\t\\t\\t<th>Benämning</th>\\n\\t\\t\\t\\t\\t\\t\\t<th>Pris / st</th>\\n\\t\\t\\t\\t\\t\\t\\t<th>Rabatt %</th>\\n\\t\\t\\t\\t\\t\\t\\t<th>Subtotal</th>\\n\\t\\t\\t\\t\\t\\t\\t<th></th>\\n\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t<tr *ngFor=\\\"let oi of newOrderObject.products\\\">\\n\\t\\t\\t\\t\\t\\t\\t<td width=\\\"10%\\\"><input min=\\\"0\\\" max=\\\"10000\\\" type=\\\"number\\\" [(ngModel)]=\\\"oi.count\\\" (ngModelChange)=\\\"recalc(oi)\\\" class=\\\"form-control input-sm\\\" /></td>\\n\\t\\t\\t\\t\\t\\t\\t<td class=\\\"vert-align\\\">{{oi.artNr}}</td>\\n\\t\\t\\t\\t\\t\\t\\t<td class=\\\"vert-align\\\">{{oi.name}}</td>\\n\\t\\t\\t\\t\\t\\t\\t<td width=\\\"15%\\\"><input min=\\\"0\\\" max=\\\"50000\\\" type=\\\"number\\\" [(ngModel)]=\\\"oi.sellPrice\\\" (ngModelChange)=\\\"recalc(oi)\\\" class=\\\"form-control input-sm\\\" /></td>\\n\\t\\t\\t\\t\\t\\t\\t<td width=\\\"15%\\\"><input min=\\\"0\\\" max=\\\"100\\\" type=\\\"number\\\" [(ngModel)]=\\\"oi.discount\\\" (ngModelChange)=\\\"recalc(oi)\\\" class=\\\"form-control input-sm\\\" /></td>\\n\\t\\t\\t\\t\\t\\t\\t<td class=\\\"vert-align\\\">{{oi.subTotal}}</td>\\n\\t\\t\\t\\t\\t\\t\\t<td><button class=\\\"btn btn-danger pull-right\\\" (click)=\\\"removeProduct(oi)\\\"><i class=\\\"fa fa-trash\\\"></i></button></td>\\n\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t</table>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t\\t<div class=\\\"form-group col-md-12\\\">\\n\\t\\t\\t\\t\\t<textarea class=\\\"form-control\\\" [(ngModel)]=\\\"newOrderObject.note\\\" placeholder=\\\"Eventuell notis\\\"></textarea>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n    </modal-body>\\n\\t\\t<modal-footer>\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-default\\\"  (click)=\\\"orderModal.close()\\\">Avbryt</button>\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-primary\\\" (click)=\\\"createOrder()\\\" [disabled]=\\\"newOrderObject.products.length == 0\\\">Skapa order</button>\\n    </modal-footer>\\n</modal>\\n\\n<modal #confirmCreditModal>\\n\\t<modal-header [show-close]=\\\"false\\\">\\n\\t\\t\\t<h4 class=\\\"modal-title\\\">Kreditera fakturor</h4>\\n\\t</modal-header>\\n\\t<modal-body>\\n\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\tVill du verkligen kreditera fakturan?\\n\\t\\t</div>\\t\\t\\t\\t\\n\\t</modal-body>\\n\\t<modal-footer>\\n\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-default\\\"  (click)=\\\"confirmCreditModal.close()\\\">Avbryt</button>\\n\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-danger\\\" (click)=\\\"creditSelectedInvoices()\\\">Ja, kreditera</button>\\n\\t</modal-footer>\\n</modal>\\n\\n<modal #loadingModal>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Vänta</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t\\t<i class=\\\"fa fa-circle-o-notch fa-spin fa-3x fa-fw\\\"></i>\\n\\t\\t\\t\\t<span *ngIf=\\\"loadingInfo\\\"><br />{{loadingInfo}}</span>\\n\\t\\t\\t</div>\\t\\n    </modal-body>\\n</modal>\\n\\n<modal #errorModal>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Fel</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t\\t{{loadingError}}\\n\\t\\t\\t</div>\\t\\n    </modal-body>\\n\\t\\t<modal-footer>\\n\\t\\t\\t<button  type=\\\"button\\\" class=\\\"btn btn-default\\\"  (click)=\\\"closeErrorDialog()\\\">Stäng</button>\\n\\t\\t</modal-footer>\\n</modal>\\n\\n<div [ngClass]=\\\"{'hidden' : loaded}\\\">\\n\\t<i class=\\\"fa fa-circle-o-notch fa-spin fa-2x fa-fw\\\"></i>\\n</div>\\n\\n<domaininfo #domainInfo></domaininfo>\\n<invoiceinfo #invoiceInfo></invoiceinfo>\\n<phoneinfo #phoneInfo></phoneinfo>\\n<addressInfo #addressInfo></addressInfo>\\n<orderinfo #orderInfo></orderinfo>\\n<account-info-modal #accountInfoModal></account-info-modal>\\n<subscriptioninfo #subscriptionInfo></subscriptioninfo>\\n<create-activity-modal #createActivityModal></create-activity-modal>\\n<create-account-modal #createAccountModal></create-account-modal>\\n<email-utils *ngIf=\\\"loaded\\\" [companyId]=\\\"company.companyId\\\" #emailUtils></email-utils>\\n\\n<div class=\\\"content full-height-fill full-width-fill p42 p-bottom\\\">\\n\\t\\n\\t<div class=\\\"row\\\" [ngClass]=\\\"{'hidden' : loaded}\\\">\\n\\t\\t<div class=\\\"col-md-12 centered\\\">\\t\\n\\t\\t\\t\\t<i class=\\\"fa fa-circle-o-notch fa-spin fa-3x fa-fw\\\"></i>\\n\\t\\t</div>\\n\\t</div>\\t\\t\\n\\n\\t<div class=\\\"height-100 p-relative\\\" [ngClass]=\\\"{'hidden' : !loaded}\\\">\\n\\n\\t\\t<div *ngIf=\\\"loaded\\\">\\n\\n\\t\\t\\t<div class=\\\"row\\\">\\n\\n\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\t\\n\\t\\t\\t\\t\\t\\t<ul class=\\\"nav nav-tabs\\\">\\n\\t\\t\\t\\t\\t\\t\\t<li role=\\\"presentation\\\" [ngClass]=\\\"{'active' : show == 'overview'}\\\"><a (click)=\\\"show = 'overview'\\\">Kundinformation</a></li>\\n\\t\\t\\t\\t\\t\\t\\t<li role=\\\"presentation\\\" [ngClass]=\\\"{'active' : show == 'invoices'}\\\"><a (click)=\\\"show = 'invoices'\\\">Fakturor</a></li>\\n\\t\\t\\t\\t\\t\\t\\t<li role=\\\"presentation\\\" [ngClass]=\\\"{'active' : show == 'orders'}\\\"><a (click)=\\\"show = 'orders'\\\">Ordrar</a></li>\\n\\t\\t\\t\\t\\t\\t\\t<li role=\\\"presentation\\\" [ngClass]=\\\"{'active' : show == 'subscriptions'}\\\"><a (click)=\\\"show = 'subscriptions'\\\">Abonnemang</a></li>\\n\\t\\t\\t\\t\\t\\t\\t<li role=\\\"presentation\\\" [ngClass]=\\\"{'active' : show == 'accounts'}\\\"><a (click)=\\\"show = 'accounts'\\\">Konton</a></li>\\n\\t\\t\\t\\t\\t\\t\\t<li role=\\\"presentation\\\" [ngClass]=\\\"{'active' : show == 'email'}\\\"><a (click)=\\\"show = 'email'\\\">Epostkonton</a></li>\\n\\t\\t\\t\\t\\t\\t\\t<li role=\\\"presentation\\\" [ngClass]=\\\"{'active' : show == 'domains'}\\\"><a (click)=\\\"show = 'domains'\\\">Domäner</a></li>\\n\\t\\t\\t\\t\\t\\t\\t<li role=\\\"presentation\\\" [ngClass]=\\\"{'active' : show == 'history'}\\\"><a (click)=\\\"show = 'history'; loadHistory()\\\">Historik <i *ngIf=\\\"history.loading\\\" class=\\\"fa fa-circle-o-notch fa-spin fa-fw\\\"></i> <span *ngIf=\\\"history.length > 0\\\">( {{history.length}} )</span> </a></li>\\n\\t\\t\\t\\t\\t\\t</ul>\\n\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t</div>\\n\\n\\t\\t\\t<div class=\\\"row full-height-fill full-width-fill p42\\\" [ngClass]=\\\"{hidden : show != 'overview'}\\\">\\n\\n\\t\\t\\t\\t<div class=\\\"col-md-12 height-100\\\">\\n\\n\\t\\t\\t\\t\\t<div class=\\\"mail-contents height-100\\\">\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-primary\\\" (click)=\\\"createActivityForCompany(company.companyId)\\\">Ny aktivitet</button>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-primary\\\" (click)=\\\"editCompanyDetails()\\\" *ngIf=\\\"!isEditable\\\">Redigera uppgifter</button>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-primary btn-danger\\\" (click)=\\\"cancelEditCompanyDetails()\\\" *ngIf=\\\"isEditable\\\">Avbryt</button>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-primary btn-success\\\" (click)=\\\"saveCompanyDetails()\\\" *ngIf=\\\"isEditable\\\">Spara uppgifter</button>\\n\\t\\t\\t\\t\\t\\t\\t\\t</div> \\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t\\t\\t<div class=\\\"row\\\"> <!-- start company info -->\\n\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<label>Företagsnamn</label>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<input type=\\\"text\\\" [readonly]=\\\"!isEditable\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"company.name\\\" placeholder=\\\"Företagsnamn\\\"/>\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<label>Organisationsnummer</label>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [readonly]=\\\"true\\\" [(ngModel)]=\\\"company.orgNr\\\" placeholder=\\\"Organisationsnummer\\\"/>\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<label>Märkning</label>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<input type=\\\"text\\\" [readonly]=\\\"!isEditable\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"company.markning\\\" placeholder=\\\"Märkning\\\"/>\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<label>E-postadress för e-faktura</label><br />\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<input type=\\\"text\\\" [readonly]=\\\"!isEditable\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"company.efaktura\\\" placeholder=\\\"Epostadress för e-faktura\\\"/>\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<label>Bransch</label><br />\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<button type=\\\"button\\\" [disabled]=\\\"!isEditable\\\" class=\\\"btn btn-block btn-info dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngFor=\\\"let m of markets\\\" [ngClass]=\\\"{'hidden' : m.marketId != company.marketId}\\\">{{m.name}}</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" *ngFor=\\\"let m of markets\\\" (click)=\\\"company.marketId = m.marketId\\\">{{m.name}}</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<label>Status</label><br />\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<button type=\\\"button\\\" [disabled]=\\\"!isEditable\\\" class=\\\"btn btn-block btn-info dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngFor=\\\"let s of statuses\\\" [ngClass]=\\\"{'hidden' : s.statusId != company.statusId}\\\">{{s.name}}</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" *ngFor=\\\"let s of statuses\\\" (click)=\\\"company.statusId = s.statusId\\\">{{s.name}}</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<label>Kundnummer</label>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<input type=\\\"text\\\" [readonly]=\\\"!isEditable\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"company.kundnr\\\" placeholder=\\\"Kundnummer\\\"/>\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<label>Notis</label>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<textarea [readonly]=\\\"!isEditable\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"company.notis\\\" style=\\\"height:182px\\\" placeholder=\\\"Notis\\\"></textarea>\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t\\t\\t</div> <!-- end company info -->\\n\\n\\t\\t\\t\\t\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<h4>Telefonnummer</h4>\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"row\\\"> <!-- start phone utility buttons -->\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-primary\\\" (click)=\\\"showPhoneInfo({ telnrTypeId : 1, companyId : company.companyId, name : 'Växel', assName : 'vaxel', telnr : '', areaCode : '', note : '' })\\\">Lägg till telefonnummer</button>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"row\\\"> <!-- start phones -->\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<table width=\\\"100%\\\" class=\\\"table table-sm\\\">                \\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<tbody *ngIf=\\\"company.phones.Fax\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<tr *ngFor=\\\"let p of company.phones.Fax\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td><i class=\\\"fa fa-phone\\\"></i> {{p.name}}</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td>{{p.areaCode}} - {{p.telnr}}</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td><em>{{p.note}}</em></td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td align=\\\"right\\\"><a href=\\\"javascript:;\\\" (click)=\\\"showPhoneInfo(p)\\\">Redigera</a></td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</tbody>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<tbody *ngIf=\\\"company.phones['Växel']\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<tr *ngFor=\\\"let p of company.phones['Växel']\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td><i class=\\\"fa fa-phone\\\"></i> {{p.name}}</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td>{{p.areaCode}} - {{p.telnr}}</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td><em>{{p.note}}</em></td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td align=\\\"right\\\"><a href=\\\"javascript:;\\\" (click)=\\\"showPhoneInfo(p)\\\">Redigera</a></td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td><a href=\\\"javascript:;\\\" (click)=\\\"sendSms(null, p)\\\">sms</a></td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</tbody>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<tbody *ngIf=\\\"company.phones.Mobiltelefon\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<tr *ngFor=\\\"let p of company.phones.Mobiltelefon\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td><i class=\\\"fa fa-phone\\\"></i> {{p.name}}</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td>{{p.areaCode}} - {{p.telnr}}</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td><em>{{p.note}}</em></td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td align=\\\"right\\\"><a href=\\\"javascript:;\\\" (click)=\\\"showPhoneInfo(p)\\\">Redigera</a></td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td><a href=\\\"javascript:;\\\" (click)=\\\"sendSms(null, p)\\\">sms</a></td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</tbody>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<tbody *ngIf=\\\"company.phones.Hemtelefon\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<tr *ngFor=\\\"let p of company.phones.Hemtelefon\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td><i class=\\\"fa fa-phone\\\"></i> {{p.name}}</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td>{{p.areaCode}} - {{p.telnr}}</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td><em>{{p.note}}</em></td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td align=\\\"right\\\"><a href=\\\"javascript:;\\\" (click)=\\\"showPhoneInfo(p)\\\">Redigera</a></td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td><a href=\\\"javascript:;\\\" (click)=\\\"sendSms(null, p)\\\">sms</a></td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</tbody>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<tbody *ngIf=\\\"company.phones.Direkttelefon\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<tr *ngFor=\\\"let p of company.phones.Direkttelefon\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td><i class=\\\"fa fa-phone\\\"></i> {{p.name}}</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td>{{p.areaCode}} - {{p.telnr}}</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td><em>{{p.note}}</em></td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td align=\\\"right\\\"><a href=\\\"javascript:;\\\" (click)=\\\"showPhoneInfo(p)\\\">Redigera</a></td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td><a href=\\\"javascript:;\\\" (click)=\\\"sendSms(null, p)\\\">sms</a></td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</tbody>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</table>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t</div><!-- end phones -->\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<h4>Adresser</h4>\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"row\\\"> <!-- start phone utility buttons -->\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-primary\\\" (click)=\\\"showAddressInfo({ companyId : company.companyId, adressTypeId : 2, countryId : 1, name : 'Leveransadress', assName : 'leverans' })\\\">Lägg till adress</button>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"row\\\"> <!-- start addresses -->\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<table width=\\\"100%\\\" class=\\\"table table-sm\\\"> \\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<tbody *ngFor=\\\"let a of company.addresses\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td><i class=\\\"fa fa-building\\\"></i> {{a.name}}</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td>{{a.adress1}}</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td>{{a.adress2}}</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td>{{a.postalCode}}</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td>{{a.city}}</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td>{{a.country}}</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td align=\\\"right\\\"><a href=\\\"javascript:;\\\" (click)=\\\"showAddressInfo(a)\\\">Redigera</a></td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</tbody>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</table>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<h4>Kontaktpersoner</h4>\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"row\\\"> <!-- start contacts utility buttons -->\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-primary\\\" (click)=\\\"addContact({ companyId : company.companyId })\\\">Lägg till kontakt</button>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"row\\\" *ngFor=\\\"let c of company.contacts\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<table width=\\\"100%\\\" class=\\\"table table-sm\\\">                \\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td><i class=\\\"fa fa-user\\\"></i> {{c.firstName}} {{c.lastName}}</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td><a (click)=\\\"sendMail(c)\\\" href=\\\"javascript:;\\\" *ngIf=\\\"c.emails.length > 0\\\"><i class=\\\"fa fa-envelope\\\"></i> {{c.emails[0].adress}}</a></td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td><a href=\\\"call:{{c.phones.mobil[0].areaCode}}-{{c.phones.mobil[0].telnr}}\\\" *ngIf=\\\"c.phones.mobil\\\"><i class=\\\"fa fa-mobile\\\"></i> {{c.phones.mobil[0].areaCode}}-{{c.phones.mobil[0].telnr}}</a></td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td><a href=\\\"javascript:;\\\" (click)=\\\"sendSms(c)\\\">sms</a></td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</table>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t\\t</div> \\n\\n\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t</div>\\n\\n\\t\\t\\t<div class=\\\"support-list-toolbar nomobile\\\" [ngClass]=\\\"{'open' : hasSelectedInvoices && !confirmCreditModal.visible}\\\">\\t\\t\\t\\n\\t\\t\\t\\t<a title=\\\"Kreditera markerade\\\" (click)=\\\"showCreditModal()\\\"><i class=\\\"fa fa-arrow-left\\\"></i></a>\\t\\t\\t\\n\\t\\t\\t\\t<a class=\\\"counter\\\">( {{numSelectedInvoices}} )</a>\\n\\t\\t\\t</div>\\n\\n\\t\\t\\t<!-- invoices -->\\n\\t\\t\\t<div class=\\\"row full-height-fill full-width-fill p42\\\" [ngClass]=\\\"{hidden : show != 'invoices'}\\\">\\n\\n\\t\\t\\t\\t<div class=\\\"col-md-12 height-100\\\">\\n\\n\\t\\t\\t\\t\\t<div class=\\\"mail-contents height-100\\\">\\n\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<table width=\\\"100%\\\" class=\\\"table table-sm\\\"> \\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<thead>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<tr >\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th class=\\\"issue-check\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<i class=\\\"fa fa-check-square-o\\\" (click)=\\\"selectedAllInvoices()\\\"></i>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th>Nr</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th>&nbsp;</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th>OrderNr</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th width=\\\"100%\\\">Typ</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th></th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th>Status</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th>Skapad</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th>Fakturadatum</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th>Skickad</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th>Förfaller</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th nowrap>Senast ändrad</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th>Säljare</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th>&nbsp;</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</thead>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<tbody *ngFor=\\\"let i of company.invoices\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<tr [ngClass]=\\\"{'strikethrough' : i.statusId == 4}\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td class=\\\"vert-align issue-check\\\" (click)=\\\"i.selected = !i.selected; toggleInvoicesToolbar()\\\" scope=\\\"row\\\" nowrap=\\\"nowrap\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<i class=\\\"fa\\\" [ngClass]=\\\"{'fa-square-o' : !i.selected, 'fa-check-square-o' : i.selected}\\\"></i>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-xs btn-primary\\\" style=\\\"width: 60px;\\\" (click)=\\\"showSendSystemInvoiceModal(i)\\\" *ngIf=\\\"(i.sveaFileDate || i.fortnoxFileDate) && !i.isSent\\\">Skicka</button>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-xs btn-primary\\\" disabled=\\\"i.statusId != 4\\\" style=\\\"width: 60px;\\\" (click)=\\\"showCreateSystemInvoiceModal(i)\\\" *ngIf=\\\"!i.sveaFileDate && !i.fortnoxFileDate\\\">Skapa</button>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-xs btn-success\\\" style=\\\"width: 60px;\\\" *ngIf=\\\"i.sveaFileDate && i.isSent\\\">Svea</button>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-xs btn-default\\\" style=\\\"width: 60px;\\\" *ngIf=\\\"i.fortnoxFileDate && i.isSent\\\">Fortnox</button>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a *ngIf=\\\"i.isSent\\\" href=\\\"javascript:;\\\" (click)=\\\"showInvoiceInfo(i.invoiceId)\\\">{{i.invoiceNr}}</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a *ngIf=\\\"!i.isSent\\\">{{i.invoiceNr}}</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a href=\\\"javascript:;\\\" (click)=\\\"showOrderInfo(i.orderId)\\\">{{i.orderNr}}</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"i.orderType==0\\\">Nyförsäljning</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"i.orderType==1\\\">Uppförsäljning</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"i.orderType==2\\\">Förnyelse</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a href=\\\"javascript:;\\\" (click)=\\\"refreshPaymentStatus(i.invoiceId)\\\"><i class=\\\"fa fa-refresh\\\"></i></a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap class=\\\"{{'invoicestatus_' + i.statusId}}\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"i.refreshing\\\" style=\\\"text-align: center;\\\"><i class=\\\"fa fa-spinner fa-spin\\\"></i></span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"!i.refreshing\\\">{{i.invoiceStatusName || i.name}}</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<date-formatter [date]=\\\"i.createdDate\\\" [time]=\\\"false\\\"></date-formatter>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a href=\\\"javascript:;\\\" (click)=\\\"setInvoiceDate(i)\\\"><date-formatter [date]=\\\"i.invoiceDate\\\" [time]=\\\"false\\\"></date-formatter></a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<date-formatter *ngIf=\\\"i.isSent\\\" [date]=\\\"i.sentDate\\\" [time]=\\\"false\\\"></date-formatter>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"!i.isSent\\\">-</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<date-formatter [date]=\\\"i.dueDate\\\" [time]=\\\"false\\\"></date-formatter>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td> \\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<date-formatter [date]=\\\"i.lastStatusChange\\\" [time]=\\\"false\\\"></date-formatter>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td> \\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t{{i.sellerName}}\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</tbody>\\n\\t\\t\\t\\t\\t\\t\\t\\t</table>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t</div>\\n\\t\\t\\t\\n\\t\\t\\t<!-- orders -->\\n\\t\\t\\t<div class=\\\"row full-height-fill full-width-fill p42\\\"  [ngClass]=\\\"{hidden : show != 'orders'}\\\">\\n\\n\\t\\t\\t\\t<div class=\\\"col-md-12 height-100\\\">\\n\\n\\t\\t\\t\\t\\t<div class=\\\"mail-contents height-100\\\">\\n\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t<div class=\\\"row form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-primary\\\" (click)=\\\"newOrder()\\\">Ny order</button>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<table width=\\\"100%\\\" class=\\\"table table-sm\\\"> \\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<thead>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th>Nr</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th>Typ</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th>Status</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th>Skapad</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th nowrap>Senast ändrad</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</thead>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<tbody *ngFor=\\\"let o of company.orders\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<tr [ngClass]=\\\"{'strikethrough' : o.statusId == 4}\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a href=\\\"javascript:;\\\" (click)=\\\"showOrderInfo(o.orderId)\\\">{{o.orderNr}}</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td width=\\\"100%\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"o.orderType==0\\\">Nyförsäljning</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"o.orderType==1\\\">Uppförsäljning</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"o.orderType==2\\\">Förnyelse</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap class=\\\"{{'orderstatus_' + o.statusId}}\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t{{o.name}}\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<date-formatter [date]=\\\"o.createdDate\\\" [time]=\\\"false\\\"></date-formatter>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<date-formatter [date]=\\\"o.lastStatusChange\\\" [time]=\\\"false\\\"></date-formatter>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td> \\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</tbody>\\n\\t\\t\\t\\t\\t\\t\\t\\t</table>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t</div>\\n\\n\\t\\t\\t<!-- subscriptions -->\\n\\t\\t\\t<div class=\\\"row full-height-fill full-width-fill p42\\\" [ngClass]=\\\"{hidden : show != 'subscriptions'}\\\">\\n\\n\\t\\t\\t\\t<div class=\\\"col-md-12 height-100\\\">\\n\\n\\t\\t\\t\\t\\t<div class=\\\"mail-contents height-100\\\">\\n\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<table width=\\\"100%\\\" class=\\\"table table-sm\\\"> \\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<thead>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th width=\\\"100%\\\">Prefix</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th>Status</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th>Skapad</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th>Förnyas</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th>Uppsagd</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th nowrap>Löper ut</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th></th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</thead>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<tbody *ngFor=\\\"let s of company.subscriptions\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<tr [ngClass]=\\\"{'strikethrough' : s.deleted}\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t#{{s.prefix}} ({{s.subscriptionId}})\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"s.status==1\\\">Aktiv</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"s.status==0\\\">Uppsagd</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<date-formatter [date]=\\\"s.createdDate\\\" [time]=\\\"false\\\"></date-formatter>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<date-formatter *ngIf=\\\"s.status == 1\\\" [date]=\\\"s.renewalDate\\\" [time]=\\\"false\\\"></date-formatter>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td> \\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<date-formatter *ngIf=\\\"s.status == 0\\\" [date]=\\\"s.expireDate\\\" [time]=\\\"false\\\"></date-formatter>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td> \\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<date-formatter *ngIf=\\\"s.status == 0\\\" [date]=\\\"s.renewalDate\\\" [time]=\\\"false\\\"></date-formatter>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td> \\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a href=\\\"javascript:;\\\" *ngIf=\\\"!s.deleted\\\" (click)=\\\"showSubscriptionInfo(s)\\\">Redigera</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<tr *ngFor=\\\"let i of s.items\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<small>{{i.name}}</small>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td colspan=\\\"6\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<small>{{i.decay}} månaders avvikelse</small>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</tbody>\\n\\t\\t\\t\\t\\t\\t\\t\\t</table>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t</div>\\n\\n\\t\\t\\t<!-- email accounts -->\\n\\t\\t\\t<div class=\\\"row full-height-fill full-width-fill p42\\\" [ngClass]=\\\"{hidden : show != 'email'}\\\" *ngIf=\\\"emailAccounts\\\">\\n\\n\\t\\t\\t\\t<div class=\\\"col-md-12 height-100\\\">\\n\\n\\t\\t\\t\\t\\t<div class=\\\"mail-contents height-100\\\">\\n\\n\\t\\t\\t\\t\\t\\t<div class=\\\"row form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-primary\\\" (click)=\\\"addEmailAccount()\\\">Lägg till e-postkonto</button>\\n\\t\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-primary\\\" (click)=\\\"addEmailAlias()\\\">Lägg till alias</button>\\n\\t\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-primary\\\" (click)=\\\"addEmailForward()\\\">Lägg till forward</button>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<table width=\\\"100%\\\" class=\\\"table table-sm\\\"> \\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<thead style=\\\"background-color: #ddd;\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th>Alias</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th colspan=\\\"2\\\">Destination</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th>Id</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th></th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th></th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</thead>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<tbody *ngFor=\\\"let a of emailAccounts.aliases\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a href=\\\"javascript:;\\\" (click)=\\\"editAlias(a)\\\">{{a.email}}</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap width=\\\"100%\\\" colspan=\\\"2\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t{{a.dest}}\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t{{a.id}}\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a href=\\\"javascript:;\\\" (click)=\\\"editAlias(a)\\\">Redigera</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a href=\\\"javascript:;\\\" (click)=\\\"viewEmailLogs(a.email)\\\">Visa logg</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</tbody>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<tbody *ngIf=\\\"emailAccounts.aliases.length == 0\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td colspan=\\\"4\\\">Det finns inga alias att visa</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</tbody>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<thead style=\\\"background-color: #ddd;\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th>Forward for</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th colspan=\\\"2\\\">Destination</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th>Id</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th></th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th></th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</thead>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<tbody *ngFor=\\\"let f of emailAccounts.forwards\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a href=\\\"javascript:;\\\" (click)=\\\"editForward(f)\\\">{{f.email}}</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap width=\\\"100%\\\" colspan=\\\"2\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t{{f.dest}}\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t{{f.id}}\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a href=\\\"javascript:;\\\" (click)=\\\"editForward(f)\\\">Redigera</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a href=\\\"javascript:;\\\" (click)=\\\"viewEmailLogs(f.email)\\\">Visa logg</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</tbody>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<tbody *ngIf=\\\"emailAccounts.forwards.length == 0\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td colspan=\\\"4\\\">Det finns inga forwards att visa</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</tbody>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<thead style=\\\"background-color: #ddd;\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th>Epostadress</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th>Quota</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th>Spamfilternivå</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th>Id</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th></th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th></th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</thead>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<tbody *ngFor=\\\"let a of emailAccounts.accounts\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a href=\\\"javascript:;\\\" (click)=\\\"editEmail(a)\\\">{{a.email}}</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap width=\\\"100%\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"a.quota == 0\\\">Obegränsad storlek</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"a.quota != 0\\\">{{(a.quota_used / 1024 / 1024) | number:'1.1-1'}}Mb av {{(a.quota / 1024 / 1024) | number:'1.1-1'}}Mb</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"a.requiredScore && a.requiredScore != 99\\\">{{a.requiredScore}}</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"!a.requiredScore || a.requiredScore == 99\\\">-</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t{{a.mailId}}\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a href=\\\"javascript:;\\\" (click)=\\\"editEmail(a)\\\">Redigera</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a href=\\\"javascript:;\\\" (click)=\\\"viewEmailLogs(a.email)\\\">Visa logg</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</tbody>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<tbody *ngIf=\\\"emailAccounts.aliases.length == 0\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td colspan=\\\"4\\\">Det finns inga epostkonton att visa</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</tbody>\\n\\t\\t\\t\\t\\t\\t\\t\\t</table>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t</div>\\n\\n\\t\\t\\t<!-- accounts -->\\n\\t\\t\\t<div class=\\\"row full-height-fill full-width-fill p42\\\"  [ngClass]=\\\"{hidden : show != 'accounts'}\\\">\\n\\n\\t\\t\\t\\t<div class=\\\"col-md-12 height-100\\\">\\n\\n\\t\\t\\t\\t\\t<div class=\\\"mail-contents height-100\\\">\\n\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t<div class=\\\"row form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-primary\\\" (click)=\\\"addAccount(false)\\\">Skapa konto</button>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t\\t\\t<div class=\\\"row\\\">\\n\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t<table width=\\\"100%\\\" class=\\\"table table-sm\\\"> \\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<thead>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th>Prefix</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th>Typ</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th>ID</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th></th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th></th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th></th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th></th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th></th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th></th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th></th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</thead>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<tbody *ngFor=\\\"let a of company.accounts\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td width=\\\"100%\\\" class=\\\"vert-align\\\">\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a href=\\\"javascript:;\\\" (click)=\\\"showAccountInfo(a.accountId)\\\">#{{a.prefix}}</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap class=\\\"vert-align\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t{{a.type}} <span *ngIf=\\\"a.wordpressInfo\\\">({{a.wordpressInfo.state.name}})</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap class=\\\"vert-align\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t{{a.accountId}}\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap class=\\\"vert-align\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"a.s3status == 'archiving'\\\">Arkiverar</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"a.s3status == 'restoring'\\\">Återställer</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"a.s3status == 'archived'\\\">Arkiverad</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t \\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap  class=\\\"vert-align\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t{{a.statusName}}\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap  class=\\\"vert-align\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"a.active==1\\\">Aktiv</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"a.active==0\\\">Inaktiv</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td  nowrap class=\\\"vert-align\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a *ngIf=\\\"a.type != 'wordpress'\\\" target=\\\"_blank\\\" href=\\\"http://{{a.prefix}}.hemsidadirekt.se\\\"><i class=\\\"fa fa-external-link\\\"></i> Gå till sida</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a *ngIf=\\\"a.type == 'wordpress' && a.wordpressInfo\\\" href=\\\"http://{{a.prefix}}.generatorhallen.se/\\\" target=\\\"_blank\\\"><i class=\\\"fa fa-sign-in\\\"></i> Gå till sida</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap class=\\\"vert-align\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a href=\\\"https://admin.hemsidadirekt.se/login.php?accountId={{a.ftgId}}&hash={{a.loginhash}}\\\" target=\\\"_blank\\\"><i class=\\\"fa fa-sign-in\\\"></i> Logga in [admin]</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap *ngIf=\\\"a.type == 'wordpress'\\\" class=\\\"vert-align\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a *ngIf=\\\"a.wordpressInfo && a.statusId < 13\\\" href=\\\"http://{{a.prefix}}.generatorhallen.se/gh-login.php?user=User&prefix={{a.prefix}}&hash={{a.loginhash}}\\\" target=\\\"_blank\\\"><i class=\\\"fa fa-sign-in\\\"></i> Logga in [wordpress]</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a *ngIf=\\\"a.wordpressInfo && a.statusId == 13\\\" href=\\\"http://www.{{company.domain[0].domain}}/gh-login.php?user=User&prefix={{a.prefix}}&hash={{a.loginhash}}\\\" target=\\\"_blank\\\"><i class=\\\"fa fa-sign-in\\\"></i> Logga in [wordpress]</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap *ngIf=\\\"a.type == 'wphost'\\\" class=\\\"vert-align\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a *ngIf=\\\"a.statusId < 13\\\" href=\\\"http://{{a.prefix}}.hemsidadirekt.se/gh-login.php?user=User&prefix={{a.prefix}}&hash={{a.loginhash}}\\\" target=\\\"_blank\\\"><i class=\\\"fa fa-sign-in\\\"></i> Logga in [wordpress]</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a *ngIf=\\\"a.statusId == 13\\\" href=\\\"http://www.{{company.domain[0].domain}}/gh-login.php?user=User&prefix={{a.prefix}}&hash={{a.loginhash}}\\\" target=\\\"_blank\\\"><i class=\\\"fa fa-sign-in\\\"></i> Logga in [wordpress]</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap class=\\\"vert-align\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a href=\\\"javascript:;\\\" (click)=\\\"showAccountInfo(a.accountId)\\\">Redigera</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td *ngIf=\\\"a.type !== 'wordpress'\\\" nowrap class=\\\"vert-align\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a href=\\\"javascript:;\\\" (click)=\\\"addAccount(true, a.prefix)\\\">Konvertera</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</tbody>\\n\\t\\t\\t\\t\\t\\t\\t\\t</table>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t</div>\\n\\n\\t\\t\\t<!-- domains -->\\n\\t\\t\\t<div class=\\\"row full-height-fill full-width-fill p42\\\" [ngClass]=\\\"{hidden : show != 'domains'}\\\">\\n\\n\\t\\t\\t\\t<div class=\\\"col-md-12 height-100\\\">\\n\\n\\t\\t\\t\\t\\t<div class=\\\"mail-contents height-100\\\">\\n\\n\\t\\t\\t\\t\\t\\t<div class=\\\"row form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-primary\\\" (click)=\\\"showDomainInfo({ companyId : company.companyId, hosting : 'internal', 'mail' : 'local', 'status' : '' })\\\">Lägg till domän</button>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<table width=\\\"100%\\\" class=\\\"table table-sm\\\"> \\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<thead>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th>Domän</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th>Prefix</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th></th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th>Status</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th></th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th></th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</thead>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<tbody *ngFor=\\\"let d of company.domain\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td width=\\\"100%\\\"><mxinfo *ngIf=\\\"d.mail == 'local'\\\" [domain]=\\\"d.domain\\\"></mxinfo> <a href=\\\"javascript:;\\\" (click)=\\\"showDomainInfo(d)\\\">{{d.domain}}</a></td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td><a href=\\\"javascript:;\\\" (click)=\\\"showAccountInfo(d.accountId)\\\">#{{d.prefix}}</a></td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td><span *ngIf=\\\"d.status == 'inactive'\\\">Inaktiv</span></td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"d.statusId == 0\\\">Väntar</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"d.statusId == 1\\\">Ompekning</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"d.statusId == 2\\\">Skickat info</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"d.statusId == 3\\\">Pågående</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"d.statusId == 4\\\">Klar</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"d.statusId == 5\\\">Nygregistrering</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"d.statusId == 6\\\">Uppsagd</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"d.statusId == 7\\\">Inaktiv</span>              \\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a href=\\\"http://www.{{d.domain}}\\\" target=\\\"_blank\\\"><i class=\\\"fa fa-external-link\\\"></i> Gå till sida</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a (click)=\\\"showDomainInfo(d)\\\" href=\\\"javascript:;\\\">Redigera</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<tr *ngFor=\\\"let sd of d.subdomains\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td colspan=\\\"4\\\" style=\\\"padding-left: 20px\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t- {{ sd.domain }}\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a href=\\\"http://{{sd.domain}}\\\" target=\\\"_blank\\\"><i class=\\\"fa fa-external-link\\\"></i> Gå till sida</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td></td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</tbody>\\n\\t\\t\\t\\t\\t\\t\\t\\t</table>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\n\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t</div>\\n\\n\\t\\t</div>\\n\\t\\t\\t\\n    <!-- history -->\\n    <div [ngClass]=\\\"{hidden : show != 'history'}\\\" class=\\\"row full-height-fill full-width-fill p42 height-100\\\">\\n\\t\\t\\t<div class=\\\"col-md-12 height-100 m-t-2\\\">\\n\\t\\t\\t\\t<communication-history #history></communication-history>\\n\\t\\t\\t</div>\\n    </div>\\n\\n\\t</div>\\n\\n</div>\\n\\n\\t\\t\\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/components/templates/customerfullinfo.html\n// module id = 998\n// module chunks = 0","module.exports = \"\\n\\n<div *ngIf=\\\"!loaded\\\">\\n\\t<i class=\\\"fa fa-circle-o-notch fa-spin fa-2x fa-fw\\\"></i>\\n</div>\\n\\n<domaininfo #domainInfo></domaininfo>\\n<invoiceinfo #invoiceInfo></invoiceinfo>\\n<orderinfo #orderInfo></orderinfo>\\n<account-info-modal #accountInfoModal></account-info-modal>\\n\\n<mailcomposer #newMailComposer>\\n</mailcomposer>\\n\\n<table class=\\\"table\\\" *ngIf=\\\"loaded && company && (this._issue == null || this._issue._source.company)\\\">\\n\\t<thead>\\n\\t\\t<tr>\\n\\t\\t\\t<th colspan=\\\"2\\\">Kundinformation \\n\\t\\t\\t\\t\\t<div *ngIf=\\\"canAssign\\\" class=\\\"btn-group pull-xs-right\\\" role=\\\"group\\\" aria-label=\\\"Basic example\\\">\\n\\t\\t\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-primary btn-sm\\\" (click)=\\\"refreshCompany(company)\\\"><i class=\\\"fa\\\" [ngClass]=\\\"{'fa-refresh': !refreshing, 'fa-circle-o-notch fa-spin' : refreshing}\\\" ></i></button>\\n\\t\\t\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-warning btn-sm\\\" (click)=\\\"unassignCompany(company)\\\"><i class=\\\"fa fa-edit\\\" ></i></button>\\n\\t\\t\\t\\t\\t\\t<a routerLink=\\\"/companies/{{company.companyId}}/overview/{{_refPath}}\\\" class=\\\"btn btn-success btn-sm\\\"><i class=\\\"fa fa-info\\\" ></i></a>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</th>\\n\\t\\t</tr>\\n\\t</thead>\\n\\t<tbody>\\n\\t\\t<tr>\\n\\t\\t\\t<td class=\\\"small-font\\\">\\n\\t\\t\\t\\t<h5>{{company.name}}</h5>\\n\\t\\t\\t\\t{{company.adress1}}<br />\\n\\t\\t\\t\\t{{company.adress2}}<br />\\n\\t\\t\\t\\t{{company.postalCode}} {{company.city}}<br />\\n\\t\\t\\t\\tOrgNr: {{company.orgNr}}<br />\\n\\t\\t\\t</td>\\n\\t\\t</tr>\\t\\t\\n\\t</tbody>\\n\\n\\t<thead *ngIf=\\\"company.contacts\\\">\\n\\t\\t<tr>\\n\\t\\t\\t<th><a href=\\\"javascript:;\\\" (click)=\\\"showAllContacts = !showAllContacts\\\"><i class=\\\"fa\\\" [ngClass]=\\\"{'fa-plus-square-o' : !showAllContacts, 'fa-minus-square-o' : showAllContacts}\\\"></i> Kontakter ({{company.contacts.length}})</a></th>\\n\\t\\t</tr>\\n\\t</thead>\\n\\t<tbody *ngIf=\\\"company.contacts\\\">\\n\\t\\t<tr *ngFor=\\\"let c of company.contacts; let myIndex = index\\\" [ngClass]=\\\"{'hidden' : !showAllContacts}\\\">\\n\\t\\t\\t<td>\\n\\t\\t\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\t\\t\\t\\t\\t\\t<p>{{c.firstName}} {{c.lastName}}</p>\\n\\t\\t\\t\\t\\t\\t<p *ngFor=\\\"let e of c.emails\\\"><a (click)=\\\"sendMail(e.adress)\\\" href=\\\"javascript:;\\\" style=\\\"display: flex; flex-direction: row; align-items: center;\\\"><i class=\\\"fa fa-envelope m-r-1\\\"></i> {{e.adress}}</a></p>\\n\\t\\t\\t\\t\\t\\t<p *ngIf=\\\"c.phones.vaxel\\\">Växel: {{c.phones.vaxel[0].areaCode}} {{c.phones.vaxel[0].telnr}}</p>\\n\\t\\t\\t\\t\\t\\t<p *ngIf=\\\"c.phones.direkt\\\">Direkt: {{c.phones.direkt[0].areaCode}} {{c.phones.direkt[0].telnr}}</p>\\n\\t\\t\\t\\t\\t\\t<p *ngIf=\\\"c.phones.fax\\\">Fax: {{c.phones.fax[0].areaCode}} {{c.phones.fax[0].telNr}}</p>\\n\\t\\t\\t\\t\\t\\t<p *ngIf=\\\"c.phones.mobil\\\">Mobil: {{c.phones.mobil[0].areaCode}} {{c.phones.mobil[0].telnr}}</p>\\n\\t\\t\\t\\t\\t\\t<p *ngIf=\\\"c.phones.hem\\\">Hem: {{c.phones.hem[0].areaCode}} {{c.phones.hem[0].telnr}}</p>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\t\\t\\t\\t\\t\\t<p *ngIf=\\\"c.adresses.faktura\\\">\\n\\t\\t\\t\\t\\t\\t\\tFakturaadress<br />\\n\\t\\t\\t\\t\\t\\t\\t{{c.adresses.faktura[0].adress1}}<br />\\n\\t\\t\\t\\t\\t\\t\\t{{c.adresses.faktura[0].adress2}}<br />\\n\\t\\t\\t\\t\\t\\t\\t{{c.adresses.faktura[0].postalCode}} {{c.adresses.faktura[0].city}}<br />\\n\\t\\t\\t\\t\\t\\t\\t{{c.adresses.faktura[0].country}}<br />\\n\\t\\t\\t\\t\\t\\t</p>\\n\\t\\t\\t\\t\\t\\t<p *ngIf=\\\"c.adresses.leverans\\\">\\n\\t\\t\\t\\t\\t\\t\\tLeveransadress<br />\\n\\t\\t\\t\\t\\t\\t\\t{{c.adresses.leverans[0].adress1}}<br />\\n\\t\\t\\t\\t\\t\\t\\t{{c.adresses.leverans[0].adress2}}<br />\\n\\t\\t\\t\\t\\t\\t\\t{{c.adresses.leverans[0].postalCode}} {{c.adresses.leverans[0].city}}<br />\\n\\t\\t\\t\\t\\t\\t\\t{{c.adresses.leverans[0].country}}<br />\\n\\t\\t\\t\\t\\t\\t</p>\\n\\t\\t\\t\\t\\t\\t<p *ngIf=\\\"c.adresses.besok\\\">\\n\\t\\t\\t\\t\\t\\t\\tBesöksadress<br />\\n\\t\\t\\t\\t\\t\\t\\t{{c.adresses.besok[0].adress1}}<br />\\n\\t\\t\\t\\t\\t\\t\\t{{c.adresses.besok[0].adress2}}<br />\\n\\t\\t\\t\\t\\t\\t\\t{{c.adresses.besok[0].postalCode}} {{c.adresses.besok[0].city}}<br />\\n\\t\\t\\t\\t\\t\\t\\t{{c.adresses.besok[0].country}}<br />\\n\\t\\t\\t\\t\\t\\t</p>\\n\\t\\t\\t\\t\\t\\t<p *ngIf=\\\"c.adresses.hem\\\">\\n\\t\\t\\t\\t\\t\\t\\tHemadress<br />\\n\\t\\t\\t\\t\\t\\t\\t{{c.adresses.hem[0].adress1}}<br />\\n\\t\\t\\t\\t\\t\\t\\t{{c.adresses.hem[0].adress2}}<br />\\n\\t\\t\\t\\t\\t\\t\\t{{c.adresses.hem[0].postalCode}} {{c.adresses.hem[0].city}}<br />\\n\\t\\t\\t\\t\\t\\t\\t{{c.adresses.hem[0].country}}<br />\\n\\t\\t\\t\\t\\t\\t</p>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</td>\\n\\t\\t</tr>\\n\\t</tbody>\\n\\n\\t<thead *ngIf=\\\"company.subscriptions\\\">\\n\\t\\t<tr>\\n\\t\\t\\t<th>\\n\\t\\t\\t\\t<a href=\\\"javascript:;\\\" (click)=\\\"showAllSubscriptions = !showAllSubscriptions\\\"><i class=\\\"fa\\\" [ngClass]=\\\"{'fa-plus-square-o' : !showAllSubscriptions, 'fa-minus-square-o' : showAllSubscriptions}\\\"></i> Abonnemang ({{company.subscriptions.length}})</a>\\n\\t\\t\\t</th>\\n\\t\\t</tr>\\n\\t</thead>\\n\\n\\t<tbody *ngFor=\\\"let subscription of company.subscriptions; let myIndex = index\\\">\\n\\t\\t<tr *ngIf=\\\"showAllSubscriptions\\\">\\n\\t\\t\\t<td class=\\\"small-font\\\">\\n\\t\\t\\t\\t#{{subscription.subscriptionId}} - \\n\\t\\t\\t\\t<span *ngIf=\\\"subscription.status == 1\\\">Aktiv - Förnyas: <date-formatter [date]=\\\"subscription.renewalDate\\\" [time]=\\\"false\\\"></date-formatter></span>\\n\\t\\t\\t\\t<span *ngIf=\\\"subscription.status == 0\\\">Uppsagd <date-formatter [date]=\\\"subscription.expireDate\\\" [time]=\\\"false\\\"></date-formatter> - Löper ut: <date-formatter [date]=\\\"subscription.renewalDate\\\" [time]=\\\"false\\\"></date-formatter></span>\\t\\t\\t\\t\\n\\t\\t\\t</td>\\n\\t\\t</tr>\\n\\t</tbody>\\n\\n\\t<thead *ngIf=\\\"company.orders\\\">\\n\\t\\t<tr>\\n\\t\\t\\t<th><a href=\\\"javascript:;\\\" (click)=\\\"showAllOrders = !showAllOrders\\\"><i class=\\\"fa\\\" [ngClass]=\\\"{'fa-plus-square-o' : !showAllOrders, 'fa-minus-square-o' : showAllOrders}\\\"></i> Ordrar ({{company.orders.length}})</a></th>\\n\\t\\t</tr>\\n\\t</thead>\\n\\t<tbody *ngFor=\\\"let order of company.orders; let myIndex = index\\\">\\n\\t\\t<tr *ngIf=\\\"showAllOrders\\\">\\n\\t\\t\\t<td class=\\\"small-font\\\">\\n\\t\\t\\t\\t#{{order.orderNr}}, \\n\\t\\t\\t\\t\\t<small *ngIf=\\\"order.orderType == 0\\\">Ny order</small>\\n\\t\\t\\t\\t\\t<small *ngIf=\\\"order.orderType == 1\\\">Uppförsäljning</small>\\n\\t\\t\\t\\t\\t<small *ngIf=\\\"order.orderType == 2\\\">Förnyelse</small> - <date-formatter [date]=\\\"order.createdDate\\\" [time]=\\\"false\\\"></date-formatter>\\n\\t\\t\\t\\t<a class=\\\"pull-right\\\" href=\\\"javascript:;\\\" (click)=\\\"showOrderInfo(order)\\\"><i class=\\\"fa fa-info\\\"></i> Info</a>\\n\\t\\t\\t</td>\\n\\t\\t</tr>\\n\\t</tbody>\\n\\t\\n\\t<thead *ngIf=\\\"company.invoices\\\">\\n\\t\\t<tr>\\n\\t\\t\\t<th><a href=\\\"javascript:;\\\" (click)=\\\"showAllInvoices = !showAllInvoices\\\"><i class=\\\"fa\\\" [ngClass]=\\\"{'fa-plus-square-o' : !showAllInvoices, 'fa-minus-square-o' : showAllInvoices}\\\"></i> Fakturor ({{company.invoices.length}})</a></th>\\n\\t\\t</tr>\\n\\t</thead>\\n\\t<tbody *ngFor=\\\"let invoice of company.invoices; let myIndex = index\\\">\\n\\t\\t<tr *ngIf=\\\"showAllInvoices\\\">\\n\\t\\t\\t<td class=\\\"small-font\\\">\\n\\t\\t\\t\\t#{{invoice.invoiceNr}} - <date-formatter [date]=\\\"invoice.createdDate\\\" [time]=\\\"false\\\"></date-formatter>\\n\\t\\t\\t\\t<a class=\\\"pull-right\\\" href=\\\"javascript:;\\\" (click)=\\\"showInvoiceInfo(invoice.invoiceId)\\\"><i class=\\\"fa fa-info\\\"></i> Info</a>\\n\\t\\t\\t</td>\\n\\t\\t</tr>\\n\\t</tbody>\\n\\n\\t<thead *ngIf=\\\"company.accounts\\\">\\n\\t\\t<tr>\\n\\t\\t\\t<th colspan=\\\"2\\\"><a href=\\\"javascript:;\\\" (click)=\\\"showAllAccounts = !showAllAccounts\\\"><i class=\\\"fa\\\" [ngClass]=\\\"{'fa-plus-square-o' : !showAllAccounts, 'fa-minus-square-o' : showAllAccounts}\\\"></i> Konton ({{company.accounts.length}})</a></th>\\n\\t\\t</tr>\\n\\t</thead>\\n\\t<tbody *ngIf=\\\"company.accounts\\\">\\n\\t\\t<tr *ngFor=\\\"let a of company.accounts; let myIndex = index\\\" [ngClass]=\\\"{'hidden' : !showAllAccounts}\\\">\\n\\t\\t\\t<td class=\\\"small-font\\\">\\n\\t\\t\\t\\t<a href=\\\"javascript:;\\\" (click)=\\\"showAccountInfo(a.accountId)\\\">#{{a.prefix}} <span *ngIf=\\\"a.type == 'wordpress'\\\">[{{a.type}}]</span></a>\\n\\t\\t\\t\\t<span *ngIf=\\\"a.active == 0\\\">( inaktiv )</span>\\n\\t\\t\\t\\t<a *ngIf=\\\"a.type != 'wordpress' && a.type != 'wphost'\\\" class=\\\"pull-right\\\" href=\\\"https://admin.hemsidadirekt.se/login.php?accountId={{a.ftgId}}&hash={{a.loginhash}}\\\" target=\\\"_blank\\\"><i class=\\\"fa fa-sign-in\\\"></i> Logga in</a>\\n\\n\\t\\t\\t\\t<a *ngIf=\\\"(a.type == 'wordpress') && a.statusId < 13\\\" class=\\\"pull-right\\\" href=\\\"http://{{a.prefix}}.generatorhallen.se/gh-login.php?user=User&prefix={{a.prefix}}&hash={{a.loginhash}}\\\" target=\\\"_blank\\\"><i class=\\\"fa fa-sign-in\\\"></i> Logga in</a>\\n\\t\\t\\t\\t<a *ngIf=\\\"(a.type == 'wphost') && a.statusId < 13\\\" class=\\\"pull-right\\\" href=\\\"http://{{a.prefix}}.hemsidadirekt.se/gh-login.php?user=User&prefix={{a.prefix}}&hash={{a.loginhash}}\\\" target=\\\"_blank\\\"><i class=\\\"fa fa-sign-in\\\"></i> Logga in</a>\\n\\n\\t\\t\\t\\t<a *ngIf=\\\"(a.type == 'wordpress' || a.type == 'wphost') && a.statusId == 13 && company\\\" class=\\\"pull-right\\\" href=\\\"http://www.{{company.domain[0].domain}}/gh-login.php?user=User&prefix={{a.prefix}}&hash={{a.loginhash}}\\\" target=\\\"_blank\\\"><i class=\\\"fa fa-sign-in\\\"></i> Logga in</a>\\n\\n\\t\\t\\t</td>\\n\\t\\t</tr>\\n\\t</tbody>\\n\\n\\t<thead *ngIf=\\\"company.domain\\\">\\n\\t\\t<tr>\\n\\t\\t\\t<th colspan=\\\"2\\\"><a href=\\\"javascript:;\\\" (click)=\\\"showAllDomains = !showAllDomains\\\"><i class=\\\"fa\\\" [ngClass]=\\\"{'fa-plus-square-o' : !showAllDomains, 'fa-minus-square-o' : showAllDomains}\\\"></i> Domäner ({{company.domain.length}})</a></th>\\n\\t\\t</tr>\\n\\t</thead>\\t\\n\\t<tbody *ngIf=\\\"showAllDomains\\\">\\n\\t\\t<tr *ngFor=\\\"let domain of company.domain; let myIndex = index\\\">\\n\\t\\t\\t<td class=\\\"small-font\\\">\\n\\t\\t\\t\\t<a href=\\\"http://www.{{domain.domain}}\\\" target=\\\"_blank\\\">{{domain.domain}}</a> <a class=\\\"pull-right\\\" href=\\\"javascript:;\\\" (click)=\\\"showDomainInfo(domain)\\\"><i class=\\\"fa fa-info\\\"></i> info ( {{domainStatus[domain.statusId]}} )</a>\\n\\t\\t\\t</td>\\n\\t\\t</tr>\\n\\t\\t<tr>\\n\\t\\t\\t<td class=\\\"small-font\\\">\\n\\t\\t\\t\\t<a href=\\\"javascript:;\\\" class=\\\"pull-right\\\" (click)=\\\"showDomainInfo({ companyId : company.companyId, accountId : (company.accounts.length == 1 ? company.accounts[0].accountId : 0),  hosting : 'internal', 'mail' : 'local', 'status' : '' })\\\">Lägg till domän</a>\\n\\t\\t\\t</td>\\n\\t\\t</tr>\\n\\t</tbody>\\n</table>\\n\\n<table class=\\\"table\\\" *ngIf=\\\"loaded && !company\\\">\\n\\t\\n\\t<thead>\\n\\t\\t<tr>\\n\\t\\t\\t<th colspan=\\\"2\\\">Ingen kund kopplad</th>\\n\\t\\t</tr>\\n\\t</thead>\\n\\t\\t\\n\\t<tbody *ngFor=\\\"let company of possibleCompanies\\\">\\n\\t\\t<tr>\\n\\t\\t\\t<td class=\\\"vert-align\\\">\\n\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-success btn-sm\\\" (click)=\\\"assignCompany(company)\\\"><i class=\\\"fa fa-plus\\\"></i></button>\\n\\t\\t\\t</td>\\n\\t\\t\\t<td width=\\\"100%\\\" class=\\\"vert-align\\\">\\n\\t\\t\\t\\t<a href=\\\"javascript:;\\\" (click)=\\\"company.preview = !company.preview\\\">{{company.name}}</a><br />\\n\\t\\t\\t</td>\\n\\t\\t</tr>\\n\\t\\t<tr *ngIf=\\\"company.preview\\\">\\n\\t\\t\\t<td colspan=\\\"2\\\">\\n\\t\\t\\t\\t<table width=\\\"100%\\\" class=\\\"sm\\\">\\n\\n\\t\\t\\t\\t\\t<thead>\\n\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t<td class=\\\"small-font\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\tOrgnr: {{company.orgNr}}<br />\\n\\t\\t\\t\\t\\t\\t\\t\\tKundnr: {{company.kundnr}}<br />\\n\\t\\t\\t\\t\\t\\t\\t\\tNotis: {{company.notis}}<br />\\n\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t</thead>\\n\\n\\t\\t\\t\\t\\t<thead *ngIf=\\\"company.subscriptions\\\">\\n\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t<th class=\\\"small-font\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<a href=\\\"javascript:;\\\" (click)=\\\"showAllSubscriptions = !showAllSubscriptions\\\"><i class=\\\"fa\\\" [ngClass]=\\\"{'fa-plus-square-o' : !showAllSubscriptions, 'fa-minus-square-o' : showAllSubscriptions}\\\"></i> Abonnemang ({{company.subscriptions.length}})</a>\\n\\t\\t\\t\\t\\t\\t\\t</th>\\n\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t</thead>\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t<tbody *ngFor=\\\"let subscription of company.subscriptions; let myIndex = index\\\">\\n\\t\\t\\t\\t\\t\\t<tr *ngIf=\\\"showAllSubscriptions\\\">\\n\\t\\t\\t\\t\\t\\t\\t<td class=\\\"small-font\\\"><a href=\\\"javascript:;\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t#{{subscription.subscriptionId}} - \\n\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"subscription.status == 1\\\">Aktiv - Förnyas: <date-formatter [date]=\\\"subscription.renewalDate\\\" [time]=\\\"false\\\"></date-formatter></span>\\n\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"subscription.status == 0\\\">Uppsagd - Löper ut: <date-formatter [date]=\\\"subscription.expireDate\\\" [time]=\\\"false\\\"></date-formatter></span>\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t</a>\\n\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t</tbody>\\n\\n\\t\\t\\t\\t\\t<thead *ngIf=\\\"company.invoices\\\">\\n\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t<th class=\\\"small-font\\\"><a href=\\\"javascript:;\\\" (click)=\\\"showAllInvoices = !showAllInvoices\\\"><i class=\\\"fa\\\" [ngClass]=\\\"{'fa-plus-square-o' : !showAllInvoices, 'fa-minus-square-o' : showAllInvoices}\\\"></i> Fakturor ({{company.invoices.length}})</a></th>\\n\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t</thead>\\n\\n\\t\\t\\t\\t\\t<tbody *ngFor=\\\"let invoice of company.invoices; let myIndex = index\\\">\\n\\t\\t\\t\\t\\t\\t<tr *ngIf=\\\"showAllInvoices\\\">\\n\\t\\t\\t\\t\\t\\t\\t<td class=\\\"small-font\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"invoice.name == 'Kreditering'\\\">Kreditering</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"invoice.orderType == 0\\\">Nyförsäljning</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"invoice.orderType == 1\\\">Uppförsäljning</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"invoice.orderType > 1\\\">Förnyelse</span> - \\n\\t\\t\\t\\t\\t\\t\\t\\t#{{invoice.invoiceNr}}<br />\\n\\t\\t\\t\\t\\t\\t\\t\\tSkapad: <date-formatter [date]=\\\"invoice.createdDate\\\" [time]=\\\"false\\\"></date-formatter><br />\\n\\t\\t\\t\\t\\t\\t\\t\\tFörf.: <date-formatter [date]=\\\"invoice.dueDate\\\" [time]=\\\"false\\\"></date-formatter>\\n\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t</tbody>\\n\\n\\t\\t\\t\\t\\t<thead *ngIf=\\\"company.accounts\\\">\\n\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t<th class=\\\"small-font\\\"><a href=\\\"javascript:;\\\" (click)=\\\"showAllAccounts = !showAllAccounts\\\"><i class=\\\"fa\\\" [ngClass]=\\\"{'fa-plus-square-o' : !showAllAccounts, 'fa-minus-square-o' : showAllAccounts}\\\"></i> Konton ({{company.accounts.length}})</a></th>\\n\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t</thead>\\n\\t\\t\\t\\t\\t<tbody *ngIf=\\\"company.accounts\\\">\\n\\t\\t\\t\\t\\t\\t<tr *ngFor=\\\"let a of company.accounts; let myIndex = index\\\" [ngClass]=\\\"{'hidden' : !showAllAccounts}\\\">\\n\\t\\t\\t\\t\\t\\t\\t<td class=\\\"small-font\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<a href=\\\"http://{{a.prefix}}.hemsidadirekt.se\\\" target=\\\"_blank\\\">#{{a.prefix}} <span *ngIf=\\\"a.type == 'wordpress'\\\">[{{a.type}}]</span></a>\\n\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"a.active == 0\\\">( inaktiv )</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t<a *ngIf=\\\"a.type != 'wordpress'\\\" class=\\\"pull-right\\\" href=\\\"https://admin.hemsidadirekt.se/login.php?accountId={{a.ftgId}}&hash={{a.loginhash}}\\\" target=\\\"_blank\\\"><i class=\\\"fa fa-sign-in\\\"></i> Logga in</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t<a *ngIf=\\\"a.type == 'wordpress' && a.statusId < 13\\\" class=\\\"pull-right\\\" href=\\\"http://{{a.prefix}}.generatorhallen.se/gh-login.php?user=User&prefix={{a.prefix}}&hash={{a.loginhash}}\\\" target=\\\"_blank\\\"><i class=\\\"fa fa-sign-in\\\"></i> Logga in</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t<a *ngIf=\\\"a.type == 'wordpress' && a.statusId == 13 && company\\\" class=\\\"pull-right\\\" href=\\\"http://www.{{company.domain[0].domain}}/gh-login.php?user=User&prefix={{a.prefix}}&hash={{a.loginhash}}\\\" target=\\\"_blank\\\"><i class=\\\"fa fa-sign-in\\\"></i> Logga in</a>\\n\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t</tbody>\\n\\n\\t\\t\\t\\t\\t<thead *ngIf=\\\"company.domain\\\">\\n\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t<th class=\\\"small-font\\\"><a href=\\\"javascript:;\\\" (click)=\\\"showAllDomains = !showAllDomains\\\"><i class=\\\"fa\\\" [ngClass]=\\\"{'fa-plus-square-o' : !showAllDomains, 'fa-minus-square-o' : showAllDomains}\\\"></i> Domäner ({{company.domain.length}})</a></th>\\n\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t</thead>\\n\\t\\t\\t\\t\\t<tbody *ngFor=\\\"let domain of company.domain; let myIndex = index\\\">\\n\\t\\t\\t\\t\\t\\t<tr *ngIf=\\\"showAllDomains\\\">\\n\\t\\t\\t\\t\\t\\t\\t<td class=\\\"small-font\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<a href=\\\"http://www.{{domain.domain}}\\\" target=\\\"_blank\\\">{{domain.domain}}</a> <a class=\\\"pull-right\\\" href=\\\"javascript:;\\\" (click)=\\\"showDomainInfo(domain)\\\"><i class=\\\"fa fa-info\\\"></i> info ( {{domainStatus[domain.statusId]}} )</a>\\n\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t</tbody>\\n\\t\\t\\t\\t</table>\\n\\t\\t\\t</td>\\n\\t\\t</tr>\\n\\t</tbody>\\n\\t\\n\\t<tbody *ngIf=\\\"possibleCompanies.length == 0 || isSearchMatch || !company\\\">\\n\\t\\t<tr *ngIf=\\\"possibleCompanies.length == 0 && !searching\\\">\\n\\t\\t\\t<td colspan=\\\"2\\\">Inga matchningar funna.</td>\\n\\t\\t</tr>\\n\\t\\t<tr>\\n\\t\\t\\t<td colspan=\\\"2\\\">\\n\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t<label for=\\\"exampleInputEmail1\\\">Sök</label>\\n\\t\\t\\t\\t\\t<i class=\\\"fa fa-circle-o-notch fa-spin fa-fw\\\" *ngIf=\\\"searching\\\"></i> <input class=\\\"form-control\\\" type=\\\"text\\\" [(ngModel)]=\\\"matchPhrase\\\" placeholder=\\\"Sök, e-post, företagsnamn, org-nr\\\" (keyup)=\\\"matchByTextPress($event)\\\"/>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</td>\\n\\t\\t</tr>\\n\\t</tbody>\\n\\t\\n</table>\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/components/templates/customerinfo.html\n// module id = 999\n// module chunks = 0","module.exports = \"<div class=\\\"input-group date\\\">\\n  <input type=\\\"text\\\" class=\\\"form-control\\\" placeholder=\\\"{{_placeholder}}\\\"><span class=\\\"input-group-addon\\\"><i class=\\\"glyphicon glyphicon-th\\\"></i></span>\\n</div>\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/components/templates/datepicker.html\n// module id = 1000\n// module chunks = 0","module.exports = \"\\n<modal #infoModal>\\n    \\n\\t\\t<modal-header [show-close]=\\\"true\\\">\\n        <h4 class=\\\"modal-title\\\" *ngIf=\\\"domain\\\">Domäninformation {{domain.domain}}</h4>\\n    </modal-header>\\n\\n\\t\\t<modal-body>\\n\\t\\t\\t\\n\\t\\t\\t<div class=\\\"center\\\" *ngIf=\\\"loading\\\">\\n\\t\\t\\t\\t<p>\\n\\t\\t\\t\\t\\t<i class=\\\"fa fa-circle-o-notch fa-spin fa-3x fa-fw\\\"></i>\\n\\t\\t\\t\\t</p>\\n\\t\\t\\t</div>\\n\\t\\t\\t\\n\\t\\t\\t<div style=\\\"height: 500px;\\\" *ngIf=\\\"domain && !loading\\\">\\n\\n\\t\\t\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t\\t<ul class=\\\"nav nav-tabs\\\">\\n\\t\\t\\t\\t\\t\\t\\t<li role=\\\"presentation\\\" [ngClass]=\\\"{'active' : show == 'guide'}\\\" *ngIf=\\\"domain.statusId != 4 && domain.statusId != 6 && domain.statusId != 7\\\"><a (click)=\\\"show = 'guide'\\\">Guide</a></li>\\n\\t\\t\\t\\t\\t\\t\\t<li role=\\\"presentation\\\" [ngClass]=\\\"{'active' : show == 'settings'}\\\" *ngIf=\\\"domain.domainId\\\"><a (click)=\\\"show = 'settings'\\\">Inställningar</a></li>\\n\\t\\t\\t\\t\\t\\t\\t<li role=\\\"presentation\\\" [ngClass]=\\\"{'active' : show == 'subdomains'}\\\" *ngIf=\\\"domain.domainId\\\"><a (click)=\\\"show = 'subdomains'\\\">Subdomäner</a></li>\\n\\t\\t\\t\\t\\t\\t\\t<li role=\\\"presentation\\\" [ngClass]=\\\"{'active' : show == 'nameisp'}\\\" *ngIf=\\\"nameISPInfo\\\"><a (click)=\\\"show = 'nameisp'\\\">NameISP \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys warning\\\" *ngIf=\\\"nameISPInfo.autorenew == 0 || !nameISPInfo.autorenew\\\"><i class=\\\"fa fa-exclamation-triangle\\\"></i></span></a></li>\\n\\t\\t\\t\\t\\t\\t\\t<li role=\\\"presentation\\\" [ngClass]=\\\"{'active' : show == 'r53'}\\\" *ngIf=\\\"zoneInfo\\\"><a (click)=\\\"show = 'r53'\\\">Route53</a></li>\\n\\t\\t\\t\\t\\t\\t\\t<li role=\\\"presentation\\\" [ngClass]=\\\"{'active' : show == 'company'}\\\"><a (click)=\\\"show = 'company'\\\">Företag</a></li>\\n\\t\\t\\t\\t\\t\\t\\t<li role=\\\"presentation\\\" [ngClass]=\\\"{'active' : show == 'whois'}\\\" *ngIf=\\\"whoisInfo\\\"><a (click)=\\\"show = 'whois'\\\">Whois</a></li>\\n\\t\\t\\t\\t\\t\\t\\t<li role=\\\"presentation\\\" [ngClass]=\\\"{'active' : show == 'dns'}\\\" *ngIf=\\\"digInfo\\\"><a (click)=\\\"show = 'dns'\\\">DNS</a></li>\\n\\t\\t\\t\\t\\t\\t\\t<li role=\\\"presentation\\\" [ngClass]=\\\"{'active' : show == 'nameserver'}\\\" *ngIf=\\\"nameServers\\\"><a (click)=\\\"show = 'nameserver'\\\">Namnservrar</a></li>\\n\\t\\t\\t\\t\\t\\t</ul>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t\\n\\t\\t\\t\\t<div class=\\\"full-height-fill full-width-fill p70\\\">\\n\\n\\t\\t\\t\\t\\t<div class=\\\"col-md-12\\\" [ngClass]=\\\"{'hidden' : show != 'nameisp'}\\\" *ngIf=\\\"nameISPInfo\\\">\\n\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\" *ngIf=\\\"nameISPInfo['available-actions'].manageable\\\"> \\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"btn-group\\\" >\\n\\t\\t\\t\\t\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"nameISPInfo.autorenew == 1\\\">Autoförnyelse På</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"nameISPInfo.autorenew == 0 || !nameISPInfo.autorenew\\\">Autoförnyelse Av</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<!--<span class=\\\"sr-onlys\\\" *ngIf=\\\"!nameISPInfo.status[200] && !nameISPInfo.status[201]\\\">Ej tillgängligt</span>-->\\n\\t\\t\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\"  (click)=\\\"nameISPInfo.autorenew = 1; saveNameISPInfo()\\\">På</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\"  (click)=\\\"nameISPInfo.autorenew = 0; saveNameISPInfo()\\\">Av</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t<label>Skapad</label><br />\\n\\t\\t\\t\\t\\t\\t\\t<input type=\\\"text\\\" value=\\\"{{nameISPInfo.created}}\\\" class=\\\"form-control\\\" readonly />\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t<label>Löper ut</label><br />\\n\\t\\t\\t\\t\\t\\t\\t<input type=\\\"text\\\" value=\\\"{{nameISPInfo.expires}}\\\" class=\\\"form-control\\\" readonly />\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t<label>Förnyas</label><br />\\n\\t\\t\\t\\t\\t\\t\\t<input type=\\\"text\\\" value=\\\"{{nameISPInfo.renewaldate}}\\\" class=\\\"form-control\\\" readonly />\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t<label>Status</label><br />\\n\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"nameISPInfo.status[200]\\\">Aktiv</span>\\n\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"nameISPInfo.status[201]\\\">Expiring</span>\\n\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"nameISPInfo.status[202]\\\">Expires</span>\\n\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"nameISPInfo.status[300]\\\">Utflyttad</span>\\n\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"nameISPInfo.status[500]\\\">Expired</span>\\n\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"nameISPInfo.status[501]\\\">Expired</span>\\n\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"nameISPInfo.status[502]\\\">Expired</span>\\n\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"nameISPInfo.status[504]\\\">Expired - förnyelsebar</span>\\n\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"nameISPInfo.status[10000]\\\">Arkiverad</span>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t\\t<div class=\\\"col-md-12\\\" [ngClass]=\\\"{'hidden' : show != 'subdomains' || !this.subDomains}\\\">\\n\\t\\t\\t\\t\\t\\t<div class=\\\"row form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-sm-12\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-primary\\\" (click)=\\\"this.subDomains.push({ domain : 'ny.' + domain.domain })\\\">Lägg till</button>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t<div *ngFor=\\\"let d of subDomains\\\" class=\\\"row form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-sm-11\\\" *ngIf=\\\"!d.deleted\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<input type=\\\"text\\\" [(ngModel)]=\\\"d.domain\\\" class=\\\"form-control\\\" />\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-sm-1\\\" *ngIf=\\\"!d.deleted\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-danger\\\" (click)=\\\"d.deleted = true\\\"><i class=\\\"fa fa-trash-o\\\"></i></button>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t<div *ngIf=\\\"this.subDomains && this.subDomains.length == 0\\\">\\n\\t\\t\\t\\t\\t\\t\\tInga subdomäner för domänen.\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t\\t<div class=\\\"col-md-12\\\" [ngClass]=\\\"{'hidden' : show != 'company'}\\\">\\n\\t\\t\\t\\t\\t\\t<customer-info (onAssignCompany)=\\\"handleOnCompanyAssigned($event)\\\" [companyId]=\\\"domain.companyId\\\" #companyInfo></customer-info>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t<div class=\\\"col-md-12 height-100 r53-table\\\" [ngClass]=\\\"{'hidden' : show != 'r53'}\\\" *ngIf=\\\"zoneInfo\\\">\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"row form-group\\\" *ngFor=\\\"let rrs of zoneInfo.ResourceRecordSets\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-sm-2 no-p\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<button type=\\\"button\\\" [disabled]=\\\"!rrs.IsNew\\\" class=\\\"btn btn-primary btn-sm btn-block dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\">{{rrs.Type}}</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"rrs.Type = 'A'\\\">A</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"rrs.Type = 'CNAME'\\\">CNAME</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"rrs.Type = 'MX'\\\">MX</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"rrs.Type = 'NS'\\\">NS</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"rrs.Type = 'SRV'\\\">SRV</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"rrs.Type = 'TXT'\\\">TXT</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-sm-2\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control input-sm r53-name\\\" [disabled]=\\\"!rrs.IsNew\\\" [(ngModel)]=\\\"rrs.Name\\\" />\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-5\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<button class=\\\"r53-tag\\\" *ngFor=\\\"let rs of rrs.ResourceRecords\\\" (click)=\\\"editResourceRecord(rs)\\\">{{rs.Value}} <i (click)=\\\"removeResourceRecord(rrs, rs)\\\" class=\\\"fa fa-trash-o\\\"></i></button>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<button class=\\\"r53-tag\\\" *ngIf=\\\"rrs.AliasTarget\\\" (click)=\\\"editAliasTarget(rrs)\\\">{{rrs.AliasTarget.DNSName}} <i (click)=\\\"removeAliasTarget(rrs, rs)\\\" class=\\\"fa fa-trash-o\\\"></i></button>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<!-- \\\"Z32O12XQLNTSW2\\\" dns name -->\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-success btn-sm dropdown-toggle\\\" data-toggle=\\\"dropdown\\\" ><i class=\\\"fa fa-plus\\\"></i></button>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<ul class=\\\"dropdown-menu\\\" role=\\\"menu\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<li><a (click)=\\\"addResourceRecord(rrs)\\\">Standard</a></li>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<li><a (click)=\\\"addAliasTarget(rrs, 'dualstack.adminservers-99448636.eu-west-1.elb.amazonaws.com.', 'Z32O12XQLNTSW2')\\\">Webserver Alias</a></li>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<li><a (click)=\\\"addAliasTarget(rrs, '', 'Z32O12XQLNTSW2')\\\">Annat Alias</a></li>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</ul>\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-1\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control r53-ttl pull-right input-sm\\\" [disabled]=\\\"rrs.AliasTarget\\\" [(ngModel)]=\\\"rrs.TTL\\\" />\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-2\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"btn-group pull-right\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-danger btn-sm\\\" (click)=\\\"deleteResourceRecordSet(rrs)\\\"><i class=\\\"fa fa-minus\\\"></i></button>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-success btn-sm\\\" (click)=\\\"saveResourceRecordSet(rrs)\\\" *ngIf=\\\"rrs.IsNew\\\"><i class=\\\"fa fa-floppy-o\\\"></i></button>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-success btn-sm\\\" (click)=\\\"updateResourceRecordSet(rrs)\\\" *ngIf=\\\"!rrs.IsNew\\\"><i class=\\\"fa fa-floppy-o\\\"></i></button>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t\\t<div class=\\\"col-md-12\\\" [ngClass]=\\\"{'hidden' : show != 'guide'}\\\">\\n\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t<div class=\\\"wizard\\\">\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"wizard-inner\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"connecting-line\\\"></div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<ul class=\\\"nav nav-tabs\\\" role=\\\"tablist\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<li role=\\\"presentation\\\" [ngClass]=\\\"{'disabled' : domainStep != 1, 'active' : domainStep == 1}\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a href=\\\"#step1\\\" data-toggle=\\\"tab\\\" aria-controls=\\\"step1\\\" role=\\\"tab\\\" title=\\\"Lägg till\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"round-tab\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<i class=\\\"fa fa-cart-plus\\\"></i>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</li>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<li role=\\\"presentation\\\" [ngClass]=\\\"{'disabled' : domainStep != 2, 'active' : domainStep == 2}\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a href=\\\"#step2\\\" data-toggle=\\\"tab\\\" aria-controls=\\\"step2\\\" role=\\\"tab\\\" title=\\\"Authkod\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"round-tab\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<i class=\\\"fa fa-key\\\"></i>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</li>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<li role=\\\"presentation\\\" [ngClass]=\\\"{'disabled' : domainStep != 3, 'active' : domainStep == 3}\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a href=\\\"#step3\\\" data-toggle=\\\"tab\\\" aria-controls=\\\"step3\\\" role=\\\"tab\\\" title=\\\"Ägaruppgifter\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"round-tab\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<i class=\\\"fa fa-user\\\"></i>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</li>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<li role=\\\"presentation\\\" [ngClass]=\\\"{'disabled' : domainStep != 4, 'active' : domainStep == 5}\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a href=\\\"#complete\\\" data-toggle=\\\"tab\\\" aria-controls=\\\"complete\\\" role=\\\"tab\\\" title=\\\"Inställningar\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"round-tab\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<i class=\\\"fa fa-cogs\\\"></i>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</li>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<li role=\\\"presentation\\\" [ngClass]=\\\"{'disabled' : domainStep != 5, 'active' : domainStep == 6}\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a href=\\\"#complete\\\" data-toggle=\\\"tab\\\" aria-controls=\\\"complete\\\" role=\\\"tab\\\" title=\\\"Slutförd\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"round-tab\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<i class=\\\"fa fa-check\\\"></i>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</li>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</ul>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t\\t\\t<div class=\\\"wizard-sections\\\">\\n\\t\\t\\t\\t\\t\\t\\t<div [ngClass]=\\\"{'hidden' : domainStep != 1}\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<label>Domännamn:</label>\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<input type=\\\"text\\\" [disabled]=\\\"gettingDomainInfo\\\" placeholder=\\\"domän.se\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"domain.domain\\\" />\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group error\\\" [ngClass]=\\\"{'hidden' : !domainUnavailable}\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tDomännamnet är redan registrerat.\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group error\\\" [ngClass]=\\\"{'hidden' : !domainExists}\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tDomännamnet finns redan hos Hemsida Direkt.\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group error\\\" [ngClass]=\\\"{'hidden' : !lookupError}\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tKunde inte kontrollera domännamn.\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t<label>Konto:</label>\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"btn-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-info dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"domain.accountId && companyInfo.company\\\">#{{companyInfo.accounts[domain.accountId].prefix}}</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"!domain.accountId\\\">Välj konto</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"!companyInfo.company\\\">Laddar ...</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\" *ngIf=\\\"companyInfo.company\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" *ngFor=\\\"let a of companyInfo.company.accounts\\\" (click)=\\\"domain.accountId = a.accountId; domain.prefix = a.prefix;\\\">#{{a.prefix}}</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t<label>Åtgärd:</label>\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-primary\\\" (click)=\\\"gotoStep(2)\\\" *ngIf=\\\"domainUnavailable || lookupError\\\">Flytta domän</button>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-primary\\\" (click)=\\\"registerStep()\\\" *ngIf=\\\"domainAvailable || lookupError\\\">Registrera domänen</button>              \\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-warning\\\" (click)=\\\"gotoStep(55)\\\" *ngIf=\\\"!domainExists && hasLookupInfo && !gettingDomainInfo\\\">Bara lägg till</button>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn\\\" (click)=\\\"gotoStep(3)\\\" [disabled]=\\\"gettingDomainInfo || !domain.accountId || !domain.domain || !companyInfo.company\\\">Kontrollera tillgänglighet <i class=\\\"fa fa-spin fa-circle-o-notch\\\" *ngIf=\\\"gettingDomainInfo\\\"></i></button>\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t<div [ngClass]=\\\"{'hidden' : domainStep != 2}\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\" *ngIf=\\\"!verifyingAuthCode && !registeringDomain\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<h5>Authkod</h5>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<input type=\\\"text\\\" placeholder=\\\"authkod\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"domain.comments\\\" />\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\" *ngIf=\\\"!domain.domainId && !verifyingAuthCode\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"btn-group\\\" *ngIf=\\\"nameISPInfo\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-info dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"nameISPInfo.autorenew == 1\\\">Autoförnyelse På</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"nameISPInfo.autorenew == 0 || !nameISPInfo.autorenew\\\">Autoförnyelse Av</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\"  (click)=\\\"nameISPInfo.autorenew = 1;\\\">På</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\"  (click)=\\\"nameISPInfo.autorenew = 0;\\\">Av</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"btn-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-info dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"domain.hosting == 'internal'\\\">AWS DNS</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"domain.hosting == 'external'\\\">Extern DNS</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"domain.hosting = 'external'\\\">AWS DNS</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"domain.hosting = 'internal'\\\">Extern DNS</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"btn-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-info dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"domain.mail == 'local'\\\">Lokal mail</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"domain.mail == 'remote'\\\">Extern mail</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"domain.mail = 'local'\\\">Lokal mail</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"domain.mail = 'remote'\\\">Extern mail</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\" *ngIf=\\\"registerDomainError\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t{{registerDomainError}}\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group center\\\" [ngClass]=\\\"{'hidden' : !verifyingAuthCode}\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<p><i class=\\\"fa fa-circle-o-notch fa-spin fa-3x fa-fw\\\"></i></p>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<p>Begär flytt och verifierar AUTH-kod</p>\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-danger\\\" (click)=\\\"gotoStep(1)\\\" [disabled]=\\\"verifyingAuthCode\\\">Avbryt</button>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn\\\" (click)=\\\"verifyAuth()\\\" [disabled]=\\\"verifyingAuthCode || domain.comments == ''\\\">Nästa</button>\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t<div [ngClass]=\\\"{'hidden' : domainStep != 3}\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<h5>Ägaruppgifter</h5>\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"regInfo.orgNr\\\" placeholder=\\\"Organisationsnr\\\" />\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"regInfo.orgName\\\" placeholder=\\\"Organisation\\\" />\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"regInfo.firstName\\\" placeholder=\\\"Förnamn\\\" />\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"regInfo.lastName\\\" placeholder=\\\"Efternamn\\\" />\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"regInfo.phone\\\" placeholder=\\\"Telefonnr 046.xxx.xxxxxxxx\\\" />\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"regInfo.email\\\" placeholder=\\\"Epost\\\" />\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"regInfo.address1\\\" placeholder=\\\"Adress\\\" />\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"regInfo.address2\\\" placeholder=\\\"Adress\\\" />\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"regInfo.zip\\\" placeholder=\\\"Postnr\\\" />\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"regInfo.city\\\" placeholder=\\\"Stad\\\" />\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"regInfo.countrycode\\\" placeholder=\\\"Land\\\" />\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-danger\\\" (click)=\\\"gotoStep(1)\\\">Tillbaka</button>\\n\\t\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn\\\" (click)=\\\"gotoStep(5)\\\" [disabled]=\\\"(regInfo.orgName != '' && regInfo.orgNr == '') ||\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tregInfo.firstName == '' || regInfo.lastName == '' ||\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tregInfo.phone == '' || regInfo.email == '' ||\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tregInfo.address1 == '' || regInfo.zip == '' ||\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tregInfo.city == '' || regInfo.countrycode == ''\\\">Nästa</button>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t<div [ngClass]=\\\"{'hidden' : domainStep != 5}\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\" [ngClass]=\\\"{'hidden' : registeringDomain || !justAdd || addingDomain}\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<h5>Status</h5>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"btn-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-info dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"domain.statusId == 0\\\">Väntar</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"domain.statusId == 1\\\">Ompekning</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"domain.statusId == 2\\\">Skickat info</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"domain.statusId == 3\\\">Pågående</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"domain.statusId == 4\\\">Klar</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"domain.statusId == 5\\\">Nyregistrering</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"domain.statusId == 6\\\">Uppsagd / Ej förnyelse</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"domain.statusId == 7\\\">Inaktiv</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"domain.statusId = 0; domain.status = ''\\\">Väntar</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"domain.statusId = 1; domain.status = 'redirect'\\\">Ompekning</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"domain.statusId = 2; domain.status = ''\\\">Skickat info</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"domain.statusId = 3; domain.status = ''\\\">Pågående</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"domain.statusId = 4; domain.status = 'completed'\\\">Klar</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"domain.statusId = 5; domain.status = ''\\\">Nyregistrering</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"domain.statusId = 6; domain.status = ''\\\">Uppsagd / Ej förnyelse</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"domain.statusId = 7; domain.status = 'inactive'\\\">Inaktiv</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\" [ngClass]=\\\"{'hidden' : registeringDomain || justAdd}\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<h5>Inställningar</h5>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"btn-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-info dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"registerParams.period == 1\\\">1 år</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"registerParams.period == 2\\\">2 år</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"registerParams.period = 1\\\">1 år</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"registerParams.period = 2\\\">2 år</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"btn-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-info dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"!registerParams.autoRenew\\\">Autoförnyelse av</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"registerParams.autoRenew\\\">Autoförnyelse på</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"registerParams.autoRenew = false\\\">Autoförnyelse av</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"registerParams.autoRenew = true\\\">Autoförnyelse på</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"btn-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-info dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"!registerParams.shieldWhois\\\">Whoisskydd av</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"registerParams.shieldWhois\\\">Whoisskydd på</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"registerParams.shieldWhois = false\\\">Whoisskydd av</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"registerParams.shieldWhois = true \\\">Whoisskydd på</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"btn-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-info dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"domain.hosting == 'internal'\\\">AWS DNS</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"domain.hosting == 'external'\\\">Extern DNS</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"domain.hosting = 'internal'\\\">AWS DNS</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"domain.hosting = 'external'\\\">Extern DNS</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"btn-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-info dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"domain.mail == 'local'\\\">Lokal mail</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"domain.mail == 'remote'\\\">Extern mail</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"domain.mail = 'local'\\\">Lokal mail</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"domain.mail = 'remote'\\\">Extern mail</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t<div [ngClass]=\\\"{'hidden' : domain.hosting == 'internal'}\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"domain.ns1\\\" placeholder=\\\"Namnserver 1\\\" [ngModelOptions]=\\\"{standalone: true}\\\" />\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"domain.ns2\\\" placeholder=\\\"Namnserver 2\\\" [ngModelOptions]=\\\"{standalone: true}\\\" />\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"domain.ns3\\\" placeholder=\\\"Namnserver 3\\\" [ngModelOptions]=\\\"{standalone: true}\\\" />\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"domain.ns4\\\" placeholder=\\\"Namnserver 4\\\" [ngModelOptions]=\\\"{standalone: true}\\\" />\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group center\\\" [ngClass]=\\\"{'hidden' : !registeringDomain}\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<p><i class=\\\"fa fa-circle-o-notch fa-spin fa-3x fa-fw\\\"></i></p>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<p>Anropar NameISP ({{checkOrderInfo}})</p>\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group center\\\" [ngClass]=\\\"{'hidden' : !addingDomain}\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<p><i class=\\\"fa fa-circle-o-notch fa-spin fa-3x fa-fw\\\"></i></p>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<p>Lägger till domän</p>\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\" [ngClass]=\\\"{'hidden' : !registerDomainError}\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"danger\\\">Fel: {{registerDomainError}}</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-danger\\\" (click)=\\\"gotoStep(justAdd ? 1 : 3)\\\" [disabled]=\\\"registeringDomain || addingDomain\\\">Tillbaka</button>\\n\\t\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn\\\" (click)=\\\"gotoStep(6)\\\" [disabled]=\\\"registeringDomain || addingDomain\\\">Slutför</button>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t<div [ngClass]=\\\"{'hidden' : domainStep != 6}\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<h5>Slutförd</h5>\\n\\t\\t\\t\\t\\t\\t\\t\\t<p *ngIf=\\\"orderInfo && orderInfo.type == 'register'\\\">Domänen är registrerad. Det kan ta några timmar innan domänen blir aktiv.</p>\\n\\t\\t\\t\\t\\t\\t\\t\\t<p *ngIf=\\\"orderInfo && orderInfo.type == 'transfer'\\\">Domänen är flyttad. Kom ihåg att <a href=\\\"javascript:;\\\" (click)=\\\"checkAutoRenewal()\\\">kontrollera autoförnyelse</a>.</p>\\n\\t\\t\\t\\t\\t\\t\\t\\t<p *ngIf=\\\"orderInfo && orderInfo.type == 'dns'\\\">Namnservrar uppdaterade.</p>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t\\t<div class=\\\"col-md-12\\\" style=\\\"height:400px;overflow:auto;\\\" [ngClass]=\\\"{'hidden' : show != 'settings'}\\\">\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t<div *ngIf=\\\"!isSaving && companyInfo.company\\\">\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-inline\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<label>Intern status</label><br />\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"btn-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-info dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"domain.statusId == 0\\\">Väntar</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"domain.statusId == 1\\\">Ompekning</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"domain.statusId == 2\\\">Skickat info</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"domain.statusId == 3\\\">Pågående</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"domain.statusId == 4\\\">Klar</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"domain.statusId == 5\\\">Nyregistrering</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"domain.statusId == 6\\\">Uppsagd / Ej förnyelse</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"domain.statusId == 7\\\">Inaktiv</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"domain.statusId = 0; domain.status = ''\\\">Väntar</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"domain.statusId = 1; domain.status = 'redirect'\\\">Ompekning</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"domain.statusId = 2; domain.status = ''\\\">Skickat info</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"domain.statusId = 3; domain.status = ''\\\">Pågående</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"domain.statusId = 4; domain.status = 'completed'\\\">Klar</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"domain.statusId = 5; domain.status = ''\\\">Nyregistrering</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"domain.statusId = 6; domain.status = ''\\\">Uppsagd / Ej förnyelse</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"domain.statusId = 7; domain.status = 'inactive'\\\">Inaktiv</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<label>Status</label><br />\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"btn-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-info dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"domain.status == 'completed'\\\">Aktiv / Klar</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"domain.status == 'redirect'\\\">Aktiv / Ompekning</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"domain.status == ''\\\">Aktiv</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"domain.status == 'inactive'\\\">Inaktiv</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"domain.status = 'completed'\\\">Aktiv / Klar</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"domain.status = 'redirect'\\\">Aktiv / Ompekning</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"domain.status = 'inactive'\\\">Inaktiv</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-inline p-t-1 p-b-1\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<label>Domänhantering</label><br />\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"btn-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-info dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"(domain.id || domain.hosting == 'internal') && domain.hosting != 'external'\\\">AWS DNS</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"(!domain.id && domain.hosting != 'internal') || domain.hosting == 'external'\\\">Extern DNS</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"setHosting('internal', false)\\\">AWS DNS</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"setHosting('external', false)\\\">Extern DNS</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<label>Konto</label><br />\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"btn-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-info dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"domain.accountId\\\">#{{companyInfo.accounts[domain.accountId].prefix}}</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" *ngFor=\\\"let a of companyInfo.company.accounts\\\" (click)=\\\"domain.accountId = a.accountId; domain.prefix = a.prefix;\\\">#{{a.prefix}}</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<label>Mailhantering</label><br />\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"btn-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-info dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"domain.mail == 'local'\\\">Lokal mail</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"domain.mail == 'remote'\\\">Extern mail</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"domain.mail = 'local'\\\">Lokal mail</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"domain.mail = 'remote'\\\">Extern mail</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"checkbox\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<label>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<input type=\\\"checkbox\\\" [(ngModel)]=\\\"domain.addDefaultMailRecords\\\"> Lägg till standardposter för Mail i DNS\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</label>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<small *ngIf=\\\"domain.id\\\">AWS R53 Zon ID: <a href=\\\"https://console.aws.amazon.com/route53/home?region=eu-west-1#resource-record-sets:{{domain.id.substring(domain.id.lastIndexOf('/') + 1)}}\\\" target=\\\"_blank\\\">{{domain.id}}</a></small>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t\\t<div class=\\\"col-md-12\\\" style=\\\"height:400px;overflow:auto;\\\" [ngClass]=\\\"{'hidden' : show != 'nameserver' || domain.id == '' || !nameServers}\\\">\\n\\t\\t\\t\\t\\t\\t<div class=\\\"error row\\\" *ngIf=\\\"nameServerError\\\"><div class=\\\"col-md-12 form-group\\\">{{nameServerError}}</div></div>\\n\\t\\t\\t\\t\\t\\t<div *ngFor=\\\"let ns of nameServers; let myIndex = index\\\" class=\\\"row\\\">\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-10 form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"ns.address\\\">\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-2 form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<button class=\\\"pull-right btn btn-danger\\\" (click)=\\\"nameServers.splice(nameServers.indexOf(ns), 1)\\\">Ta bort</button>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-default\\\" (click)=\\\"addAnotherNameServer()\\\"><i class=\\\"fa fa-plus\\\"></i> Lägg till</button>\\n\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-default\\\" *ngIf=\\\"zoneInfo\\\" (click)=\\\"addFromZoneInfo()\\\"><i class=\\\"fa fa-plus\\\"></i> Kopiera från R53</button>\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-primary\\\" (click)=\\\"updateNameServers()\\\">Uppdatera</button>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t\\t<div class=\\\"col-md-12\\\" style=\\\"height:400px;overflow:auto;\\\" [ngClass]=\\\"{'hidden' : show != 'whois'}\\\">\\n\\t\\t\\t\\t\\t\\t<i *ngIf=\\\"whoisLoading\\\" class=\\\"fa fa-circle-o-notch fa-spin fa-3x fa-fw\\\"></i>\\n\\t\\t\\t\\t\\t\\t<html-source *ngIf=\\\"!whoisLoading\\\" [source]=\\\"'<pre>' + whoisInfo + '</pre>'\\\"></html-source>\\n\\t\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t\\t<div class=\\\"col-md-12\\\" style=\\\"height:400px;overflow:auto;\\\" [ngClass]=\\\"{'hidden' : show != 'dns'}\\\">\\n\\t\\t\\t\\t\\t\\t<i *ngIf=\\\"whoisLoading\\\" class=\\\"fa fa-circle-o-notch fa-spin fa-3x fa-fw\\\"></i>\\n\\t\\t\\t\\t\\t\\t<div *ngIf=\\\"digInfo\\\">\\n\\t\\t\\t\\t\\t\\t\\t<p *ngIf=\\\"digInfo.addresses.length == 0\\\">Kunde inte göra ett uppslag, fel namnservrar?</p>\\n\\t\\t\\t\\t\\t\\t\\t<p *ngFor=\\\"let a of digInfo.addresses\\\">A: <a href=\\\"http://{{a.domainName}}\\\" target=\\\"_blank\\\">{{a.domainName}}</a> => <a href=\\\"http://{{a.address}}\\\" target=\\\"_blank\\\">{{a.address}}</a></p>\\n\\t\\t\\t\\t\\t\\t\\t<p *ngFor=\\\"let m of digInfo.mx\\\">MX: {{m.priority}} {{m.exchange}} => <a href=\\\"http://{{m.address}}\\\" target=\\\"_blank\\\">{{m.address}}</a></p>\\n\\t\\t\\t\\t\\t\\t\\t<p *ngFor=\\\"let n of digInfo.ns\\\">NS: {{n}}</p>\\n\\t\\t\\t\\t\\t\\t\\t<p *ngFor=\\\"let t of digInfo.txt\\\">TXT: {{t}}</p>\\n\\t\\t\\t\\t\\t\\t\\t<p *ngFor=\\\"let t of digInfo.mail\\\">{{t.name}}: {{t.value}}</p>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t</div>\\t\\n\\n\\t\\t\\t</div>\\n\\n    </modal-body>\\n\\n\\t\\t<modal-footer>\\n\\t\\t\\t<div class=\\\"button-bar\\\">\\n\\t\\t\\t\\t<button *ngIf=\\\"show == 'r53'\\\" class=\\\"btn btn-primary dropdown-toggle\\\" data-toggle=\\\"dropdown\\\">Lägg till post</button>\\n\\t\\t\\t\\t<ul class=\\\"dropdown-menu\\\" role=\\\"menu\\\">\\n\\t\\t\\t\\t\\t<li><a (click)=\\\"addNewResourceRecordSet()\\\">Standard</a></li>\\n\\t\\t\\t\\t\\t<li><a (click)=\\\"addOffice365Records()\\\">Poster för Office 365</a></li>\\n\\t\\t\\t\\t</ul>\\n\\t\\t\\t\\t<button class=\\\"btn btn-info\\\" (click)=\\\"exportZoneInfo()\\\" *ngIf=\\\"show == 'r53'\\\"><i class=\\\"fa fa-arrow-left\\\"></i> Exportera</button>\\n\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-warning\\\" (click)=\\\"closeModal()\\\">Stäng</button>\\n\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-danger\\\" (click)=\\\"confirmDeleteModal.open()\\\" *ngIf=\\\"show == 'settings' || show == 'guide'\\\">Ta bort</button>\\n\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-info\\\" (click)=\\\"authModal.open()\\\" *ngIf=\\\"show == 'settings' && nameISPInfo\\\">AUTH-kod</button>\\t\\t\\t\\t\\n\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-primary\\\" (click)=\\\"saveDomain()\\\" *ngIf=\\\"show == 'settings' || show == 'guide' || show == 'subdomains'\\\">Spara</button>\\n\\t\\t\\t</div>\\n    </modal-footer>\\n</modal>\\n\\n<modal #zoneFileModal>\\n    <modal-header [show-close]=\\\"true\\\">\\n        <h4 class=\\\"modal-title\\\">Zonfil</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<pre (click)=\\\"selectZoneFile()\\\" #zoneFileSourceElement>{{zoneFileSource}}</pre>\\n    </modal-body>\\n\\t\\t<modal-footer>\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-warning\\\" (click)=\\\"zoneFileModal.dismiss()\\\">Stäng</button>\\n\\t\\t</modal-footer>\\n</modal>\\n\\n<modal #confirmDeleteModal>\\n    <modal-header [show-close]=\\\"true\\\">\\n        <h4 class=\\\"modal-title\\\">Ta bort domän</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<p *ngIf=\\\"!isDeleting && !deleteError\\\">Vill du verkligen ta bort domänen? Detta går inte att ångra.</p>\\n\\t\\t\\t<p *ngIf=\\\"!isDeleting && !deleteError\\\"><label><input type=\\\"checkbox\\\" [(ngModel)]=\\\"forceDelete\\\" value=\\\"true\\\"> Tvingad, tar bort zonen och e-postkonton.</label></p>\\t\\t\\t\\n\\t\\t\\t<p *ngIf=\\\"deleteError\\\">Kunde inte ta bort domän: {{deleteError}}</p>\\n\\t\\t\\t<div class=\\\"form-group center\\\" [ngClass]=\\\"{'hidden' : !isDeleting}\\\">\\n\\t\\t\\t\\t\\t<p><i class=\\\"fa fa-circle-o-notch fa-spin fa-3x fa-fw\\\"></i></p>\\n\\t\\t\\t\\t\\t<p>Tar bort domän ...</p>\\n\\t\\t\\t</div>\\n    </modal-body>\\n\\t\\t<modal-footer>\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-warning\\\" (click)=\\\"confirmDeleteModal.dismiss()\\\" [disabled]=\\\"isDeleting\\\">Avbryt</button>\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-primary\\\" (click)=\\\"deleteDomain()\\\" [disabled]=\\\"isDeleting\\\">Ta bort</button>\\n\\t\\t</modal-footer>\\n</modal>\\n\\n<modal #waitModal>\\n    <modal-header [show-close]=\\\"true\\\">\\n        <h4 class=\\\"modal-title\\\">Vänta</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t\\t<p>\\n\\t\\t\\t\\t\\t<i class=\\\"fa fa-circle-o-notch fa-spin fa-3x fa-fw\\\"></i><br />\\n\\t\\t\\t\\t\\tvänta, sparar ...\\n\\t\\t\\t\\t</p>\\n\\t\\t\\t</div>\\n    </modal-body>\\n</modal>\\n\\n<modal #errorModal>\\n    <modal-header [show-close]=\\\"true\\\">\\n        <h4 class=\\\"modal-title\\\">Fel</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t\\t<p>\\n\\t\\t\\t\\t\\t{{errorMessage}}\\n\\t\\t\\t\\t</p>\\n\\t\\t\\t</div>\\n    </modal-body>\\n\\t\\t<modal-footer>\\n\\t\\t\\t<button class=\\\"btn btn-default\\\" (click)=\\\"errorModal.close()\\\">Stäng</button>\\n\\t\\t</modal-footer>\\n</modal>\\n\\n<modal #editModal>\\n    <modal-header [show-close]=\\\"true\\\">\\n        <h4 class=\\\"modal-title\\\">Uppdatera</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"editedValue\\\" /> \\n\\t\\t\\t</div>\\n    </modal-body>\\n\\t\\t<modal-footer>\\n\\t\\t\\t<button class=\\\"btn btn-danger\\\" (click)=\\\"editModal.close()\\\">Avbryt</button>\\n\\t\\t\\t<button class=\\\"btn btn-success\\\" (click)=\\\"editedResourceRecord.Value = editedValue;editModal.close()\\\">OK</button>\\n\\t\\t</modal-footer>\\n</modal>\\n\\n<modal #editAliasModal>\\n    <modal-header [show-close]=\\\"true\\\">\\n        <h4 class=\\\"modal-title\\\">Uppdatera alias</h4>\\n    </modal-header>\\n    <modal-body *ngIf=\\\"editedResourceRecordSet\\\">\\n\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t<label>DNSName</label>\\n\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"editedAlias.DNSName\\\" /> \\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t<label>ZoneId</label>\\n\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"editedAlias.HostedZoneId\\\" /> \\n\\t\\t\\t</div>\\n    </modal-body>\\n\\t\\t<modal-footer>\\n\\t\\t\\t<button class=\\\"btn btn-danger\\\" (click)=\\\"editAliasModal.close()\\\">Avbryt</button>\\n\\t\\t\\t<button class=\\\"btn btn-success\\\" (click)=\\\"editedResourceRecordSet.AliasTarget = editedAlias;editAliasModal.close()\\\">OK</button>\\n\\t\\t</modal-footer>\\n</modal>\\n\\n<modal #zoneWarning>\\n    <modal-header [show-close]=\\\"true\\\">\\n        <h4 class=\\\"modal-title\\\">Ändra DNS Hosting</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t\\tDenna domän har en zon i AWS Route 53. Om du byter till en extern DNS måste du ta bort zonen i R53 för att inte den skall ta upp resurser.\\n\\t\\t\\t</div>\\n    </modal-body>\\n\\t\\t<modal-footer>\\n\\t\\t\\t<button class=\\\"btn btn-danger\\\" (click)=\\\"zoneWarning.close()\\\">Avbryt</button>\\n\\t\\t\\t<button class=\\\"btn btn-success\\\" (click)=\\\"setHosting('external', true, true); zoneWarning.close();\\\">Ta bort zonen</button>\\n\\t\\t\\t<button class=\\\"btn btn-warning\\\" (click)=\\\"setHosting('external', true); zoneWarning.close();\\\">Jag gör det sen</button>\\n\\t\\t</modal-footer>\\n</modal>\\n\\n<modal #authModal>\\n    <modal-header [show-close]=\\\"true\\\">\\n        <h4 class=\\\"modal-title\\\">Skapa AUTH / EPP</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"center\\\" *ngIf=\\\"fetchingAuthCode\\\">\\n\\t\\t\\t\\t<i class=\\\"fa fa-spin fa-2x fa-circle-o-notch\\\"></i>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"center\\\" *ngIf=\\\"!fetchingAuthCode && !authCode\\\">\\n\\t\\t\\t\\t<button class=\\\"btn btn-primary\\\" (click)=\\\"generateAuthCode()\\\">Generera AUTH-kod</button>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"form-group\\\" *ngIf=\\\"authCode\\\">\\n\\t\\t\\t\\t<input class=\\\"form-control\\\" readonly [(ngModel)]=\\\"authCode\\\" />\\n\\t\\t\\t</div>\\n    </modal-body>\\n\\t\\t<modal-footer>\\n\\t\\t\\t<button class=\\\"btn btn-danger\\\" (click)=\\\"authModal.close()\\\">Stäng</button>\\n\\t\\t</modal-footer>\\n</modal>\\n\\n<modal #transferDoneModal>\\n    <modal-header [show-close]=\\\"true\\\">\\n        <h4 class=\\\"modal-title\\\">Transfer klar</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t\\tDomänen har nu flyttats till NameISP. Namnserverbyte krävs för att vi skall kunna administrera domänen. Vill du göra detta nu eller vill du skapa en aktivitet för det?\\n\\t\\t\\t</div>\\n    </modal-body>\\n\\t\\t<modal-footer>\\n\\t\\t\\t<button class=\\\"btn btn-success\\\" (click)=\\\"showNameServerTab()\\\">Gör det nu</button>\\n\\t\\t\\t<button class=\\\"btn btn-warning\\\" (click)=\\\"createActivityForNameserverChange()\\\">Skapa aktivitet</button>\\n\\t\\t</modal-footer>\\n</modal>\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/components/templates/domaininfo.html\n// module id = 1001\n// module chunks = 0","module.exports = \"  \\n<modal #whoisModal>\\n    <modal-header [show-close]=\\\"true\\\">\\n        <h4 class=\\\"modal-title\\\">Whois</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"whois.domain\\\" (keyup)=\\\"reloadWhois()\\\" placeholder=\\\"domännamn.se\\\"/>\\n\\t\\t  </div>\\n\\t\\t\\t<div class=\\\"center\\\" *ngIf=\\\"loadingWhois\\\">\\n\\t\\t\\t\\t<i class=\\\"fa fa-circle-o-notch fa-spin fa-2x fa-fw\\\"></i>\\n\\t\\t\\t</div>\\n\\t\\t\\t<pre style=\\\"height:500px;overflow:auto;\\\" *ngIf=\\\"!loadingWhois && whois.data != ''\\\">{{whois.data}}</pre>\\n    </modal-body>\\n\\t\\t<modal-footer>\\n        <button type=\\\"button\\\" class=\\\"btn btn-primary\\\" data-dismiss=\\\"modal\\\" (click)=\\\"whoisModal.dismiss()\\\">Stäng</button>\\n    </modal-footer>\\n</modal>\\n\\n<account-info-modal #accountInfoModal></account-info-modal>\\n\\n<div class=\\\"support-content\\\">\\n\\n\\t<div class=\\\"row\\\">\\n\\n\\t\\t<nav class=\\\"navbar navbar-light bg-faded\\\">\\n\\t\\t\\t\\n      <button type=\\\"button\\\" class=\\\"btn btn-primary\\\" routerLinke=\\\"/domains/new\\\">Lägg till domän</button>\\n\\n      <button type=\\\"button\\\" class=\\\"btn btn-primary\\\" (click)=\\\"showWhois()\\\">Whois</button>\\n\\n\\t\\t\\t<button class=\\\"btn activity-count\\\">Visar {{domains.length}} av {{totalDomains}} domäner</button>\\n\\t\\t\\t\\n\\t\\t\\t<div class=\\\"btn-group\\\" role=\\\"group\\\" aria-label=\\\"Basic example\\\">\\n\\t\\t\\t  <button *ngFor=\\\"let btn of filterButtons\\\" (click)=\\\"toggleFilterButton(btn, true)\\\" type=\\\"button\\\" class=\\\"btn\\\" [ngClass]=\\\"{'btn-primary' : !btn.checked, 'btn-success' : btn.checked}\\\">{{btn.name}}</button>\\n\\t\\t\\t</div>\\n\\n\\t\\t\\t<button (click)=\\\"showMailServerInfo = !showMailServerInfo\\\" type=\\\"button\\\" class=\\\"btn\\\" [ngClass]=\\\"{'btn-primary' : !showMailServerInfo, 'btn-success' : showMailServerInfo}\\\">MX-Info</button>\\n\\n\\t\\t  <form class=\\\"form-inline pull-xs-right m-l-1\\\">\\n\\t      <button (click)=\\\"reload()\\\" type=\\\"button\\\" class=\\\"btn btn-primary\\\"><i class=\\\"fa fa-refresh\\\" [ngClass]=\\\"{'fa-circle-o-notch fa-spin fa-f' : loading}\\\"></i> Uppdatera</button>\\n\\t\\t  </form>\\n\\t\\t  \\n\\t\\t  <form class=\\\"form-inline pull-xs-right\\\">\\n\\t\\t\\t\\t\\t<form autocomplete=\\\"off\\\" style=\\\"float:left;margin-right: 10px;\\\"><input name=\\\"apa\\\" class=\\\"form-control\\\" type=\\\"text\\\" (keyup)=\\\"search()\\\" [(ngModel)]=\\\"filter.domain\\\" [ngModelOptions]=\\\"{standalone: true}\\\" placeholder=\\\"Sök\\\" #searchFilter></form>\\n\\t\\t  </form>\\n\\n\\n\\t\\t  \\n\\t\\t</nav>\\n\\n\\t</div>\\n\\n  <div class=\\\"support-pane-master row full-height-fill full-width-fill p48\\\">\\n\\t\\t\\n\\t\\t<div class=\\\"support-list\\\"\\n\\t\\t            infinite-scroll\\n\\t\\t            [infiniteScrollDistance]=\\\"2\\\"\\n\\t\\t            [infiniteScrollThrottle]=\\\"500\\\"\\n\\t\\t            (scrolled)=\\\"onScroll()\\\"\\n\\t\\t            [scrollWindow]=\\\"false\\\">\\n\\t\\t\\t\\n      <table class=\\\"table table-sm\\\">\\n\\t\\t\\t  <thead >\\n\\t\\t\\t    <tr>\\n\\t\\t\\t\\t    <th class=\\\"issue-check\\\">\\n\\t\\t\\t\\t\\t\\t\\t  <i class=\\\"fa fa-check-square-o\\\" (click)=\\\"setAllSelected()\\\"></i>\\n\\t\\t\\t\\t    </th>\\n\\t\\t\\t\\t\\t\\t<th>Domännamn</th>\\n\\t\\t\\t\\t\\t\\t<th>Expires</th>\\n\\t\\t\\t\\t\\t\\t<th>Autoförnyelse</th>\\n\\t\\t\\t\\t\\t\\t<th></th>\\t\\n\\t\\t\\t\\t\\t\\t<th>Företag</th>\\t\\n            <th>Konto</th>\\n            <th>Kontostatus</th>\\n            <th nowrap>Ab. löper ut</th>\\n            <th>Mail</th>\\n\\t\\t \\t\\t\\t\\t<th nowrap=\\\"nowrap\\\">Domänstatus</th>\\n            <th></th>\\n\\t\\t \\t\\t\\t\\t<th nowrap=\\\"nowrap\\\"></th>\\n\\t\\t\\t    </tr>\\n\\t\\t\\t  </thead>\\n\\t\\t\\t  <tbody [ngClass]=\\\"{'hidden' : loading || domains.length > 0}\\\">\\n\\t\\t\\t\\t  <tr>\\n\\t\\t\\t\\t\\t  <td colspan=\\\"12\\\" align=\\\"center\\\">\\n\\t\\t\\t\\t\\t\\t  Det finns inga domäner att visa.\\n\\t\\t\\t\\t\\t  </td>\\n\\t\\t\\t\\t  </tr>\\n\\t\\t\\t  </tbody>\\n\\t\\t\\t  <tbody *ngFor=\\\"let d of domains\\\">\\n          <tr [ngClass]=\\\"{'warning' : (d.nameISPInfo && d.nameISPInfo.autorenew == '1' && (d.statusId == 6 || d.statusId == 7)) || (d.nameISPInfo && d.nameISPInfo.autorenew != '1' && (d.statusId == 4))}\\\">\\n            <td class=\\\"vert-align\\\" (click)=\\\"d.selected = !d.selected; toggleDomainToolbar()\\\" scope=\\\"row\\\" nowrap=\\\"nowrap\\\" class=\\\"issue-check\\\">\\n\\t\\t\\t\\t\\t\\t  <i class=\\\"fa\\\" [ngClass]=\\\"{'fa-square-o' : !d.selected, 'fa-check-square-o' : d.selected}\\\"></i>\\n\\t\\t\\t\\t\\t  </td>\\n            <td nowrap class=\\\"vert-align\\\"><a href=\\\"javascript:;\\\" routerLink=\\\"/domains/{{listType}}/{{d.domain}}\\\">{{d.domain}}</a></td>\\n\\t\\t\\t\\t\\t\\t<td nowrap class=\\\"vert-align\\\">\\n\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"d.nameISPInfo\\\">{{d.nameISPInfo.expires}}</span>\\n\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t<td nowrap class=\\\"vert-align\\\">\\n\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"d.nameISPInfo && d.nameISPInfo.autorenew == '1'\\\">På</span>\\n\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"d.nameISPInfo && d.nameISPInfo.autorenew != '1'\\\">Av</span>\\n\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t<td nowrap class=\\\"vert-align\\\"><a href=\\\"http://{{d.domain}}\\\" target=\\\"_blank\\\"><small>Besök <i class=\\\"fa fa-external-link\\\"></i></small></a></td>\\n            <td width=\\\"60%\\\" class=\\\"capitalize vert-align\\\" scope=\\\"row\\\" nowrap=\\\"nowrap\\\" class=\\\"vert-align\\\">\\n              <a routerLink=\\\"/companies/{{d.companyId}}/domains/domains:{{listType}}\\\" *ngIf=\\\"d.company\\\">\\n                {{d.company.name|truncate:[30]|lowercase}}\\n              </a>\\n            </td>\\n            <td nowrap class=\\\"vert-align\\\" *ngIf=\\\"d.company\\\">\\n\\t\\t\\t\\t\\t\\t\\t<a href=\\\"javascript:;\\\" (click)=\\\"showAccountInfo(d.accountId)\\\" [innerHTML]=\\\"(d.company ? ('#' + d.company.prefix) : '-')\\\"></a>\\n            </td>\\n\\t\\t\\t\\t\\t\\t<td nowrap class=\\\"vert-align\\\" *ngIf=\\\"d.company\\\">\\n\\t\\t\\t\\t\\t\\t\\t{{_accountStatuses[d.company.accountStatusId]}}\\n            </td>\\n\\t\\t\\t\\t\\t\\t<td nowrap class=\\\"vert-align\\\" *ngIf=\\\"d.company\\\">\\n\\t\\t\\t\\t\\t\\t\\t<date-formatter *ngIf=\\\"d.company.s_status == 0\\\" [date]=\\\"d.company.s_renewalDate\\\" [time]=\\\"false\\\"></date-formatter>\\n\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"d.company.s_status == 1\\\">-</span>\\n            </td>\\n            <td nowrap class=\\\"vert-align\\\">\\n              <span *ngIf=\\\"d.mail == 'remote'\\\">Extern</span>\\n              <span *ngIf=\\\"d.mail == 'local'\\\">Hemsida Direkt</span>\\n            </td>\\n            <td nowrap class=\\\"vert-align\\\">{{domainStatus[d.statusId]}}</td>\\n\\t\\t\\t\\t\\t\\t<td nowrap class=\\\"vert-align\\\">\\n\\t\\t\\t\\t\\t\\t\\t<date-formatter [date]=\\\"d.updateDate\\\" [time]=\\\"false\\\"></date-formatter>\\n\\t\\t\\t\\t\\t\\t</td>\\n            <td class=\\\"vert-align\\\"><mxinfo *ngIf=\\\"d.mail == 'local' && showMailServerInfo\\\" [domain]=\\\"d.domain\\\"></mxinfo></td>\\n          </tr>\\n\\t\\t\\t  </tbody>\\n        <tbody>\\n\\t\\t\\t\\t\\t<tr [ngClass]=\\\"{'hidden' : !loading}\\\">\\n\\t\\t\\t\\t\\t\\t<td colspan=\\\"12\\\" align=\\\"center\\\">\\n\\t\\t\\t\\t\\t\\t\\t<i class=\\\"fa fa-circle-o-notch fa-spin fa-2x fa-fw\\\"></i>\\n\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t  </tbody>\\n      </table>\\n\\n\\t\\t</div>\\n\\n  </div>\\n\\n\\t<div class=\\\"support-pane-details full-height-fill full-width-fill row\\\" [ngClass]=\\\"{'collapsed' : !showDomainInfo}\\\">\\n\\t\\t<div class=\\\"col-md-12 p-relative height-100\\\">\\n\\t\\t\\t<div class=\\\"support-navbar\\\">\\n\\t\\t\\t\\t<a href=\\\"javascript:;\\\" (click)=\\\"closeSelectedDomain()\\\"><i class=\\\"fa fa-close\\\"></i></a>\\n\\t\\t\\t\\t<div class=\\\"support-nav-buttons\\\">\\n\\t\\t\\t\\t\\t<a href=\\\"javascript:;\\\" (click)=\\\"prevDomain()\\\"><i class=\\\"fa fa-chevron-left\\\"></i></a>\\n\\t\\t\\t\\t\\t<a href=\\\"javascript:;\\\" (click)=\\\"nextDomain()\\\"><i class=\\\"fa fa-chevron-right\\\"></i></a>\\t\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t\\t<router-outlet></router-outlet>\\n\\t\\t</div>\\t\\n\\t</div>\\n\\n</div>\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/components/templates/domainlist.html\n// module id = 1002\n// module chunks = 0","module.exports = \"\\n<modal #aliasWarningModal>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Ta bort alias</h4>\\n    </modal-header>\\n    <modal-body *ngIf=\\\"editedAlias\\\">\\n\\t\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t\\tVill du verkligen ta bort aliaset {{editedAlias.email}}? Detta går inte att göra ogjort, någonsin.\\t\\n\\t\\t\\t</div>\\t\\t\\t\\t\\n    </modal-body>\\n\\t\\t<modal-footer>\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-default\\\"  (click)=\\\"closeAliasModal('cancel')\\\">Avbryt</button>\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-danger\\\" (click)=\\\"closeAliasModal('delete')\\\">Ja, ta bort</button>\\n    </modal-footer>\\n</modal>\\n\\n<modal #forwardWarningModal>\\n\\t<modal-header [show-close]=\\\"false\\\">\\n\\t\\t\\t<h4 class=\\\"modal-title\\\">Ta bort forward</h4>\\n\\t</modal-header>\\n\\t<modal-body *ngIf=\\\"editedForward\\\">\\n\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\tVill du verkligen ta bort forward {{editedForward.email}}? Detta går inte att göra ogjort, någonsin.\\t\\n\\t\\t</div>\\t\\t\\t\\t\\n\\t</modal-body>\\n\\t<modal-footer>\\n\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-default\\\"  (click)=\\\"closeForwardModal('cancel')\\\">Avbryt</button>\\n\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-danger\\\" (click)=\\\"closeForwardModal('delete')\\\">Ja, ta bort</button>\\n\\t</modal-footer>\\n</modal>\\n\\n<modal #aliasModal>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\" *ngIf=\\\"editedAlias && !editedAlias.isNew\\\">Redigera alias</h4>\\n\\t\\t\\t\\t<h4 class=\\\"modal-title\\\" *ngIf=\\\"editedAlias && editedAlias.isNew\\\">Nytt alias</h4>\\n    </modal-header>\\n    <modal-body *ngIf=\\\"editedAlias\\\">\\n\\t\\t\\t<div class=\\\"row form-group\\\">\\n\\t\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"editedAlias.newEmail\\\" placeholder=\\\"Adress\\\" />\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\t\\t\\t\\t\\t<button class=\\\"btn btn-primary btn-block dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t<span class=\\\"sa-only\\\">{{editedAlias.newEmailDomain}}</span>\\n\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t\\t<a *ngFor=\\\"let d of company.domain\\\" class=\\\"dropdown-item\\\" (click)=\\\"editedAlias.newEmailDomain = d.domain; editedAlias.domainId = d.domainId\\\">{{d.domain}}</a>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\t\\n\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"editedAlias.dest\\\" placeholder=\\\"Destination\\\" />\\n\\t\\t\\t</div>\\t\\n    </modal-body>\\n\\t\\t<modal-footer>\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-default\\\"  (click)=\\\"closeAliasModal('cancel-all')\\\">Avbryt</button>\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-danger\\\" *ngIf=\\\"editedAlias && !editedAlias.isNew\\\" (click)=\\\"closeAliasModal('confirm-delete')\\\">Ta bort</button>\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-primary\\\" (click)=\\\"closeAliasModal('save')\\\">Spara</button>\\n    </modal-footer>\\n</modal>\\n\\n<modal #forwardModal>\\n\\t<modal-header [show-close]=\\\"false\\\">\\n\\t\\t\\t<h4 class=\\\"modal-title\\\" *ngIf=\\\"editedForward && !editedForward.isNew\\\">Redigera forward</h4>\\n\\t\\t\\t<h4 class=\\\"modal-title\\\" *ngIf=\\\"editedForward && editedForward.isNew\\\">Nytt forward</h4>\\n\\t</modal-header>\\n\\t<modal-body *ngIf=\\\"editedForward\\\">\\n\\t\\t<div class=\\\"row form-group\\\">\\n\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"editedForward.newEmail\\\" placeholder=\\\"Adress\\\" />\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\t\\t\\t\\t<button class=\\\"btn btn-primary btn-block dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t<span class=\\\"sa-only\\\">{{editedForward.newEmailDomain}}</span>\\n\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t<a *ngFor=\\\"let d of company.domain\\\" class=\\\"dropdown-item\\\" (click)=\\\"editedForward.newEmailDomain = d.domain; editedForward.domainId = d.domainId\\\">{{d.domain}}</a>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t</div>\\t\\n\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"editedForward.dest\\\" placeholder=\\\"Destination\\\" />\\n\\t\\t</div>\\t\\n\\t</modal-body>\\n\\t<modal-footer>\\n\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-default\\\"  (click)=\\\"closeForwardModal('cancel-all')\\\">Avbryt</button>\\n\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-danger\\\" *ngIf=\\\"editedForward && !editedForward.isNew\\\" (click)=\\\"closeForwardModal('confirm-delete')\\\">Ta bort</button>\\n\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-primary\\\" (click)=\\\"closeForwardModal('save')\\\">Spara</button>\\n\\t</modal-footer>\\n</modal>\\n\\n<modal #emailLogsModal>\\n\\t<modal-header [show-close]=\\\"false\\\">\\n\\t\\t<h4 class=\\\"modal-title\\\">Loggar för {{logsForEmailAddress}}</h4>\\n\\t</modal-header>\\n\\t<modal-body>\\n\\t\\t<div class=\\\"btn-group\\\" role=\\\"group\\\" aria-label=\\\"Basic example\\\">\\n\\t\\t\\t<button (click)=\\\"logName = 'exim'\\\" type=\\\"button\\\" class=\\\"btn\\\" [ngClass]=\\\"{'btn-primary' : logName != 'exim', 'btn-success' : logName == 'exim'}\\\">Exim logs</button>\\n\\t\\t\\t<button (click)=\\\"logName = 'mail'\\\" type=\\\"button\\\" class=\\\"btn\\\" [ngClass]=\\\"{'btn-primary' : logName != 'mail', 'btn-success' : logName == 'mail'}\\\">Mail logs</button>\\n\\t\\t</div>\\n\\t\\t<div style=\\\"height: 100%;overflow: auto; padding: 20px 0px;\\\">\\n\\t\\t\\t<div *ngIf=\\\"logName === 'exim'\\\">\\n\\t\\t\\t\\t<div *ngIf=\\\"eximLogEntriesLoading\\\">laddar ...</div>\\n\\t\\t\\t\\t<div *ngIf=\\\"!eximLogEntriesLoading && eximLogEntries.length == 0\\\">Hittade inget i exim loggen</div>\\n\\t\\t\\t\\t<table *ngIf=\\\"!eximLogEntriesLoading\\\" style=\\\"width:100%\\\" class=\\\"oddeven\\\">\\n\\t\\t\\t\\t\\t<tr *ngFor=\\\"let e of eximLogEntries; let rowIndex = index\\\">\\n\\t\\t\\t\\t\\t\\t<td style=\\\"padding: 5px 5px\\\" nowrap><date-formatter [date]=\\\"e.timestamp / 1000\\\"></date-formatter></td>\\n\\t\\t\\t\\t\\t\\t<td style=\\\"padding: 5px 5px\\\">{{e.message}}</td>\\n\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t</table>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div *ngIf=\\\"logName === 'mail'\\\">\\n\\t\\t\\t\\t<div *ngIf=\\\"mailLogEntriesLoading\\\">laddar ...</div>\\n\\t\\t\\t\\t<div *ngIf=\\\"!mailLogEntriesLoading && mailLogEntries.length == 0\\\">Hittade inget i mail loggen</div>\\n\\t\\t\\t\\t<table *ngIf=\\\"!mailLogEntriesLoading\\\" style=\\\"width:100%\\\" class=\\\"oddeven\\\">\\n\\t\\t\\t\\t\\t<tr *ngFor=\\\"let e of mailLogEntries; let rowIndex = index\\\">\\n\\t\\t\\t\\t\\t\\t<td style=\\\"padding: 5px 5px\\\" nowrap><date-formatter [date]=\\\"e.timestamp / 1000\\\"></date-formatter></td>\\n\\t\\t\\t\\t\\t\\t<td style=\\\"padding: 5px 5px\\\">{{e.message}}</td>\\n\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t</table>\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n\\t</modal-body>\\n\\t<modal-footer>\\n\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-default\\\"  (click)=\\\"emailLogsModal.close()\\\">Stäng</button>\\n\\t</modal-footer>\\n</modal>\\n\\n<modal #emailModal>\\n    <modal-header [show-close]=\\\"false\\\">\\n\\t\\t\\t\\t<h4 class=\\\"modal-title\\\" *ngIf=\\\"editedEmailAccount && !editedEmailAccount.isNew\\\">Redigera e-postkonto</h4>\\n\\t\\t\\t\\t<h4 class=\\\"modal-title\\\" *ngIf=\\\"editedEmailAccount && editedEmailAccount.isNew\\\">Nytt e-postkonto</h4>\\n    </modal-header>\\n    <modal-body *ngIf=\\\"editedEmailAccount\\\">\\n\\t\\t\\t<div class=\\\"row form-group\\\">\\n\\t\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\t\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [readonly]=\\\"!editedEmailAccount.isNew\\\" [(ngModel)]=\\\"editedEmailAccount.newEmail\\\" placeholder=\\\"Adress\\\" />\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\t\\t\\t\\t\\t<button class=\\\"btn btn-primary btn-block dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t<span class=\\\"sa-only\\\">{{editedEmailAccount.newEmailDomain}}</span>\\n\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t\\t<a *ngFor=\\\"let d of company.domain\\\" class=\\\"dropdown-item\\\" (click)=\\\"editedEmailAccount.newEmailDomain = d.domain; editedEmailAccount.domainId = d.domainId\\\">{{d.domain}}</a>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\t\\n\\t\\t\\t<div class=\\\"row form-group\\\">\\n\\t\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\t\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"editedEmailAccount.password\\\" placeholder=\\\"Lösenord\\\" />\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\t\\t\\t\\t\\t<button class=\\\"btn btn-block btn-primary\\\" (click)=\\\"generatePassword()\\\">Generera lösenord</button>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"row form-group\\\">\\n\\t\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\t\\t\\t\\t\\t<label>Spamfilternivå</label>\\n\\t\\t\\t\\t\\t<button class=\\\"btn btn-block btn-primary dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"editedEmailAccount.requiredScore != 99 && editedEmailAccount.requiredScore\\\">Nivå {{editedEmailAccount.requiredScore}}</span>\\n\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"editedEmailAccount.requiredScore == 99 || !editedEmailAccount.requiredScore\\\">Inaktiverad</span>\\n\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"editedEmailAccount.requiredScore = 99\\\">Inaktiverad</a>\\n\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"editedEmailAccount.requiredScore = 1\\\">Nivå 1 (aggresivt)</a>\\n\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"editedEmailAccount.requiredScore = 2\\\">Nivå 2</a>\\n\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"editedEmailAccount.requiredScore = 3\\\">Nivå 3</a>\\n\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"editedEmailAccount.requiredScore = 4\\\">Nivå 4</a>\\n\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"editedEmailAccount.requiredScore = 5\\\">Nivå 5 (medel)</a>\\n\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"editedEmailAccount.requiredScore = 6\\\">Nivå 6</a>\\n\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"editedEmailAccount.requiredScore = 7\\\">Nivå 7</a>\\n\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"editedEmailAccount.requiredScore = 8\\\">Nivå 8</a>\\n\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"editedEmailAccount.requiredScore = 9\\\">Nivå 9 (snällt)</a>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\t\\t\\t\\t\\t<label>Quota</label>\\n\\t\\t\\t\\t\\t<button class=\\\"btn btn-block btn-primary dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"editedEmailAccount.quota != 0\\\">{{editedEmailAccount.quota / 1024 / 1024 | number:'1.1-1'}}Mb</span>\\n\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"editedEmailAccount.quota == 0\\\">Obegränsad</span>\\n\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"editedEmailAccount.quota = 0\\\">Obegränsad</a>\\n\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"editedEmailAccount.quota = 524288000\\\">500Mb</a>\\n\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"editedEmailAccount.quota = 1048576000\\\">1000Mb</a>\\n\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"editedEmailAccount.quota = 1572864000\\\">1500Mb</a>\\n\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"editedEmailAccount.quota = 2097152000\\\">2000Mb</a>\\n\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"editedEmailAccount.quota = 2621440000\\\">2500Mb</a>\\n\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"editedEmailAccount.quota = 3145728000\\\">3000Mb</a>\\n\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"editedEmailAccount.quota = 3670016000\\\">3500Mb</a>\\n\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"editedEmailAccount.quota = 4194304000\\\">4000Mb</a>\\n\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"editedEmailAccount.quota = 4718592000\\\">4500Mb</a>\\n\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"editedEmailAccount.quota = 5242880000\\\">5000Mb</a>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n    </modal-body>\\n\\t\\t<modal-footer *ngIf=\\\"editedEmailAccount\\\">\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-default\\\" (click)=\\\"closeEmailModal('cancel-all')\\\">Avbryt</button>\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-danger\\\" *ngIf=\\\"editedEmailAccount && !editedEmailAccount.isNew\\\" (click)=\\\"closeEmailModal('confirm-delete')\\\">Ta bort</button>\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-primary\\\" (click)=\\\"closeEmailModal('save')\\\">Spara</button>\\n    </modal-footer>\\n</modal>\\n\\n<modal #emailWarningModal>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Ta bort konto</h4>\\n    </modal-header>\\n    <modal-body *ngIf=\\\"editedEmailAccount\\\">\\n\\t\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t\\tVill du verkligen ta bort epostkontot  {{editedEmailAccount.email}}? Detta går inte att göra ogjort, någonsin.\\t\\n\\t\\t\\t</div>\\t\\t\\t\\t\\n    </modal-body>\\n\\t\\t<modal-footer>\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-default\\\"  (click)=\\\"closeEmailModal('cancel')\\\">Avbryt</button>\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-danger\\\" (click)=\\\"closeEmailModal('delete')\\\">Ja, ta bort</button>\\n    </modal-footer>\\n</modal>\\n\\n\\n<modal #loadingModal>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Vänta</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t\\t<i class=\\\"fa fa-circle-o-notch fa-spin fa-3x fa-fw\\\"></i>\\n\\t\\t\\t</div>\\t\\n    </modal-body>\\n</modal>\\n\\n<modal #errorModal>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Fel</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t\\t{{loadingError}}\\n\\t\\t\\t</div>\\t\\n    </modal-body>\\n\\t\\t<modal-footer>\\n\\t\\t\\t<button  type=\\\"button\\\" class=\\\"btn btn-default\\\"  (click)=\\\"closeErrorDialog()\\\">Stäng</button>\\n\\t\\t</modal-footer>\\n</modal>\\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/components/templates/emailutils.html\n// module id = 1003\n// module chunks = 0","module.exports = \"<modal #uploadModal>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Ladda upp fil</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"center\\\" *ngIf=\\\"uploader\\\">\\n\\t\\t\\t\\t<div ng2FileDrop\\n                 [ngClass]=\\\"{'nv-file-over': hasBaseDropZoneOver}\\\"\\n                 (fileOver)=\\\"fileOverBase($event)\\\"\\n                 [uploader]=\\\"uploader\\\"\\n                 class=\\\"well my-drop-zone\\\">\\n                Släpp filer du vill ladda upp här\\n            </div>\\n\\t\\t\\t</div>\\t\\t\\t\\n\\t\\t\\t<div class=\\\"row\\\" *ngIf=\\\"hasUploadErrors\\\">\\n\\t\\t\\t\\t<div class=\\\"col-md-12\\\" style=\\\"margin-bottom: 40px\\\">\\n\\t\\t\\t\\t\\t<h4>Något gick väldigt fel.</h4>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t\\t<div class=\\\"col-md-12\\\" style=\\\"margin-bottom: 40px\\\" *ngIf=\\\"uploader\\\">\\n\\t\\t\\t\\t\\t<table class=\\\"table\\\">\\n\\t\\t\\t\\t\\t\\t\\t<thead>\\n\\t\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<th width=\\\"50%\\\">Namn</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<th>Storlek</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<th>Progress</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<th>Status</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<th>&nbsp;</th>\\n\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t\\t</thead>\\n\\t\\t\\t\\t\\t\\t\\t<tbody>\\n\\t\\t\\t\\t\\t\\t\\t<tr *ngIf=\\\"!uploader || !uploader.queue || uploader.queue.length == 0\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<td colspan=\\\"5\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tLägg till filer att ladda upp genom att dra och släppa.\\n\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t\\t<tr *ngFor=\\\"let item of uploader.queue\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<td><strong>{{ item?.file?.name | truncate:[20] }}</strong></td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<td *ngIf=\\\"uploader.isHTML5\\\" nowrap>{{ item?.file?.size/1024/1024 | number:'.2' }} MB</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<td *ngIf=\\\"uploader.isHTML5\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"progress\\\" style=\\\"margin-bottom: 0;\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"progress-bar\\\" role=\\\"progressbar\\\" [ngStyle]=\\\"{ 'width': item.progress + '%' }\\\"></div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<td class=\\\"text-center\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"item.isSuccess\\\"><i class=\\\"glyphicon glyphicon-ok\\\"></i></span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"item.isCancel\\\"><i class=\\\"glyphicon glyphicon-ban-circle\\\"></i></span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"item.isError\\\"><i class=\\\"glyphicon glyphicon-remove\\\"></i></span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-success btn-xs\\\"\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t(click)=\\\"item.upload()\\\" [disabled]=\\\"item.isReady || item.isUploading || item.isSuccess\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"glyphicon glyphicon-upload\\\"></span> Ladda upp\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-warning btn-xs\\\"\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t(click)=\\\"item.cancel()\\\" [disabled]=\\\"!item.isUploading\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"glyphicon glyphicon-ban-circle\\\"></span> Avbryt\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-danger btn-xs\\\"\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t(click)=\\\"item.remove()\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"glyphicon glyphicon-trash\\\"></span> Ta bort\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t\\t</tbody>\\n\\t\\t\\t\\t\\t</table>\\n\\t\\t\\t\\t\\t<div>\\n\\t\\t\\t\\t\\t\\t\\t<div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"progress\\\" style=\\\"\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"progress-bar\\\" role=\\\"progressbar\\\" [ngStyle]=\\\"{ 'width': uploader.progress + '%' }\\\"></div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t<button *ngIf=\\\"multiple\\\" type=\\\"button\\\" class=\\\"btn btn-success btn-s\\\"\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t(click)=\\\"uploader.uploadAll()\\\" [disabled]=\\\"!uploader.getNotUploadedItems().length\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"glyphicon glyphicon-upload\\\"></span> Ladda upp alla\\n\\t\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t\\t<button *ngIf=\\\"multiple\\\" type=\\\"button\\\" class=\\\"btn btn-warning btn-s\\\"\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t(click)=\\\"uploader.cancelAll()\\\" [disabled]=\\\"!uploader.isUploading\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"glyphicon glyphicon-ban-circle\\\"></span> Avbryt alla\\n\\t\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t\\t<button *ngIf=\\\"multiple\\\" type=\\\"button\\\" class=\\\"btn btn-danger btn-s\\\"\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t(click)=\\\"uploader.clearQueue()\\\" [disabled]=\\\"!uploader.queue.length\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"glyphicon glyphicon-trash\\\"></span> Ta bort alla\\n\\t\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n      </div>\\n    </modal-body>\\n\\t\\t<modal-footer>\\n        <button type=\\\"button\\\" class=\\\"btn btn-default\\\" data-dismiss=\\\"modal\\\" >Stäng</button>\\n    </modal-footer>\\n</modal>\\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/components/templates/fileupload.html\n// module id = 1004\n// module chunks = 0","module.exports = \"<!--<div id=\\\"header\\\" (click)=\\\"clearSearch()\\\">\\n  Owe v2\\n\\t<div class=\\\"form-group pull-right\\\">\\n\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"phrase\\\" (keyup)=\\\"search($event)\\\" placeholder=\\\"Snabbsök\\\"/>\\n\\t</div>\\n</div>\\n<div class=\\\"searchresult-container\\\" [ngClass]=\\\"{'hidden' : searchResult.length == 0 && !searching && !noSearchResultsFound}\\\">\\n  <div class=\\\"searchresult\\\" *ngFor=\\\"let r of searchResult\\\">\\n    <div><i class=\\\"fa fa-{{r.icon}}\\\"></i> <a href=\\\"javascript:;\\\" (click)=\\\"openSearchResult(r)\\\" [innerHTML]=\\\"r.text|truncate:[55]\\\"></a><span (click)=\\\"openSearchResultSuffix(r)\\\" [innerHTML]=\\\"r.suffix\\\"></span></div>\\n </div>\\n <div class=\\\"searchresult center\\\" [ngClass]=\\\"{'hidden' : !searching}\\\"><i class=\\\"fa fa-circle-o-notch fa-spin fa-2x fa-fw\\\"></i><p><small>{{searchInfo}}</small></p></div>\\n <div class=\\\"searchresult center\\\" [ngClass]=\\\"{'hidden' : !noSearchResultsFound}\\\">oh no, inga träffar )=</div>\\n</div>\\n--> \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/components/templates/header.html\n// module id = 1005\n// module chunks = 0","module.exports = \"<iframe class=\\\"history-html-source\\\" #source></iframe>\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/components/templates/htmlsource.html\n// module id = 1006\n// module chunks = 0","module.exports = \"\\n<modal #infoModal size=\\\"lg\\\">\\n    <modal-header [show-close]=\\\"true\\\">\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<iframe [ngClass]=\\\"{'hidden' : !invoicePreviewUrl || loading || error}\\\" src=\\\"about:blank\\\" #pdfpreview type=\\\"application/pdf;base64\\\" style=\\\"width: 100%; height: 100%\\\"></iframe>\\n\\t\\t\\t<div *ngIf=\\\"loading\\\" style=\\\"height: 100%; display: flex; justify-content: center; align-items: center;\\\">\\n\\t\\t\\t\\t<i class=\\\"fa fa-spin fa-spinner fa-3x\\\"></i>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div *ngIf=\\\"error\\\">{{ error }}</div>\\n    </modal-body>\\n\\t\\t<modal-footer>\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-primary\\\"  (click)=\\\"infoModal.dismiss()\\\">Stäng</button>\\n\\t  </modal-footer>\\n</modal>\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/components/templates/invoiceinfo.html\n// module id = 1007\n// module chunks = 0","module.exports = \"\\n\\n<modal #previewInvoiceModal size=\\\"lg\\\" >\\n\\t<modal-header [show-close]=\\\"false\\\">\\n\\t\\t\\t<h4 class=\\\"modal-title\\\">Förhandsvisa</h4>\\n\\t</modal-header>\\n\\t<modal-body >\\t\\t\\t\\n\\t\\t<iframe [ngClass]=\\\"{'hidden' : !invoicePreviewUrl}\\\" src=\\\"about:blank\\\" #pdfpreview type=\\\"application/pdf;base64\\\" style=\\\"width: 100%; height: 100%\\\"></iframe>\\n\\t\\t<div *ngIf=\\\"!invoicePreviewUrl\\\" style=\\\"height: 100%; display: flex; justify-content: center; align-items: center;\\\">\\n\\t\\t\\t<i class=\\\"fa fa-spin fa-spinner fa-3x\\\"></i>\\n\\t\\t</div>\\n\\t</modal-body>\\n\\t<modal-footer>\\n\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-primary\\\"  (click)=\\\"previewInvoiceModal.close()\\\">Stäng</button>\\n\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-success\\\"  (click)=\\\"downloadPdf(previewedInvoice)\\\">Ladda hem</button>\\n\\t</modal-footer>\\n</modal>\\n\\n<modal #confirmCreateInvoiceModal>\\n\\t<modal-header [show-close]=\\\"false\\\">\\n\\t\\t\\t<h4 class=\\\"modal-title\\\">Skapa fakturor</h4>\\n\\t</modal-header>\\n\\t<modal-body>\\t\\t\\t\\n\\t\\t<div class=\\\"btn-group\\\">\\n\\t\\t\\t<label>Skapa i följande system</label><br />\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-info dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"invoiceSystem == 'svea'\\\">Svea Ekonomi</span>\\n\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"invoiceSystem == 'fortnox'\\\">Fortnox</span>\\n\\t\\t\\t</button>\\n\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"invoiceSystem = 'svea'\\\">Svea Ekonomi</a>\\n\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"invoiceSystem = 'fortnox'\\\">Fortnox</a>\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n\\t</modal-body>\\n\\t<modal-footer>\\n\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-default\\\"  (click)=\\\"confirmCreateInvoiceModal.close()\\\">Avbryt</button>\\n\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-success\\\" (click)=\\\"confirmCreateSystemInvoices()\\\">Skapa</button>\\n\\t</modal-footer>\\n</modal>\\n\\n<modal #editEfakturaModal>\\n\\t<modal-header [show-close]=\\\"false\\\">\\n\\t\\t\\t<h4 class=\\\"modal-title\\\">E-faktura för {{editedInvoice.name}}</h4>\\n\\t</modal-header>\\n\\t<modal-body>\\t\\t\\t\\n\\t\\t<div class=\\\"btn-group\\\">\\n\\t\\t\\t<label>Använd följande e-postadress:</label>\\n\\t\\t</div>\\n\\t\\t<div class=\\\"row form-group\\\">\\n\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t<input name=\\\"efaktura\\\" class=\\\"form-control\\\" type=\\\"text\\\" [(ngModel)]=\\\"editedInvoice.efaktura\\\" placeholder=\\\"E-postadress\\\" type=\\\"email\\\">\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n\\t</modal-body>\\n\\t<modal-footer>\\n\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-default\\\"  (click)=\\\"editEfakturaModal.close()\\\">Avbryt</button>\\n\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-success\\\" (click)=\\\"confirmEditEfaktura()\\\">Spara</button>\\n\\t</modal-footer>\\n</modal>\\n\\n<modal #confirmUpdateInvoiceEmailModal>\\n\\t<modal-header [show-close]=\\\"false\\\">\\n\\t\\t\\t<h4 class=\\\"modal-title\\\">E-faktura för {{editedInvoice.name}}</h4>\\n\\t</modal-header>\\n\\t<modal-body>\\t\\t\\t\\n\\t\\t<div class=\\\"btn-group\\\">\\n\\t\\t\\t<label>Använd alltid denna e-postadress för efakturor för detta företag ({{editedInvoice.name}}?</label>\\n\\t\\t</div>\\n\\t</modal-body>\\n\\t<modal-footer>\\n\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-primary\\\"  (click)=\\\"confirmUpdateInvoiceEmail()\\\">Nej, bara den här gången</button>\\n\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-success\\\" (click)=\\\"confirmAlwaysUseInvoiceEmail()\\\">Ja, använd alltid</button>\\n\\t</modal-footer>\\n</modal>\\n\\n<modal #confirmDeleteModal>\\n\\t<modal-header [show-close]=\\\"false\\\">\\n\\t\\t\\t<h4 class=\\\"modal-title\\\">Makulera fakturor</h4>\\n\\t</modal-header>\\n\\t<modal-body>\\n\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\tVill du verkligen makulerade markerade ({{numSelectedInvoices}}st) fakturor?\\n\\t\\t</div>\\t\\t\\t\\t\\n\\t</modal-body>\\n\\t<modal-footer>\\n\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-default\\\"  (click)=\\\"confirmDeleteModal.close()\\\">Avbryt</button>\\n\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-danger\\\" (click)=\\\"deleteSelectedInvoices()\\\">Ja, makulera</button>\\n\\t</modal-footer>\\n</modal>\\n\\n<modal #confirmCreditModal>\\n\\t<modal-header [show-close]=\\\"false\\\">\\n\\t\\t\\t<h4 class=\\\"modal-title\\\">Kreditera fakturor</h4>\\n\\t</modal-header>\\n\\t<modal-body>\\n\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\tVill du verkligen kreditera markerade ({{numSelectedInvoices}}st) fakturor?\\n\\t\\t</div>\\t\\t\\t\\t\\n\\t</modal-body>\\n\\t<modal-footer>\\n\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-default\\\"  (click)=\\\"confirmCreditModal.close()\\\">Avbryt</button>\\n\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-danger\\\" (click)=\\\"creditSelectedInvoices()\\\">Ja, kreditera</button>\\n\\t</modal-footer>\\n</modal>\\n\\n<modal #confirmRollbackModal>\\n\\t<modal-header [show-close]=\\\"false\\\">\\n\\t\\t\\t<h4 class=\\\"modal-title\\\">Ångra fakturor</h4>\\n\\t</modal-header>\\n\\t<modal-body>\\n\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\tVill du verkligen rulla tillbaka markerade ({{numSelectedInvoices}}st) fakturor?\\n\\t\\t</div>\\t\\t\\t\\t\\n\\t</modal-body>\\n\\t<modal-footer>\\n\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-default\\\"  (click)=\\\"confirmRollbackModal.close()\\\">Avbryt</button>\\n\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-danger\\\" (click)=\\\"rollbackSelectedInvoices()\\\">Ja, rulla tillbaka</button>\\n\\t</modal-footer>\\n</modal>\\n\\n<modal #confirmMarkAsSentModal>\\n\\t<modal-header [show-close]=\\\"false\\\">\\n\\t\\t\\t<h4 class=\\\"modal-title\\\">Ångra fakturor</h4>\\n\\t</modal-header>\\n\\t<modal-body>\\n\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\tVill du markera ({{numSelectedInvoices}}st) fakturor som skickade?\\n\\t\\t</div>\\t\\t\\t\\t\\n\\t</modal-body>\\n\\t<modal-footer>\\n\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-default\\\"  (click)=\\\"confirmMarkAsSentModal.close()\\\">Avbryt</button>\\n\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-danger\\\" (click)=\\\"markSelectedInvoicesAsSent()\\\">Ja, markera</button>\\n\\t</modal-footer>\\n</modal>\\n\\n<modal #confirmSendModal>\\n\\t<modal-header [show-close]=\\\"false\\\">\\n\\t\\t\\t<h4 class=\\\"modal-title\\\">Skicka fakturor</h4>\\n\\t</modal-header>\\n\\t<modal-body>\\n\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\tVill du skicka ({{numSelectedInvoices}}st) fakturor?\\n\\t\\t</div>\\t\\t\\t\\t\\n\\t</modal-body>\\n\\t<modal-footer>\\n\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-default\\\"  (click)=\\\"confirmSendModal.close()\\\">Avbryt</button>\\n\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-danger\\\" (click)=\\\"sendSelectedInvoices()\\\">Ja, skicka</button>\\n\\t</modal-footer>\\n</modal>\\n\\n<modal #loadingModal>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Vänta</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t\\t<i class=\\\"fa fa-circle-o-notch fa-spin fa-3x fa-fw\\\"></i>\\n\\t\\t\\t</div>\\t\\n    </modal-body>\\n</modal>\\n\\n<orderinfo #orderInfo></orderinfo>\\n<invoiceinfo #invoiceInfo></invoiceinfo>\\n\\n\\n<div class=\\\"support-content\\\">\\n\\n\\t<div class=\\\"row\\\">\\n\\t\\t<nav class=\\\"navbar navbar-light bg-faded\\\">\\n\\t\\t\\t\\n\\t\\t\\t<button class=\\\"btn activity-count\\\">Visar {{invoices.length}} av {{totalInvoices}} fakturor</button>\\n\\t\\t\\t\\n\\t\\t\\t<div class=\\\"btn-group\\\" role=\\\"group\\\" aria-label=\\\"Basic example\\\">\\n\\t\\t\\t  <button *ngFor=\\\"let btn of filterButtons\\\" (click)=\\\"toggleFilterButton(btn)\\\" type=\\\"button\\\" class=\\\"btn\\\" [ngClass]=\\\"{'btn-primary' : !btn.checked, 'btn-success' : btn.checked}\\\">{{btn.name}}</button>\\n\\t\\t\\t</div>\\n\\t\\t\\t\\n\\t\\t  <form class=\\\"form-inline pull-xs-right m-l-1\\\">\\n\\t      <button (click)=\\\"reload()\\\" type=\\\"button\\\" class=\\\"btn btn-primary\\\"><i class=\\\"fa fa-refresh\\\" [ngClass]=\\\"{'fa-circle-o-notch fa-spin fa-f' : refreshing}\\\"></i> Uppdatera</button>\\n\\t\\t  </form>\\n\\t\\t  \\n\\t\\t  <div class=\\\"form-inline pull-xs-right\\\">\\n\\t\\t\\t\\t\\t<form autocomplete=\\\"off\\\" style=\\\"float:left;margin-right: 10px;\\\"><input name=\\\"apa\\\" class=\\\"form-control\\\" type=\\\"text\\\" (keyup)=\\\"searchInvoices()\\\" [(ngModel)]=\\\"filter.phrase\\\" placeholder=\\\"Sök\\\" #searchFilter></form>\\n\\t\\t  </div>\\n\\t\\t  \\n\\t\\t</nav>\\n\\t</div>\\n\\t\\n\\t<div class=\\\"support-pane-master row full-height-fill full-width-fill p48\\\" [ngClass]=\\\"{'collapsed' : showInvoiceInfo}\\\">\\n\\t\\t\\n\\t\\t<div class=\\\"support-list-toolbar nomobile\\\" [ngClass]=\\\"{'open' : hasSelectedInvoices && !confirmCreateInvoiceModal.visible && !loadingModal.visible && !previewInvoiceModal.visible && !confirmCreditModal.visible && !confirmDeleteModal.visible && !confirmRollbackModal.visible && !confirmMarkAsSentModal.visible && !confirmSendModal.visible}\\\">\\t\\t\\t\\n\\t\\t\\t<a *ngIf=\\\"filterButtons[0].checked\\\" title=\\\"Kreditera markerade\\\" (click)=\\\"showCreditModal()\\\"><i class=\\\"fa fa-arrow-left\\\"></i></a>\\t\\t\\t\\n\\t\\t\\t<a *ngIf=\\\"filterButtons[2].checked\\\" title=\\\"Skapa markerade\\\" (click)=\\\"createSelected()\\\"><i class=\\\"fa fa-file-text\\\"></i></a>\\t\\t\\t\\n\\t\\t\\t<a *ngIf=\\\"filterButtons[2].checked\\\" title=\\\"Makulera markerade\\\" (click)=\\\"showDeleteModal()\\\"><i class=\\\"fa fa-trash\\\"></i></a>\\t\\t\\t\\n\\t\\t\\t<a *ngIf=\\\"filterButtons[1].checked\\\" title=\\\"Skicka markerade\\\" (click)=\\\"showConfirmSendModal()\\\"><i class=\\\"fa fa-send\\\"></i></a>\\t\\t\\t\\n\\t\\t\\t<a *ngIf=\\\"filterButtons[1].checked\\\" title=\\\"Markera som skickade\\\" (click)=\\\"showMarkAsSentModal()\\\"><i class=\\\"fa fa-check\\\"></i></a>\\t\\t\\t\\n\\t\\t\\t<a *ngIf=\\\"filterButtons[1].checked\\\" title=\\\"Ta bort markerade\\\" (click)=\\\"showRollbackModal()\\\"><i class=\\\"fa fa-undo\\\"></i></a>\\t\\t\\t\\n\\t\\t\\t<a class=\\\"counter\\\">( {{numSelectedInvoices}} )</a>\\n\\t\\t</div>\\n\\n\\t\\t<div class=\\\"activity-list\\\"\\n\\t\\t            infinite-scroll\\n\\t\\t            [infiniteScrollDistance]=\\\"2\\\"\\n\\t\\t            [infiniteScrollThrottle]=\\\"500\\\"\\n\\t\\t            (scrolled)=\\\"onScroll()\\\"\\n\\t\\t            [scrollWindow]=\\\"false\\\">\\n\\t\\t\\n\\t\\t\\t<table class=\\\"table table-sm\\\">\\n\\n\\t\\t\\t  <thead >\\n\\t\\t\\t    <tr>\\n\\t\\t\\t\\t    <th class=\\\"issue-check\\\">\\n\\t\\t\\t\\t\\t\\t\\t  <i class=\\\"fa fa-check-square-o\\\" (click)=\\\"setAllSelected()\\\"></i>\\n\\t\\t\\t\\t    </th>\\n\\t\\t\\t\\t\\t\\t<th *ngIf=\\\"!filterButtons[2].checked\\\" nowrap=\\\"nowrap\\\">System</th>\\n\\t\\t\\t      <th width=\\\"10%\\\" nowrap=\\\"nowrap\\\">FakturaNr</th>\\n\\t\\t\\t      <th width=\\\"10%\\\" nowrap=\\\"nowrap\\\">OrderNr</th>\\n\\t\\t\\t\\t\\t\\t<th nowrap=\\\"nowrap\\\">Företag</th>\\n\\t\\t\\t\\t\\t\\t<th nowrap=\\\"nowrap\\\">Fakturadatum</th>\\n\\t\\t\\t\\t\\t\\t<th *ngIf=\\\"filterButtons[0].checked\\\" nowrap=\\\"nowrap\\\" >Skickad</th>\\n\\t\\t\\t\\t\\t\\t<th nowrap=\\\"nowrap\\\">Förfallodatum</th>\\n\\t\\t\\t\\t\\t\\t<th nowrap=\\\"nowrap\\\">Ordertyp</th>\\n\\t\\t\\t\\t\\t\\t<th nowrap=\\\"nowrap\\\" *ngIf=\\\"filterButtons[2].checked\\\">E-faktura</th>\\n\\t\\t\\t\\t\\t\\t<th nowrap=\\\"nowrap\\\" *ngIf=\\\"!filterButtons[2].checked\\\">&nbsp;</th>\\n\\t\\t\\t\\t\\t\\t<th></th>\\n\\t\\t\\t\\t\\t\\t<th></th>\\n\\t\\t\\t    </tr>\\n\\t\\t\\t  </thead>\\n\\n\\t\\t\\t\\t<tbody *ngFor=\\\"let i of invoices\\\">\\n\\t\\t\\t\\t  <tr>\\n\\t\\t\\t\\t\\t  <td class=\\\"vert-align\\\" (click)=\\\"i.selected = !i.selected; toggleInvoicesToolbar()\\\" scope=\\\"row\\\" nowrap=\\\"nowrap\\\" class=\\\"issue-check\\\">\\n\\t\\t\\t\\t\\t\\t  <i class=\\\"fa\\\" [ngClass]=\\\"{'fa-square-o' : !i.selected, 'fa-check-square-o' : i.selected}\\\"></i>\\n\\t\\t\\t\\t\\t  </td>\\n\\t\\t\\t\\t\\t\\t<td *ngIf=\\\"!filterButtons[2].checked\\\" nowrap=\\\"nowrap\\\" class=\\\"vert-align\\\">\\n\\t\\t\\t\\t\\t\\t\\t<button *ngIf=\\\"!i.fortnoxFileDate && !i.sveaFileDate\\\" class=\\\"btn btn-xs\\\">Ej skapad</button>\\n\\t\\t\\t\\t\\t\\t\\t<button *ngIf=\\\"i.sveaFileDate\\\" class=\\\"btn btn-xs btn-primary\\\">Svea</button>\\n\\t\\t\\t\\t\\t\\t\\t<button *ngIf=\\\"i.fortnoxFileDate\\\" class=\\\"btn btn-xs btn-success\\\">Fortnox</button>\\n\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t<td *ngIf=\\\"!filterButtons[2].checked\\\" nowrap=\\\"nowrap\\\" class=\\\"vert-align\\\"><a href=\\\"javascript:;\\\" (click)=\\\"openInvoice(i.invoiceId)\\\">{{i.invoiceNr}}</a></td>\\n\\t\\t\\t\\t\\t\\t<td *ngIf=\\\"filterButtons[2].checked\\\" nowrap=\\\"nowrap\\\" class=\\\"vert-align\\\">{{i.invoiceNr}}</td>\\n\\t\\t\\t\\t\\t\\t<td nowrap=\\\"nowrap\\\" class=\\\"vert-align\\\"><a href=\\\"javascript:;\\\" (click)=\\\"openOrder(i)\\\">{{i.orderNr}}</a></td>\\n\\t\\t\\t\\t\\t\\t<td width=\\\"100%\\\" nowrap=\\\"nowrap\\\" class=\\\"vert-align\\\"><a href=\\\"javascript:;\\\" routerLink=\\\"/companies/{{i.companyId}}/invoices/invoices\\\">{{i.name}}</a></td>\\n\\t\\t\\t\\t\\t\\t<td nowrap=\\\"nowrap\\\"><date-formatter [date]=\\\"i.invoiceDate || i.createdDate\\\" [time]=\\\"false\\\"></date-formatter></td>\\n\\t\\t\\t\\t\\t\\t<td *ngIf=\\\"filterButtons[0].checked\\\" nowrap=\\\"nowrap\\\"><date-formatter [date]=\\\"i.sveaFileDate || i.fortnoxSentDate\\\" [time]=\\\"true\\\"></date-formatter></td>\\n\\t\\t\\t\\t\\t\\t<td nowrap=\\\"nowrap\\\"><date-formatter [date]=\\\"i.dueDate\\\" [time]=\\\"false\\\"></date-formatter></td>\\n\\t\\t\\t\\t\\t\\t<td nowrap=\\\"nowrap\\\" *ngIf=\\\"i.orderType == 0\\\">Nyförsäljning</td>\\n\\t\\t\\t\\t\\t\\t<td nowrap=\\\"nowrap\\\" *ngIf=\\\"i.orderType == 1\\\">Uppförsäljning</td>\\n\\t\\t\\t\\t\\t\\t<td nowrap=\\\"nowrap\\\" *ngIf=\\\"i.orderType == 2\\\">Förnyelse</td>\\n\\t\\t\\t\\t\\t\\t<td nowrap=\\\"nowrap\\\" *ngIf=\\\"filterButtons[2].checked && i.efaktura\\\" class=\\\"vert-align\\\"><a href=\\\"javascript:;\\\" (click)=\\\"updateEfaktura(i)\\\">{{i.efaktura}}</a></td>\\n\\t\\t\\t\\t\\t\\t<td nowrap=\\\"nowrap\\\" *ngIf=\\\"filterButtons[2].checked && !i.efaktura\\\" class=\\\"vert-align\\\"><a href=\\\"javascript:;\\\" (click)=\\\"updateEfaktura(i)\\\">Nej, lägg till</a></td>\\n\\t\\t\\t\\t\\t\\t<td nowrap=\\\"nowrap\\\" class=\\\"vert-align\\\">\\n\\t\\t\\t\\t\\t\\t\\t<a href=\\\"javascript:;\\\" (click)=\\\"refreshPaymentStatus(i.invoiceId)\\\"><i class=\\\"fa fa-refresh\\\"></i></a>\\n\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t<td nowrap=\\\"nowrap\\\" class=\\\"vert-align\\\">\\n\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"i.refreshing\\\" style=\\\"text-align: center;\\\"><i class=\\\"fa fa-spinner fa-spin\\\"></i></span>\\n\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"!i.refreshing\\\">{{i.invoiceStatusName}}</span>\\n\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t  </tr>\\n\\t\\t\\t\\t</tbody>\\n\\n        <tbody>\\n\\t\\t\\t\\t\\t<tr [ngClass]=\\\"{'hidden' : !loading}\\\">\\n\\t\\t\\t\\t\\t\\t<td colspan=\\\"10\\\" align=\\\"center\\\">\\n\\t\\t\\t\\t\\t\\t\\t<i class=\\\"fa fa-circle-o-notch fa-spin fa-2x fa-fw\\\"></i>\\n\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t  </tbody>\\n        \\n    </table>\\n\\n\\t\\t</div>\\n\\n  </div>\\n\\n</div>\\n\\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/components/templates/invoicelist.html\n// module id = 1008\n// module chunks = 0","module.exports = \"<div class=\\\"row\\\">\\n  <div class=\\\"col-md-12\\\">\\n    <div style=\\\"display: block;\\\">\\n    <canvas baseChart width=\\\"400\\\"\\n                [datasets]=\\\"lineChartData\\\"\\n                [labels]=\\\"lineChartLabels\\\"\\n                [options]=\\\"lineChartOptions\\\"\\n                [colors]=\\\"lineChartColors\\\"\\n                [legend]=\\\"lineChartLegend\\\"\\n                [chartType]=\\\"lineChartType\\\"\\n                (chartHover)=\\\"chartHovered($event)\\\"\\n                (chartClick)=\\\"chartClicked($event)\\\"></canvas>\\n    </div>\\n  </div>\\n\\t<!--\\n  <div class=\\\"col-md-6\\\" style=\\\"margin-bottom: 10px\\\">\\n    <table class=\\\"table table-responsive table-condensed\\\">\\n      <tr>\\n        <th *ngFor=\\\"let label of lineChartLabels\\\">{{label}}</th>\\n      </tr>\\n      <tr *ngFor=\\\"let d of lineChartData\\\">\\n        <td *ngFor=\\\"let label of lineChartLabels; let j=index\\\">{{d && d.data[j]}}</td>\\n      </tr>\\n    </table>\\n    <button (click)=\\\"randomize()\\\">CLICK</button>\\n  </div>\\n\\t-->\\n</div>\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/components/templates/line-chart.html\n// module id = 1009\n// module chunks = 0","module.exports = \"\\n<modal #composerModal>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Nytt mail</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"row form-group\\\">\\n\\t\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\t\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"subject\\\" placeholder=\\\"Ämne\\\"/>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\t\\t\\t\\t\\t<div class=\\\"btn-group full-width\\\">\\n\\t\\t\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-info dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\">Använd kontakt</span>\\n\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" *ngFor=\\\"let c of availableContacts\\\" (click)=\\\"toEmail = c.email\\\">{{c.name}} <{{c.email}}></a>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"row form-group\\\">\\n\\t\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\t\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"toEmail\\\" placeholder=\\\"Mottagare\\\"/>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\t\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"ccEmail\\\" placeholder=\\\"Kopia till\\\"/>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"row form-group\\\">\\n\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-info dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\">Infoga standardsvar</span>\\n\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"createStandardReply()\\\">Nytt standardsvar</a>\\n\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" *ngIf=\\\"standardReplies.length > 0\\\" (click)=\\\"editStandardReply()\\\">Redigera standardsvar</a>\\n\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-divider\\\"></div>\\n\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" *ngFor=\\\"let r of standardReplies\\\" (click)=\\\"setStandardReply(r)\\\">{{r.Name}}</a>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"row form-group\\\">\\n\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t<input type=\\\"file\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"fileName\\\" (change)=\\\"handleAddedFile($event, this)\\\" />\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"row form-group\\\" *ngIf=\\\"replyAttachments.length > 0\\\">\\n\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t<span *ngFor=\\\"let a of replyAttachments; let myIndex = index\\\"><span *ngIf=\\\"myIndex > 0\\\"> | </span><a href=\\\"javascript:;\\\" (click)=\\\"replyAttachments.splice(myIndex, 1)\\\"><i class=\\\"fa fa-trash\\\"></i></a> {{a.fileName}} {{a.length / 1024 | number : '2.1-2'}}kB</span>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div #myEditor>\\n\\t\\t\\t\\n\\t\\t\\t</div>\\n    </modal-body>\\n\\t\\t<modal-footer>\\n\\t\\t\\t<button class=\\\"btn btn-danger\\\" (click)=\\\"closeModal('cancel')\\\">Avbryt</button>\\n\\t\\t\\t<button class=\\\"btn btn-success\\\" (click)=\\\"closeModal('send')\\\">Skicka</button>\\n\\t\\t</modal-footer>\\n</modal>\\n\\n<modal #createReplyModal>\\n\\t<modal-header [show-close]=\\\"false\\\">\\n\\t\\t\\t<h4 class=\\\"modal-title\\\">Skapa / Ändra standardsvar</h4>\\n\\t</modal-header>\\n\\t<modal-body>\\n\\t\\t<div class=\\\"form-group row\\\" *ngIf=\\\"editReplies\\\">\\n\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t<select class=\\\"form-control\\\" (change)=\\\"setEditedReply($event)\\\">\\n\\t\\t\\t\\t\\t<option value=\\\"{{myIndex}}\\\" *ngFor=\\\"let r of standardReplies; let myIndex = index\\\">{{r.Name}}</option>\\n\\t\\t\\t\\t</select>\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n\\t\\t<div class=\\\"form-group row\\\">\\n\\t\\t\\t<div class=\\\"col-md-10\\\">\\n\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"standardReply.Name\\\">\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"col-md-2\\\">\\n\\t\\t\\t\\t<div class=\\\"btn-group full-width\\\">\\n\\t\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn full-width btn-warning\\\" (click)=\\\"clearReply()\\\">Rensa</button>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t<textarea class=\\\"form-control\\\" [(ngModel)]=\\\"standardReply.Text\\\" rows=\\\"20\\\"></textarea>\\n\\t\\t</div>\\n\\t</modal-body>\\n\\t<modal-footer>\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-danger\\\" (click)=\\\"createReplyModal.dismiss()\\\">Avbryt</button>\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-success\\\" (click)=\\\"saveStandardReply();\\\">Spara</button>\\n\\t</modal-footer>\\n</modal>\\n\\n<modal #addFileModal>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Lägger till fil</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t\\t<p>\\n\\t\\t\\t\\t\\t<i class=\\\"fa fa-circle-o-notch fa-spin fa-3x fa-fw\\\"></i>\\n\\t\\t\\t\\t</p>\\n\\t\\t\\t\\t<p>\\n\\t\\t\\t\\t\\tVänta lite, lägger till fil ...\\n\\t\\t\\t\\t</p>\\n\\t\\t\\t</div>\\t\\n    </modal-body>\\n</modal>\\n\\n<modal #addFileErrorModal>\\n\\t<modal-header>\\n\\t\\t\\t<h4 class=\\\"modal-title\\\">Kunde inte lägga till fil</h4>\\n\\t</modal-header>\\n\\t<modal-body>\\n\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t<p>\\n\\t\\t\\t\\t{{ addFileError }}\\n\\t\\t\\t</p>\\n\\t\\t</div>\\t\\n\\t</modal-body>\\n\\t<modal-footer>\\n\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-danger\\\" (click)=\\\"closeAddFileErrorModal();\\\">OK</button>\\n\\t</modal-footer>\\n</modal>\\n\\n<modal #sendingModal>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Vänta</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t\\t<p>\\n\\t\\t\\t\\t\\t<i class=\\\"fa fa-circle-o-notch fa-spin fa-3x fa-fw\\\"></i>\\n\\t\\t\\t\\t</p>\\n\\t\\t\\t\\t<p>\\n\\t\\t\\t\\t\\tVänta lite, skickar ...\\n\\t\\t\\t\\t</p>\\n\\t\\t\\t</div>\\t\\n    </modal-body>\\n</modal>\\n\\n<modal #errorModal>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Fel</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t\\t<p>\\n\\t\\t\\t\\t\\t{{errorMessage}}\\n\\t\\t\\t\\t</p>\\n\\t\\t\\t</div>\\t\\n    </modal-body>\\n\\t\\t<modal-footer>\\n\\t\\t\\t<button class=\\\"btn btn-danger\\\" (click)=\\\"errorModal.close()\\\">Stäng</button>\\n\\t\\t</modal-footer>\\n</modal>\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/components/templates/mailcomposer.html\n// module id = 1010\n// module chunks = 0","module.exports = \"<i *ngIf=\\\"showWarning\\\" title=\\\"{{mxTitle}}\\\" class=\\\"fa fa-exclamation-triangle warning\\\"></i>\\n<i *ngIf=\\\"showLookupError\\\" title=\\\"Kunde inte göra ett uppslag, fel namnserver?\\\" class=\\\"fa fa-exclamation warning\\\"></i>\\n<i *ngIf=\\\"loading\\\" class=\\\"fa fa-circle-o-notch fa-spin fa-fw\\\"></i>\\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/components/templates/mxinfo.html\n// module id = 1011\n// module chunks = 0","module.exports = \"\\n<modal #infoModal>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Order</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div *ngIf=\\\"order\\\">\\n\\t\\t\\t\\t<div class=\\\"form-group row\\\">\\n\\t\\t\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\t\\t\\t\\t\\t\\t<h4>\\n\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"order.orderType == 0\\\">Ny order</span>\\n\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"order.orderType == 1\\\">Uppförsäljning</span>\\n\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"order.orderType == 2\\\">Förnyelse</span>\\n\\t\\t\\t\\t\\t\\t</h4>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t<div class=\\\"form-group row\\\">\\n\\t\\t\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\t\\t\\t\\t\\t\\t<label>Kontakt:</label><br />\\n\\t\\t\\t\\t\\t\\t<input class=\\\"form-control\\\" readonly=\\\"true\\\" [(ngModel)]=\\\"order.contactName\\\" />\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\t\\t\\t\\t\\t\\t<label>Säljare:</label><br />\\n\\t\\t\\t\\t\\t\\t<input class=\\\"form-control\\\" readonly=\\\"true\\\" read [(ngModel)]=\\\"order.sellerName\\\" />\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t<div class=\\\"form-group row\\\">\\n\\t\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t\\t<table class=\\\"table\\\">\\n\\t\\t\\t\\t\\t\\t\\t<thead>\\n\\t\\t\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<th>Art.nr</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<th>Artikel</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<th>Beskrivning</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<th>Antal</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<th>A-pris</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<th>Rabatt</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<th>Summa</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t\\t</thead>\\n\\t\\t\\t\\t\\t\\t\\t<tbody>\\n\\t\\t\\t\\t\\t\\t\\t\\t<tr *ngFor=\\\"let oi of order.products.items\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<td>{{oi.artNr}}</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<td>{{oi.name}}</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<td>{{oi.description}}</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<td>{{oi.quantity}}</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<td>{{oi.price}}</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<td>{{oi.discount}}</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<td>{{oi.itemsValue}}</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t\\t</tbody>\\n\\t\\t\\t\\t\\t\\t\\t<tfoot>\\n\\t\\t\\t\\t\\t\\t\\t\\t<td colspan=\\\"6\\\" align=\\\"right\\\">Totalt</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t<th>{{order.products.info[0].totalValue}}</th>\\n\\t\\t\\t\\t\\t\\t\\t</tfoot>\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t</table>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t<div class=\\\"form-group row\\\">\\n\\t\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t\\t<textarea class=\\\"form-control\\\" readonly=\\\"true\\\" [(ngModel)]=\\\"order.note\\\"></textarea>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n    </modal-body>\\n\\t\\t<modal-footer *ngIf=\\\"order\\\">\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-default\\\" (click)=\\\"close('closed')\\\">Stäng</button>\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-danger\\\" [disabled]=\\\"order.statusId == 4 || order.statusId == 3\\\" (click)=\\\"confirmCancelModal.open()\\\">Makulera</button>\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-success\\\" [disabled]=\\\"order.statusId == 2 || order.statusId == 4 || order.statusId == 3\\\" (click)=\\\"confirmConfirmModal.open()\\\">Bekräfta</button>\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-info\\\" [disabled]=\\\"order.statusId == 3\\\" (click)=\\\"openConfirmationModal()\\\">Skicka bekräftelse</button>\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-primary\\\" [disabled]=\\\"order.statusId == 3 || order.statusId == 1 || order.statusId == 4\\\" (click)=\\\"confirmCreateInvoiceModal.open()\\\">Skapa faktura</button>\\n\\t\\t</modal-footer>\\n</modal>\\n\\n<modal #confirmCreateInvoiceModal>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Skapa faktura</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"row form-group\\\">\\n\\t\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\t\\t\\t\\t\\tFakturadatum (yyyy-mm-dd):\\n\\t\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"invoiceDateStr\\\" placeholder=\\\"YYYY-mm-dd\\\"/>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\t\\t\\t\\t\\tBetalningsvillkor (dagar netto):\\n\\t\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"invoiceExpireTime\\\" placeholder=\\\"30 dagar\\\"/>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div *ngIf=\\\"activeSubscriptions && hasSubscriptionItems\\\">\\n\\t\\t\\t\\t<div class=\\\"btn-group\\\">\\n\\t\\t\\t\\t\\t<label>Koppla till befintligt abonemang</label><br />\\n\\t\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-info dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"subscription\\\">#{{subscription.prefix}} - <date-formatter [date]=\\\"subscription.createdDate\\\" [time]=\\\"false\\\"></date-formatter></span>\\n\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"!subscription\\\">Välj abonnemang</span>\\n\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" *ngFor=\\\"let s of activeSubscriptions\\\" (click)=\\\"subscription = s\\\">#{{s.prefix}} - <date-formatter [date]=\\\"s.createdDate\\\" [time]=\\\"false\\\"></date-formatter></a>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div *ngIf=\\\"!activeSubscriptions && hasSubscriptionItems\\\">\\n\\t\\t\\t\\tVill du skapa fakturan, detta kommer att skapa ett nytt abonnemang.\\n\\t\\t\\t</div>\\n\\t\\t\\t<div *ngIf=\\\"!hasSubscriptionItems\\\">\\n\\t\\t\\t\\tVill du skapa fakturan?\\n\\t\\t\\t</div>\\n    </modal-body>\\n\\t\\t<modal-footer>\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-default\\\"  (click)=\\\"confirmCreateInvoiceModal.close()\\\">Avbryt</button>\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-success\\\" (click)=\\\"createInvoice()\\\">Ja, skapa</button>\\n    </modal-footer>\\n</modal>\\n\\n<modal #confirmCancelModal>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Makulera order</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t\\tVill du verkligen makulera ordern?\\n\\t\\t\\t</div>\\t\\t\\t\\t\\n    </modal-body>\\n\\t\\t<modal-footer>\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-default\\\"  (click)=\\\"confirmCancelModal.close()\\\">Avbryt</button>\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-danger\\\" (click)=\\\"cancelOrder()\\\">Ja, makulera</button>\\n    </modal-footer>\\n</modal>\\n\\n<modal #confirmConfirmModal>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Bekräfta</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t\\tVill du verkligen bekräfta ordern?\\n\\t\\t\\t</div>\\t\\t\\t\\t\\n    </modal-body>\\n\\t\\t<modal-footer>\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-default\\\"  (click)=\\\"confirmConfirmModal.close()\\\">Avbryt</button>\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-danger\\\" (click)=\\\"confirmOrder()\\\">Ja, bekräfta</button>\\n    </modal-footer>\\n</modal>\\n\\n<modal #confirmationModal>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Skicka orderbekräftelse</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"row form-group\\\">\\n\\t\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\t\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"confirmationSubject\\\" placeholder=\\\"Ämne\\\"/>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\t\\t\\t\\t\\t<div class=\\\"btn-group full-width\\\">\\n\\t\\t\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-info dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\">Använd kontakt</span>\\n\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" *ngFor=\\\"let c of availableContacts\\\" (click)=\\\"confirmationToEmail = c.email\\\">{{c.name}} <{{c.email}}></a>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"row form-group\\\">\\n\\t\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\t\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"confirmationToEmail\\\" (ngModelChange)=\\\"rewriteMessage()\\\" placeholder=\\\"Mottagare\\\"/>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\t\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"confirmationCCEmail\\\" placeholder=\\\"Kopia till\\\"/>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div #editor class=\\\"texteditor\\\">\\n\\t\\t\\t</div>\\n    </modal-body>\\n\\t\\t<modal-footer>\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-default\\\"  (click)=\\\"closeConfirmationModal()\\\">Avbryt</button>\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-success\\\" [disabled]=\\\"confirmationToEmail == '' && confirmationCCEmail == ''\\\" (click)=\\\"sendOrderConfirmation()\\\">Skicka</button>\\n    </modal-footer>\\n</modal>\\n\\n<modal #loadingModal>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Vänta</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t\\t<i class=\\\"fa fa-circle-o-notch fa-spin fa-3x fa-fw\\\"></i>\\n\\t\\t\\t</div>\\t\\n    </modal-body>\\n</modal>\\n\\n<modal #errorModal>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Fel</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t\\t{{errorMessage}}\\n\\t\\t\\t</div>\\t\\n    </modal-body>\\n</modal>\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/components/templates/orderinfo.html\n// module id = 1012\n// module chunks = 0","module.exports = \"\\n<modal #loadingModal>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Vänta</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t\\t<i class=\\\"fa fa-circle-o-notch fa-spin fa-3x fa-fw\\\"></i>\\n\\t\\t\\t</div>\\t\\n    </modal-body>\\n</modal>\\n\\n<orderinfo #orderInfo></orderinfo>\\n\\n<div class=\\\"support-content\\\">\\n\\n\\t<div class=\\\"row\\\">\\n\\t\\t<nav class=\\\"navbar navbar-light bg-faded\\\">\\n\\t\\t\\t\\n\\t\\t\\t<button class=\\\"btn activity-count\\\">Visar {{orders.length}} av {{totalOrders}} ordrar</button>\\n\\t\\t\\t\\n\\t\\t\\t<div class=\\\"btn-group\\\" role=\\\"group\\\" aria-label=\\\"Basic example\\\">\\n\\t\\t\\t  <button *ngFor=\\\"let btn of filterButtons\\\" (click)=\\\"toggleFilterButton(btn)\\\" type=\\\"button\\\" class=\\\"btn\\\" [ngClass]=\\\"{'btn-primary' : !btn.checked, 'btn-success' : btn.checked}\\\">{{btn.name}}</button>\\n\\t\\t\\t</div>\\n\\t\\t\\t\\n\\t\\t  <form class=\\\"form-inline pull-xs-right m-l-1\\\">\\n\\t      <button (click)=\\\"reload()\\\" type=\\\"button\\\" class=\\\"btn btn-primary\\\"><i class=\\\"fa fa-refresh\\\" [ngClass]=\\\"{'fa-circle-o-notch fa-spin fa-f' : refreshing}\\\"></i> Uppdatera</button>\\n\\t\\t  </form>\\n\\t\\t  \\n\\t\\t  <div class=\\\"form-inline pull-xs-right\\\">\\n\\t\\t\\t\\t\\t<form autocomplete=\\\"off\\\" style=\\\"float:left;margin-right: 10px;\\\"><input name=\\\"apa\\\" class=\\\"form-control\\\" type=\\\"text\\\" (keyup)=\\\"searchOrders()\\\" [(ngModel)]=\\\"filter.phrase\\\" placeholder=\\\"Sök\\\" #searchFilter></form>\\n\\t\\t  </div>\\n\\t\\t  \\n\\t\\t</nav>\\n\\t</div>\\n\\t\\n\\t<div class=\\\"support-pane-master row full-height-fill full-width-fill p48\\\" [ngClass]=\\\"{'collapsed' : showOrderInfo}\\\">\\n\\t\\t\\n\\t\\t<div class=\\\"activity-list\\\"\\n\\t\\t            infinite-scroll\\n\\t\\t            [infiniteScrollDistance]=\\\"2\\\"\\n\\t\\t            [infiniteScrollThrottle]=\\\"500\\\"\\n\\t\\t            (scrolled)=\\\"onScroll()\\\"\\n\\t\\t            [scrollWindow]=\\\"false\\\">\\n\\t\\t\\n\\t\\t\\t<table class=\\\"table table-sm\\\">\\n\\n\\t\\t\\t  <thead >\\n\\t\\t\\t    <tr>\\n\\t\\t\\t\\t    <th class=\\\"issue-check\\\">\\n\\t\\t\\t\\t\\t\\t\\t  <i class=\\\"fa fa-check-square-o\\\" (click)=\\\"setAllSelected()\\\"></i>\\n\\t\\t\\t\\t    </th>\\n\\t\\t\\t      <th width=\\\"10%\\\" nowrap=\\\"nowrap\\\">Nr</th>\\n\\t\\t\\t\\t\\t\\t<th nowrap=\\\"nowrap\\\">Företag</th>\\n\\t\\t\\t\\t\\t\\t<th nowrap=\\\"nowrap\\\">Skapad</th>\\n\\t\\t\\t\\t\\t\\t<th nowrap=\\\"nowrap\\\">Status</th>\\n\\t\\t\\t    </tr>\\n\\t\\t\\t  </thead>\\n\\n\\t\\t\\t\\t<tbody *ngFor=\\\"let o of orders\\\">\\n\\t\\t\\t\\t  <tr>\\n\\t\\t\\t\\t\\t  <td class=\\\"vert-align\\\" (click)=\\\"o.selected = !o.selected; toggleOrdersToolbar()\\\" scope=\\\"row\\\" nowrap=\\\"nowrap\\\" class=\\\"issue-check\\\">\\n\\t\\t\\t\\t\\t\\t  <i class=\\\"fa\\\" [ngClass]=\\\"{'fa-square-o' : !o.selected, 'fa-check-square-o' : o.selected}\\\"></i>\\n\\t\\t\\t\\t\\t  </td>\\n\\t\\t\\t\\t\\t\\t<td nowrap=\\\"nowrap\\\" class=\\\"vert-align\\\"><a href=\\\"javascript:;\\\" (click)=\\\"openOrder(o)\\\">{{o.orderNr}}</a></td>\\n\\t\\t\\t\\t\\t\\t<td width=\\\"100%\\\" nowrap=\\\"nowrap\\\"><a href=\\\"javascript:;\\\" routerLink=\\\"/companies/{{o.companyId}}/orders/orders\\\">{{o.name}}</a></td>\\n\\t\\t\\t\\t\\t\\t<td nowrap=\\\"nowrap\\\"><date-formatter [date]=\\\"o.createdDate\\\" [time]=\\\"false\\\"></date-formatter></td>\\n\\t\\t\\t\\t\\t\\t<td nowrap=\\\"nowrap\\\"><button class=\\\"btn btn-xs\\\">{{o.statusName}}</button></td>\\n\\t\\t\\t\\t  </tr>\\n\\t\\t\\t\\t</tbody>\\n\\n        <tbody>\\n\\t\\t\\t\\t\\t<tr [ngClass]=\\\"{'hidden' : !loading}\\\">\\n\\t\\t\\t\\t\\t\\t<td colspan=\\\"9\\\" align=\\\"center\\\">\\n\\t\\t\\t\\t\\t\\t\\t<i class=\\\"fa fa-circle-o-notch fa-spin fa-2x fa-fw\\\"></i>\\n\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t  </tbody>\\n        \\n    </table>\\n\\n\\t\\t</div>\\n\\n  </div>\\n\\n</div>\\n\\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/components/templates/orderlist.html\n// module id = 1013\n// module chunks = 0","module.exports = \"<modal #infoModal>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Telefon</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div *ngIf=\\\"phone\\\">\\n\\t\\t\\t\\t<form [formGroup]=\\\"telnrForm\\\">\\n\\t\\t\\t\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-4\\\">\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<label>Typ</label><br />\\n\\t\\t\\t\\t\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-block btn-info dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngFor=\\\"let t of telnrtypes\\\" [ngClass]=\\\"{'hidden' : t.telnrTypeId != phone.telnrTypeId}\\\">{{t.name}}</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" *ngFor=\\\"let t of telnrtypes\\\" (click)=\\\"phone.telnrTypeId = t.telnrTypeId; phone.name = t.name; phone.assName = t.assName;\\\">{{t.name}}</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-4\\\">\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<label>Riktnr</label>\\n\\t\\t\\t\\t\\t\\t\\t\\t<input formControlName=\\\"areaCode\\\" class=\\\"form-control\\\" type=\\\"text\\\" placeholder=\\\"Riktnr\\\" />\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-4\\\">\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<label>Nummer</label>\\n\\t\\t\\t\\t\\t\\t\\t\\t<input formControlName=\\\"telnr\\\" class=\\\"form-control\\\" type=\\\"text\\\" placeholder=\\\"Telefonnr\\\" />\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t\\t\\t<div *ngIf=\\\"formErrors.areaCode\\\" class=\\\"alert alert-danger\\\" [innerHTML]=\\\"formErrors.areaCode\\\">\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t<div *ngIf=\\\"formErrors.telnr\\\" class=\\\"alert alert-danger\\\" [innerHTML]=\\\"formErrors.telnr\\\">\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<label>Notering</label><br />\\n\\t\\t\\t\\t\\t\\t\\t\\t<textarea formControlName=\\\"note\\\" class=\\\"form-control\\\" rows=\\\"4\\\" placeholder=\\\"Notis är frivillig\\\"></textarea>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t\\t\\t<div *ngIf=\\\"formErrors.note\\\" class=\\\"alert alert-danger\\\" [innerHTML]=\\\"formErrors.note\\\">\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</form>\\n\\t\\t\\t</div>\\n    </modal-body>\\n\\t\\t<modal-footer *ngIf=\\\"telnrForm\\\">\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-default\\\"  (click)=\\\"cancelSave()\\\">Avbryt</button>\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-danger\\\" *ngIf=\\\"phone && phone.telnrId\\\" (click)=\\\"confirmDeleteModal.open()\\\">Ta bort</button>\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-primary\\\" [disabled]=\\\"formErrors.telnr || formErrors.areaCode || formErrors.note\\\" (click)=\\\"savePhone()\\\">Spara</button>\\n\\t\\t</modal-footer>\\n</modal>\\n\\n<modal #loadingModal>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Vänta</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t\\t<i class=\\\"fa fa-circle-o-notch fa-spin fa-3x fa-fw\\\"></i>\\n\\t\\t\\t</div>\\t\\n    </modal-body>\\n</modal>\\n\\n<modal #errorModal>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Fel</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t\\t{{errorMessage}}\\n\\t\\t\\t</div>\\t\\n    </modal-body>\\n\\t\\t<modal-footer>\\n\\t\\t\\t<button  type=\\\"button\\\" class=\\\"btn btn-default\\\"  (click)=\\\"errorModal.dismiss()\\\">Stäng</button>\\n\\t\\t</modal-footer>\\n</modal>\\n\\n\\n<modal #confirmDeleteModal>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Ta bort</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t\\tVill du verkligen ta bort detta nummer? Detta val går inte att ångra.\\n\\t\\t\\t</div>\\t\\n    </modal-body>\\n\\t\\t<modal-footer>\\n\\t\\t\\t<button  type=\\\"button\\\" class=\\\"btn btn-danger\\\"  (click)=\\\"confirmDeleteModal.dismiss()\\\">Avbryt</button>\\n\\t\\t\\t<button  type=\\\"button\\\" class=\\\"btn btn-success\\\"  (click)=\\\"confirmDeleteModal.close(); deletePhone()\\\">Ja, ta bort</button>\\n\\t\\t</modal-footer>\\n</modal>\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/components/templates/phoneinfo.html\n// module id = 1014\n// module chunks = 0","module.exports = \"<phoneinfo #phoneInfo></phoneinfo>\\n<addressInfo #addressInfo></addressInfo>\\n<orderinfo #orderInfo></orderinfo>\\n\\n\\n<div class=\\\"row b-b-1\\\">\\n\\t<div class=\\\"col-md-12\\\">\\n\\t\\t<h3><a href=\\\"javascript:;\\\" (click)=\\\"close()\\\"><i class=\\\"fa fa-close\\\"></i></a>\\n\\t\\t<span class=\\\"nomobile\\\">Prospektdetaljer</span><small class=\\\"nomobile\\\"> - </small><small *ngIf=\\\"loaded\\\">{{company.name}}</small></h3>\\n\\t</div>\\n</div>\\n\\n\\n\\t<div class=\\\"row\\\" [ngClass]=\\\"{'hidden' : loaded}\\\">\\n\\t\\t<div class=\\\"col-md-12 centered\\\">\\t\\n\\t\\t\\t\\t<i class=\\\"fa fa-circle-o-notch fa-spin fa-3x fa-fw\\\"></i>\\n\\t\\t</div>\\n\\t</div>\\t\\t\\n\\n\\t<div *ngIf=\\\"loaded\\\" class=\\\"p-b-3 m-t-2 height-100\\\">\\n\\n\\t\\t<div class=\\\"row\\\">\\n\\n\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\t\\n\\t\\t\\t\\t\\t\\t<ul class=\\\"nav nav-tabs\\\">\\n\\t\\t\\t\\t\\t\\t\\t<li role=\\\"presentation\\\" [ngClass]=\\\"{'active' : show == 'overview'}\\\"><a (click)=\\\"show = 'overview'\\\">Prospektinformation</a></li>\\n\\t\\t\\t\\t\\t\\t\\t<li role=\\\"presentation\\\" [ngClass]=\\\"{'active' : show == 'history'}\\\"><a (click)=\\\"show = 'history'\\\">Historik</a></li>\\n\\t\\t\\t\\t\\t\\t</ul>\\n\\t\\t\\t\\t</div>\\n\\n\\t\\t</div>\\n\\n\\t\\t<div class=\\\"row  p42\\\" [ngClass]=\\\"{hidden : show != 'history'}\\\">\\n\\t\\t\\t<div class=\\\"col-md-12 height-100\\\">\\n\\t\\t\\t\\t<div class=\\\"mail-contents height-100\\\">\\n\\t\\t\\t\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t\\t\\t<table width=\\\"100%\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<thead>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th>Datum</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th>Status</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t</thead>\\n\\t\\t\\t\\t\\t\\t\\t\\t<tbody>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<tr *ngFor=\\\"let l of prospectLog\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td><date-formatter [date]=\\\"l.logDate\\\"></date-formatter></td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td>{{l.owner}}</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td>{{l.status}}</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t</tbody>\\n\\t\\t\\t\\t\\t\\t\\t</table>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\t\\t\\n\\t\\t</div>\\n\\n\\t\\t<div class=\\\"row  p42\\\" [ngClass]=\\\"{hidden : show != 'overview'}\\\">\\n\\n\\t\\t\\t<div class=\\\"col-md-12 height-100\\\">\\n\\n\\t\\t\\t\\t<div class=\\\"mail-contents height-100\\\">\\n\\n\\t\\t\\t\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-primary\\\" (click)=\\\"editCompanyDetails()\\\" *ngIf=\\\"!isEditable\\\">Redigera uppgifter</button>\\n\\t\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-primary btn-danger\\\" (click)=\\\"cancelEditCompanyDetails()\\\" *ngIf=\\\"isEditable\\\">Avbryt</button>\\n\\t\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-primary btn-success\\\" (click)=\\\"saveCompanyDetails()\\\" *ngIf=\\\"isEditable\\\">Spara uppgifter</button>\\n\\t\\t\\t\\t\\t\\t\\t</div> \\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t<div class=\\\"row\\\"> <!-- start company info -->\\n\\n\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<label>Företagsnamn</label>\\n\\t\\t\\t\\t\\t\\t\\t\\t<input type=\\\"text\\\" [readonly]=\\\"!isEditable\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"company.name\\\" placeholder=\\\"Företagsnamn\\\"/>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<label>Organisationsnummer</label>\\n\\t\\t\\t\\t\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [readonly]=\\\"true\\\" [(ngModel)]=\\\"company.orgNr\\\" placeholder=\\\"Organisationsnummer\\\"/>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<label>Märkning</label>\\n\\t\\t\\t\\t\\t\\t\\t\\t<input type=\\\"text\\\" [readonly]=\\\"!isEditable\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"company.markning\\\" placeholder=\\\"Märkning\\\"/>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<label>E-postadress för e-faktura</label><br />\\n\\t\\t\\t\\t\\t\\t\\t\\t<input type=\\\"text\\\" [readonly]=\\\"!isEditable\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"company.efaktura\\\" placeholder=\\\"Epostadress för e-faktura\\\"/>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<label>Bransch</label><br />\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<button type=\\\"button\\\" [disabled]=\\\"!isEditable\\\" class=\\\"btn btn-block btn-info dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngFor=\\\"let m of markets\\\" [ngClass]=\\\"{'hidden' : m.marketId != company.marketId}\\\">{{m.name}}</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" *ngFor=\\\"let m of markets\\\" (click)=\\\"company.marketId = m.marketId\\\">{{m.name}}</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<label>Status</label><br />\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<button type=\\\"button\\\" [disabled]=\\\"!isEditable\\\" class=\\\"btn btn-block btn-info dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngFor=\\\"let s of statuses\\\" [ngClass]=\\\"{'hidden' : s.statusId != company.statusId}\\\">{{s.name}}</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" *ngFor=\\\"let s of statuses\\\" (click)=\\\"company.statusId = s.statusId\\\">{{s.name}}</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<label>Kundnummer</label>\\n\\t\\t\\t\\t\\t\\t\\t\\t<input type=\\\"text\\\" [readonly]=\\\"!isEditable\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"company.kundnr\\\" placeholder=\\\"Kundnummer\\\"/>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<label>Notis</label>\\n\\t\\t\\t\\t\\t\\t\\t\\t<textarea [readonly]=\\\"!isEditable\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"company.notis\\\" style=\\\"height:182px\\\" placeholder=\\\"Notis\\\"></textarea>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t\\t</div> <!-- end company info -->\\n\\n\\t\\t\\t\\t\\t<div class=\\\"row\\\">\\n\\n\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\t\\t\\t\\t\\t\\t\\t<h4>Telefonnummer</h4>\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"row\\\"> <!-- start phone utility buttons -->\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-primary\\\" (click)=\\\"showPhoneInfo({ telnrTypeId : 1, companyId : company.companyId, name : 'Växel', assName : 'vaxel', telnr : '', areaCode : '', note : '' })\\\">Lägg till telefonnummer</button>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"row\\\"> <!-- start phones -->\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<table width=\\\"100%\\\" class=\\\"table table-sm\\\">                \\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<tbody *ngIf=\\\"company.phones.Fax\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<tr *ngFor=\\\"let p of company.phones.Fax\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td><i class=\\\"fa fa-phone\\\"></i> {{p.name}}</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td>{{p.areaCode}} - {{p.telnr}}</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td><em>{{p.note}}</em></td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td align=\\\"right\\\"><a href=\\\"javascript:;\\\" (click)=\\\"showPhoneInfo(p)\\\">Redigera</a></td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</tbody>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<tbody *ngIf=\\\"company.phones['Växel']\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<tr *ngFor=\\\"let p of company.phones['Växel']\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td><i class=\\\"fa fa-phone\\\"></i> {{p.name}}</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td>{{p.areaCode}} - {{p.telnr}}</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td><em>{{p.note}}</em></td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td align=\\\"right\\\"><a href=\\\"javascript:;\\\" (click)=\\\"showPhoneInfo(p)\\\">Redigera</a></td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</tbody>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<tbody *ngIf=\\\"company.phones.Mobiltelefon\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<tr *ngFor=\\\"let p of company.phones.Mobiltelefon\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td><i class=\\\"fa fa-phone\\\"></i> {{p.name}}</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td>{{p.areaCode}} - {{p.telnr}}</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td><em>{{p.note}}</em></td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td align=\\\"right\\\"><a href=\\\"javascript:;\\\" (click)=\\\"showPhoneInfo(p)\\\">Redigera</a></td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</tbody>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<tbody *ngIf=\\\"company.phones.Hemtelefon\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<tr *ngFor=\\\"let p of company.phones.Hemtelefon\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td><i class=\\\"fa fa-phone\\\"></i> {{p.name}}</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td>{{p.areaCode}} - {{p.telnr}}</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td><em>{{p.note}}</em></td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td align=\\\"right\\\"><a href=\\\"javascript:;\\\" (click)=\\\"showPhoneInfo(p)\\\">Redigera</a></td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</tbody>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<tbody *ngIf=\\\"company.phones.Direkttelefon\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<tr *ngFor=\\\"let p of company.phones.Direkttelefon\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td><i class=\\\"fa fa-phone\\\"></i> {{p.name}}</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td>{{p.areaCode}} - {{p.telnr}}</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td><em>{{p.note}}</em></td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td align=\\\"right\\\"><a href=\\\"javascript:;\\\" (click)=\\\"showPhoneInfo(p)\\\">Redigera</a></td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</tbody>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</table>\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t</div><!-- end phones -->\\n\\t\\t\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\t\\t\\t\\t\\t\\t\\t<h4>Adresser</h4>\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"row\\\"> <!-- start phone utility buttons -->\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-primary\\\" (click)=\\\"showAddressInfo({ companyId : company.companyId, adressTypeId : 2, countryId : 1, name : 'Leveransadress', assName : 'leverans' })\\\">Lägg till adress</button>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"row\\\"> <!-- start addresses -->\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<table width=\\\"100%\\\" class=\\\"table table-sm\\\"> \\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<tbody *ngFor=\\\"let a of company.addresses\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td><i class=\\\"fa fa-building\\\"></i> {{a.name}}</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td>{{a.adress1}}</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td>{{a.adress2}}</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td>{{a.postalCode}}</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td>{{a.city}}</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td>{{a.country}}</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td align=\\\"right\\\"><a href=\\\"javascript:;\\\" (click)=\\\"showAddressInfo(a)\\\">Redigera</a></td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</tbody>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</table>\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t\\t</div>\\n\\n\\n\\t\\t\\t\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\t\\t\\t\\t\\t\\t\\t<h4>Kontaktpersoner</h4>\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"row\\\"> <!-- start contacts utility buttons -->\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-primary\\\" (click)=\\\"addContact({ companyId : company.companyId, role : 'Kontaktperson' })\\\">Lägg till kontakt</button>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"row\\\" *ngFor=\\\"let c of company.contacts\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<table width=\\\"100%\\\" class=\\\"table table-sm\\\">                \\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td><i class=\\\"fa fa-user\\\"></i> {{c.firstName}} {{c.lastName}}</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<!-- href=\\\"mailto:{{c.emails[0].adress}}\\\" -->\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td><a (click)=\\\"sendMail(c)\\\" href=\\\"javascript:;\\\" *ngIf=\\\"c.emails.length > 0\\\"><i class=\\\"fa fa-envelope\\\"></i> {{c.emails[0].adress}}</a></td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td><a href=\\\"call:{{c.phones.mobil[0].areaCode}}-{{c.phones.mobil[0].telnr}}\\\" *ngIf=\\\"c.phones.mobil\\\"><i class=\\\"fa fa-mobile\\\"></i> {{c.phones.mobil[0].areaCode}}-{{c.phones.mobil[0].telnr}}</a></td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</table>\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\n\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t</div>\\n\\n\\n\\t\\t\\t<div class=\\\"col-md-12 m-t-2 height-100\\\">\\n\\n\\t\\t\\t\\t<div class=\\\"row\\\">\\n\\n\\t\\t\\t\\t\\t<div class=\\\"col-md-4\\\">\\n\\t\\t\\t\\t\\t\\t<div  style=\\\"border: 1px solid #aaa; border-radius: 4px; padding: 20px;\\\">\\n\\t\\t\\t\\t\\t\\t\\t<h4>Intresserad</h4>\\n\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-primary\\\"  (click)=\\\"newOrder()\\\">Skapa ny order</button>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t\\t<div class=\\\"col-md-4\\\">\\n\\t\\t\\t\\t\\t\\t<div style=\\\"border: 1px solid #aaa; border-radius: 4px; padding: 20px;\\\">\\n\\t\\t\\t\\t\\t\\t\\t<h4>Återkomma</h4>\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-12 form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-block btn-primary dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t{{scheduleReason.name}}\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" *ngFor=\\\"let reason of scheduleReasons\\\" (click)=\\\"scheduleReason = reason\\\">{{reason.name}}</a>\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-6 form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<datepicker [placeholder]=\\\"'Datum'\\\" (onDateChanged)=\\\"scheduledDateChanged($event.date)\\\" [date]=\\\"scheduledDate * 1000\\\" #scheduledDatePicker></datepicker>\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-1 form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tHH: \\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-2 form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<input type=\\\"text\\\" name=\\\"endHour\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"scheduledHour\\\" style=\\\"width:50px\\\" placeholder=\\\"HH\\\" />\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-1 form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tMM: \\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-2 form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<input type=\\\"text\\\" name=\\\"endMinute\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"scheduledMinute\\\" style=\\\"width:50px\\\" placeholder=\\\"MM\\\" />\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-12 form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-primary\\\" (click)=\\\"scheduleProspect()\\\">Schemalägg prospekt</button>\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t\\t<div class=\\\"col-md-4\\\">\\n\\t\\t\\t\\t\\t\\t<div style=\\\"border: 1px solid #aaa; border-radius: 4px; padding: 20px;\\\">\\n\\t\\t\\t\\t\\t\\t\\t<h4>Ej intresserad</h4>\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-12 form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<textarea class=\\\"form-control\\\" [(ngModel)]=\\\"cancelNote\\\" placeholder=\\\"Notis\\\"></textarea>\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-12 form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-primary\\\"  (click)=\\\"cancelProspect()\\\">Bortfall</button>\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t</div>\\n\\n\\n\\t\\t\\t</div>\\n\\n\\n\\t\\t</div>\\n\\t\\t\\t\\n\\t</div>\\n\\n\\n\\n<modal #orderModal>\\n\\t<modal-header [show-close]=\\\"true\\\">\\n\\t\\t\\t<h4 class=\\\"modal-title\\\">Ny order</h4>\\n\\t</modal-header>\\n\\t<modal-body *ngIf=\\\"company\\\">\\n\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t<div class=\\\"col-md-12 form-group\\\">\\n\\t\\t\\t\\t<button class=\\\"btn btn-block btn-primary dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t{{newOrderObject.orderType.name}}\\n\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" *ngFor=\\\"let ot of orderTypes\\\" (click)=\\\"newOrderObject.orderType = ot\\\">{{ot.name}}</a>\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t<div class=\\\"col-md-6 form-group\\\">\\n\\t\\t\\t\\t<button class=\\\"btn btn-block btn-primary dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t{{newOrderObject.contact.firstName}} {{newOrderObject.contact.lastName}}\\n\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" *ngFor=\\\"let c of company.contacts\\\" (click)=\\\"newOrderObject.contact = c\\\">{{c.firstName}} {{c.lastName}}</a>\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"col-md-6 form-group\\\">\\n\\t\\t\\t\\t<button class=\\\"btn btn-block btn-primary dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t{{newOrderObject.address.name}}: {{newOrderObject.address.adress1}}\\n\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" *ngFor=\\\"let a of company.addresses\\\" (click)=\\\"newOrderObject.address = a\\\">{{a.name}}: {{a.adress1}}</a>\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t<div class=\\\"col-md-8\\\">\\n\\t\\t\\t\\t<span *ngIf=\\\"!availableProducts\\\"><i class=\\\"fa fa-spin fa-circle-o-notch\\\"></i> laddar produkter</span>\\n\\t\\t\\t\\t<select placeholder=\\\"Välj produkt att lägga till\\\" class=\\\"form-control\\\" *ngIf=\\\"availableProducts\\\" [(ngModel)]=\\\"selectedProduct\\\">\\n\\t\\t\\t\\t\\t<option *ngFor=\\\"let p of availableProducts\\\" [value]=\\\"p.productId\\\">{{p.name}}</option>\\n\\t\\t\\t\\t</select>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"col-md-2\\\">\\n\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"selectedCount\\\" />\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"col-md-2\\\">\\n\\t\\t\\t\\t<button class=\\\"btn btn-primary btn-block\\\" (click)=\\\"addSelectedProduct()\\\">Lägg till</button>\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n\\t\\t<h5>Orderrader</h5>\\n\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t<div class=\\\"form-group col-md-12\\\">\\n\\t\\t\\t\\t<table class=\\\"table\\\">\\n\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t<th>Antal</th>\\n\\t\\t\\t\\t\\t\\t<th>Art.nr </th>\\n\\t\\t\\t\\t\\t\\t<th>Benämning</th>\\n\\t\\t\\t\\t\\t\\t<th>Pris / st</th>\\n\\t\\t\\t\\t\\t\\t<th>Rabatt %</th>\\n\\t\\t\\t\\t\\t\\t<th>Subtotal</th>\\n\\t\\t\\t\\t\\t\\t<th></th>\\n\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t<tr *ngFor=\\\"let oi of newOrderObject.products\\\">\\n\\t\\t\\t\\t\\t\\t<td width=\\\"10%\\\"><input min=\\\"0\\\" max=\\\"10000\\\" type=\\\"number\\\" [(ngModel)]=\\\"oi.count\\\" (ngModelChange)=\\\"recalc(oi)\\\" class=\\\"form-control input-sm\\\" /></td>\\n\\t\\t\\t\\t\\t\\t<td class=\\\"vert-align\\\">{{oi.artNr}}</td>\\n\\t\\t\\t\\t\\t\\t<td class=\\\"vert-align\\\">{{oi.name}}</td>\\n\\t\\t\\t\\t\\t\\t<td width=\\\"15%\\\"><input min=\\\"0\\\" max=\\\"50000\\\" type=\\\"number\\\" [(ngModel)]=\\\"oi.sellPrice\\\" (ngModelChange)=\\\"recalc(oi)\\\" class=\\\"form-control input-sm\\\" /></td>\\n\\t\\t\\t\\t\\t\\t<td width=\\\"15%\\\"><input min=\\\"0\\\" max=\\\"100\\\" type=\\\"number\\\" [(ngModel)]=\\\"oi.discount\\\" (ngModelChange)=\\\"recalc(oi)\\\" class=\\\"form-control input-sm\\\" /></td>\\n\\t\\t\\t\\t\\t\\t<td class=\\\"vert-align\\\">{{oi.subTotal}}</td>\\n\\t\\t\\t\\t\\t\\t<td><button class=\\\"btn btn-danger pull-right\\\" (click)=\\\"removeProduct(oi)\\\"><i class=\\\"fa fa-trash\\\"></i></button></td>\\n\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t</table>\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t<div class=\\\"form-group col-md-12\\\">\\n\\t\\t\\t\\t<textarea class=\\\"form-control\\\" [(ngModel)]=\\\"newOrderObject.note\\\" placeholder=\\\"Eventuell notis\\\"></textarea>\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n\\t</modal-body>\\n\\t<modal-footer>\\n\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-default\\\"  (click)=\\\"orderModal.close()\\\">Avbryt</button>\\n\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-primary\\\" (click)=\\\"createOrder()\\\" [disabled]=\\\"newOrderObject.products.length == 0\\\">Skapa order</button>\\n\\t</modal-footer>\\n</modal>\\n\\n\\n<modal #loadingModal>\\n\\t<modal-header [show-close]=\\\"false\\\">\\n\\t\\t\\t<h4 class=\\\"modal-title\\\">Vänta</h4>\\n\\t</modal-header>\\n\\t<modal-body>\\n\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t<i class=\\\"fa fa-circle-o-notch fa-spin fa-3x fa-fw\\\"></i>\\n\\t\\t\\t<span *ngIf=\\\"loadingInfo\\\"><br />{{loadingInfo}}</span>\\n\\t\\t</div>\\t\\n\\t</modal-body>\\n</modal>\\n\\n\\n<modal #errorModal>\\n\\t<modal-header [show-close]=\\\"false\\\">\\n\\t\\t\\t<h4 class=\\\"modal-title\\\">Fel</h4>\\n\\t</modal-header>\\n\\t<modal-body>\\n\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t{{loadingError}}\\n\\t\\t</div>\\t\\n\\t</modal-body>\\n\\t<modal-footer>\\n\\t\\t<button  type=\\\"button\\\" class=\\\"btn btn-default\\\"  (click)=\\\"closeErrorDialog()\\\">Stäng</button>\\n\\t</modal-footer>\\n</modal>\\n\\n<mailcomposer #newMailComposer>\\n</mailcomposer>\\n\\n\\n<modal #addContactModal>\\n\\t<modal-header [show-close]=\\\"false\\\">\\n\\t\\t\\t<h4 class=\\\"modal-title\\\">Lägg till kontakt</h4>\\n\\t</modal-header>\\n\\t<modal-body>\\n\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t\\t<div class=\\\"form-group col-md-6\\\">\\n\\t\\t\\t\\t\\t<input class=\\\"form-control\\\" [(ngModel)]=\\\"newContactObject.firstName\\\" placeholder=\\\"Förnamn\\\" />\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t<div class=\\\"form-group col-md-6\\\">\\n\\t\\t\\t\\t\\t<input class=\\\"form-control\\\" [(ngModel)]=\\\"newContactObject.lastName\\\" placeholder=\\\"Efternamn\\\" />\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t\\t<div class=\\\"form-group col-md-12\\\">\\n\\t\\t\\t\\t\\t<button class=\\\"btn btn-block btn-primary dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t{{newContactObject.role}}\\n\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" *ngFor=\\\"let r of contactRoles\\\" (click)=\\\"newContactObject.role = r.value\\\">{{r.name}}</a>\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t\\t<div class=\\\"form-group col-md-2\\\">\\n\\t\\t\\t\\t\\t<input class=\\\"form-control\\\" [(ngModel)]=\\\"newContactObject.areaCode\\\" placeholder=\\\"Riktnr\\\" />\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t<div class=\\\"form-group col-md-2\\\">\\n\\t\\t\\t\\t\\t<input class=\\\"form-control\\\" [(ngModel)]=\\\"newContactObject.phone\\\" placeholder=\\\"Telefonnr\\\" />\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t<div class=\\\"form-group col-md-6\\\">\\n\\t\\t\\t\\t\\t<input class=\\\"form-control\\\" [(ngModel)]=\\\"newContactObject.email\\\" placeholder=\\\"E-post\\\" />\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t</div>\\t\\t\\t\\t\\n\\t</modal-body>\\n\\t<modal-footer>\\n\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-default\\\"  (click)=\\\"addContactModal.close()\\\">Avbryt</button>\\n\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-success\\\" (click)=\\\"createContact()\\\">Spara</button>\\n\\t</modal-footer>\\n</modal>\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/components/templates/prospectdetails.html\n// module id = 1015\n// module chunks = 0","module.exports = \"<div id=\\\"sidebar-search\\\" [ngClass]=\\\"{'search-open' : isVisible }\\\">\\n\\n\\t<div class=\\\"search-head\\\">\\n\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t<div class=\\\"search-div\\\">\\n\\t\\t\\t\\t\\t<i class=\\\"fa fa-search\\\" aria-hidden=\\\"true\\\"></i>\\n\\t\\t\\t\\t\\t<form autocomplete=\\\"off\\\" style=\\\"width:95%;float:right;\\\">\\n\\t\\t\\t\\t\\t\\t<input type=\\\"text\\\" name=\\\"search\\\" placeholder=\\\"Snabbsök\\\" autocomplete=\\\"off\\\" [(ngModel)]=\\\"phrase\\\" (ngModelChange)=\\\"doSearch($event)\\\" #searchField/>\\n\\t\\t\\t\\t\\t\\t<a href=\\\"javascript:;\\\" class=\\\"pull-right\\\" (click)=\\\"clearSearch()\\\"><i class=\\\"fa fa-times\\\" aria-hidden=\\\"true\\\"></i></a>\\n\\t\\t\\t\\t\\t</form>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n\\t</div>\\n\\t\\n\\t<div class=\\\"search-container\\\">\\n\\n\\t\\t<div> \\n\\t\\t\\t<div class=\\\"searchResultHeader\\\">Konton ({{searchResult.accounts.length}})</div>\\n\\t\\t\\t<div class=\\\"searchresult\\\" [ngClass]=\\\"{'hidden' : !showHiddenAccounts && i > 2}\\\" *ngFor=\\\"let r of searchResult.accounts; let i = index\\\">\\n\\t\\t\\t\\t<div>\\n\\t\\t\\t\\t\\t<a href=\\\"javascript:;\\\" (click)=\\\"openSearchResult(r)\\\" [innerHTML]=\\\"r.text\\\"></a><small class=\\\"pull-right warning\\\" *ngIf=\\\"r.account.active == 0\\\">Inaktiv</small> <a href=\\\"javascript:;\\\" routerLink=\\\"{{r.suffixLink}}\\\" (click)=\\\"clearSearch()\\\" [innerHTML]=\\\"r.suffix\\\"></a><br />\\n\\t\\t\\t\\t\\t<small><strong>Kontostatus:</strong> {{r.account.statusName}}</small>\\n\\t\\t\\t\\t\\t<br /><br />\\n\\t\\t\\t\\t\\t<a (click)=\\\"showAccountInfo(r.account)\\\" href=\\\"javascript:;\\\"><i class=\\\"fa fa-edit\\\"></i> Redigera</a> | \\n\\t\\t\\t\\t\\t<a *ngIf=\\\"r.account.type != 'wordpress' && r.account.type != 'wphost'\\\" href=\\\"https://admin.hemsidadirekt.se/login.php?accountId={{r.account.accountId}}&hash={{r.account.loginhash}}\\\" target=\\\"_blank\\\"><i class=\\\"fa fa-sign-in\\\"></i> Logga in</a>\\n\\t\\t\\t\\t\\t<a *ngIf=\\\"r.account.type == 'wphost'\\\" href=\\\"http://{{r.account.prefix}}.hemsidadirekt.se/gh-login.php?user=User&prefix={{r.account.prefix}}&hash={{r.account.loginhash}}\\\" target=\\\"_blank\\\"><i class=\\\"fa fa-sign-in\\\"></i> Logga in [wordpress]</a>\\n\\t\\t\\t\\t\\t<a *ngIf=\\\"r.account.type == 'wordpress' && r.account.statusId < 13\\\" href=\\\"http://{{r.account.prefix}}.generatorhallen.se/gh-login.php?user=User&prefix={{r.account.prefix}}&hash={{r.account.loginhash}}\\\" target=\\\"_blank\\\"><i class=\\\"fa fa-sign-in\\\"></i> Logga in [wordpress]</a>\\n\\t\\t\\t\\t\\t<a *ngIf=\\\"r.account.type == 'wordpress' && r.account.statusId == 13 && r.account.companyId\\\" (click)=\\\"clearSearch()\\\" href=\\\"#/companies/{{r.account.companyId}}/accounts/accounts/\\\"><i class=\\\"fa fa-sign-in\\\"></i> Logga in [wordpress]</a>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\t\\t\\n\\t\\t\\t<div *ngIf=\\\"searchResult.accounts.length > 2\\\" class=\\\"showHiddenLink\\\"><a (click)=\\\"showHiddenAccounts = true\\\" href=\\\"javascript:;\\\">Visa alla</a></div>\\n\\t\\t</div>\\n\\n\\t\\t<div>\\n\\t\\t\\t<div class=\\\"searchResultHeader\\\">Företag ({{searchResult.companies.length}})</div>\\n\\t\\t\\t<div [ngClass]=\\\"{'hidden' : !showHiddenCompanies && i > 2}\\\" class=\\\"searchresult\\\" *ngFor=\\\"let r of searchResult.companies; let i = index\\\">\\n\\t\\t\\t\\t\\t<div><a (click)=\\\"openSearchResult(r)\\\" href=\\\"javascript:;\\\" [innerHTML]=\\\"r.text\\\"></a><br /><!--<a href=\\\"javascript:;\\\" routerLink=\\\"{{r.suffixLink}}\\\" [innerHTML]=\\\"r.suffix\\\"></a><br />-->\\n\\t\\t\\t\\t\\t<a href=\\\"javascript:;\\\" (click)=\\\"clearSearch()\\\" routerLink=\\\"/companies/{{r.company.companyId}}\\\"><i class=\\\"fa fa-edit\\\"></i> Redigera</a>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\t\\t\\t\\n\\t\\t\\t<div *ngIf=\\\"searchResult.companies.length > 2\\\" class=\\\"showHiddenLink\\\"><a (click)=\\\"showHiddenCompanies = true\\\" href=\\\"javascript:;\\\">Visa alla</a></div>\\n\\t\\t</div>\\n\\n\\t\\t<div>\\n\\t\\t\\t<div class=\\\"searchResultHeader\\\">Ordrar ({{searchResult.orders.length}})</div>\\n\\t\\t\\t<div [ngClass]=\\\"{'hidden' : !showHiddenOrders && i > 2}\\\" class=\\\"searchresult\\\" *ngFor=\\\"let o of searchResult.orders; let i = index\\\">\\n\\t\\t\\t\\t\\t<div><a (click)=\\\"openSearchResult(o)\\\" href=\\\"javascript:;\\\" [innerHTML]=\\\"o.text\\\"></a><a (click)=\\\"clearSearch()\\\" href=\\\"javascript:;\\\" routerLink=\\\"{{o.suffixLink}}\\\" [innerHTML]=\\\"o.suffix\\\"></a><br /><br />\\n\\t\\t\\t\\t\\t<a href=\\\"javascript:;\\\" (click)=\\\"clearSearch()\\\" routerLink=\\\"/orders/{{o.order.orderId}}\\\"><i class=\\\"fa fa-edit\\\"></i> Visa</a>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\t\\t\\t\\n\\t\\t\\t<div *ngIf=\\\"searchResult.orders.length > 2\\\" class=\\\"showHiddenLink\\\"><a (click)=\\\"showHiddenOrders = true\\\" href=\\\"javascript:;\\\">Visa alla</a></div>\\n\\t\\t</div>\\n\\n\\t\\t<div>\\n\\t\\t\\t<div class=\\\"searchResultHeader\\\">Fakturor ({{searchResult.invoices.length}})</div>\\n\\t\\t\\t<div [ngClass]=\\\"{'hidden' : !showHiddenInvoices && i > 2}\\\" class=\\\"searchresult\\\" *ngFor=\\\"let i of searchResult.invoices; let i = index\\\">\\n\\t\\t\\t\\t\\t<div><a (click)=\\\"openSearchResult(i)\\\" href=\\\"javascript:;\\\" [innerHTML]=\\\"i.text\\\"></a><a (click)=\\\"clearSearch()\\\" href=\\\"javascript:;\\\" routerLink=\\\"{{i.suffixLink}}\\\" [innerHTML]=\\\"i.suffix\\\"></a><br /><br />\\n\\t\\t\\t\\t\\t<a href=\\\"javascript:;\\\" (click)=\\\"clearSearch()\\\" routerLink=\\\"/invoices/{{i.invoice.invoiceId}}\\\"><i class=\\\"fa fa-edit\\\"></i> Visa</a> | \\n\\t\\t\\t\\t\\t<a href=\\\"https://s5.svea.com/#views/client/44258/customer/{{i.invoice.companyId}}/{{i.invoice.invoiceNr}}\\\" target=\\\"_blank\\\"><i class=\\\"fa fa-external-link\\\"></i> Visa i Svea</a>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\t\\t\\t\\n\\t\\t\\t<div *ngIf=\\\"searchResult.invoices.length > 2\\\" class=\\\"showHiddenLink\\\"><a (click)=\\\"showHiddenInvoices = true\\\" href=\\\"javascript:;\\\">Visa alla</a></div>\\n\\t\\t</div>\\n\\n\\t\\t<div>\\n\\t\\t\\t<div class=\\\"searchResultHeader\\\">Förnyelser ({{searchResult.subscriptionRenewals.length}})</div>\\n\\t\\t\\t<div [ngClass]=\\\"{'hidden' : !showHiddenRenewals && i > 2}\\\" class=\\\"searchresult\\\" *ngFor=\\\"let i of searchResult.subscriptionRenewals; let i = index\\\">\\n\\t\\t\\t\\t\\t<div><a (click)=\\\"openSearchResult(i)\\\" href=\\\"javascript:;\\\" [innerHTML]=\\\"i.text\\\"></a><a (click)=\\\"clearSearch()\\\" href=\\\"javascript:;\\\" routerLink=\\\"{{i.suffixLink}}\\\" [innerHTML]=\\\"i.suffix\\\"></a><br /><br />\\n\\t\\t\\t\\t\\t<a href=\\\"javascript:;\\\" (click)=\\\"clearSearch()\\\" routerLink=\\\"/subsceriptions/{{i.subscription.subscriptionId}}\\\"><i class=\\\"fa fa-edit\\\"></i> Visa</a> | \\n\\t\\t\\t\\t\\t<a href=\\\"https://s5.svea.com/#views/client/44258/customer/{{i.subscription.companyId}}/{{i.subscription.subscriptionId}}\\\" target=\\\"_blank\\\"><i class=\\\"fa fa-external-link\\\"></i> Visa i Svea</a>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\t\\t\\t\\n\\t\\t\\t<div *ngIf=\\\"searchResult.subscriptionRenewals.length > 2\\\" class=\\\"showHiddenLink\\\"><a (click)=\\\"showHiddenRenewals = true\\\" href=\\\"javascript:;\\\">Visa alla</a></div>\\n\\t\\t</div>\\n\\n\\t\\t<div>\\n\\t\\t\\t<div class=\\\"searchResultHeader\\\">Domäner ({{searchResult.domains.length}})</div>\\n\\t\\t\\t<div [ngClass]=\\\"{'hidden' : !showHiddenDomains && i > 2}\\\" class=\\\"searchresult\\\" *ngFor=\\\"let r of searchResult.domains; let i = index\\\">\\n\\t\\t\\t\\t<div>\\n\\t\\t\\t\\t\\t<a href=\\\"javascript:;\\\" (click)=\\\"openSearchResult(r)\\\">www.{{r.domain.domain}}</a> - <small><a href=\\\"http://www.{{r.domain.domain}}\\\" target=\\\"_blank\\\">Besök <i class=\\\"fa fa-external-link\\\"></i></a></small>\\n\\t\\t\\t\\t\\t<small class=\\\"pull-right warning\\\" *ngIf=\\\"r.domain.status == 'inactive'\\\">Inaktiv</small>\\n\\t\\t\\t\\t\\t<small *ngIf=\\\"r.domain.company\\\"><br /><a href=\\\"javascript:;\\\" (click)=\\\"clearSearch()\\\" routerLink=\\\"/companies/{{r.domain.company.companyId}}\\\"><i class=\\\"fa fa-building\\\"></i> {{r.domain.company.name}}</a></small><br />\\n\\t\\t\\t\\t\\t<small><strong>Domänstatus:</strong> {{r.domain.statusName}}</small>\\n\\t\\t\\t\\t\\t<small *ngIf=\\\"r.nameISPInfo && !r.nameISPInfoLoading\\\"><br />\\n\\t\\t\\t\\t\\t\\t<strong>Autoförnyelse:</strong> <span *ngIf=\\\"r.nameISPInfo.autorenew == 1\\\">På</span><span *ngIf=\\\"r.nameISPInfo.autorenew != 1\\\">Av</span><br />\\n\\t\\t\\t\\t\\t\\t<strong>Förnyas:</strong> {{r.nameISPInfo.renewaldate}}<br />\\n\\t\\t\\t\\t\\t\\t<strong>Expires:</strong> {{r.nameISPInfo.expires}}<br />\\n\\t\\t\\t\\t\\t</small>\\n\\t\\t\\t\\t\\t<small *ngIf=\\\"r.nameISPInfoLoading\\\"><br />hämtar registrarstatus <i class=\\\"fa fa-circle-o-notch fa-spin fa-xs fa-fw\\\"></i></small>\\n\\t\\t\\t\\t\\t<br />\\n\\t\\t\\t\\t\\t<a href=\\\"javascript:;\\\" (click)=\\\"showDomainInfo(r.domain)\\\"><i class=\\\"fa fa-edit\\\"></i> Redigera</a>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\t\\t\\t\\n\\t\\t\\t<div *ngIf=\\\"searchResult.domains.length > 2\\\" class=\\\"showHiddenLink\\\"><a (click)=\\\"showHiddenDomains = true\\\" href=\\\"javascript:;\\\">Visa alla</a></div>\\n\\t\\t</div>\\n\\n\\t\\t<div>\\n\\t\\t\\t<div class=\\\"searchResultHeader\\\">Aktiviteter ({{searchResult.activities.length}})</div>\\n\\t\\t\\t<div [ngClass]=\\\"{'hidden' : !showHiddenActivities && i > 2}\\\" class=\\\"searchresult\\\" *ngFor=\\\"let r of searchResult.activities; let i = index\\\">\\n\\t\\t\\t\\t\\t<div><a href=\\\"javascript:;\\\" (click)=\\\"openSearchResult(r)\\\" [innerHTML]=\\\"r.text\\\"></a><span [innerHTML]=\\\"r.suffix\\\"></span></div>\\n\\t\\t\\t</div>\\t\\t\\t\\n\\t\\t\\t<div *ngIf=\\\"searchResult.activities.length > 2\\\" class=\\\"showHiddenLink\\\"><a (click)=\\\"showHiddenActivities = true\\\" href=\\\"javascript:;\\\">Visa alla</a></div>\\n\\t\\t</div>\\n\\n\\t\\t<div class=\\\"searchresult center\\\" [ngClass]=\\\"{'hidden' : !searching}\\\"><i class=\\\"fa fa-circle-o-notch fa-spin fa-2x fa-fw\\\"></i></div>\\n\\t\\t<div class=\\\"searchresult center\\\" [ngClass]=\\\"{'hidden' : searchResultType != 'noresult'}\\\">typiskt, inga sökträffar</div>\\n\\n\\t</div>\\n\\t\\n</div>\\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/components/templates/searchsidebar.html\n// module id = 1016\n// module chunks = 0","module.exports = \"\\n<modal #composerModal>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Nytt sms</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"row form-group\\\">\\n\\t\\t\\t\\t<div class=\\\"col-md-4 \\\">\\n\\t\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"toNumber\\\" placeholder=\\\"Mottagare\\\"/>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t<div class=\\\"col-md-4\\\">\\n\\t\\t\\t\\t\\t<div class=\\\"btn-group full-width\\\">\\n\\t\\t\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-info dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\">Använd kontakt</span>\\n\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" *ngFor=\\\"let c of availableContacts\\\" (click)=\\\"toNumber = c.number\\\">{{c.name}} <{{c.number}}></a>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t<div class=\\\"col-md-4\\\">\\n\\t\\t\\t\\t\\t<div class=\\\"btn-group full-width\\\">\\n\\t\\t\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-info dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\">Infoga standardsms</span>\\n\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"createStandardSms()\\\">Nytt standardsms</a>\\n\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" *ngIf=\\\"standardSmses.length > 0\\\" (click)=\\\"editStandardSms()\\\">Redigera standardsms</a>\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-divider\\\"></div>\\n\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" *ngFor=\\\"let r of standardSmses\\\" (click)=\\\"setStandardSms(r)\\\">{{r.Name}}</a>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div #myEditor>\\n\\t\\t\\t\\n\\t\\t\\t</div>\\n    </modal-body>\\n\\t\\t<modal-footer>\\n\\t\\t\\t<button class=\\\"btn btn-danger\\\" (click)=\\\"closeModal('cancel')\\\">Avbryt</button>\\n\\t\\t\\t<button class=\\\"btn btn-success\\\" (click)=\\\"closeModal('send')\\\">Skicka</button>\\n\\t\\t</modal-footer>\\n</modal>\\n\\n<modal #createSmsModal>\\n\\t<modal-header [show-close]=\\\"false\\\">\\n\\t\\t\\t<h4 class=\\\"modal-title\\\">Skapa / Ändra standardsms</h4>\\n\\t</modal-header>\\n\\t<modal-body>\\n\\t\\t<div class=\\\"form-group row\\\" *ngIf=\\\"editReplies\\\">\\n\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t<select class=\\\"form-control\\\" (change)=\\\"setEditedSms($event)\\\">\\n\\t\\t\\t\\t\\t<option value=\\\"{{myIndex}}\\\" *ngFor=\\\"let r of standardSmses; let myIndex = index\\\">{{r.Name}}</option>\\n\\t\\t\\t\\t</select>\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n\\t\\t<div class=\\\"form-group row\\\">\\n\\t\\t\\t<div class=\\\"col-md-10\\\">\\n\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"standardSms.Name\\\">\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"col-md-2\\\">\\n\\t\\t\\t\\t<div class=\\\"btn-group full-width\\\">\\n\\t\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn full-width btn-warning\\\" (click)=\\\"clearSms()\\\">Rensa</button>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t<textarea class=\\\"form-control\\\" [(ngModel)]=\\\"standardSms.Text\\\" rows=\\\"20\\\"></textarea>\\n\\t\\t</div>\\n\\t</modal-body>\\n\\t<modal-footer>\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-danger\\\" (click)=\\\"createSmsModal.dismiss()\\\">Avbryt</button>\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-success\\\" (click)=\\\"saveStandardSms();\\\">Spara</button>\\n\\t</modal-footer>\\n</modal>\\n\\n<modal #addFileModal>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Lägger till fil</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t\\t<p>\\n\\t\\t\\t\\t\\t<i class=\\\"fa fa-circle-o-notch fa-spin fa-3x fa-fw\\\"></i>\\n\\t\\t\\t\\t</p>\\n\\t\\t\\t\\t<p>\\n\\t\\t\\t\\t\\tVänta lite, lägger till fil ...\\n\\t\\t\\t\\t</p>\\n\\t\\t\\t</div>\\t\\n    </modal-body>\\n</modal>\\n\\n<modal #addFileErrorModal>\\n\\t<modal-header>\\n\\t\\t\\t<h4 class=\\\"modal-title\\\">Kunde inte lägga till fil</h4>\\n\\t</modal-header>\\n\\t<modal-body>\\n\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t<p>\\n\\t\\t\\t\\t{{ addFileError }}\\n\\t\\t\\t</p>\\n\\t\\t</div>\\t\\n\\t</modal-body>\\n\\t<modal-footer>\\n\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-danger\\\" (click)=\\\"closeAddFileErrorModal();\\\">OK</button>\\n\\t</modal-footer>\\n</modal>\\n\\n<modal #sendingModal>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Vänta</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t\\t<p>\\n\\t\\t\\t\\t\\t<i class=\\\"fa fa-circle-o-notch fa-spin fa-3x fa-fw\\\"></i>\\n\\t\\t\\t\\t</p>\\n\\t\\t\\t\\t<p>\\n\\t\\t\\t\\t\\tVänta lite, skickar ...\\n\\t\\t\\t\\t</p>\\n\\t\\t\\t</div>\\t\\n    </modal-body>\\n</modal>\\n\\n<modal #errorModal>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Fel</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t\\t<p>\\n\\t\\t\\t\\t\\t{{errorMessage}}\\n\\t\\t\\t\\t</p>\\n\\t\\t\\t</div>\\t\\n    </modal-body>\\n\\t\\t<modal-footer>\\n\\t\\t\\t<button class=\\\"btn btn-danger\\\" (click)=\\\"errorModal.close()\\\">Stäng</button>\\n\\t\\t</modal-footer>\\n</modal>\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/components/templates/smscomposer.html\n// module id = 1017\n// module chunks = 0","module.exports = \"<modal #loadingModal>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Vänta</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t\\t<p>\\n\\t\\t\\t\\t\\t<i class=\\\"fa fa-circle-o-notch fa-spin fa-3x fa-fw\\\"></i>\\n\\t\\t\\t\\t</p>\\n\\t\\t\\t</div>\\t\\n    </modal-body>\\n</modal>\\n\\n<modal #deleteModal>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Ta bort filer</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t\\t<p>\\n\\t\\t\\t\\t\\tVill du verkligen ta bort filerna? Detta går inte att ångra, någonsin.\\n\\t\\t\\t\\t</p>\\n\\t\\t\\t</div>\\t\\n    </modal-body>\\n\\t\\t<modal-footer>\\n        <button type=\\\"button\\\" class=\\\"btn btn-default\\\" (click)=\\\"closeDeleteModal('cancel')\\\">Avbryt</button>\\n        <button type=\\\"button\\\" class=\\\"btn btn-danger\\\" (click)=\\\"closeDeleteModal('delete')\\\">Ja, ta bort</button>\\n    </modal-footer>\\n</modal>\\n\\n<modal #newFolderModal>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Ny mapp</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"newFolderName\\\" placeholder=\\\"Namn på mappen\\\" />\\n\\t\\t\\t</div>\\t\\n    </modal-body>\\n\\t\\t<modal-footer>\\n        <button type=\\\"button\\\" class=\\\"btn btn-default\\\" (click)=\\\"closeNewFolderModal('cancel')\\\">Avbryt</button>\\n        <button type=\\\"button\\\" class=\\\"btn btn-danger\\\" (click)=\\\"closeNewFolderModal('create')\\\">Skapa</button>\\n    </modal-footer>\\n</modal>\\n\\n<file-upload #fileUpload></file-upload>\\n\\n<div class=\\\"support-content\\\">\\n\\n\\t<div class=\\\"row\\\">\\n\\n\\t\\t<nav class=\\\"navbar navbar-light bg-faded\\\">\\n\\t\\t\\t<div class=\\\"btn-group\\\">\\n\\t\\t\\t\\t<button class=\\\"btn btn-primary\\\" (click)=\\\"upload()\\\">Ladda upp</button>\\n\\t\\t\\t\\t<button class=\\\"btn btn-primary\\\" (click)=\\\"newFolder()\\\">Ny mapp</button>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"btn-group\\\">\\n\\t\\t\\t\\t<ul class=\\\"directory-tree\\\">\\n\\t\\t\\t\\t\\t<li *ngFor=\\\"let p of pathElements\\\">&nbsp;/&nbsp;<a href=\\\"javascript:;\\\" (click)=\\\"phrase = '';loadFiles(null, p.prefix);\\\">{{p.name}}</a></li>\\n\\t\\t\\t\\t</ul>\\n\\t\\t\\t</div>\\n\\t\\t  <form class=\\\"form-inline pull-xs-right m-l-1\\\">\\n\\t      <button (click)=\\\"refresh()\\\" type=\\\"button\\\" class=\\\"btn btn-primary\\\"><i class=\\\"fa fa-refresh\\\" [ngClass]=\\\"{'fa-circle-o-notch fa-spin fa-f' : loading}\\\"></i> Uppdatera</button>\\n\\t\\t  </form>\\n\\t\\t  <div class=\\\"form-inline pull-xs-right\\\">\\n\\t\\t    <input class=\\\"form-control\\\" type=\\\"text\\\" (keyup)=\\\"searchFiles()\\\" [(ngModel)]=\\\"phrase\\\" placeholder=\\\"Sök\\\">\\n\\t\\t  </div>\\n\\t\\t</nav>\\n\\n\\t\\t<div class=\\\"support-pane-master row full-height-fill full-width-fill p48\\\" [ngClass]=\\\"{'collapsed' : selectedIssue}\\\">\\n\\n\\t\\t\\t<div class=\\\"support-list\\\"\\n\\t\\t\\t\\tinfinite-scroll\\n\\t\\t\\t\\t[infiniteScrollDistance]=\\\"2\\\"\\n\\t\\t\\t\\t[infiniteScrollThrottle]=\\\"500\\\"\\n\\t\\t\\t\\t(scrolled)=\\\"onScroll()\\\"\\n\\t\\t\\t\\t[scrollWindow]=\\\"false\\\">\\n\\n\\t\\t\\t\\t<div class=\\\"support-list-toolbar\\\" [ngClass]=\\\"{'open' : hasSelectedFiles, 'hidden' : !hasSelectedFiles}\\\">\\n\\t\\t\\t\\t\\t<a *ngIf=\\\"allSelectedCanBeCopied\\\" title=\\\"Kopiera till mamba\\\" (click)=\\\"sync()\\\"><i class=\\\"fa fa-files-o\\\" ></i></a>\\n\\t\\t\\t\\t\\t<a *ngIf=\\\"hasRestorableFiles\\\" title=\\\"Återställ från arkiv\\\" (click)=\\\"restore()\\\"><i class=\\\"fa fa-archive\\\" ></i></a>\\n\\t\\t\\t\\t\\t<a *ngIf=\\\"hasDownloadableFiles\\\" title=\\\"Ladda ner\\\" (click)=\\\"download()\\\"><i class=\\\"fa fa-cloud-download\\\" ></i></a>\\n\\t\\t\\t\\t\\t<a title=\\\"Ta bort\\\" (click)=\\\"confirmDelete()\\\"><i class=\\\"fa fa-trash-o\\\" ></i></a>\\n\\t\\t\\t\\t\\t<a class=\\\"counter\\\">( {{numSelected}} )</a>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\n\\t\\t\\t\\t<table class=\\\"table\\\">\\n\\n\\t\\t\\t\\t\\t<tbody>\\n\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t<th class=\\\"issue-check\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<i class=\\\"fa fa-check-square-o\\\" (click)=\\\"setAllSelected()\\\"></i>\\n\\t\\t\\t\\t\\t\\t\\t</th>\\n\\t\\t\\t\\t\\t\\t\\t<th>Namn</th>\\n\\t\\t\\t\\t\\t\\t\\t<th>Storlek</th>\\n\\t\\t\\t\\t\\t\\t\\t<th>&nbsp;</th>\\n\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t</tbody>\\n\\n\\t\\t\\t\\t\\t<tbody>\\n\\t\\t\\t\\t\\t\\t<tr *ngFor=\\\"let file of files; let myIndex = index\\\">\\n\\t\\t\\t\\t\\t\\t\\t<td style=\\\"width:32px\\\" align=\\\"center\\\" (click)=\\\"toggleSelected(file, $event); toggleStorageToolbar()\\\" scope=\\\"row\\\" nowrap=\\\"nowrap\\\" class=\\\"issue-check\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<i class=\\\"fa\\\" [ngClass]=\\\"{'fa-square-o' : !file.selected, 'fa-check-square-o' : file.selected}\\\"></i>\\n\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t<td nowrap width=\\\"100%\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<a *ngIf=\\\"file.isDir\\\" href=\\\"javascript:;\\\" (click)=\\\" phrase = '';loadFiles(null, file.prefix);\\\"><i class=\\\"fa\\\" [ngClass]=\\\"{'fa-folder' : file.isDir}\\\"></i> {{file.name}}</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t<a *ngIf=\\\"!file.isDir && file.storageClass != 'GLACIER'\\\" href=\\\"javascript:;\\\" (click)=\\\"getSignedUrl(file.key)\\\"><i class=\\\"fa fa-file-o\\\"></i> {{file.name}}</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t<a *ngIf=\\\"!file.isDir && file.storageClass == 'GLACIER' && file.expireDate\\\" href=\\\"javascript:;\\\" (click)=\\\"getSignedUrl(file.key)\\\"><i class=\\\"fa fa-file-o\\\"></i> {{file.name}}</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t<a *ngIf=\\\"!file.isDir && file.storageClass == 'GLACIER' && !file.expireDate\\\"><i class=\\\"fa fa-archive\\\"></i> {{file.name}}</a>\\n\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t<td nowrap align=\\\"right\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"file.isDir\\\">-</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"!file.isDir\\\">{{file.size|number:'1.1-2'}} kB</span>\\n\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t<td nowrap class=\\\"vert-align\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<i class=\\\"fa fa-spin fa-spinner\\\" *ngIf=\\\"file.isBeeingRestored\\\"></i>\\n\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"!file.isBeeingRestored && file.expireDate\\\"><date-formatter [date]=\\\"file.expireDate\\\"></date-formatter></span>\\n\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t</tbody>\\n\\n\\t\\t\\t\\t\\t<tbody>\\n\\t\\t\\t\\t\\t\\t<tr [ngClass]=\\\"{'hidden' : !loading}\\\">\\n\\t\\t\\t\\t\\t\\t\\t<td colspan=\\\"8\\\" align=\\\"center\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<i class=\\\"fa fa-circle-o-notch fa-spin fa-2x fa-fw\\\"></i>\\n\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t</tbody>\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t</table>\\n\\n\\t\\t\\t</div>\\n\\n\\t\\t</div>\\n\\t\\t\\n\\t</div>\\n\\n</div>\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/components/templates/storagelist.html\n// module id = 1018\n// module chunks = 0","module.exports = \"\\n<modal #infoModal>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Abonnemang</h4>\\n    </modal-header>\\n    <modal-body *ngIf=\\\"subscription\\\">\\n\\t\\t\\t<div class=\\\"form-group row\\\">\\n\\t\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\t\\t\\t\\t\\t<textarea class=\\\"form-control\\\" [(ngModel)]=\\\"subscription.note\\\" rows=\\\"15\\\"></textarea>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\t\\t\\t\\t\\t<div class=\\\"form-group row\\\">\\n\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"btn-group full-width\\\" *ngIf=\\\"company.accounts\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn full-width btn-info dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngFor=\\\"let a of company.accounts\\\" [ngClass]=\\\"{'hidden' : subscription.accountId != a.accountId}\\\">#{{a.prefix}}</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" *ngFor=\\\"let a of company.accounts\\\" (click)=\\\"subscription.accountId = a.accountId; subscription.prefix = a.prefix;\\\">#{{a.prefix}}</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t<div class=\\\"form-group row\\\" [ngClass]=\\\"{'hidden' : subscription.status == 1}\\\">\\n\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t\\t\\t<label>Uppsägningsdatum</label>\\n\\t\\t\\t\\t\\t\\t\\t<datepicker [placeholder]=\\\"'Uppsägningsdatum'\\\" [date]=\\\"subscription.expireDate * 1000\\\" #subscriptionExpire></datepicker>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t<div class=\\\"form-group row\\\" [ngClass]=\\\"{'hidden' : subscription.status == 0 && !showRenewalDate}\\\">\\n\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t\\t\\t<label>Förnyelsedatum</label>\\n\\t\\t\\t\\t\\t\\t\\t<datepicker [placeholder]=\\\"'Utgångsdatum'\\\" [date]=\\\"subscription.renewalDate * 1000\\\" #subscriptionRenewal></datepicker>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t<div class=\\\"form-group row\\\" *ngIf=\\\"subscription.status == 0 && subscription.renewalDate > (subscription.expireDate + (60 * 60 * 24 * 180))\\\">\\n\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t\\t\\t<span class=\\\"warning\\\">Abonnemangets <strong>förnyelsedatum</strong> ligger mer än 6 månader framåt i tiden.</span>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t<div class=\\\"form-group row\\\" *ngIf=\\\"subscription.status == 0 && !showRenewalDate && subscription.renewalDate > (subscription.expireDate + (60 * 60 * 24 * 180))\\\">\\n\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-block btn-warning\\\" (click)=\\\"showRenewalDate = true\\\">Ojdå, det vill jag ändra</button>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t<div class=\\\"form-group row\\\" *ngIf=\\\"subscription.status == 0 && !showRenewalDate && subscription.renewalDate <= (subscription.expireDate + (60 * 60 * 24 * 180))\\\">\\n\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-block btn-warning\\\" (click)=\\\"showRenewalDate = true\\\">Ändra förnyelsedatum</button>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t<div class=\\\"form-group row\\\" *ngIf=\\\"subscription.status == 1\\\">\\n\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-block btn-danger\\\" (click)=\\\"subscription.status = 0\\\">Säg upp abonnemang</button>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\n\\n    </modal-body>\\n\\t\\t<modal-footer>\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-primary\\\" (click)=\\\"cancelSaveSubscription()\\\">Avbryt</button>\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-danger\\\" (click)=\\\"confirmDeleteSubscriptionModal.open()\\\">Ta bort</button>\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-primary\\\" (click)=\\\"saveSubscription()\\\">Spara</button>\\n\\t\\t</modal-footer>\\n</modal>\\n\\n<modal #confirmDeleteSubscriptionModal>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Ta bort abonnemang</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t\\t<p>\\n\\t\\t\\t\\t\\tVill du verkligen ta bort abonnemanget? Detta kan inte ångras.\\n\\t\\t\\t\\t</p>\\n\\t\\t\\t</div>\\t\\n    </modal-body>\\n\\t\\t<modal-footer>\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-danger\\\" (click)=\\\"confirmDeleteSubscriptionModal.dismiss()\\\">Avbryt</button>\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-success\\\" (click)=\\\"deleteSubscription()\\\">Ja, ta bort</button>\\n\\t\\t</modal-footer>\\n</modal>\\n\\n<modal #deleteModal>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Vänta</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t\\t<p *ngIf=\\\"!loadingError\\\">\\n\\t\\t\\t\\t\\t<i class=\\\"fa fa-circle-o-notch fa-spin fa-3x fa-fw\\\"></i>\\n\\t\\t\\t\\t</p>\\n\\t\\t\\t\\t<p>\\n\\t\\t\\t\\t\\tVänta, tar bort ...\\n\\t\\t\\t\\t</p>\\n\\t\\t\\t</div>\\t\\n    </modal-body>\\n</modal>\\n\\n<modal #saveModal>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Vänta</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t\\t<p *ngIf=\\\"!loadingError\\\">\\n\\t\\t\\t\\t\\t<i class=\\\"fa fa-circle-o-notch fa-spin fa-3x fa-fw\\\"></i>\\n\\t\\t\\t\\t</p>\\n\\t\\t\\t\\t<p>\\n\\t\\t\\t\\t\\tVänta, sparar ...\\n\\t\\t\\t\\t</p>\\n\\t\\t\\t</div>\\t\\n    </modal-body>\\n</modal>\\n\\n<modal #errorModal>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Fel</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t\\t<p>\\n\\t\\t\\t\\t\\t{{errorMessage}}\\n\\t\\t\\t\\t</p>\\n\\t\\t\\t</div>\\t\\n    </modal-body>\\n</modal>\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/components/templates/subscriptioninfo.html\n// module id = 1019\n// module chunks = 0","module.exports = \"\\n<modal #loadingModal>\\n\\t<modal-header [show-close]=\\\"false\\\">\\n\\t\\t\\t<h4 class=\\\"modal-title\\\">Vänta</h4>\\n\\t</modal-header>\\n\\t<modal-body>\\n\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t<i class=\\\"fa fa-circle-o-notch fa-spin fa-3x fa-fw\\\"></i>\\n\\t\\t</div>\\t\\n\\t</modal-body>\\n</modal>\\n\\n<orderinfo #orderInfo></orderinfo>\\n<invoiceinfo #invoiceInfo></invoiceinfo>\\n\\n\\n<div class=\\\"support-content\\\">\\n\\n<div class=\\\"row\\\">\\n\\t<nav class=\\\"navbar navbar-light bg-faded\\\">\\n\\t\\t\\n\\t\\t<button class=\\\"btn activity-count pull-xs-left\\\">Visar {{subscriptions.length}} av {{totalSubscriptions}} förnyelsebara abonnemang</button>\\n\\t\\t\\n\\t\\t<form class=\\\"form-inline pull-xs-left m-l-1\\\">\\n\\t\\t\\t<datepicker [placeholder]=\\\"'Förnyelsedatum'\\\" (onDateChanged)=\\\"updateDate($event.date)\\\" [date]=\\\"filter.renewalDate\\\" #renewalDate></datepicker>\\n\\t\\t</form>\\n\\n\\t\\t<form class=\\\"form-inline pull-xs-right m-l-1\\\">\\n\\t\\t\\t<button (click)=\\\"reload()\\\" type=\\\"button\\\" class=\\\"btn btn-primary\\\"><i class=\\\"fa fa-refresh\\\" [ngClass]=\\\"{'fa-circle-o-notch fa-spin fa-f' : refreshing}\\\"></i> Uppdatera</button>\\n\\t\\t</form>\\n\\t\\t\\n\\t\\t<div class=\\\"form-inline pull-xs-right\\\">\\n\\t\\t\\t\\t<form autocomplete=\\\"off\\\" style=\\\"float:left;margin-right: 10px;\\\"><input name=\\\"apa\\\" class=\\\"form-control\\\" type=\\\"text\\\" (keyup)=\\\"searchInvoices()\\\" [(ngModel)]=\\\"filter.phrase\\\" placeholder=\\\"Sök\\\" #searchFilter></form>\\n\\t\\t</div>\\n\\t\\t\\n\\t</nav>\\n</div>\\n\\n<div class=\\\"support-pane-master row full-height-fill full-width-fill p48\\\" [ngClass]=\\\"{'collapsed' : showInvoiceInfo}\\\">\\n\\t\\n\\t<div class=\\\"activity-list\\\"\\n\\t\\tinfinite-scroll\\n\\t\\t[infiniteScrollDistance]=\\\"2\\\"\\n\\t\\t[infiniteScrollThrottle]=\\\"500\\\"\\n\\t\\t(scrolled)=\\\"onScroll()\\\"\\n\\t\\t[scrollWindow]=\\\"false\\\"\\n\\t>\\n\\t\\n\\t\\t<div class=\\\"support-list-toolbar nomobile\\\" [ngClass]=\\\"{'open' : hasSelectedSubscriptions}\\\">\\t\\t\\t\\n\\t\\t\\t<a title=\\\"Förnya markerade\\\" (click)=\\\"renewSelected()\\\"><i class=\\\"fa fa-refresh\\\"></i></a>\\n\\t\\t\\t<a title=\\\"Inaktivera markerade\\\" (click)=\\\"deactivateSelected('deleted')\\\"><i class=\\\"fa fa-trash-o\\\"></i></a>\\n\\t\\t\\t<a class=\\\"counter\\\">( {{numSelected}} )</a>\\n\\t\\t</div>\\n\\n\\t\\t<table class=\\\"table table-sm\\\">\\n\\n\\t\\t\\t<thead >\\n\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t<th class=\\\"issue-check\\\">\\n\\t\\t\\t\\t\\t\\t\\t<i class=\\\"fa fa-check-square-o\\\" (click)=\\\"setAllSelected()\\\"></i>\\n\\t\\t\\t\\t\\t</th>\\n\\t\\t\\t\\t\\t<th nowrap=\\\"nowrap\\\">OrderNr</th>\\n\\t\\t\\t\\t\\t<th nowrap=\\\"nowrap\\\">Företag</th>\\n\\t\\t\\t\\t\\t<th width=\\\"10%\\\" nowrap=\\\"nowrap\\\">Skapad</th>\\n\\t\\t\\t\\t\\t<th width=\\\"10%\\\" nowrap=\\\"nowrap\\\">Utgångsdatum</th>\\n\\t\\t\\t\\t\\t<th nowrap=\\\"nowrap\\\">Status</th>\\n\\t\\t\\t\\t</tr>\\n\\t\\t\\t</thead>\\n\\n\\t\\t\\t<tbody *ngFor=\\\"let s of subscriptions\\\">\\n\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t<td class=\\\"vert-align\\\" (click)=\\\"s.selected = !s.selected; toggleSubscriptionsToolbar()\\\" scope=\\\"row\\\" nowrap=\\\"nowrap\\\" class=\\\"issue-check\\\">\\n\\t\\t\\t\\t\\t\\t<i class=\\\"fa\\\" [ngClass]=\\\"{'fa-square-o' : !s.selected, 'fa-check-square-o' : s.selected}\\\"></i>\\n\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t<td>\\n\\t\\t\\t\\t\\t\\t<a href=\\\"javascript:;\\\" (click)=\\\"showOrderInfo(s.companyId, s.orderId)\\\">{{s.orderNr}}</a>\\n\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t<td width=\\\"100%\\\" nowrap=\\\"nowrap\\\" class=\\\"vert-align\\\"><a href=\\\"javascript:;\\\" routerLink=\\\"/companies/{{s.companyId}}/subscriptions/subscriptions\\\">{{s.name}}</a></td>\\n\\t\\t\\t\\t\\t<td nowrap=\\\"nowrap\\\"><date-formatter [date]=\\\"s.createdDate\\\" [time]=\\\"false\\\"></date-formatter></td>\\n\\t\\t\\t\\t\\t<td nowrap=\\\"nowrap\\\"><date-formatter [date]=\\\"s.renewalDate\\\" [time]=\\\"false\\\"></date-formatter></td>\\n\\t\\t\\t\\t\\t<td nowrap=\\\"nowrap\\\" class=\\\"vert-align\\\">\\n\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"s.status == 1\\\">Aktiv</span>\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"s.status == 0\\\">Inaktiv</span>\\n\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t</tr>\\n\\t\\t\\t</tbody>\\n\\n\\t\\t\\t<tbody>\\n\\t\\t\\t\\t<tr [ngClass]=\\\"{'hidden' : !loading}\\\">\\n\\t\\t\\t\\t\\t<td colspan=\\\"9\\\" align=\\\"center\\\">\\n\\t\\t\\t\\t\\t\\t<i class=\\\"fa fa-circle-o-notch fa-spin fa-2x fa-fw\\\"></i>\\n\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t</tr>\\n\\t\\t\\t</tbody>\\n\\t\\t\\t\\n\\t</table>\\n\\n\\t</div>\\n\\n</div>\\n\\n</div>\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/components/templates/subscriptionlist.html\n// module id = 1020\n// module chunks = 0","module.exports = \"\\n<modal #sendingMailModal>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Skickar mail</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t\\t<p>\\n\\t\\t\\t\\t\\t<i class=\\\"fa fa-circle-o-notch fa-spin fa-3x fa-fw\\\"></i>\\n\\t\\t\\t\\t</p>\\n\\t\\t\\t\\t<p>\\n\\t\\t\\t\\t\\tVänta lite, skickar ...\\n\\t\\t\\t\\t</p>\\n\\t\\t\\t</div>\\t\\n    </modal-body>\\n</modal>\\n\\n<modal #sourceDialog>\\n    <modal-header [show-close]=\\\"true\\\">\\n        <h4 class=\\\"modal-title\\\">Mail</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div style=\\\"min-height: 500px\\\">\\n\\t\\t\\t\\t<html-source #sourceDialogSourceComponent></html-source>\\n\\t\\t\\t</div>\\t\\n    </modal-body>\\n</modal>\\n\\n<modal #draftModal>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Spara utkast</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t\\t<p>\\n\\t\\t\\t\\t\\tDu har gjort ändringar, vill du spara utkast?\\n\\t\\t\\t\\t</p>\\n\\t\\t\\t</div>\\t\\n    </modal-body>\\n\\t\\t<modal-footer>\\n\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-danger\\\" (click)=\\\"clearDraft()\\\">Spara inte</button>\\n        <button type=\\\"button\\\" class=\\\"btn btn-primary\\\" (click)=\\\"saveDraft()\\\">Spara utkast</button>\\n    </modal-footer>\\n</modal>\\n\\n<modal #noteModal>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Anteckning</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t<textarea class=\\\"form-control\\\" rows=\\\"20\\\" [(ngModel)]=\\\"noteBody\\\">\\n\\n\\t\\t\\t\\t</textarea>\\n\\t\\t\\t</div>\\t\\n    </modal-body>\\n\\t\\t<modal-footer>\\n        <button type=\\\"button\\\" class=\\\"btn btn-danger\\\" (click)=\\\"cancelNote()\\\">Avbryt</button>\\n\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-primary\\\" (click)=\\\"saveNote()\\\">Spara</button>\\n    </modal-footer>\\n</modal>\\n\\n<modal #addFileModal>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Lägger till fil</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t\\t<p>\\n\\t\\t\\t\\t\\t<i class=\\\"fa fa-circle-o-notch fa-spin fa-3x fa-fw\\\"></i>\\n\\t\\t\\t\\t</p>\\n\\t\\t\\t\\t<p>\\n\\t\\t\\t\\t\\tVänta lite, lägger till fil ...\\n\\t\\t\\t\\t</p>\\n\\t\\t\\t</div>\\t\\n    </modal-body>\\n</modal>\\n\\n<modal #errorModal>\\n\\t<modal-header [show-close]=\\\"false\\\">\\n\\t\\t\\t<h4 class=\\\"modal-title\\\">Fel</h4>\\n\\t</modal-header>\\n\\t<modal-body>\\n\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t<p>\\n\\t\\t\\t\\t{{errorMessage}}\\n\\t\\t\\t</p>\\n\\t\\t</div>\\t\\n\\t</modal-body>\\n\\t<modal-footer>\\n\\t\\t<button class=\\\"btn btn-danger\\\" (click)=\\\"errorModal.close()\\\">Stäng</button>\\n\\t</modal-footer>\\n</modal>\\n\\n<modal #waitDialog>\\n    <modal-header>\\n        <h4 class=\\\"modal-title\\\">Vänta lite</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t\\t<p>\\n\\t\\t\\t\\t\\t<i class=\\\"fa fa-circle-o-notch fa-spin fa-3x fa-fw\\\"></i>\\n\\t\\t\\t\\t</p>\\n\\t\\t\\t\\t<p>\\n\\t\\t\\t\\t\\tVänta lite ...\\n\\t\\t\\t\\t</p>\\n\\t\\t\\t</div>\\t\\n    </modal-body>\\n</modal>\\n\\n<modal #copyFilesModal>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Kopiera filer</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"center\\\" *ngIf=\\\"isCopyingFiles\\\">\\n\\t\\t\\t\\t<p>\\n\\t\\t\\t\\t\\t<i class=\\\"fa fa-circle-o-notch fa-spin fa-3x fa-fw\\\"></i>\\n\\t\\t\\t\\t\\t<br />\\n\\t\\t\\t\\t\\tVänta lite, kopierar ...\\n\\t\\t\\t\\t</p>\\n\\t\\t\\t</div>\\t\\n\\t\\t\\t<div *ngIf=\\\"loaded && !isCopyingFiles && _issue._source.company\\\">\\n\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t<label>Prefix</label>\\n\\t\\t\\t\\t\\t<select [disabled]=\\\"isCopyingFiles\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"copyFilesToPrefix\\\">\\n\\t\\t\\t\\t\\t\\t<option *ngFor=\\\"let a of _issue._source.company.accounts\\\" value=\\\"{{a.prefix}}\\\">{{a.prefix}}</option>\\n\\t\\t\\t\\t\\t</select>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t<label>Namn på mapp</label>\\n\\t\\t\\t\\t\\t<input [disabled]=\\\"isCopyingFiles\\\" class=\\\"form-control\\\" type=\\\"text\\\" [(ngModel)]=\\\"copyFilesToFolder\\\" />\\n\\t\\t\\t\\t\\t<span class=\\\"warning\\\" *ngIf=\\\"copyFilesToFolder == ''\\\"><em>Får inte vara tom</em></span>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t<div *ngIf=\\\"_issue._source.attachments && _issue._source.attachments.length > 0\\\">\\n\\t\\t\\t\\t\\t<em *ngIf=\\\"hasInvalidFiles\\\"><small>Dessa filer innehåller filnamn som är ogiltiga. Ändra dessa innan du laddar upp.</small></em>\\n\\t\\t\\t\\t\\t<div class=\\\"form-group\\\" *ngFor=\\\"let f of _issue._source.attachments\\\" [ngClass]=\\\"{'hidden' : !f.wasInvalidFileName || !f.selected}\\\">\\n\\t\\t\\t\\t\\t\\t<input type=\\\"text\\\" (keyup)=\\\"validateUploadedFileNames()\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"f.generatedFileName\\\" [ngClass]=\\\"{'form-error' : !f.validFileName}\\\">\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t<div class=\\\"form-group\\\" *ngFor=\\\"let f of _issue._source.attachments\\\" [ngClass]=\\\"{'hidden' : !f.fileNameAutoReplaced || f.wasInvalidFileName}\\\">\\n\\t\\t\\t\\t\\t\\t<em *ngIf=\\\"hasRenamedFiles\\\"><small>Denna fil har fått ett nytt namn automatiskt för att fungera bättre med synkningen mot Mamba.</small></em>\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t<input type=\\\"text\\\" (keyup)=\\\"validateUploadedFileNames()\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"f.generatedFileName\\\" [ngClass]=\\\"{'form-error' : !f.validFileName}\\\">\\n\\t\\t\\t\\t\\t</div>\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t<label>Skriv över filer om de existerar</label>\\n\\t\\t\\t\\t\\t<input [disabled]=\\\"isCopyingFiles\\\" class=\\\"form-control\\\" type=\\\"checkbox\\\" [(ngModel)]=\\\"copyFilesIgnoreExisting\\\" />\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n    </modal-body>\\n\\t\\t<modal-footer>\\n\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-warning\\\" (click)=\\\"copyFilesModal.dismiss()\\\">Avbryt</button>\\n        <button type=\\\"button\\\" [disabled]=\\\"isCopyingFiles || copyFilesToFolder == '' || hasInvalidFiles\\\" class=\\\"btn btn-primary\\\" (click)=\\\"confirmCopy()\\\">Kopiera ({{numFilesToCopy}}) filer</button>\\n    </modal-footer>\\n</modal>\\n\\n<modal #createReplyModal>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Skapa / Ändra standardsvar</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"form-group row\\\" *ngIf=\\\"editReplies\\\">\\n\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t<select class=\\\"form-control\\\" (change)=\\\"setEditedReply($event)\\\">\\n\\t\\t\\t\\t\\t\\t<option value=\\\"{{myIndex}}\\\" *ngFor=\\\"let r of standardReplies; let myIndex = index\\\">{{r.Name}}</option>\\n\\t\\t\\t\\t\\t</select>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"form-group row\\\">\\n\\t\\t\\t\\t<div class=\\\"col-md-10\\\">\\n\\t\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"standardReply.Name\\\">\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t<div class=\\\"col-md-2\\\">\\n\\t\\t\\t\\t\\t<div class=\\\"btn-group full-width\\\">\\n\\t\\t\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn full-width btn-warning\\\" (click)=\\\"clearReply()\\\">Rensa</button>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t<textarea class=\\\"form-control\\\" [(ngModel)]=\\\"standardReply.Text\\\" rows=\\\"20\\\"></textarea>\\n\\t\\t\\t</div>\\n    </modal-body>\\n\\t\\t<modal-footer>\\n\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-danger\\\" (click)=\\\"createReplyModal.dismiss()\\\">Avbryt</button>\\n\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-success\\\" (click)=\\\"saveStandardReply();\\\">Spara</button>\\n    </modal-footer>\\n</modal>\\n\\n<modal #replySentModal>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Besvarat</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t\\t<p>\\n\\t\\t\\t\\t\\tÄrendet är nu besvarat, vad vill du göra nu?\\n\\t\\t\\t\\t</p>\\n\\t\\t\\t</div>\\t\\n\\t\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t\\t<div class=\\\"btn-group\\\">\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n    </modal-body>\\n\\t\\t<modal-footer>\\n\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-warning\\\" *ngIf=\\\"loaded && _issue._source.status != 'closed'\\\" (click)=\\\"replySentModal.dismiss(); closeIssue()\\\">Stäng ärendet</button>\\n\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-success\\\" (click)=\\\"replySentModal.dismiss(); createActivity();\\\">Skapa en aktivitet</button>\\n        <button type=\\\"button\\\" class=\\\"btn btn-primary\\\" (click)=\\\"replySentModal.dismiss()\\\">Tillbaka</button>\\n    </modal-footer>\\n</modal>\\n\\n<modal #sendingMailErrorModal>\\n    <modal-header [show-close]=\\\"true\\\">\\n        <h4 class=\\\"modal-title\\\">Fel</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t\\t<p>Kunde inte skicka svar:</p>\\n\\t\\t\\t\\t<p>{{sendmailError}}</p>\\n\\t\\t\\t</div>\\t\\n    </modal-body>\\n\\t\\t<modal-footer>\\n        <button type=\\\"button\\\" class=\\\"btn btn-danger\\\" (click)=\\\"sendingMailErrorModal.dismiss()\\\">Stäng</button>\\n    </modal-footer>\\n</modal>\\n\\n<modal #noCompanyModal>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Ingen kund kopplad till ärendet</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div>\\n\\t\\t\\t\\t<p>Ingen kund är kopplad till ärendet, vill du besvara det ändå?</p>\\n\\t\\t\\t\\t<p>Utan kundkoppling så kommer detta ärendet inte att finnas i historiken för kunden.</p>\\n\\t\\t\\t</div>\\t\\n    </modal-body>\\n\\t\\t<modal-footer>\\n        <button type=\\\"button\\\" class=\\\"btn btn-danger\\\" (click)=\\\"noCompanyModal.dismiss()\\\">Avbryt</button>\\n        <button type=\\\"button\\\" class=\\\"btn btn-warning\\\" (click)=\\\"reply(true)\\\" data-dismiss=\\\"modal\\\">Besvara ändå</button>\\n    </modal-footer>\\n</modal>\\n\\n<modal #noCompanyModalActivity>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Ingen kund kopplad till ärendet</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div>\\n\\t\\t\\t\\t<p>Ingen kund är kopplad till ärendet, vill du skapa en aktivitet ändå?</p>\\n\\t\\t\\t\\t<p>Utan kundkoppling så kommer detta ärendet inte att finnas i historiken för kunden.</p>\\n\\t\\t\\t</div>\\t\\n    </modal-body>\\n\\t\\t<modal-footer>\\n        <button type=\\\"button\\\" class=\\\"btn btn-danger\\\" (click)=\\\"noCompanyModalActivity.dismiss()\\\">Avbryt</button>\\n        <button type=\\\"button\\\" class=\\\"btn btn-warning\\\" (click)=\\\"createActivity(true)\\\" data-dismiss=\\\"modal\\\">Skapa ändå</button>\\n    </modal-footer>\\n</modal>\\n\\n<create-activity-modal #createActivityModal></create-activity-modal>\\n\\n<div class=\\\"row b-b-1\\\">\\n\\t<div class=\\\"col-md-12\\\">\\n\\t\\t<h3><a href=\\\"javascript:;\\\" (click)=\\\"close()\\\"><i class=\\\"fa fa-close\\\"></i></a>\\n\\t\\t<span class=\\\"nomobile\\\">Supportdetaljer</span><small class=\\\"nomobile\\\"> - </small><small *ngIf=\\\"loaded\\\">{{_issue._source.subject}}</small></h3>\\n\\t</div>\\n</div>\\n\\n<div class=\\\"row\\\" *ngIf=\\\"!loaded && !loadError\\\">\\n\\t<div class=\\\"col-md-12 centered\\\">\\t\\n\\t\\t<div class=\\\"p-t-1 p-b-1\\\">\\n\\t\\t\\t<i class=\\\"fa fa-circle-o-notch fa-spin fa-3x fa-fw\\\"></i>\\n\\t\\t</div>\\n\\t</div>\\n</div>\\t\\t\\n\\n<div class=\\\"height-100 p-relative\\\" *ngIf=\\\"loadError\\\">\\n\\t<div class=\\\"row\\\">\\n\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\tFel, kunde inte hämta ärendet.\\n\\t\\t</div>\\n\\t</div>\\n</div>\\t\\n\\n<div *ngIf=\\\"loaded\\\" class=\\\"p-b-3 height-100\\\">\\n\\n\\t<div class=\\\"row\\\">\\n\\t\\t<div class=\\\"col-md-12 navbar\\\">\\n\\t\\t\\t<div class=\\\"btn-group\\\" *ngIf=\\\"editorOpen\\\">\\n\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-success\\\" (click)=\\\"send()\\\"><i class=\\\"fa fa-send\\\"></i> Skicka</button>\\n\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-danger\\\" (click)=\\\"cancelReply()\\\"><i class=\\\"fa fa-ban\\\"></i> Avbryt</button>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"btn-group\\\">\\n\\t\\t\\t\\t<button *ngIf=\\\"!editorOpen\\\" type=\\\"button\\\" class=\\\"btn btn-primary\\\" (click)=\\\"newReply()\\\"><i class=\\\"fa fa-mail-reply\\\"></i> <span class=\\\"nomobile\\\">Svara</span></button>\\n\\t\\t\\t\\t<button *ngIf=\\\"!editorOpen\\\" type=\\\"button\\\" class=\\\"btn btn-primary\\\" (click)=\\\"newNote()\\\"><i class=\\\"fa fa-commenting-o\\\"></i> <span class=\\\"nomobile\\\">Ny anteckning</span></button>\\n\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-primary\\\" *ngIf=\\\"_issue._source.company\\\" (click)=\\\"createActivity()\\\"><i class=\\\"fa fa-tasks\\\"></i> <span class=\\\"nomobile\\\">Skapa aktivitet</span></button>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"btn-group\\\">\\n\\t\\t\\t\\t<button *ngIf=\\\"_issue._source.status != 'closed'\\\" (click)=\\\"closeIssue()\\\" type=\\\"button\\\" class=\\\"btn btn-warning\\\"><i class=\\\"fa fa-times\\\"></i> <span class=\\\"nomobile\\\">Stäng ärendet</span></button>\\n\\t\\t\\t\\t<button *ngIf=\\\"_issue._source.status == 'closed'\\\" (click)=\\\"openIssue()\\\" type=\\\"button\\\" class=\\\"btn btn-success\\\"><i class=\\\"fa fa-folder-open-o\\\"></i> <span class=\\\"nomobile\\\">Öppna</span></button>\\n\\t\\t\\t\\t<button (click)=\\\"deleteIssue()\\\" type=\\\"button\\\" class=\\\"btn btn-danger\\\"><i class=\\\"fa fa-trash-o\\\"></i> <span class=\\\"nomobile\\\">Ta bort</span></button>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"btn-group\\\">\\n\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-info dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"_issue._source.user && _issue._source.user.userId != 0\\\">{{_issue._source.user.firstName}} {{_issue._source.user.lastName}}</span>\\n\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"!_issue._source.user || (_issue._source.user && (_issue._source.user.userId == 0 || _issue._source.user.userId == 26))\\\">Otilldelad</span>\\n\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"assignTo({ userId : 0, firstName : '', lastName : '', name : 'Otilldelad'})\\\">Otilldelad</a>\\n\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"assignTo({ userId : user.userId, firstName : user.firstName, lastName : user.lastName, name : user.firstName + ' ' + user.lastName })\\\">Tilldela till mig</a>\\n\\t\\t\\t\\t\\t<div class=\\\"dropdown-divider\\\"></div>\\n\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" *ngFor=\\\"let u of availableUsers\\\" (click)=\\\"assignTo(u)\\\">{{u.lastName}}, {{u.firstName}}</a>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n\\t</div>\\n\\n\\t<div class=\\\"row\\\">\\n\\t\\t<div class=\\\"col-md-9\\\">\\t\\n\\t\\t\\t\\t<ul class=\\\"nav nav-tabs\\\">\\n\\t\\t\\t\\t\\t<li role=\\\"presentation\\\" [ngClass]=\\\"{'active' : show == 'contents'}\\\"><a (click)=\\\"show = 'contents'\\\">Innehåll</a></li>\\n\\t\\t\\t\\t\\t<li role=\\\"presentation\\\" *ngIf=\\\"_issue._source.comments && _issue._source.comments.length > 0\\\" [ngClass]=\\\"{'active' : show == 'comments'}\\\"><a (click)=\\\"show = 'comments'\\\">Anteckningar ( {{_issue._source.comments.length}} )</a></li>\\n\\t\\t\\t\\t\\t<li *ngIf=\\\"_issue._source.company\\\" role=\\\"presentation\\\" [ngClass]=\\\"{'active' : show == 'history'}\\\"><a (click)=\\\"show = 'history'\\\">Supporthistorik <i *ngIf=\\\"historyLoading\\\" class=\\\"fa fa-circle-o-notch fa-spin fa-fw\\\"></i> <span *ngIf=\\\"history\\\">( {{history.length}} / {{historyLength}} )</span></a></li>\\n\\t\\t\\t\\t\\t<li *ngIf=\\\"_issue._source.company\\\" role=\\\"presentation\\\" [ngClass]=\\\"{'active' : show == 'activities'}\\\"><a (click)=\\\"show = 'activities'\\\">Aktiviteter <i *ngIf=\\\"activitiesLoading\\\" class=\\\"fa fa-circle-o-notch fa-spin fa-fw\\\"></i> <span *ngIf=\\\"activities\\\">( {{activities.length}} )</span></a></li>\\n\\t\\t\\t\\t\\t<li role=\\\"presentation\\\" *ngIf=\\\"_issue._source.replies && _issue._source.replies.length > 0\\\" [ngClass]=\\\"{'active' : show == 'replies'}\\\"><a (click)=\\\"show = 'replies'\\\">Svar ( {{_issue._source.replies.length}} )</a></li>\\t\\t\\t\\t\\t\\t<li role=\\\"presentation\\\" [ngClass]=\\\"{'active' : show == 'accounthistory'}\\\" *ngIf=\\\"_issue._source.company\\\"><a (click)=\\\"show = 'accounthistory'\\\">Kontohistorik</a></li>\\n\\t\\t\\t\\t</ul>\\n\\t\\t</div>\\n\\t</div>\\n\\n\\t<div class=\\\"row height-100 scrollable\\\">\\n\\n\\t\\t<div class=\\\"col-md-9 height-100 form-group\\\">\\t\\n\\n\\t\\t\\t<div class=\\\"height-100 mail-contents\\\">\\n\\t\\t\\t\\t\\n\\t\\t\\t\\t<div [ngClass]=\\\"{'hidden' : !editorOpen || show != 'contents'}\\\" class=\\\"editor\\\">\\n\\t\\t\\t\\t\\t<div class=\\\"row form-group\\\">\\n\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\t\\t\\t\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"replySubject\\\" />\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"btn-group full-width\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-info dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\">Infoga standardsvar</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"createStandardReply()\\\">Nytt standardsvar</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" *ngIf=\\\"standardReplies.length > 0\\\" (click)=\\\"editStandardReply()\\\">Redigera standardsvar</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-divider\\\"></div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" *ngFor=\\\"let r of standardReplies\\\" (click)=\\\"setStandardReply(r)\\\">{{r.Name}}</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t<div class=\\\"row form-group\\\">\\n\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\t\\t\\t\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"replyToEmail\\\" />\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\t\\t\\t\\t\\t\\t\\t<input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"replyToEmailCopy\\\" placeholder=\\\"Kopia till\\\"/>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t<div class=\\\"row form-group\\\">\\n\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t\\t\\t<input type=\\\"file\\\" [(ngModel)]=\\\"fileName\\\" class=\\\"form-control\\\" (change)=\\\"handleAddedFile($event, this)\\\" />\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t<div class=\\\"row form-group\\\" *ngIf=\\\"replyAttachments.length > 0\\\">\\n\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t\\t\\t<span *ngFor=\\\"let a of replyAttachments; let myIndex = index\\\"><span *ngIf=\\\"myIndex > 0\\\"> | </span><a href=\\\"javascript:;\\\" (click)=\\\"replyAttachments.splice(myIndex, 1)\\\"><i class=\\\"fa fa-trash\\\"></i></a> {{a.fileName}} {{a.length / 1024 | number : '2.1-2'}}kB</span>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t<div id=\\\"editor\\\"><p></p>\\n\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t\\n\\t\\t\\t\\t<div [ngClass]=\\\"{'hidden' : show != 'contents' || editorOpen}\\\">\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t<div *ngIf=\\\"_issue._source.headers['x-spam-result'] == 'yes'\\\" class=\\\"spam\\\">\\n\\t\\t\\t\\t\\t\\t\\t<i class=\\\"fa fa-trash-o\\\"></i> Detta ärende är markerat som skräppost. <button (click)=\\\"markSpam()\\\" class=\\\"pull-right btn btn-xs button-primary\\\">Flytta till skräpmappen</button>\\n\\t\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t\\t<div class=\\\"attachments\\\" *ngIf=\\\"_issue._source.attachments && _issue._source.attachments.length > 0\\\">\\n\\t\\t\\t\\t\\t\\t<span class=\\\"issue-check small\\\" *ngFor=\\\"let a of _issue._source.attachments\\\">\\n\\t\\t\\t\\t\\t\\t\\t<i *ngIf=\\\"_issue._source.company\\\" (click)=\\\"toggleAttachmentSelected(a)\\\" [ngClass]=\\\"{'fa-check-square-o' : a.selected, 'fa-square-o' : !a.selected}\\\" class=\\\"fa w1\\\"></i> \\n\\t\\t\\t\\t\\t\\t\\t<a href=\\\"javascript:;\\\" (click)=\\\"downloadAttachment('hsd-incoming-bucket', 'attachments/' + _issue._id + '/' + a.contentId)\\\" class=\\\"attachment-file\\\" target=\\\"_blank\\\"><i class=\\\"fa fa-file\\\"></i> {{a.generatedFileName}} \\n\\t\\t\\t\\t\\t\\t\\t\\t<small *ngIf=\\\"!a.length\\\">(!!felaktig!!, filstorlek är noll)</small> <small *ngIf=\\\"a.length > 0\\\">( {{a.humanReadableSize}}kB )</small></a>\\n\\t\\t\\t\\t\\t\\t</span>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t<div class=\\\"attachments attachments-toolbar\\\" [ngClass]=\\\"{'hidden' : !hasSelectedAttachments}\\\">\\n\\t\\t\\t\\t\\t\\t\\t<a href=\\\"javascript:;\\\" (click)=\\\"copyToMamba()\\\"><i class=\\\"fa fa-hdd-o\\\"></i> Kopiera till mamba</a> | <a href=\\\"javascript:;\\\" (click)=\\\"copyToStorage()\\\"><i class=\\\"fa fa-globe\\\"></i> Kopiera till filarkivet</a>\\n\\t\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t\\t<h4>Ämne: {{_issue._source.subject||'inget ämne'}}</h4>\\n\\t\\t\\t\\t\\t<h5>Från: {{_issue._source.headers.from}}</h5>\\n\\t\\t\\t\\t\\t<h5>Till: {{_issue._source.headers.to}}<span *ngIf=\\\"_issue._source.headers.cc\\\">, Kopia: {{_issue._source.headers.cc}}</span></h5>\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t<h5><date-formatter [date]=\\\"_issue._source.date\\\"></date-formatter></h5>\\n\\n\\t\\t\\t\\t\\t<div class=\\\"issue-headers\\\" [ngClass]=\\\"{'hidden' : !showHeaders}\\\">\\n\\t\\t\\t\\t\\t\\t<span *ngFor=\\\"let h of _issue.headers\\\">\\n\\t\\t\\t\\t\\t\\t<strong>{{h.name}}:</strong> {{h.value}}<br />\\n\\t\\t\\t\\t\\t\\t</span>\\n\\t\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t\\t<p class=\\\"nomobile\\\">\\n\\t\\t\\t\\t\\t\\t<a [ngClass]=\\\"{'l-active' : showSource == 'html'}\\\" href=\\\"javascript:;\\\" (click)=\\\"showSource = 'html'\\\">html</a> | <a [ngClass]=\\\"{'l-active' : showSource == 'text'}\\\" href=\\\"javascript:;\\\" (click)=\\\"showSource = 'text'\\\">text</a>\\n\\t\\t\\t\\t\\t</p>\\n\\n\\t\\t\\t\\t\\t<p class=\\\"nodesktop\\\">\\n\\t\\t\\t\\t\\t\\t<a class=\\\"btn btn-info btn-block w50\\\" (click)=\\\"displaySource(_issue._source.html)\\\">Visa som HTML</a>\\n\\t\\t\\t\\t\\t\\t<a class=\\\"btn btn-info btn-block w50\\\" (click)=\\\"displaySource('<pre>' + _issue._source.text + '</pre>')\\\">Visa som Text</a>\\n\\t\\t\\t\\t\\t</p>\\n\\n\\t\\t\\t\\t\\t<html-source class=\\\"nomobile\\\" [ngClass]=\\\"{'hidden' : showSource != 'html'}\\\" [source]=\\\"_issue._source.html || '...'\\\"></html-source>\\n\\t\\t\\t\\t\\t<html-source class=\\\"nomobile\\\" [ngClass]=\\\"{'hidden' : showSource != 'text'}\\\" [source]=\\\"'<pre>' + (_issue._source.text || '...') + '</pre>'\\\"></html-source>\\n\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\n\\t\\t\\t\\t<div [ngClass]=\\\"{'hidden' : show != 'activities'}\\\" class=\\\"support-history\\\" *ngIf=\\\"activities && activities.length > 0\\\">\\n\\n\\t\\t\\t\\t\\t<table class=\\\"table table-sm\\\">\\n\\t\\t\\t\\t\\t\\t<thead >\\n\\t\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t<th>Beskrivning</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t<th nowrap=\\\"nowrap\\\">Ägare</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t<th nowrap=\\\"nowrap\\\">Status</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t<th>Start</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t<th>Stop</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t<th></th>\\n\\t\\t\\t\\t\\t\\t\\t\\t<th></th>\\n\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t</thead>\\n\\t\\t\\t\\t\\t\\t<tbody *ngFor=\\\"let activity of activities\\\">\\n\\t\\t\\t\\t\\t\\t\\t<tr [ngClass]=\\\"{'table-danger' : activity.endDate <= today && activity.statusId != 6}\\\">\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t<td class=\\\"vert-align\\\" width=\\\"100%\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<a href=\\\"javascript:;\\\" (click)=\\\"activity.visible = !activity.visible\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span>{{activity.name}}</span><br />\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<small [innerHTML]=\\\"activity.description|truncate:[75]\\\"></small>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t<td class=\\\"vert-align\\\" nowrap=\\\"nowrap\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"activity.userId != 26\\\">{{activity.firstName}} {{activity.lastName}}</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"activity.userId == 26\\\"><em>Otilldelad</em></span>\\n\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t<td class=\\\"vert-align\\\">\\t\\t\\t\\t\\t\\t  \\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"activity.statusId == 2\\\">Startklar</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"activity.statusId == 3\\\">Startad</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"activity.statusId == 4\\\">Avstannad</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"activity.statusId == 5\\\">Lansering</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"activity.statusId == 6\\\">Avslutad</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"activity.statusId == 7\\\">Väntar</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap=\\\"nowrap\\\" class=\\\"vert-align\\\"><date-formatter [time]=\\\"false\\\" [date]=\\\"activity.startDate\\\"></date-formatter></td>\\n\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap=\\\"nowrap\\\" class=\\\"vert-align\\\"><date-formatter [time]=\\\"false\\\" [date]=\\\"activity.endDate\\\"></date-formatter></td>\\n\\t\\t\\t\\t\\t\\t\\t\\t<td class=\\\"vert-align\\\">\\t\\t\\t\\t\\t\\t  \\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-primary\\\" routerLink=\\\"/activities/all/{{activity.taskId}}/support:{{listType}}:{{_issue._id}}:activities\\\"><i class=\\\"fa fa-info\\\"></i></button>\\n\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t\\t<tr [ngClass]=\\\"{'hidden' : !activity.visible}\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<td colspan=\\\"8\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<div *ngIf=\\\"activity.visible\\\" [innerHTML]=\\\"activity.description|nl2br\\\"></div>\\n\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t</tbody>\\n\\t\\t\\t\\t\\t</table>\\n\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t<div *ngIf=\\\"show == 'accounthistory'\\\" class=\\\"height-100\\\">\\n\\t\\t\\t\\t\\t<communication-history [autoRefresh]=\\\"true\\\" [accounts]=\\\"_issue._source.company.accounts\\\" [companyId]=\\\"_issue._source.company.companyId\\\"></communication-history>\\n\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t<div [ngClass]=\\\"{'hidden' : show != 'comments'}\\\">\\n\\t\\t\\t\\t\\t<table class=\\\"table\\\" *ngIf=\\\"_issue._source.comments && _issue._source.comments.length > 0\\\">\\n\\t\\t\\t\\t\\t\\t<thead>\\n\\t\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t<th>Av</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t<th>Anteckning</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t<th>Datum</th>\\n\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t</thead>\\n\\t\\t\\t\\t\\t\\t<tbody *ngFor=\\\"let n of _issue._source.comments\\\">\\n\\t\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap=\\\"nowrap\\\" class=\\\"vert-align\\\"><span *ngIf=\\\"n.from\\\">{{n.from.firstName}} {{n.from.lastName}}</span></td>\\n\\t\\t\\t\\t\\t\\t\\t\\t<td><span [innerHTML]=\\\"n.body|nl2br\\\"></span></td>\\n\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap=\\\"nowrap\\\" class=\\\"vert-align\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<date-formatter [date]=\\\"n.date\\\"></date-formatter>\\n\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t</tbody>\\n\\t\\t\\t\\t\\t</table>\\n\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t<div [ngClass]=\\\"{'hidden' : show != 'replies'}\\\">\\n\\t\\t\\t\\t\\t<table class=\\\"table\\\" *ngIf=\\\"_issue._source.replies && _issue._source.replies.length > 0\\\">\\n\\t\\t\\t\\t\\t\\t<thead>\\n\\t\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t<th>Från</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t<th>Till</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t<th>Meddelande</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t<th>Datum</th>\\n\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t</thead>\\n\\t\\t\\t\\t\\t\\t<tbody *ngFor=\\\"let r of _issue._source.replies\\\">\\n\\t\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap=\\\"nowrap\\\" class=\\\"vert-align\\\">{{r.from.firstName}} {{r.from.lastName}}</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap=\\\"nowrap\\\" class=\\\"vert-align\\\">{{r.to}}</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap=\\\"nowrap\\\" width=\\\"100%\\\" class=\\\"vert-align\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<a (click)=\\\"r.selected = !r.selected\\\" href=\\\"javascript:;\\\">{{r.subject}}</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap=\\\"nowrap\\\" class=\\\"vert-align\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<date-formatter [date]=\\\"r.date\\\"></date-formatter>\\n\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t\\t<tr *ngIf=\\\"r.selected\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<td colspan=\\\"5\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<html-source [source]=\\\"r.content\\\"></html-source>\\n\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t</tbody>\\n\\t\\t\\t\\t\\t</table>\\n\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t<div [ngClass]=\\\"{'hidden' : show != 'history'}\\\" class=\\\"support-history height-100\\\" *ngIf=\\\"history && history.length > 0\\\">\\n\\t\\t\\t\\t\\t<table class=\\\"table\\\">\\n\\t\\t\\t\\t\\t\\t<thead>\\n\\t\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t<th></th>\\n\\t\\t\\t\\t\\t\\t\\t\\t<th>Från</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t<th>Meddelande</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t<th>Datum</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t<th></th>\\n\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t</thead>\\n\\t\\t\\t\\t\\t\\t<tbody *ngFor=\\\"let i of history\\\">\\n\\t\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t<td class=\\\"vert-align\\\"><i class=\\\"fa fa-envelope\\\"></i></td>\\n\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap=\\\"nowrap\\\" class=\\\"vert-align\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"i._source.company\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t{{i._source.company.name|truncate:[30]|lowercase}}<br />\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"!i._source.company && i._source.from[0].name\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t{{issue._source.from[0].name|truncate:[30]|lowercase}}<br />\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"!i._source.company && !i._source.from[0].name\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<em>Inget namn</em><br />\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"small\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t{{i._source.from[0].address}}\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t<td class=\\\"vert-align\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<a href=\\\"javascript:;\\\" (click)=\\\"i.selected = !i.selected\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<strong *ngIf=\\\"i._source.headers.subject\\\">{{i._source.headers.subject|truncate:[75]}}</strong>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<strong *ngIf=\\\"!i._source.headers.subject\\\"><em>inget ämne</em></strong><br />\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"support-issue-msg\\\">{{(i._source.text)|truncate:[50]}}</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t<td class=\\\"vert-align\\\" nowrap=\\\"nowrap\\\"><date-formatter [date]=\\\"i._source.date\\\"></date-formatter></td>\\n\\t\\t\\t\\t\\t\\t\\t\\t<td class=\\\"vert-align\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<a class=\\\"btn btn-primary\\\" (click)=\\\"this.issue = i\\\" routerLink=\\\"/support/{{listType}}/{{i._id}}\\\" href=\\\"javascript:;\\\"><i class=\\\"fa fa-folder-open-o\\\"></i></a>\\n\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t\\t<tr [ngClass]=\\\"{'hidden' : !i.selected}\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<td colspan=\\\"3\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<html-source *ngIf=\\\"i.selected\\\" class=\\\"history-html-source\\\" [source]=\\\"i._source.html || ('<pre>' + i._source.text + '</pre>')\\\"></html-source>\\n\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t\\t<tr *ngFor=\\\"let r of i._source.replies\\\" class=\\\"sub-support-issue\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<td class=\\\"vert-align\\\"><i class=\\\"fa fa-reply\\\"></i></td>\\n\\t\\t\\t\\t\\t\\t\\t\\t<td class=\\\"vert-align\\\">{{r.from.firstName}} {{r.from.lastName}}</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t<td class=\\\"vert-align\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<a href=\\\"javascript:;\\\" (click)=\\\"r.selected = !r.selected\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<strong>{{r.subject|truncate:[75]}}</strong><br />\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"support-issue-msg\\\">{{(r.content)|truncate:[50]}}</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t<td class=\\\"vert-align\\\" nowrap=\\\"nowrap\\\"><date-formatter [date]=\\\"r.date\\\"></date-formatter></td>\\n\\t\\t\\t\\t\\t\\t\\t\\t<td></td>\\n\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t\\t<tr *ngFor=\\\"let r of i._source.replies\\\" [ngClass]=\\\"{'hidden' : !r.selected}\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<td colspan=\\\"4\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<html-source *ngIf=\\\"r.selected\\\" class=\\\"history-html-source\\\" [source]=\\\"r.content\\\"></html-source>\\n\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t</tbody>\\n\\t\\t\\t\\t\\t\\t<tr *ngIf=\\\"history.length < historyLength\\\">\\n\\t\\t\\t\\t\\t\\t\\t<td colspan=\\\"5\\\"><div class=\\\"centered\\\"><a href=\\\"javascript:;\\\" (click)=\\\"loadHistory(history.length, 10)\\\">Ladda fler</a></div></td>\\n\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t</table>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n\\t\\t<div class=\\\"col-md-3 height-100 form-group\\\">\\n\\t\\t\\t<div class=\\\"height-100 panel panel-default\\\">\\n\\t\\t\\t\\t<div class=\\\"panel-body\\\">\\n\\t\\t\\t\\t\\t<customer-info [refPath]=\\\"refPath\\\" (onLoadCompany)=\\\"handleOnCompanyLoaded($event)\\\" (onAssignCompany)=\\\"handleOnCompanyAssigned($event)\\\" (onUnAssignCompany)=\\\"handleOnCompanyUnAssigned()\\\" [issue]=\\\"_issue\\\"></customer-info>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n\\t</div>\\n\\n</div>\\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/components/templates/supportdetails.html\n// module id = 1021\n// module chunks = 0","module.exports = \"\\n<modal #assignToAllUnassignedModal>\\n    <modal-header [show-close]=\\\"true\\\">\\n        <h4 class=\\\"modal-title\\\">Koppla alla</h4>\\n    </modal-header>\\n    <modal-body>\\n        Vill du koppla alla okopplade supportärenden ( <strong>{{numUnAssigned}}st</strong> ) med avsändaren <em>{{unassignedEmail}}</em> till samma företag?\\n    </modal-body>\\n\\t\\t<modal-footer>\\n        <button type=\\\"button\\\" class=\\\"btn btn-default\\\" data-dismiss=\\\"modal\\\" (click)=\\\"assignToAllUnassignedModal.dismiss()\\\">Nej</button>\\n        <button type=\\\"button\\\" class=\\\"btn btn-primary\\\" (click)=\\\"assignAllUnassigned()\\\">Ja,koppla alla</button>\\n    </modal-footer>\\n</modal>\\n\\n<modal #loadingModal>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Vänta</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t\\t<p>\\n\\t\\t\\t\\t\\t<i class=\\\"fa fa-circle-o-notch fa-spin fa-3x fa-fw\\\"></i>\\n\\t\\t\\t\\t</p>\\n\\t\\t\\t</div>\\t\\n    </modal-body>\\n</modal>\\n\\n<modal #unassignedWarning>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Ingen kund kopplad till ärendet</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div>\\n\\t\\t\\t\\t<p>Ingen kund är kopplad till ärendet, vill du stänga det ändå?</p>\\n\\t\\t\\t\\t<p>Utan kundkoppling så kommer detta ärendet inte att finnas i historiken för kunden.</p>\\n\\t\\t\\t</div>\\t\\n    </modal-body>\\n\\t\\t<modal-footer>\\n        <button type=\\\"button\\\" class=\\\"btn btn-danger\\\" data-dismiss=\\\"modal\\\" (click)=\\\"closeUnassignedWarning(false)\\\">Avbryt</button>\\n        <button type=\\\"button\\\" class=\\\"btn btn-warning\\\" data-dismiss=\\\"modal\\\" (click)=\\\"closeUnassignedWarning(true)\\\">Stäng ändå</button>\\n    </modal-footer>\\n</modal>\\n\\n<div class=\\\"support-content row\\\">\\n\\n\\t<div class=\\\"nomobile\\\">\\n\\t\\t<nav class=\\\"navbar navbar-toggleable-md navbar-light bg-faded\\\">\\n\\t\\t\\t<div class=\\\"form-inline\\\">\\n\\t\\t\\t\\t<div class=\\\"form-group\\\">\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t<button class=\\\"btn activity-count\\\">Visar {{issues.length}} av {{totalIssues}} ärenden</button>\\n\\t\\t\\t\\t\\t<div class=\\\"btn-group\\\" role=\\\"group\\\" aria-label=\\\"Basic example\\\">\\n\\t\\t\\t\\t\\t\\t<button type=\\\"button\\\" [ngClass]=\\\"{'btn-primary' : filter.to == 'support', 'btn-warning' : filter.to == 'produktion', 'btn-info' : filter.to == 'info', 'btn-success' : filter.to == 'material'}\\\" class=\\\"btn dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"filter.to\\\">{{filter.to}}</span>\\n\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"!filter.to\\\">alla</span>\\n\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\" aria-labelledby=\\\"dropdownMenuButton\\\">\\n\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"setToFilter(null)\\\">Alla</a>\\n\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"setToFilter('domain')\\\">Domain</a>\\n\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"setToFilter('info')\\\">Info</a>\\n\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"setToFilter('material')\\\">Material</a>\\n\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"setToFilter('produktion')\\\">Produktion</a>\\n\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"setToFilter('support')\\\">Support</a>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t<div class=\\\"btn-group\\\" role=\\\"group\\\" aria-label=\\\"Basic example\\\">\\n\\t\\t\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-primary dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngFor=\\\"let user of availableUsers\\\" [ngClass]=\\\"{'hidden' : filter.userId != user.userId}\\\">{{user.firstName}} {{user.lastName}}</span>\\n\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" [ngClass]=\\\"{'hidden' : filter.userId != -1}\\\">Alla</span>\\n\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" [ngClass]=\\\"{'hidden' : filter.userId != 0}\\\">Otilldelad</span>\\n\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\" aria-labelledby=\\\"dropdownMenuButton\\\">\\n\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"setFilterAssignedTo(null)\\\">Alla</a>\\n\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"setFilterAssignedTo({ userId : 0 })\\\">Otilldelad</a>\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-divider\\\"></div>\\n\\t\\t\\t\\t\\t\\t\\t<a href=\\\"javascript:;\\\" class=\\\"dropdown-item\\\" *ngFor=\\\"let user of availableUsers\\\" (click)=\\\"setFilterAssignedTo(user)\\\">{{user.lastName}}, {{user.firstName}}</a>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t<div class=\\\"btn-group\\\" role=\\\"group\\\" aria-label=\\\"Basic example\\\">\\n\\t\\t\\t\\t\\t\\t<button *ngFor=\\\"let btn of filterButtons\\\" (click)=\\\"toggleFilterButton(btn)\\\" type=\\\"button\\\" class=\\\"btn\\\" [ngClass]=\\\"{'btn-primary' : !btn.checked, 'btn-success' : btn.checked}\\\">{{btn.name}}</button>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t<div class=\\\"form-inline pull-right\\\">\\n\\t\\t\\t\\t\\t<form autocomplete=\\\"off\\\" style=\\\"float:left;margin-right: 10px;\\\"><input name=\\\"apa\\\" class=\\\"form-control\\\" type=\\\"text\\\" (keyup)=\\\"searchIssues()\\\" [(ngModel)]=\\\"filter.phrase\\\" placeholder=\\\"Sök\\\" #searchFilter></form>\\n\\t\\t\\t\\t\\t<button (click)=\\\"reload()\\\" type=\\\"button\\\" class=\\\"btn btn-primary\\\"><i class=\\\"fa fa-refresh\\\" [ngClass]=\\\"{'fa-circle-o-notch fa-spin fa-f' : loading}\\\"></i> Uppdatera</button>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t</nav>\\n\\t</div>\\n\\n\\t<div class=\\\"nodesktop\\\">\\n\\t\\t<nav class=\\\"navbar navbar-toggleable-md navbar-light bg-faded\\\">\\n\\t\\t\\t<div class=\\\"form-inline\\\">\\n\\t\\t\\t\\t<div class=\\\"form-group\\\">\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t<div class=\\\"btn-group\\\" role=\\\"group\\\" aria-label=\\\"Basic example\\\">\\n\\t\\t\\t\\t\\t\\t<button type=\\\"button\\\" [ngClass]=\\\"{'btn-primary' : filter.to == 'support', 'btn-warning' : filter.to == 'produktion', 'btn-info' : filter.to == 'info', 'btn-success' : filter.to == 'material'}\\\" class=\\\"btn dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"filter.to\\\">{{filter.to}}</span>\\n\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"!filter.to\\\">alla</span>\\n\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\" aria-labelledby=\\\"dropdownMenuButton\\\">\\n\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"setToFilter(null)\\\">Alla</a>\\n\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"setToFilter('domain')\\\">Domain</a>\\n\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"setToFilter('info')\\\">Info</a>\\n\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"setToFilter('material')\\\">Material</a>\\n\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"setToFilter('produktion')\\\">Produktion</a>\\n\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"setToFilter('support')\\\">Support</a>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t<div class=\\\"btn-group\\\" role=\\\"group\\\" aria-label=\\\"Basic example\\\">\\n\\t\\t\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-primary dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngFor=\\\"let user of availableUsers\\\" [ngClass]=\\\"{'hidden' : filter.userId != user.userId}\\\">{{user.firstName}} {{user.lastName}}</span>\\n\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" [ngClass]=\\\"{'hidden' : filter.userId != -1}\\\">Alla</span>\\n\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" [ngClass]=\\\"{'hidden' : filter.userId != 0}\\\">Otilldelad</span>\\n\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\" aria-labelledby=\\\"dropdownMenuButton\\\">\\n\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"setFilterAssignedTo(null)\\\">Alla</a>\\n\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"setFilterAssignedTo({ userId : 0 })\\\">Otilldelad</a>\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-divider\\\"></div>\\n\\t\\t\\t\\t\\t\\t\\t<a href=\\\"javascript:;\\\" class=\\\"dropdown-item\\\" *ngFor=\\\"let user of availableUsers\\\" (click)=\\\"setFilterAssignedTo(user)\\\">{{user.lastName}}, {{user.firstName}}</a>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t<div class=\\\"btn-group\\\" role=\\\"group\\\" aria-label=\\\"Basic example\\\">\\n\\t\\t\\t\\t\\t\\t<button *ngFor=\\\"let btn of filterButtons\\\" (click)=\\\"toggleFilterButton(btn)\\\" type=\\\"button\\\" class=\\\"btn\\\" [ngClass]=\\\"{'btn-primary' : !btn.checked, 'btn-success' : btn.checked}\\\">{{btn.name}}</button>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t</nav>\\n\\t</div>\\n\\t\\n\\t<div class=\\\"support-pane-master height-100 p-b-3\\\" [ngClass]=\\\"{'collapsed' : showSupportInfo}\\\">\\n\\t\\t\\n\\t\\t<div class=\\\"support-list\\\"\\n\\t\\t            infinite-scroll\\n\\t\\t            [infiniteScrollDistance]=\\\"2\\\"\\n\\t\\t            [infiniteScrollThrottle]=\\\"500\\\"\\n\\t\\t            (scrolled)=\\\"onScroll()\\\"\\n\\t\\t            [scrollWindow]=\\\"false\\\">\\n\\t\\t\\t\\n\\t\\t\\t<div class=\\\"support-list-toolbar nomobile\\\" [ngClass]=\\\"{'open' : hasSelectedIssues, 'hidden' : showSupportInfo}\\\">\\n\\t\\t\\t\\t<div class=\\\"dropdown-owe\\\">\\n\\t\\t\\t\\t\\t<a title=\\\"Sätt status på markerade\\\" class=\\\"dropdown-toggle\\\" id=\\\"dropdownMenuButton\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\"><i class=\\\"fa fa-flag-o\\\"></i></a>\\n\\t\\t\\t\\t  <div class=\\\"dropdown-menu\\\" aria-labelledby=\\\"dropdownMenuButton\\\">\\n\\t\\t\\t\\t    <a class=\\\"dropdown-item\\\" (click)=\\\"markSelected('open')\\\">Öppet</a>\\n\\t\\t\\t\\t    <a class=\\\"dropdown-item\\\" (click)=\\\"markSelected('pending')\\\">Väntar</a>\\n\\t\\t\\t\\t    <a class=\\\"dropdown-item\\\" (click)=\\\"markSelected('closed')\\\">Stängd</a>\\n\\t\\t\\t\\t    <a class=\\\"dropdown-item\\\" (click)=\\\"markSelected('spam')\\\">Skräp</a>\\n\\t\\t\\t\\t  </div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t<div class=\\\"dropdown-owe\\\">\\n\\t\\t\\t\\t\\t<a title=\\\"Tilldela markerade till\\\" class=\\\"dropdown-toggle\\\" id=\\\"dropdownMenuButton\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\"><i class=\\\"fa fa-group\\\"></i></a>\\n\\t\\t\\t\\t  <div class=\\\"dropdown-menu\\\" aria-labelledby=\\\"dropdownMenuButton\\\">\\n\\t\\t\\t\\t\\t  <a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"assignSelected({ userId : 26, firstName : '', lastName : ''})\\\">Otilldelad</a>\\n\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-divider\\\"></div>\\n\\t\\t\\t\\t    <a class=\\\"dropdown-item\\\" *ngFor=\\\"let user of availableUsers\\\" (click)=\\\"assignSelected(user)\\\">{{user.lastName}}, {{user.firstName}}</a>\\n\\t\\t\\t\\t  </div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t<a title=\\\"Flytta markerade till publika mappen\\\" *ngIf=\\\"isPrivate\\\" (click)=\\\"publicSelected()\\\"><i class=\\\"fa fa-globe\\\" ></i></a>\\n\\t\\t\\t\\t<a title=\\\"Flytta markerade till privata mappen\\\" *ngIf=\\\"!isPrivate\\\" (click)=\\\"privateSelected()\\\"><i class=\\\"fa fa-user\\\" ></i></a>\\n\\t\\t\\t\\t<a title=\\\"Ta bort markerade\\\" (click)=\\\"markSelected('deleted')\\\"><i class=\\\"fa fa-trash-o\\\"></i></a>\\n\\t\\t\\t\\t<a class=\\\"counter\\\">( {{numSelected}} )</a>\\n\\t\\t\\t</div>\\n\\n\\t\\t\\t<div class=\\\"nodesktop\\\">\\n\\t\\t\\t\\t<nav class=\\\"navbar navbar-toggleable-md navbar-light bg-faded\\\" [ngClass]=\\\"{'hidden' : !hasSelectedIssues || showSupportInfo}\\\">\\n\\t\\t\\t\\t\\t<div class=\\\"w-25 p-r-1\\\">\\n\\t\\t\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-block btn-primary dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t\\t<i class=\\\"fa fa-flag-o\\\"></i>\\n\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\" aria-labelledby=\\\"dropdownMenuButton\\\">\\n\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"markSelected('open')\\\">Öppet</a>\\n\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"markSelected('pending')\\\">Väntar</a>\\n\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"markSelected('closed')\\\">Stängd</a>\\n\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" (click)=\\\"markSelected('spam')\\\">Skräp</a>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t<div class=\\\"w-25 p-r-1\\\">\\n\\t\\t\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-block btn-primary dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t\\t<i class=\\\"fa fa-user\\\"></i>\\n\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\" aria-labelledby=\\\"dropdownMenuButton\\\">\\n\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"assignSelected({ userId : 26, firstName : '', lastName : ''})\\\">Otilldelad</a>\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-divider\\\"></div>\\n\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" *ngFor=\\\"let user of availableUsers\\\" (click)=\\\"assignSelected(user)\\\">{{user.lastName}}, {{user.firstName}}</a>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t<div class=\\\"w-25 p-r-1\\\">\\n\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-block\\\" title=\\\"Flytta markerade till publika mappen\\\" *ngIf=\\\"isPrivate\\\" (click)=\\\"publicSelected()\\\"><i class=\\\"fa fa-globe\\\" ></i></button>\\n\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-block\\\" title=\\\"Flytta markerade till privata mappen\\\" *ngIf=\\\"!isPrivate\\\" (click)=\\\"privateSelected()\\\"><i class=\\\"fa fa-user\\\" ></i></button>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t<div class=\\\"w-25\\\">\\n\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-block\\\" title=\\\"Ta bort markerade\\\" (click)=\\\"markSelected('deleted')\\\"><i class=\\\"fa fa-trash-o\\\"></i></button>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</nav>\\n\\t\\t\\t</div>\\n\\n\\t\\t\\t<table class=\\\"table table-sm\\\">\\n\\t\\t\\t  <thead>\\n\\t\\t\\t    <tr>\\n\\t\\t\\t\\t    <th class=\\\"issue-check\\\">\\n\\t\\t\\t\\t\\t\\t\\t  <i class=\\\"fa fa-check-square-o\\\" (click)=\\\"setAllSelected()\\\"></i>\\n\\t\\t\\t\\t    </th>\\n\\t\\t\\t\\t\\t\\t<th class=\\\"nomobile\\\">Till</th>\\n\\t\\t\\t      <th class=\\\"nomobile\\\" width=\\\"10%\\\" nowrap=\\\"nowrap\\\" colspan=\\\"2\\\">Från</th>\\n\\t\\t\\t      <th>Meddelande</th>\\n\\t\\t \\t\\t\\t\\t<th class=\\\"nomobile\\\" nowrap=\\\"nowrap\\\">Ägare</th>\\n\\t\\t \\t\\t\\t\\t<th class=\\\"nomobile\\\" nowrap=\\\"nowrap\\\">Status</th>\\n\\t\\t\\t      <th class=\\\"nomobile\\\">Datum</th>\\n\\t\\t\\t    </tr>\\n\\t\\t\\t  </thead>\\n\\t\\t\\t  <tbody [ngClass]=\\\"{'hidden' : loading || issues.length > 0}\\\">\\n\\t\\t\\t\\t  <tr>\\n\\t\\t\\t\\t\\t  <td colspan=\\\"8\\\" align=\\\"center\\\">\\n\\t\\t\\t\\t\\t\\t  Det finns inga ärenden att visa.\\n\\t\\t\\t\\t\\t  </td>\\n\\t\\t\\t\\t  </tr>\\n\\t\\t\\t  </tbody>\\n\\t\\t\\t  <tbody *ngFor=\\\"let issue of issues\\\" [ngClass]=\\\"{'hidden' : issue.hidden}\\\">\\n\\t\\t\\t\\t\\t  <tr [ngClass]=\\\"{'new-issue' : issue.isNew}\\\">\\n\\t\\t\\t\\t\\t\\t  <td (click)=\\\"toggleSelected(issue, $event); toggleIssueToolbar()\\\" scope=\\\"row\\\" nowrap=\\\"nowrap\\\" class=\\\"issue-check\\\">\\n\\t\\t\\t\\t\\t\\t\\t  <i class=\\\"fa\\\" [ngClass]=\\\"{'fa-square-o' : !issue.selected, 'fa-check-square-o' : issue.selected}\\\"></i>\\n\\t\\t\\t\\t\\t\\t  </td>\\n\\t\\t\\t\\t\\t\\t\\t<td width=\\\"100\\\" class=\\\"vert-align nomobile\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-xs\\\" [ngClass]=\\\"{\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t'btn-primary' : issue._source.toPrefix == 'support' || issue._source.ccPrefix == 'support',\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t'btn-warning' : issue._source.toPrefix == 'uppdatering' || issue._source.ccPrefix == 'uppdatering',\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t'btn-info' : issue._source.toPrefix == 'support' || issue._source.ccPrefix == 'info',\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t'btn-success' : issue._source.toPrefix == 'material' || issue._source.ccPrefix == 'material',\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t'btn-primary' : issue._source.toPrefix == 'support' || issue._source.ccPrefix == 'support'\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t}\\\">{{issue._source.toPrefix || issue._source.ccPrefix}}</button>\\n\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t  <td nowrap=\\\"nowrap\\\" class=\\\"nomobile capitalize vert-align\\\" (click)=\\\"issue.selected = !issue.selected; toggleIssueToolbar()\\\" scope=\\\"row\\\">\\n\\t\\t\\t\\t\\t\\t\\t  \\t<span *ngIf=\\\"issue._source.company\\\">\\n\\t\\t\\t\\t\\t\\t\\t  \\t\\t{{issue._source.company.name|truncate:[30]|lowercase}}<br />\\n\\t\\t\\t\\t\\t\\t\\t  \\t</span>\\n\\t\\t\\t\\t\\t\\t\\t  \\t<span *ngIf=\\\"!issue._source.company && issue._source.from && issue._source.from.length > 0 && issue._source.from[0].name\\\">\\n\\t\\t\\t\\t\\t\\t\\t  \\t\\t{{issue._source.from[0].name|truncate:[30]|lowercase}}<br />\\n\\t\\t\\t\\t\\t\\t\\t  \\t</span>\\n\\t\\t\\t\\t\\t\\t\\t  \\t<span *ngIf=\\\"!issue._source.company && (!issue._source.from || !issue._source.from[0].name)\\\">\\n\\t\\t\\t\\t\\t\\t\\t  \\t\\t<em>Inget namn</em><br />\\n\\t\\t\\t\\t\\t\\t\\t  \\t</span>\\n\\t\\t\\t\\t\\t\\t\\t  \\t<span class=\\\"small\\\" *ngIf=\\\"issue._source.from && issue._source.from.length > 0\\\">\\n\\t\\t\\t\\t\\t\\t\\t  \\t\\t{{issue._source.from[0].address}}\\n\\t\\t\\t\\t\\t\\t\\t  \\t</span>\\n\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t<td width=\\\"10\\\" class=\\\"nomobile vert-align\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<i *ngIf=\\\"issue._source.attachments\\\" class=\\\"fa fa-paperclip\\\"></i> \\n\\t\\t\\t\\t\\t\\t\\t\\t<i *ngIf=\\\"issue._source.comments && issue._source.comments.length > 0\\\" class=\\\"fa fa-comments-o\\\"></i>\\n\\t\\t\\t\\t\\t\\t\\t\\t<i *ngIf=\\\"issue._source.headers['x-spam-result'] == 'yes'\\\" class=\\\"fa fa-trash-o\\\"></i>\\n\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t  <td>\\n\\t\\t\\t\\t\\t\\t\\t\\t<a href=\\\"javascript:;\\\" routerLink=\\\"/support/{{listType}}/{{issue._id}}/\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t  <strong *ngIf=\\\"issue._source.headers.subject\\\">{{issue._source.headers.subject|truncate:[75]}}</strong>\\n\\t\\t\\t\\t\\t\\t\\t\\t  <strong *ngIf=\\\"!issue._source.headers.subject\\\"><em>inget ämne</em></strong><br />\\n\\t\\t\\t\\t\\t\\t\\t\\t  <span class=\\\"support-issue-msg\\\">{{issue._source.text|truncate:[50]}}</span>\\n\\t\\t\\t\\t\\t\\t\\t  </a>\\n\\t\\t\\t\\t\\t\\t  </td>\\n\\t\\t\\t\\t\\t\\t\\t<td class=\\\"nomobile vert-align\\\" nowrap=\\\"nowrap\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"issue._source.user && issue._source.user.userId != 26\\\">{{issue._source.user.name}}</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t<em *ngIf=\\\"!issue._source.user || issue._source.user.userId == 26\\\">Otilldelad</em>\\n\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t<td class=\\\"nomobile vert-align\\\">\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t  <div class=\\\"btn-group btn-group-sm\\\" data-toggle=\\\"buttons\\\" *ngIf=\\\"(issue._source.user && issue._source.user.userId == user.userId) || user.scope == 'admin'\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t  <button type=\\\"button\\\" class=\\\"btn btn-primary dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t    <span class=\\\"sr-onlys\\\" *ngIf=\\\"issue._source.status == 'open'\\\">Öppet</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t    <span class=\\\"sr-onlys\\\" *ngIf=\\\"issue._source.status == 'pending'\\\">Väntar</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t    <span class=\\\"sr-onlys\\\" *ngIf=\\\"issue._source.status == 'closed'\\\">Stängt</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t    <span class=\\\"sr-onlys\\\" *ngIf=\\\"issue._source.status == 'spam'\\\">Skräp</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t    <span class=\\\"sr-onlys\\\" *ngIf=\\\"issue._source.status == 'deleted'\\\">Borttagen</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t  </button>\\n\\t\\t\\t\\t\\t\\t\\t\\t  <div class=\\\"dropdown-menu\\\">\\t\\t\\t  \\n\\t\\t\\t\\t\\t\\t\\t\\t    <a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"markOne(issue, 'open')\\\">Öppet</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t    <a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"markOne(issue, 'pending')\\\">Väntar</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t    <a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"markOne(issue, 'closed')\\\">Stängt</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t    <a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"markOne(issue, 'spam')\\\">Skräp</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t    <a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"markOne(issue, 'deleted')\\\">Borttagen</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t  </div>\\n\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t  <td class=\\\"nomobile vert-align\\\" nowrap=\\\"nowrap\\\"><date-formatter [date]=\\\"issue._source.date\\\"></date-formatter></td>\\n\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t<tr *ngFor=\\\"let reply of issue._source.replies\\\" class=\\\"nomobile sub-support-issue\\\" [ngClass]=\\\"{'hidden' : !issue._source.replies}\\\">\\n\\t\\t\\t\\t\\t    <td colspan=\\\"2\\\">&nbsp;</td>\\n\\t\\t\\t\\t\\t\\t  <td scope=\\\"row\\\" nowrap=\\\"nowrap\\\" class=\\\"capitalize vert-align\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<span>Hemsida Direkt</span><br />\\n\\t\\t\\t\\t\\t\\t\\t\\t<span class=\\\"small\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t{{reply.from.firstName}} {{reply.from.lastName}} => {{reply.to|truncate:[30]}}\\n\\t\\t\\t\\t\\t\\t\\t\\t</span>\\n\\t\\t\\t\\t\\t\\t  </td>\\n\\t\\t\\t\\t\\t\\t\\t<td class=\\\"vert-align\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<i class=\\\"fa fa-arrow-left\\\" aria-hidden=\\\"true\\\"></i>\\n\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t<td>\\n\\t\\t\\t\\t\\t\\t\\t\\t<a href=\\\"javascript:;\\\" routerLink=\\\"/support/{{listType}}/{{issue._id}}\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t  <strong >{{reply.subject|truncate:[75]}}</strong><br />\\n\\t\\t\\t\\t\\t\\t\\t\\t  <span class=\\\"support-issue-msg\\\">{{reply.content|truncate:[75]}}</span>\\n\\t\\t\\t\\t\\t\\t\\t  </a>\\n\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t<td></td>\\n\\t\\t\\t\\t\\t\\t\\t<td></td>\\n\\t\\t\\t\\t\\t\\t  <td nowrap=\\\"nowrap\\\" class=\\\"vert-align\\\"><date-formatter [date]=\\\"reply.date\\\"></date-formatter></td>\\n\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t    <tr *ngFor=\\\"let subIssue of issue.referencedIssues\\\" class=\\\"nomobile sub-support-issue\\\" [ngClass]=\\\"{'hidden' : !issue.referencedIssues}\\\">\\n\\t\\t\\t\\t\\t    <td colspan=\\\"2\\\">&nbsp;</td>\\n\\t\\t\\t\\t\\t\\t  <td scope=\\\"row\\\" nowrap=\\\"nowrap\\\" class=\\\"capitalize vert-align\\\">\\t\\t\\t\\t\\t\\t\\t  \\n\\t\\t\\t\\t\\t\\t  \\t<span *ngIf=\\\"subIssue._source.company\\\">\\n\\t\\t\\t\\t\\t\\t  \\t\\t{{subIssue._source.company.name|truncate:[30]|lowercase}}<br />\\n\\t\\t\\t\\t\\t\\t  \\t</span>\\n\\t\\t\\t\\t\\t\\t  \\t<span *ngIf=\\\"!subIssue._source.company && subIssue._source.from[0].name\\\">\\n\\t\\t\\t\\t\\t\\t  \\t\\t{{subIssue._source.from[0].name|truncate:[30]|lowercase}}<br />\\n\\t\\t\\t\\t\\t\\t  \\t</span>\\n\\t\\t\\t\\t\\t\\t  \\t<span *ngIf=\\\"!subIssue._source.company && !subIssue._source.from[0].name\\\">\\n\\t\\t\\t\\t\\t\\t  \\t\\t<em>Inget namn</em><br />\\n\\t\\t\\t\\t\\t\\t  \\t</span>\\n\\t\\t\\t\\t\\t\\t  \\t<span class=\\\"small\\\">\\n\\t\\t\\t\\t\\t\\t  \\t\\t{{subIssue._source.from[0].address}}\\n\\t\\t\\t\\t\\t\\t  \\t</span>\\n\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t<td width=\\\"10\\\" class=\\\"vert-align\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<i *ngIf=\\\"subIssue._source.to[0].address.indexOf('hemsidadirekt.se') !== -1\\\" class=\\\"fa fa-arrow-right\\\"></i> \\n\\t\\t\\t\\t\\t\\t\\t\\t<i *ngIf=\\\"subIssue._source.from[0].address.indexOf('hemsidadirekt.se') !== -1\\\" class=\\\"fa fa-arrow-left\\\"></i> \\n\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t  <td>\\n\\t\\t\\t\\t\\t\\t\\t  <a href=\\\"javascript:;\\\" routerLink=\\\"/support/{{listType}}/{{subIssue._id}}\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t  <strong *ngIf=\\\"subIssue._source.headers.subject\\\">{{subIssue._source.headers.subject|truncate:[75]}}</strong>\\n\\t\\t\\t\\t\\t\\t\\t\\t  <strong *ngIf=\\\"!subIssue._source.headers.subject\\\"><em>inget ämne</em></strong><br />\\n\\t\\t\\t\\t\\t\\t\\t\\t  <span class=\\\"support-issue-msg\\\">{{subIssue._source.text|truncate:[50]}}</span>\\n\\t\\t\\t\\t\\t\\t\\t  </a>\\n\\t\\t\\t\\t\\t\\t  </td>\\n\\t\\t\\t\\t\\t\\t\\t<td class=\\\"vert-align\\\" nowrap=\\\"nowrap\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<em *ngIf=\\\"subIssue._source.user\\\">{{subIssue._source.user.name}}</em>\\n\\t\\t\\t\\t\\t\\t\\t\\t<em *ngIf=\\\"!subIssue._source.user\\\">Otilldelad</em>\\n\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t  <td></td>\\n\\t\\t\\t\\t\\t\\t  <td nowrap=\\\"nowrap\\\" class=\\\"vert-align\\\"><date-formatter [date]=\\\"subIssue._source.date\\\"></date-formatter></td>\\n\\t\\t\\t\\t    <tr>\\n\\t\\t\\t  </tbody>\\n\\t\\t\\t  <tbody>\\n\\t\\t\\t\\t\\t<tr [ngClass]=\\\"{'hidden' : !loading}\\\">\\n\\t\\t\\t\\t\\t\\t<td colspan=\\\"8\\\" align=\\\"center\\\">\\n\\t\\t\\t\\t\\t\\t\\t<i class=\\\"fa fa-circle-o-notch fa-spin fa-2x fa-fw\\\"></i>\\n\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t  </tbody>\\n\\t\\t\\t</table>\\n\\t\\t</div>\\n\\t\\n\\t</div>\\n\\t\\t\\n\\t<div class=\\\"support-pane-details container-fluid full-height-fill full-width-fill\\\" [ngClass]=\\\"{'collapsed' : !showSupportInfo}\\\">\\n\\t\\t<div class=\\\"height-100 scrollable\\\">\\n\\t\\t\\t<!--\\n\\t\\t\\t<div class=\\\"support-navbar\\\">\\n\\t\\t\\t\\t<a href=\\\"javascript:;\\\" (click)=\\\"closeSupportInfo()\\\"><i class=\\\"fa fa-close\\\"></i></a>\\n\\t\\t\\t\\t<div class=\\\"support-nav-buttons\\\">\\n\\t\\t\\t\\t\\t<a href=\\\"javascript:;\\\" (click)=\\\"prevIssue()\\\"><i class=\\\"fa fa-chevron-left\\\"></i></a>\\n\\t\\t\\t\\t\\t<a href=\\\"javascript:;\\\" (click)=\\\"nextIssue()\\\"><i class=\\\"fa fa-chevron-right\\\"></i></a>\\t\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>-->\\n\\t\\t\\t<router-outlet></router-outlet>\\n\\t\\t</div>\\t\\n\\t</div>\\n\\t\\n</div>\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/components/templates/supportlist.html\n// module id = 1022\n// module chunks = 0","module.exports = \"<div>\\n\\t<activity-list></activity-list>\\n</div>\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/views/templates/activities.html\n// module id = 1023\n// module chunks = 0","module.exports = \"<div>\\n\\t<activity-log></activity-log>\\n</div>\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/views/templates/activitylog.html\n// module id = 1024\n// module chunks = 0","module.exports = \"<div>\\n\\t<company-list></company-list>\\n</div>\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/views/templates/companies.html\n// module id = 1025\n// module chunks = 0","module.exports = \"<div class=\\\"scrollable height-100 p-b-3\\\">\\t\\n\\t<div class=\\\"row\\\">\\n\\t\\t<div class=\\\"col-md-6\\\">\\t\\n\\t\\t\\t<div class=\\\"activities-pods\\\">\\n\\t\\t\\t\\t<table class=\\\"table\\\">\\n\\t\\t\\t\\t\\t<thead>\\n\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t<th colspan=\\\"2\\\">\\n\\t\\t\\t\\t\\t\\t\\t<h4>Kalender <button class=\\\"btn btn-sm pull-right btn-primary\\\" (click)=\\\"newTask()\\\"><i class=\\\"fa fa-plus\\\"></i> Lägg till</button></h4>\\n\\t\\t\\t\\t\\t\\t\\t</th>\\n\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t</thead>\\n\\t\\t\\t\\t\\t<tbody *ngIf=\\\"isUpdatingTasks\\\">\\n\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t<td><i class=\\\"fa fa-circle-o-notch fa-spin fa-2x fa-fw\\\"></i></td>\\n\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t</tbody>\\n\\t\\t\\t\\t</table>\\n\\t\\t\\t\\t<div class=\\\"agenda\\\">\\n\\t\\t\\t\\t\\t<div class=\\\"table-responsive\\\">\\n\\t\\t\\t\\t\\t\\t<table class=\\\"table table-condensed table-bordered\\\" *ngIf=\\\"!isUpdatingTasks\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<thead>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th>Datum</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th>Tid</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th>Händelse</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t</thead>\\n\\t\\t\\t\\t\\t\\t\\t\\t<tbody *ngFor=\\\"let t of tasks\\\" >\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<!-- Multiple events in a single day (note the rowspan) -->\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td class=\\\"agenda-date\\\" [ngClass]=\\\"{'today' : t.isToday}\\\" [attr.rowspan]=\\\"t.tasks.length + 1\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"dayofmonth\\\">{{t.date.getDate()}}</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"dayofweek\\\">{{days[t.firstTask.startDate.getDay()]}}</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"shortdate text-muted\\\">{{months[t.firstTask.startDate.getMonth()]}}, {{t.firstTask.startDate.getFullYear()}}</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td class=\\\"agenda-time\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t{{t.firstTask.startDate.toLocaleTimeString().substr(0, 5)}} - {{t.firstTask.endDate.toLocaleTimeString().substr(0, 5)}}\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td class=\\\"agenda-events\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"agenda-event\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<i class=\\\"fa fa-bell\\\" aria-hidden=\\\"true\\\" *ngIf=\\\"t.firstTask.createNotification\\\"></i> <a href=\\\"javascript:;\\\" (click)=\\\"editTask(t.firstTask)\\\">{{t.firstTask.name}}</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<tr *ngFor=\\\"let tt of t.tasks\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td class=\\\"agenda-time\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t{{tt.startDate.toLocaleTimeString().substr(0, 5)}} - {{tt.endDate.toLocaleTimeString().substr(0, 5)}}\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td class=\\\"agenda-events\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div class=\\\"agenda-event\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<i class=\\\"fa fa-bell\\\" aria-hidden=\\\"true\\\" *ngIf=\\\"tt.createNotification\\\"></i> <a href=\\\"javascript:;\\\" (click)=\\\"editTask(tt)\\\">{{tt.name}}</a>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t</tbody>\\n\\t\\t\\t\\t\\t\\t</table>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\t\\n\\t\\t\\t</div>\\t\\n\\t\\t\\t<div class=\\\"something-pod\\\">\\n\\t\\t\\t\\t<line-chart *ngIf=\\\"queueChartDataLoaded\\\" [lineChartData]=\\\"msgQueueChartData\\\" [lineChartLabels]=\\\"msgQueueChartLabels\\\" #msgQueueChart></line-chart>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"something-pod\\\">\\n\\t\\t\\t\\t<line-chart *ngIf=\\\"localDeliveriesChartDataLoaded\\\" [lineChartData]=\\\"localDeliveriesChartData\\\" [lineChartLabels]=\\\"localDeliveriesChartLabels\\\" #msgQueueChart></line-chart>\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n\\t\\t<div class=\\\"col-md-6\\\">\\t\\t\\n\\t\\t\\t<div class=\\\"activities-pods\\\">\\n\\t\\t\\t\\t<table class=\\\"table\\\">\\n\\t\\t\\t\\t\\t<thead>\\n\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t<th colspan=\\\"2\\\"><h4>Aktiviteter ( {{numActivities}} )</h4></th>\\n\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t</thead>\\n\\t\\t\\t\\t\\t<tbody *ngFor=\\\"let a of activities; let myIndex = index\\\">\\n\\t\\t\\t\\t\\t\\t<tr *ngIf=\\\"myIndex < 5\\\">\\n\\t\\t\\t\\t\\t\\t\\t<td>\\n\\t\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-block btn-danger btn-xs\\\" *ngIf=\\\"a.endDate < today\\\">förfallit</button>\\n\\t\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-block btn-warning btn-xs\\\" *ngIf=\\\"a.endDate >= today && a.endDate < tomorrow\\\">idag</button>\\n\\t\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-block btn-success btn-xs\\\" *ngIf=\\\"a.endDate >= today && a.endDate >= tomorrow\\\">ok</button>\\n\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t<td width=\\\"100%\\\"><a routerLink=\\\"/activities/mine/{{a.taskId}}\\\">{{a.name}}</a></td>\\n\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t</tbody>\\n\\t\\t\\t\\t\\t<tbody *ngIf=\\\"!loadingActivities\\\">\\n\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t<td colspan=\\\"2\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<a routerLink=\\\"/activities/mine\\\">Visa alla</a>\\n\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t</tbody>\\n\\t\\t\\t\\t\\t<tbody *ngIf=\\\"loadingActivities\\\">\\n\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t<td><i class=\\\"fa fa-circle-o-notch fa-spin fa-2x fa-fw\\\"></i></td>\\n\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t</tbody>\\n\\t\\t\\t\\t</table>\\n\\t\\t\\t</div>\\t\\t\\t\\n\\t\\t\\t<div class=\\\"activities-pods\\\">\\n\\t\\t\\t\\t<table class=\\\"table\\\">\\n\\t\\t\\t\\t\\t<thead>\\n\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t<th colspan=\\\"2\\\"><h4>Ordrar ( {{numOrders}} )</h4></th>\\n\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t</thead>\\n\\t\\t\\t\\t\\t<tbody *ngFor=\\\"let o of orders; let myIndex = index\\\">\\n\\t\\t\\t\\t\\t\\t<tr *ngIf=\\\"myIndex < 5\\\">\\n\\t\\t\\t\\t\\t\\t\\t<td>\\n\\t\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-block btn-danger btn-xs\\\">{{o.statusName}}</button>\\n\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t<td><a routerLink=\\\"/orders/{{o.orderId}}\\\">{{o.orderNr}}</a></td>\\n\\t\\t\\t\\t\\t\\t\\t<td width=\\\"100%\\\"><a routerLink=\\\"/companies/{{o.companyId}}/orders\\\">{{o.name}}</a></td>\\n\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t</tbody>\\n\\t\\t\\t\\t\\t<tbody *ngIf=\\\"!loadingOrders\\\">\\n\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t<td colspan=\\\"2\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<a routerLink=\\\"/orders/\\\">Visa alla</a>\\n\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t</tbody>\\n\\t\\t\\t\\t\\t<tbody *ngIf=\\\"loadingOrders\\\">\\n\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t<td><i class=\\\"fa fa-circle-o-notch fa-spin fa-2x fa-fw\\\"></i></td>\\n\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t</tbody>\\n\\t\\t\\t\\t</table>\\n\\t\\t\\t</div>\\t\\n\\t\\t\\t<div class=\\\"activities-pods\\\">\\n\\t\\t\\t\\t<table class=\\\"table\\\">\\n\\t\\t\\t\\t\\t<thead>\\n\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t<th colspan=\\\"5\\\"><h4>Förfallna konton ( {{numExpiredCompanies}} )</h4></th>\\n\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t</thead>\\n\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t<th>Namn</th>\\n\\t\\t\\t\\t\\t\\t<th>Förfaller</th>\\n\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t<tbody *ngFor=\\\"let c of expiredCompanies; let myIndex = index\\\">\\n\\t\\t\\t\\t\\t\\t<tr >\\n\\t\\t\\t\\t\\t\\t\\t<td width=\\\"100%\\\"><a routerLink=\\\"/companies/{{c.companyId}}\\\">{{c.name}}</a></td>\\n\\t\\t\\t\\t\\t\\t\\t<td nowrap><date-formatter [time]=\\\"false\\\" [date]=\\\"c.renewalDate\\\"></date-formatter></td>\\n\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t<tr class=\\\"lgray\\\">\\n\\t\\t\\t\\t\\t\\t\\t<td>Kontostatus:</td>\\n\\t\\t\\t\\t\\t\\t\\t<td nowrap>{{c.acs}}</td>\\n\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t<tr class=\\\"lgray\\\">\\n\\t\\t\\t\\t\\t\\t\\t<td>Domänstatus:</td>\\n\\t\\t\\t\\t\\t\\t\\t<td nowrap>{{c.ds}}</td>\\n\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t<tr class=\\\"lgray\\\">\\n\\t\\t\\t\\t\\t\\t\\t<td>Aktiv:</td>\\n\\t\\t\\t\\t\\t\\t\\t<td nowrap><span *ngIf=\\\"c.active\\\">Ja</span><span *ngIf=\\\"!c.active\\\">Nej</span></td>\\n\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t</tbody>\\n\\t\\t\\t\\t\\t<tbody *ngIf=\\\"loadingCompanies\\\">\\n\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t<td><i class=\\\"fa fa-circle-o-notch fa-spin fa-2x fa-fw\\\"></i></td>\\n\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t</tbody>\\n\\t\\t\\t\\t</table>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div *ngIf=\\\"blockedEmailAccounts.length > 0\\\" class=\\\"activities-pods\\\">\\n\\t\\t\\t\\t<table class=\\\"table\\\">\\n\\t\\t\\t\\t\\t<thead>\\n\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t<th colspan=\\\"5\\\"><h4>Blockerade e-postkonton ( {{blockedEmailAccounts.length}} )</h4></th>\\n\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t</thead>\\n\\t\\t\\t\\t\\t<tbody *ngFor=\\\"let e of blockedEmailAccounts; let myIndex = index\\\">\\n\\t\\t\\t\\t\\t\\t<tr *ngIf=\\\"myIndex < 5\\\">\\n\\t\\t\\t\\t\\t\\t\\t<td width=\\\"100%\\\">{{e.email}}</td>\\n\\t\\t\\t\\t\\t\\t\\t<td nowrap><date-formatter [date]=\\\"e.dateBlocked\\\"></date-formatter></td>\\n\\t\\t\\t\\t\\t\\t\\t<td><button class=\\\"btn btn-xs btn-success\\\" (click)=\\\"confirmBlockedEmailAccount(e)\\\">Bekräfta</button></td>\\n\\t\\t\\t\\t\\t\\t\\t<td><button class=\\\"btn btn-xs btn-danger\\\" (click)=\\\"deleteBlockedEmailAccount(e)\\\">Ta bort</button></td>\\n\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t</tbody>\\n\\t\\t\\t\\t</table>\\n\\t\\t\\t</div>\\n\\t\\t</div>\\t\\n\\t</div>\\n</div>\\n\\n<modal #editActivityModal>\\n\\t<modal-header [show-close]=\\\"true\\\">\\n\\t\\t<h4 class=\\\"modal-title\\\">Händelse</h4>\\n\\t</modal-header>\\n\\t<modal-body>\\n\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-info btn-sm btn-block dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t<span class=\\\"sr-onlys\\\">{{taskTypes[editedTask.tasktypeId].name}}</span>\\n\\t\\t\\t</button>\\n\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" *ngFor=\\\"let t of taskTypes\\\" (click)=\\\"editedTask.tasktypeId = t.tasktypeId\\\">{{t.name}}</a>\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t<input class=\\\"form-control\\\" [(ngModel)]=\\\"editedTask.name\\\" placeholder=\\\"Titel\\\" />\\n\\t\\t</div>\\n\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t<input class=\\\"form-control\\\" [(ngModel)]=\\\"editedTask.location\\\" placeholder=\\\"Plats\\\" />\\n\\t\\t</div>\\n\\t\\t<div class='row form-group'>\\n\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\t\\t\\t\\t<datepicker [placeholder]=\\\"'Startdatum'\\\" #newTaskStartDate></datepicker>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"col-md-6\\\">\\n\\t\\t\\t\\t<datepicker [placeholder]=\\\"'Slutdatum'\\\" #newTaskEndDate></datepicker>\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n\\t\\t<div class='row form-group'>\\n\\t\\t\\t<div class=\\\"col-md-3\\\">\\n\\t\\t\\t\\t<select class=\\\"form-control\\\" [(ngModel)]=\\\"editedTask.startHour\\\"><option *ngFor=\\\"let h of hours\\\" [attr.value]=\\\"h\\\">{{h}}</select>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"col-md-3\\\">\\n\\t\\t\\t\\t<select class=\\\"form-control\\\" [(ngModel)]=\\\"editedTask.startMinute\\\"><option *ngFor=\\\"let m of minutes\\\" [attr.value]=\\\"m\\\">{{m}}</select>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"col-md-3\\\">\\n\\t\\t\\t\\t<select class=\\\"form-control\\\" [(ngModel)]=\\\"editedTask.endHour\\\"><option *ngFor=\\\"let h of hours\\\" [attr.value]=\\\"h\\\">{{h}}</select>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"col-md-3\\\">\\n\\t\\t\\t\\t<select class=\\\"form-control\\\" [(ngModel)]=\\\"editedTask.endMinute\\\"><option *ngFor=\\\"let m of minutes\\\" [attr.value]=\\\"m\\\">{{m}}</select>\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t<textarea class=\\\"form-control\\\" [(ngModel)]=\\\"editedTask.description\\\" placeholder=\\\"Beskrivning\\\"></textarea>\\n\\t\\t</div>\\n\\t\\t<div class=\\\"checkbox\\\">\\n\\t\\t\\t<label>\\n\\t\\t\\t\\t<input type=\\\"checkbox\\\" [(ngModel)]=\\\"editedTask.private\\\"> Privat\\n\\t\\t\\t</label>\\n\\t\\t</div>\\n\\t\\t<div class=\\\"checkbox\\\">\\n\\t\\t\\t<label>\\n\\t\\t\\t\\t<input type=\\\"checkbox\\\" [(ngModel)]=\\\"editedTask.createNotification\\\"> Påminn mig\\n\\t\\t\\t</label>\\n\\t\\t</div>\\n\\t</modal-body>\\n\\t<modal-footer>\\n\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-default\\\" (click)=\\\"editActivityModal.dismiss()\\\">Stäng</button>\\n\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-danger\\\" *ngIf=\\\"editedTask.taskId\\\" (click)=\\\"confirmDeleteModal.open()\\\">Ta bort</button>\\n\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-primary\\\" *ngIf=\\\"(!editedTask.userId || editedTask.userId == user.userId)\\\" [disabled]=\\\"editedTask.name == ''\\\" (click)=\\\"saveTask()\\\">Spara</button>\\n\\t</modal-footer>\\n</modal>\\n\\n\\n<modal #confirmDeleteModal>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Vänta</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t\\tÄr du säker på att du vill ta bort händelsen? Detta går inte att ångra.\\n\\t\\t\\t</div>\\t\\n    </modal-body>\\n\\t<modal-footer>\\n\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-default\\\" (click)=\\\"confirmDeleteModal.dismiss()\\\">Avbryt</button>\\n\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-danger\\\" (click)=\\\"confirmDeleteModal.dismiss(); deleteTask()\\\">Ja, ta bort</button>\\n\\t</modal-footer>\\n</modal>\\n\\n<modal #creatingModal>\\n    <modal-header [show-close]=\\\"false\\\">\\n        <h4 class=\\\"modal-title\\\">Vänta</h4>\\n    </modal-header>\\n    <modal-body>\\n\\t\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t\\t<i class=\\\"fa fa-circle-o-notch fa-spin fa-3x fa-fw\\\"></i>\\n\\t\\t\\t</div>\\t\\n    </modal-body>\\n</modal>\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/views/templates/dashboard.html\n// module id = 1026\n// module chunks = 0","module.exports = \"<div>\\n\\t<domain-list></domain-list>\\n</div>\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/views/templates/domains.html\n// module id = 1027\n// module chunks = 0","module.exports = \"<div class=\\\"support-content\\\">\\n\\n\\t<div class=\\\"row\\\">\\n\\t\\t<nav class=\\\"navbar navbar-light bg-faded\\\">\\n\\t\\t\\t<div class=\\\"btn-group\\\">\\n\\t\\t\\t\\t<button class=\\\"btn btn-primary\\\" (click)=\\\"connect()\\\">Koppla upp <i *ngIf=\\\"loading\\\" class=\\\"fa fa-spinner fa-spin\\\"></i></button>\\n\\t\\t\\t\\t<button class=\\\"btn btn-primary\\\" (click)=\\\"upload()\\\">Synkronisera</button>\\n\\t\\t\\t</div>\\n\\t\\t</nav>\\n\\t</div>\\n\\n\\t<div class=\\\"row setting-bar\\\">\\n\\t\\t\\t<div class=\\\"col-md-3\\\">\\n\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t<input class=\\\"form-control\\\" type=\\\"text\\\" [(ngModel)]=\\\"userInfo.user\\\" [ngModelOptions]=\\\"{standalone: true}\\\" placeholder=\\\"Användarnamn\\\">\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"col-md-3\\\">\\n\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t<input class=\\\"form-control\\\" type=\\\"text\\\" [(ngModel)]=\\\"userInfo.password\\\" [ngModelOptions]=\\\"{standalone: true}\\\" placeholder=\\\"Lösenord\\\">\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"col-md-3\\\">\\n\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t<input class=\\\"form-control\\\" type=\\\"text\\\" [(ngModel)]=\\\"userInfo.host\\\" [ngModelOptions]=\\\"{standalone: true}\\\" placeholder=\\\"Server\\\">\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"col-md-3\\\">\\n\\t\\t\\t\\t<div class=\\\"form-group\\\">\\n\\t\\t\\t\\t\\t<input class=\\\"form-control\\\" type=\\\"text\\\" [(ngModel)]=\\\"userInfo.port\\\" [ngModelOptions]=\\\"{standalone: true}\\\" placeholder=\\\"Port\\\">\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t</div>\\n\\t\\t\\n\\t<div class=\\\"row\\\">\\n\\n\\t\\t<div class=\\\"support-pane-master row full-height-fill full-width-fill p110\\\">\\n\\t\\t\\t\\n\\t\\t\\t<div class=\\\"support-list\\\"\\n\\t\\t            infinite-scroll\\n\\t\\t            [infiniteScrollDistance]=\\\"2\\\"\\n\\t\\t            [infiniteScrollThrottle]=\\\"500\\\"\\n\\t\\t            (scrolled)=\\\"onScroll()\\\"\\n\\t\\t            [scrollWindow]=\\\"false\\\">\\n\\t\\t\\t\\t\\n\\t\\t\\t\\t<div class=\\\"col-md-12\\\">\\n\\t\\t\\t\\t\\t<h4 *ngIf=\\\"currentFolder\\\">{{currentFolder.folderName}}</h4>\\n\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t<table class=\\\"table table-sm\\\">\\n\\t\\t\\t\\t\\t<tr *ngIf=\\\"currentFolder\\\">\\n\\t\\t\\t\\t\\t\\t<td colspan=\\\"3\\\"><a href=\\\"javascript:;\\\" (click)=\\\"connect()\\\"><i class=\\\"fa fa-folder-open\\\"></i> ..</a></td>\\n\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t<tr *ngFor=\\\"let folder of folders\\\">\\n\\t\\t\\t\\t\\t\\t<td colspan=\\\"3\\\"><a href=\\\"javascript:;\\\" (click)=\\\"openFolder(folder)\\\"><i class=\\\"fa fa-folder-open\\\"></i> {{folder.folderName}}</a></td>\\n\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t<tr *ngFor=\\\"let msg of messages\\\">\\n\\t\\t\\t\\t\\t\\t<td nowrap>{{msg.subject}}</td>\\n\\t\\t\\t\\t\\t\\t<td nowrap>{{msg.from}}</td>\\n\\t\\t\\t\\t\\t\\t<td nowrap>{{msg.date}}</td>\\n\\t\\t\\t\\t\\t</tr>\\n\\n\\t\\t\\t\\t\\t<tbody>\\n\\t\\t\\t\\t\\t\\t<tr [ngClass]=\\\"{'hidden' : !loading}\\\">\\n\\t\\t\\t\\t\\t\\t\\t<td colspan=\\\"8\\\" align=\\\"center\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<i class=\\\"fa fa-circle-o-notch fa-spin fa-2x fa-fw\\\"></i>\\n\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t</tbody>\\n\\n\\t\\t\\t\\t</table>\\n\\n\\t\\t\\t</div>\\n\\n\\t\\t</div>\\n\\n\\t</div>\\n\\n</div>\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/views/templates/imapsync.html\n// module id = 1028\n// module chunks = 0","module.exports = \"<div>\\n\\t<invoice-list></invoice-list>\\n</div>\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/views/templates/invoices.html\n// module id = 1029\n// module chunks = 0","module.exports = \"<div class=\\\"height-100\\\">\\n\\n\\t<account-info-modal #accountInfoModal></account-info-modal>\\n\\n\\t<div class=\\\"support-content row\\\">\\n\\t\\t\\n\\t\\t<div class=\\\"nomobile\\\">\\n\\t\\t\\t<nav class=\\\"navbar navbar-toggleable-md navbar-light bg-faded\\\">\\n\\t\\t\\t\\t<div class=\\\"form-inline\\\">\\n\\t\\t\\t\\t\\t<div class=\\\"form-group\\\">\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-info btn-block dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\">{{_accountStatuses[statusId]}}</span>\\n\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\">\\n\\t\\t\\t\\t\\t\\t\\t<a *ngFor=\\\"let s of accountStatuses\\\" class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"setStatus(s.statusId)\\\">{{s.name}}</a>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t<div class=\\\"form-inline pull-right\\\">\\n\\t\\t\\t\\t\\t\\t<input class=\\\"form-control\\\" type=\\\"text\\\" (keyup)=\\\"refresh()\\\" [(ngModel)]=\\\"phrase\\\" placeholder=\\\"Sök\\\" #searchFilter>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</nav>\\n\\t\\t</div>\\n\\n\\t\\t<div class=\\\"row\\\" *ngIf=\\\"loading\\\">\\n\\t\\t\\t<div class=\\\"col-md-12 center p-t-2\\\">\\n\\t\\t\\t\\t<i class=\\\"fa fa-circle-o-notch fa-spin fa-2x fa-fw\\\"></i>\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n\\n\\t\\t<div class=\\\"height-100 p-t-2\\\" *ngIf=\\\"!loading\\\">\\n\\t\\t\\t<div class=\\\"support-list\\\"\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tinfinite-scroll\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t[infiniteScrollDistance]=\\\"2\\\"\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t[infiniteScrollThrottle]=\\\"500\\\"\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t(scrolled)=\\\"onScroll()\\\"\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t[scrollWindow]=\\\"false\\\">\\n\\t\\t\\t\\t\\n\\t\\t\\t\\t<div class=\\\"col-md-3\\\" *ngFor=\\\"let f of visibleFiles\\\">\\n\\t\\t\\t\\t\\t<div class=\\\"client-image\\\">\\n\\t\\t\\t\\t\\t\\t<div class=\\\"client-image-wrapper\\\">\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"img\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<a href=\\\"https://s3-eu-west-1.amazonaws.com/hsd-public-content/{{f.Key}}\\\" target=\\\"_blank\\\"><img src=\\\"https://s3-eu-west-1.amazonaws.com/hsd-public-content/{{f.Key}}\\\"></a>\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t\\t#{{f.Account.prefix}} - <date-formatter date=\\\"{{f.Date}}\\\" time=\\\"false\\\"></date-formatter> - <a href=\\\"javascript:;\\\" (click)=\\\"showAccountInfo(f.Key)\\\"><i class=\\\"fa fa-info\\\"></i> info</a>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\n\\t\\t</div>\\n\\t</div>\\n\\n</div>\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/views/templates/layouts.html\n// module id = 1030\n// module chunks = 0","module.exports = \"<div>\\n\\t<order-list></order-list>\\n</div>\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/views/templates/orders.html\n// module id = 1031\n// module chunks = 0","module.exports = \"\\n<div class=\\\"support-content\\\">\\n\\t\\t<div class=\\\"row\\\">\\n\\t\\t\\t\\t<nav class=\\\"navbar navbar-light bg-faded\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t<form *ngIf=\\\"section == 'phones/events'\\\" class=\\\"form-inline pull-xs-left m-l-1\\\">\\n\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-2 form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t<datepicker [placeholder]=\\\"'Startdatum'\\\" [date]=\\\"event.startDate * 1000\\\" #phoneStartDate></datepicker>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-2 form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t<input type=\\\"text\\\" name=\\\"startHour\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"event.startHour\\\" style=\\\"width:50px\\\" placeholder=\\\"HH\\\" />\\n\\t\\t\\t\\t\\t\\t\\t<input type=\\\"text\\\" name=\\\"startMinute\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"event.startMinute\\\" style=\\\"width:50px\\\" placeholder=\\\"MM\\\" />\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-2 form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t<datepicker [placeholder]=\\\"'Slutdatum'\\\" [date]=\\\"event.endDate * 1000\\\" #phoneEndDate></datepicker>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-2 form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t<input type=\\\"text\\\" name=\\\"endHour\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"event.endHour\\\" style=\\\"width:50px\\\" placeholder=\\\"HH\\\" />\\n\\t\\t\\t\\t\\t\\t\\t<input type=\\\"text\\\" name=\\\"endMinute\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"event.endMinute\\\" style=\\\"width:50px\\\" placeholder=\\\"MM\\\" />\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t<div class=\\\"col-md-4 form-group\\\">\\n\\t\\t\\t\\t\\t\\t\\t<select name=\\\"reason\\\" [(ngModel)]=\\\"event.reason\\\" class=\\\"form-control\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<option value=\\\"konf\\\">Konferens</option>\\n\\t\\t\\t\\t\\t\\t\\t\\t<option value=\\\"vacation\\\">Semester</option>\\n\\t\\t\\t\\t\\t\\t\\t</select>\\n\\t\\t\\t\\t\\t\\t\\t<button (click)=\\\"addEvent(event)\\\" type=\\\"button\\\" class=\\\"btn btn-primary\\\">Lägg till</button>\\n\\t\\t\\t\\t\\t\\t\\t<label><input name='showAll' type=\\\"checkbox\\\" [(ngModel)]=\\\"showAll\\\" /> Visa alla</label>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</form>\\n\\n\\t\\t\\t\\t\\t<form *ngIf=\\\"section == 'phones/log'\\\" class=\\\"form-inline pull-xs-left m-l-1\\\">\\n\\t\\t\\t\\t\\t\\t<input type=\\\"text\\\" name=\\\"startDate\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"filter.startDate\\\" style=\\\"width:250px\\\" placeholder=\\\"start (ÅÅÅÅ-MM-DD)\\\" />\\n\\t\\t\\t\\t\\t\\t<input type=\\\"text\\\" name=\\\"endDate\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"filter.endDate\\\" style=\\\"width:250px\\\" placeholder=\\\"slut (ÅÅÅÅ-MM-DD)\\\" />\\n\\t\\t\\t\\t\\t\\t<input type=\\\"text\\\" name=\\\"source\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"filter.source\\\" style=\\\"width:250px\\\" placeholder=\\\"från\\\" />\\n\\t\\t\\t\\t\\t\\t<button (click)=\\\"filterLogs(event)\\\" type=\\\"button\\\" class=\\\"btn btn-primary\\\">Filtrera</button>\\n\\t\\t\\t\\t\\t</form>\\n\\n\\t\\t\\t\\t\\t<form class=\\\"form-inline pull-xs-right m-l-1\\\">\\n\\t\\t\\t\\t\\t\\t<button (click)=\\\"reload()\\\" type=\\\"button\\\" class=\\\"btn btn-primary\\\"><i class=\\\"fa fa-refresh\\\" [ngClass]=\\\"{'fa-circle-o-notch fa-spin fa-f' : refreshing}\\\"></i> Uppdatera</button>\\n\\t\\t\\t\\t\\t</form>\\n\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t</nav>\\n\\t\\t</div>\\n\\n\\t\\t<div class=\\\"support-pane-master row full-height-fill full-width-fill p48\\\" [ngClass]=\\\"{'collapsed' : showCompanyInfo}\\\">\\n\\n\\n\\t\\t\\t\\t\\t\\t<div *ngIf=\\\"section == 'phones/agents'\\\" class=\\\"activity-list\\\">\\n\\n\\t\\t\\t\\t\\t\\t\\t<table class=\\\"table table-sm\\\">\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t<thead >\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th nowrap=\\\"nowrap\\\">Agentnamn</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th nowrap=\\\"nowrap\\\">Status</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th nowrap=\\\"nowrap\\\">Peer</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</thead>\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<tbody *ngFor=\\\"let a of data.agents\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td>{{a.firstname}} {{a.lastname}}</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td>{{a.status}}</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td>{{a.incallwith}}</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</tbody>\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t</table>\\n\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t<div *ngIf=\\\"section == 'phones/queues'\\\" class=\\\"activity-list\\\">\\n\\n\\t\\t\\t\\t\\t\\t\\t<table class=\\\"table table-sm\\\">\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t<thead >\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th nowrap=\\\"nowrap\\\">Könamn</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th nowrap=\\\"nowrap\\\">Login</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th nowrap=\\\"nowrap\\\">Logout</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th nowrap=\\\"nowrap\\\">Agenter</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th nowrap=\\\"nowrap\\\">Samtal i kö</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th nowrap=\\\"nowrap\\\">Inloggade</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</thead>\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<tbody *ngFor=\\\"let q of data.queues\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td>{{q.queuename}}</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td>{{q.queueid}}001</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td>{{q.queueid}}002</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td>{{q.numagents}}</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td>{{q.numcalls}}</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td>{{q.agents}}</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</tbody>\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t</table>\\n\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t\\t\\t<div *ngIf=\\\"section == 'phones/events'\\\" class=\\\"activity-list\\\">\\n\\n\\t\\t\\t\\t\\t\\t\\t<table class=\\\"table table-sm\\\">\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t<thead >\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th nowrap=\\\"nowrap\\\">Starttid</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th nowrap=\\\"nowrap\\\">Sluttid</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th nowrap=\\\"nowrap\\\">Typ</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<th nowrap=\\\"nowrap\\\">&nbsp;</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</thead>\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<tbody *ngFor=\\\"let e of data.events\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<tr *ngIf=\\\"e.endtime > now || showAll\\\" [ngClass]=\\\"{'disabled-event' : e.endtime < now}\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap><span><date-formatter [time]=\\\"true\\\" [date]=\\\"e.starttime\\\"></date-formatter></span></td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap><span><date-formatter [time]=\\\"true\\\" [date]=\\\"e.endtime\\\"></date-formatter></span></td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap><span>{{e.reason}}</span></td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap><a href=\\\"javascript:;\\\" (click)=\\\"removeEvent(e)\\\">Ta bort</a></td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</tbody>\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t</table>\\n\\n\\t\\t\\t\\t\\t\\t\\t</div>\\n\\n\\t\\t\\n\\t\\t\\t\\t\\t<div *ngIf=\\\"section == 'phones/log'\\\" class=\\\"activity-list\\\">\\n\\n\\t\\t\\t\\t\\t\\t<table class=\\\"table table-sm\\\">\\n\\n\\t\\t\\t\\t\\t\\t\\t<thead >\\n\\t\\t\\t\\t\\t\\t\\t\\t<tr style=\\\"background-color: #eee\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<th nowrap=\\\"nowrap\\\">Riktning</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<th nowrap=\\\"nowrap\\\">Datum</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<th nowrap=\\\"nowrap\\\">Från</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<th nowrap=\\\"nowrap\\\">Till</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<th nowrap=\\\"nowrap\\\">Context</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<th nowrap=\\\"nowrap\\\">Längd</th>\\n\\t\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t\\t</thead>\\n\\n\\t\\t\\t\\t\\t\\t\\t<tbody *ngFor=\\\"let s of logSections\\\">\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t<tr style=\\\"background: #ddd; font-weight: bold\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<td colspan=\\\"5\\\" align=\\\"right\\\">Total:</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t{{s.logs.length}}\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t<tr *ngFor=\\\"let r of s.logs\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap>{{r.dcontext.indexOf('cellip-out') != -1 ? 'Utgående' : 'Inkommande'}}</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap>{{r.calldate}}</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap>{{r.clid}}</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap>{{r.dst}}</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap>{{r.dcontext}}</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<td nowrap>{{formatDuration(r.duration)}}</td>\\n\\t\\t\\t\\t\\t\\t\\t\\t</tr>\\n\\n\\t\\t\\t\\t\\t\\t\\t</tbody>\\n\\n\\t\\t\\t\\t\\t\\t</table>\\n\\n\\t\\t\\t\\t\\t</div>\\n\\n\\t\\t</div>\\n\\n\\n\\n\\t</div>\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/views/templates/phones.html\n// module id = 1032\n// module chunks = 0","module.exports = \"\\n<div class=\\\"support-content row\\\">\\n\\n\\t<div class=\\\"nomobile\\\">\\n\\t\\t<nav class=\\\"navbar navbar-toggleable-md navbar-light bg-faded\\\">\\n\\t\\t\\t<div class=\\\"form-inline\\\">\\n\\t\\t\\t\\n\\n\\t\\t\\t\\t<div class=\\\"form-inline pull-right\\\">\\n\\t\\t\\t\\t\\t<button (click)=\\\"reload()\\\" type=\\\"button\\\" class=\\\"btn btn-primary\\\"><i class=\\\"fa fa-refresh\\\" [ngClass]=\\\"{'fa-circle-o-notch fa-spin fa-f' : loading}\\\"></i> Uppdatera</button>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t</nav>\\n\\t</div>\\t\\n\\n\\t<div class=\\\"support-pane-master height-100 p-b-3\\\" [ngClass]=\\\"{'collapsed' : showProspectInfo}\\\">\\n\\t\\t\\n\\n\\t\\t<div  class=\\\"activity-list\\\">\\n\\n\\t\\t\\t<table class=\\\"table table-sm\\\">\\n\\n\\t\\t\\t\\t<thead >\\n\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t<th class=\\\"issue-check\\\">\\n\\t\\t\\t\\t\\t\\t\\t  <i class=\\\"fa fa-check-square-o\\\" (click)=\\\"setAllSelected()\\\"></i>\\n\\t\\t\\t\\t    \\t</th>\\n\\t\\t\\t\\t\\t\\t\\t<th width=\\\"100\\\" nowrap=\\\"nowrap\\\">Status</th>\\n\\t\\t\\t\\t\\t\\t\\t<th width=\\\"100%\\\" nowrap=\\\"nowrap\\\">Företagsnamn</th>\\n\\t\\t\\t\\t\\t\\t\\t<th nowrap=\\\"nowrap\\\">Skapad</th>\\n\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t</thead>\\n\\n\\t\\t\\t\\t\\t<tbody *ngIf=\\\"prospects && prospects.length == 0\\\">\\n\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t<td colspan=\\\"4\\\" align=\\\"center\\\">Inga prospekt att visa</td>\\n\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t</tbody>\\n\\n\\t\\t\\t\\t\\t<tbody>\\n\\t\\t\\t\\t\\t\\t<tr *ngFor=\\\"let p of prospects\\\" class=\\\"nomobile sub-support-issue\\\">\\n\\t\\t\\t\\t\\t\\t\\t<td (click)=\\\"toggleSelected(p, $event); toggleIssueToolbar()\\\" scope=\\\"row\\\" nowrap=\\\"nowrap\\\" class=\\\"issue-check\\\">\\n\\t\\t\\t\\t\\t\\t\\t  <i class=\\\"fa\\\" [ngClass]=\\\"{'fa-square-o' : !p.selected, 'fa-check-square-o' : p.selected}\\\"></i>\\n\\t\\t\\t\\t\\t\\t  </td>\\n\\t\\t\\t\\t\\t\\t\\t<td width=\\\"100\\\" class=\\\"vert-align nomobile\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<button class=\\\"btn btn-xs\\\" [ngClass]=\\\"{\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t'btn-primary' : p.statusId == 0 || p.statusId == 6,\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t'btn-warning' : p.statusId == 1,\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t'btn-info' : p.statusId == 2 ||  p.statusId == 4 || p.statusId == 5 || p.statusId == 7,\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t'btn-success' : p.statusId == 3\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t}\\\">{{p.prospectStatus}}</button>\\n\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t<td width=\\\"100%\\\" nowrap=\\\"nowrap\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<a href=\\\"javascript:;\\\" routerLink=\\\"/prospects/{{p.prospectId}}/\\\">{{p.name}}</a>\\n\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t<td nowrap><date-formatter [date]=\\\"p.createdDate\\\"></date-formatter></td>\\n\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t</tbody>\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t</table>\\n\\n\\t\\t\\t</div>\\n\\n\\t</div>\\n\\n\\t<div class=\\\"support-pane-details container-fluid full-height-fill full-width-fill\\\" [ngClass]=\\\"{'collapsed' : !showProspectInfo}\\\">\\n\\t\\t<div class=\\\"height-100 scrollable\\\">\\n\\t\\t\\t<router-outlet></router-outlet>\\n\\t\\t</div>\\t\\n\\t</div>\\n\\n</div>\\n\\n<invoiceinfo #invoiceInfo></invoiceinfo>\\n<orderinfo #orderInfo></orderinfo>\\n\\n<modal #loadingModal>\\n\\t<modal-header [show-close]=\\\"false\\\">\\n\\t\\t\\t<h4 class=\\\"modal-title\\\">Vänta</h4>\\n\\t</modal-header>\\n\\t<modal-body>\\n\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t<i class=\\\"fa fa-circle-o-notch fa-spin fa-3x fa-fw\\\"></i>\\n\\t\\t</div>\\t\\n\\t</modal-body>\\n</modal>\\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/views/templates/prospects.html\n// module id = 1033\n// module chunks = 0","module.exports = \"\\n<div class=\\\"support-content row\\\">\\n\\n\\t<div class=\\\"nomobile\\\">\\n\\t\\t<nav class=\\\"navbar navbar-toggleable-md navbar-light bg-faded\\\">\\n\\t\\t\\t<div class=\\\"form-inline\\\">\\n\\t\\t\\t\\t<div class=\\\"form-group pull-xs-left\\\">\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t<div class=\\\"btn-group\\\" role=\\\"group\\\" aria-label=\\\"Basic example\\\">\\n\\t\\t\\t\\t\\t\\t<button type=\\\"button\\\" [ngClass]=\\\"{'btn-primary' : reportType == 'sales'}\\\" class=\\\"btn dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngIf=\\\"reportType == 'sales'\\\">Försäljning</span>\\n\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\" aria-labelledby=\\\"dropdownMenuButton\\\">\\n\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"setReportType('sales')\\\">Försäljning</a>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t<div *ngIf=\\\"reportType == 'sales'\\\" class=\\\"btn-group\\\" role=\\\"group\\\" aria-label=\\\"Basic example\\\">\\n\\t\\t\\t\\t\\t\\t<button *ngFor=\\\"let btn of orderTypeButtons\\\" (click)=\\\"toggleOrderTypeButton(btn.value)\\\" type=\\\"button\\\" class=\\\"btn\\\" [ngClass]=\\\"{'btn-primary' : !btn.checked, 'btn-success' : btn.checked}\\\">{{btn.name}}</button>\\n\\t\\t\\t\\t\\t</div>\\n\\n\\t\\t\\t\\t\\t<div class=\\\"btn-group\\\" role=\\\"group\\\" aria-label=\\\"Basic example\\\">\\n\\t\\t\\t\\t\\t\\t<button type=\\\"button\\\" class=\\\"btn btn-primary dropdown-toggle dropdown-toggle-split\\\" data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" *ngFor=\\\"let user of availableUsers\\\" [ngClass]=\\\"{'hidden' : filter.userId != user.userId}\\\">{{user.firstName}} {{user.lastName}}</span>\\n\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" [ngClass]=\\\"{'hidden' : filter.userId != -1}\\\">Alla</span>\\n\\t\\t\\t\\t\\t\\t\\t<span class=\\\"sr-onlys\\\" [ngClass]=\\\"{'hidden' : filter.userId != 0}\\\">Otilldelad</span>\\n\\t\\t\\t\\t\\t\\t</button>\\n\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-menu\\\" aria-labelledby=\\\"dropdownMenuButton\\\">\\n\\t\\t\\t\\t\\t\\t\\t<a class=\\\"dropdown-item\\\" href=\\\"javascript:;\\\" (click)=\\\"setFilterUserId(-1)\\\">Alla</a>\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"dropdown-divider\\\"></div>\\n\\t\\t\\t\\t\\t\\t\\t<a href=\\\"javascript:;\\\" class=\\\"dropdown-item\\\" *ngFor=\\\"let user of availableUsers\\\" (click)=\\\"setFilterUserId(user.userId)\\\">{{user.lastName}}, {{user.firstName}}</a>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t<form class=\\\"form-inline m-l-1\\\">\\n\\t\\t\\t\\t\\t<div class=\\\"col-md-2 form-group\\\">\\n\\t\\t\\t\\t\\t\\t<datepicker [placeholder]=\\\"'Startdatum'\\\" [date]=\\\"filter.periodStart * 1000\\\" (onDateChanged)=\\\"startDateChanged($event.date)\\\" #periodStartDate></datepicker>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t<div class=\\\"col-md-2 form-group\\\">\\n\\t\\t\\t\\t\\t\\t<datepicker [placeholder]=\\\"'Slutdatum'\\\" [date]=\\\"filter.periodEnd * 1000\\\" (onDateChanged)=\\\"endDateChanged($event.date)\\\" #periodEndDate></datepicker>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</form>\\n\\t\\t\\t\\t<div class=\\\"form-inline pull-right\\\">\\n\\t\\t\\t\\t\\t<button (click)=\\\"reload()\\\" type=\\\"button\\\" class=\\\"btn btn-primary\\\"><i class=\\\"fa fa-refresh\\\" [ngClass]=\\\"{'fa-circle-o-notch fa-spin fa-f' : loading}\\\"></i> Uppdatera</button>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t</nav>\\n\\t</div>\\t\\n\\n\\t<div class=\\\"support-pane-master height-100 p-b-3\\\">\\n\\t\\t\\n\\n\\t\\t<div  class=\\\"activity-list\\\">\\n\\n\\t\\t\\t<table class=\\\"table table-sm\\\">\\n\\n\\t\\t\\t\\t<thead >\\n\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t<th nowrap=\\\"nowrap\\\">Period</th>\\n\\t\\t\\t\\t\\t\\t\\t<th nowrap=\\\"nowrap\\\">Företagsnamn</th>\\n\\t\\t\\t\\t\\t\\t\\t<th nowrap=\\\"nowrap\\\">Fakturadatum</th>\\n\\t\\t\\t\\t\\t\\t\\t<th nowrap=\\\"nowrap\\\">FakturaNr</th>\\n\\t\\t\\t\\t\\t\\t\\t<th nowrap=\\\"nowrap\\\">Orderdatum</th>\\n\\t\\t\\t\\t\\t\\t\\t<th nowrap=\\\"nowrap\\\">OrderNr</th>\\n\\t\\t\\t\\t\\t\\t\\t<th nowrap=\\\"nowrap\\\">Säljare</th>\\n\\t\\t\\t\\t\\t\\t\\t<th nowrap=\\\"nowrap\\\">Ordertype</th>\\n\\t\\t\\t\\t\\t\\t\\t<th nowrap=\\\"nowrap\\\">Summa</th>\\n\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t</thead>\\n\\n\\t\\t\\t\\t\\t<tbody *ngFor=\\\"let i of reportData\\\">\\n\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t<td>{{i.period}}</td>\\n\\t\\t\\t\\t\\t\\t\\t<td>{{i.companyName}}</td>\\n\\t\\t\\t\\t\\t\\t\\t<td><date-formatter [date]=\\\"i.invoiceDate\\\"></date-formatter></td>\\n\\t\\t\\t\\t\\t\\t\\t<td><a href=\\\"javascript:\\\" (click)=\\\"showInvoiceInfo(i.invoiceId)\\\">{{i.invoiceNr}}</a></td>\\n\\t\\t\\t\\t\\t\\t\\t<td><date-formatter [date]=\\\"i.orderDate\\\"></date-formatter></td>\\n\\t\\t\\t\\t\\t\\t\\t<td><a href=\\\"javascript:;\\\" (click)=\\\"showOrderInfo(i.companyId, i.orderId)\\\">{{i.orderNr}}</a></td>\\n\\t\\t\\t\\t\\t\\t\\t<td>{{i.name}}</td>\\n\\t\\t\\t\\t\\t\\t\\t<td>\\n\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"i.orderType == 0\\\">Nyförsäljning</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"i.orderType == 1\\\">Uppförsäljning</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"i.orderType == 2\\\">Förnyelse</span>\\n\\t\\t\\t\\t\\t\\t\\t\\t<span *ngIf=\\\"i.orderType == 3\\\">Övrig</span>\\n\\t\\t\\t\\t\\t\\t\\t</td>\\n\\t\\t\\t\\t\\t\\t\\t<td><number-formatter [number]=\\\"i.amount\\\"></number-formatter> SEK</td>\\n\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t</tbody>\\n\\n\\t\\t\\t\\t\\t<tbody>\\n\\t\\t\\t\\t\\t\\t<tr>\\n\\t\\t\\t\\t\\t\\t\\t<th colspan=\\\"8\\\" style=\\\"text-align: right;\\\">Summa</th>\\n\\t\\t\\t\\t\\t\\t\\t<th><number-formatter [number]=\\\"sum\\\"></number-formatter> SEK</th>\\n\\t\\t\\t\\t\\t\\t</tr>\\n\\t\\t\\t\\t\\t</tbody>\\n\\n\\t\\t\\t\\t</table>\\n\\n\\t\\t\\t</div>\\n\\n\\t</div>\\n\\n</div>\\n\\n<invoiceinfo #invoiceInfo></invoiceinfo>\\n<orderinfo #orderInfo></orderinfo>\\n\\n\\n<modal #loadingModal>\\n\\t<modal-header [show-close]=\\\"false\\\">\\n\\t\\t\\t<h4 class=\\\"modal-title\\\">Vänta</h4>\\n\\t</modal-header>\\n\\t<modal-body>\\n\\t\\t<div class=\\\"center\\\">\\n\\t\\t\\t<i class=\\\"fa fa-circle-o-notch fa-spin fa-3x fa-fw\\\"></i>\\n\\t\\t</div>\\t\\n\\t</modal-body>\\n</modal>\\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/views/templates/salesreport.html\n// module id = 1034\n// module chunks = 0","module.exports = \"<div>\\n\\t<storage-list></storage-list>\\n</div>\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/views/templates/storage.html\n// module id = 1035\n// module chunks = 0","module.exports = \"<div>\\n\\t<subscription-list></subscription-list>\\n</div>\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/views/templates/subscriptions.html\n// module id = 1036\n// module chunks = 0","module.exports = \"<div>\\n\\t<support-list></support-list>\\n</div>\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/views/templates/support.html\n// module id = 1037\n// module chunks = 0","\"use strict\";\n/**\n * An execution context and a data structure to order tasks and schedule their\n * execution. Provides a notion of (potentially virtual) time, through the\n * `now()` getter method.\n *\n * Each unit of work in a Scheduler is called an {@link Action}.\n *\n * ```ts\n * class Scheduler {\n *   now(): number;\n *   schedule(work, delay?, state?): Subscription;\n * }\n * ```\n *\n * @class Scheduler\n */\nvar Scheduler = (function () {\n    function Scheduler(SchedulerAction, now) {\n        if (now === void 0) { now = Scheduler.now; }\n        this.SchedulerAction = SchedulerAction;\n        this.now = now;\n    }\n    /**\n     * Schedules a function, `work`, for execution. May happen at some point in\n     * the future, according to the `delay` parameter, if specified. May be passed\n     * some context object, `state`, which will be passed to the `work` function.\n     *\n     * The given arguments will be processed an stored as an Action object in a\n     * queue of actions.\n     *\n     * @param {function(state: ?T): ?Subscription} work A function representing a\n     * task, or some unit of work to be executed by the Scheduler.\n     * @param {number} [delay] Time to wait before executing the work, where the\n     * time unit is implicit and defined by the Scheduler itself.\n     * @param {T} [state] Some contextual data that the `work` function uses when\n     * called by the Scheduler.\n     * @return {Subscription} A subscription in order to be able to unsubscribe\n     * the scheduled work.\n     */\n    Scheduler.prototype.schedule = function (work, delay, state) {\n        if (delay === void 0) { delay = 0; }\n        return new this.SchedulerAction(this, work).schedule(state, delay);\n    };\n    Scheduler.now = Date.now ? Date.now : function () { return +new Date(); };\n    return Scheduler;\n}());\nexports.Scheduler = Scheduler;\n//# sourceMappingURL=Scheduler.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/Scheduler.js\n// module id = 1039\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar bindCallback_1 = require('../../observable/bindCallback');\nObservable_1.Observable.bindCallback = bindCallback_1.bindCallback;\n//# sourceMappingURL=bindCallback.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/observable/bindCallback.js\n// module id = 1040\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar bindNodeCallback_1 = require('../../observable/bindNodeCallback');\nObservable_1.Observable.bindNodeCallback = bindNodeCallback_1.bindNodeCallback;\n//# sourceMappingURL=bindNodeCallback.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/observable/bindNodeCallback.js\n// module id = 1041\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar combineLatest_1 = require('../../observable/combineLatest');\nObservable_1.Observable.combineLatest = combineLatest_1.combineLatest;\n//# sourceMappingURL=combineLatest.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/observable/combineLatest.js\n// module id = 1042\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar concat_1 = require('../../observable/concat');\nObservable_1.Observable.concat = concat_1.concat;\n//# sourceMappingURL=concat.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/observable/concat.js\n// module id = 1043\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../../Observable');\nvar ajax_1 = require('../../../observable/dom/ajax');\nObservable_1.Observable.ajax = ajax_1.ajax;\n//# sourceMappingURL=ajax.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/observable/dom/ajax.js\n// module id = 1044\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../../Observable');\nvar webSocket_1 = require('../../../observable/dom/webSocket');\nObservable_1.Observable.webSocket = webSocket_1.webSocket;\n//# sourceMappingURL=webSocket.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/observable/dom/webSocket.js\n// module id = 1045\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar empty_1 = require('../../observable/empty');\nObservable_1.Observable.empty = empty_1.empty;\n//# sourceMappingURL=empty.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/observable/empty.js\n// module id = 1046\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar forkJoin_1 = require('../../observable/forkJoin');\nObservable_1.Observable.forkJoin = forkJoin_1.forkJoin;\n//# sourceMappingURL=forkJoin.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/observable/forkJoin.js\n// module id = 1047\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar from_1 = require('../../observable/from');\nObservable_1.Observable.from = from_1.from;\n//# sourceMappingURL=from.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/observable/from.js\n// module id = 1048\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar fromEventPattern_1 = require('../../observable/fromEventPattern');\nObservable_1.Observable.fromEventPattern = fromEventPattern_1.fromEventPattern;\n//# sourceMappingURL=fromEventPattern.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/observable/fromEventPattern.js\n// module id = 1049\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar GenerateObservable_1 = require('../../observable/GenerateObservable');\nObservable_1.Observable.generate = GenerateObservable_1.GenerateObservable.create;\n//# sourceMappingURL=generate.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/observable/generate.js\n// module id = 1050\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar if_1 = require('../../observable/if');\nObservable_1.Observable.if = if_1._if;\n//# sourceMappingURL=if.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/observable/if.js\n// module id = 1051\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar interval_1 = require('../../observable/interval');\nObservable_1.Observable.interval = interval_1.interval;\n//# sourceMappingURL=interval.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/observable/interval.js\n// module id = 1052\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar merge_1 = require('../../observable/merge');\nObservable_1.Observable.merge = merge_1.merge;\n//# sourceMappingURL=merge.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/observable/merge.js\n// module id = 1053\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar never_1 = require('../../observable/never');\nObservable_1.Observable.never = never_1.never;\n//# sourceMappingURL=never.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/observable/never.js\n// module id = 1054\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar onErrorResumeNext_1 = require('../../operator/onErrorResumeNext');\nObservable_1.Observable.onErrorResumeNext = onErrorResumeNext_1.onErrorResumeNextStatic;\n//# sourceMappingURL=onErrorResumeNext.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/observable/onErrorResumeNext.js\n// module id = 1055\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar pairs_1 = require('../../observable/pairs');\nObservable_1.Observable.pairs = pairs_1.pairs;\n//# sourceMappingURL=pairs.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/observable/pairs.js\n// module id = 1056\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar race_1 = require('../../operator/race');\nObservable_1.Observable.race = race_1.raceStatic;\n//# sourceMappingURL=race.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/observable/race.js\n// module id = 1057\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar range_1 = require('../../observable/range');\nObservable_1.Observable.range = range_1.range;\n//# sourceMappingURL=range.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/observable/range.js\n// module id = 1058\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar throw_1 = require('../../observable/throw');\nObservable_1.Observable.throw = throw_1._throw;\n//# sourceMappingURL=throw.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/observable/throw.js\n// module id = 1059\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar using_1 = require('../../observable/using');\nObservable_1.Observable.using = using_1.using;\n//# sourceMappingURL=using.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/observable/using.js\n// module id = 1060\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar zip_1 = require('../../observable/zip');\nObservable_1.Observable.zip = zip_1.zip;\n//# sourceMappingURL=zip.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/observable/zip.js\n// module id = 1061\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar audit_1 = require('../../operator/audit');\nObservable_1.Observable.prototype.audit = audit_1.audit;\n//# sourceMappingURL=audit.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/audit.js\n// module id = 1062\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar auditTime_1 = require('../../operator/auditTime');\nObservable_1.Observable.prototype.auditTime = auditTime_1.auditTime;\n//# sourceMappingURL=auditTime.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/auditTime.js\n// module id = 1063\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar buffer_1 = require('../../operator/buffer');\nObservable_1.Observable.prototype.buffer = buffer_1.buffer;\n//# sourceMappingURL=buffer.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/buffer.js\n// module id = 1064\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar bufferCount_1 = require('../../operator/bufferCount');\nObservable_1.Observable.prototype.bufferCount = bufferCount_1.bufferCount;\n//# sourceMappingURL=bufferCount.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/bufferCount.js\n// module id = 1065\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar bufferTime_1 = require('../../operator/bufferTime');\nObservable_1.Observable.prototype.bufferTime = bufferTime_1.bufferTime;\n//# sourceMappingURL=bufferTime.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/bufferTime.js\n// module id = 1066\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar bufferToggle_1 = require('../../operator/bufferToggle');\nObservable_1.Observable.prototype.bufferToggle = bufferToggle_1.bufferToggle;\n//# sourceMappingURL=bufferToggle.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/bufferToggle.js\n// module id = 1067\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar bufferWhen_1 = require('../../operator/bufferWhen');\nObservable_1.Observable.prototype.bufferWhen = bufferWhen_1.bufferWhen;\n//# sourceMappingURL=bufferWhen.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/bufferWhen.js\n// module id = 1068\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar catch_1 = require('../../operator/catch');\nObservable_1.Observable.prototype.catch = catch_1._catch;\nObservable_1.Observable.prototype._catch = catch_1._catch;\n//# sourceMappingURL=catch.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/catch.js\n// module id = 1069\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar combineAll_1 = require('../../operator/combineAll');\nObservable_1.Observable.prototype.combineAll = combineAll_1.combineAll;\n//# sourceMappingURL=combineAll.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/combineAll.js\n// module id = 1070\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar combineLatest_1 = require('../../operator/combineLatest');\nObservable_1.Observable.prototype.combineLatest = combineLatest_1.combineLatest;\n//# sourceMappingURL=combineLatest.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/combineLatest.js\n// module id = 1071\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar concat_1 = require('../../operator/concat');\nObservable_1.Observable.prototype.concat = concat_1.concat;\n//# sourceMappingURL=concat.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/concat.js\n// module id = 1072\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar concatAll_1 = require('../../operator/concatAll');\nObservable_1.Observable.prototype.concatAll = concatAll_1.concatAll;\n//# sourceMappingURL=concatAll.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/concatAll.js\n// module id = 1073\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar concatMap_1 = require('../../operator/concatMap');\nObservable_1.Observable.prototype.concatMap = concatMap_1.concatMap;\n//# sourceMappingURL=concatMap.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/concatMap.js\n// module id = 1074\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar concatMapTo_1 = require('../../operator/concatMapTo');\nObservable_1.Observable.prototype.concatMapTo = concatMapTo_1.concatMapTo;\n//# sourceMappingURL=concatMapTo.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/concatMapTo.js\n// module id = 1075\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar count_1 = require('../../operator/count');\nObservable_1.Observable.prototype.count = count_1.count;\n//# sourceMappingURL=count.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/count.js\n// module id = 1076\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar debounceTime_1 = require('../../operator/debounceTime');\nObservable_1.Observable.prototype.debounceTime = debounceTime_1.debounceTime;\n//# sourceMappingURL=debounceTime.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/debounceTime.js\n// module id = 1077\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar defaultIfEmpty_1 = require('../../operator/defaultIfEmpty');\nObservable_1.Observable.prototype.defaultIfEmpty = defaultIfEmpty_1.defaultIfEmpty;\n//# sourceMappingURL=defaultIfEmpty.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/defaultIfEmpty.js\n// module id = 1078\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar delay_1 = require('../../operator/delay');\nObservable_1.Observable.prototype.delay = delay_1.delay;\n//# sourceMappingURL=delay.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/delay.js\n// module id = 1079\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar delayWhen_1 = require('../../operator/delayWhen');\nObservable_1.Observable.prototype.delayWhen = delayWhen_1.delayWhen;\n//# sourceMappingURL=delayWhen.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/delayWhen.js\n// module id = 1080\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar dematerialize_1 = require('../../operator/dematerialize');\nObservable_1.Observable.prototype.dematerialize = dematerialize_1.dematerialize;\n//# sourceMappingURL=dematerialize.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/dematerialize.js\n// module id = 1081\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar distinct_1 = require('../../operator/distinct');\nObservable_1.Observable.prototype.distinct = distinct_1.distinct;\n//# sourceMappingURL=distinct.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/distinct.js\n// module id = 1082\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar distinctUntilChanged_1 = require('../../operator/distinctUntilChanged');\nObservable_1.Observable.prototype.distinctUntilChanged = distinctUntilChanged_1.distinctUntilChanged;\n//# sourceMappingURL=distinctUntilChanged.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/distinctUntilChanged.js\n// module id = 1083\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar distinctUntilKeyChanged_1 = require('../../operator/distinctUntilKeyChanged');\nObservable_1.Observable.prototype.distinctUntilKeyChanged = distinctUntilKeyChanged_1.distinctUntilKeyChanged;\n//# sourceMappingURL=distinctUntilKeyChanged.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/distinctUntilKeyChanged.js\n// module id = 1084\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar do_1 = require('../../operator/do');\nObservable_1.Observable.prototype.do = do_1._do;\nObservable_1.Observable.prototype._do = do_1._do;\n//# sourceMappingURL=do.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/do.js\n// module id = 1085\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar elementAt_1 = require('../../operator/elementAt');\nObservable_1.Observable.prototype.elementAt = elementAt_1.elementAt;\n//# sourceMappingURL=elementAt.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/elementAt.js\n// module id = 1086\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar every_1 = require('../../operator/every');\nObservable_1.Observable.prototype.every = every_1.every;\n//# sourceMappingURL=every.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/every.js\n// module id = 1087\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar exhaust_1 = require('../../operator/exhaust');\nObservable_1.Observable.prototype.exhaust = exhaust_1.exhaust;\n//# sourceMappingURL=exhaust.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/exhaust.js\n// module id = 1088\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar exhaustMap_1 = require('../../operator/exhaustMap');\nObservable_1.Observable.prototype.exhaustMap = exhaustMap_1.exhaustMap;\n//# sourceMappingURL=exhaustMap.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/exhaustMap.js\n// module id = 1089\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar expand_1 = require('../../operator/expand');\nObservable_1.Observable.prototype.expand = expand_1.expand;\n//# sourceMappingURL=expand.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/expand.js\n// module id = 1090\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar finally_1 = require('../../operator/finally');\nObservable_1.Observable.prototype.finally = finally_1._finally;\nObservable_1.Observable.prototype._finally = finally_1._finally;\n//# sourceMappingURL=finally.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/finally.js\n// module id = 1091\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar find_1 = require('../../operator/find');\nObservable_1.Observable.prototype.find = find_1.find;\n//# sourceMappingURL=find.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/find.js\n// module id = 1092\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar findIndex_1 = require('../../operator/findIndex');\nObservable_1.Observable.prototype.findIndex = findIndex_1.findIndex;\n//# sourceMappingURL=findIndex.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/findIndex.js\n// module id = 1093\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar first_1 = require('../../operator/first');\nObservable_1.Observable.prototype.first = first_1.first;\n//# sourceMappingURL=first.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/first.js\n// module id = 1094\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar groupBy_1 = require('../../operator/groupBy');\nObservable_1.Observable.prototype.groupBy = groupBy_1.groupBy;\n//# sourceMappingURL=groupBy.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/groupBy.js\n// module id = 1095\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar ignoreElements_1 = require('../../operator/ignoreElements');\nObservable_1.Observable.prototype.ignoreElements = ignoreElements_1.ignoreElements;\n//# sourceMappingURL=ignoreElements.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/ignoreElements.js\n// module id = 1096\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar isEmpty_1 = require('../../operator/isEmpty');\nObservable_1.Observable.prototype.isEmpty = isEmpty_1.isEmpty;\n//# sourceMappingURL=isEmpty.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/isEmpty.js\n// module id = 1097\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar last_1 = require('../../operator/last');\nObservable_1.Observable.prototype.last = last_1.last;\n//# sourceMappingURL=last.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/last.js\n// module id = 1098\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar let_1 = require('../../operator/let');\nObservable_1.Observable.prototype.let = let_1.letProto;\nObservable_1.Observable.prototype.letBind = let_1.letProto;\n//# sourceMappingURL=let.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/let.js\n// module id = 1099\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar mapTo_1 = require('../../operator/mapTo');\nObservable_1.Observable.prototype.mapTo = mapTo_1.mapTo;\n//# sourceMappingURL=mapTo.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/mapTo.js\n// module id = 1100\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar materialize_1 = require('../../operator/materialize');\nObservable_1.Observable.prototype.materialize = materialize_1.materialize;\n//# sourceMappingURL=materialize.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/materialize.js\n// module id = 1101\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar max_1 = require('../../operator/max');\nObservable_1.Observable.prototype.max = max_1.max;\n//# sourceMappingURL=max.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/max.js\n// module id = 1102\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar merge_1 = require('../../operator/merge');\nObservable_1.Observable.prototype.merge = merge_1.merge;\n//# sourceMappingURL=merge.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/merge.js\n// module id = 1103\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar mergeAll_1 = require('../../operator/mergeAll');\nObservable_1.Observable.prototype.mergeAll = mergeAll_1.mergeAll;\n//# sourceMappingURL=mergeAll.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/mergeAll.js\n// module id = 1104\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar mergeMapTo_1 = require('../../operator/mergeMapTo');\nObservable_1.Observable.prototype.flatMapTo = mergeMapTo_1.mergeMapTo;\nObservable_1.Observable.prototype.mergeMapTo = mergeMapTo_1.mergeMapTo;\n//# sourceMappingURL=mergeMapTo.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/mergeMapTo.js\n// module id = 1105\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar mergeScan_1 = require('../../operator/mergeScan');\nObservable_1.Observable.prototype.mergeScan = mergeScan_1.mergeScan;\n//# sourceMappingURL=mergeScan.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/mergeScan.js\n// module id = 1106\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar min_1 = require('../../operator/min');\nObservable_1.Observable.prototype.min = min_1.min;\n//# sourceMappingURL=min.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/min.js\n// module id = 1107\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar multicast_1 = require('../../operator/multicast');\nObservable_1.Observable.prototype.multicast = multicast_1.multicast;\n//# sourceMappingURL=multicast.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/multicast.js\n// module id = 1108\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar observeOn_1 = require('../../operator/observeOn');\nObservable_1.Observable.prototype.observeOn = observeOn_1.observeOn;\n//# sourceMappingURL=observeOn.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/observeOn.js\n// module id = 1109\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar onErrorResumeNext_1 = require('../../operator/onErrorResumeNext');\nObservable_1.Observable.prototype.onErrorResumeNext = onErrorResumeNext_1.onErrorResumeNext;\n//# sourceMappingURL=onErrorResumeNext.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/onErrorResumeNext.js\n// module id = 1110\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar pairwise_1 = require('../../operator/pairwise');\nObservable_1.Observable.prototype.pairwise = pairwise_1.pairwise;\n//# sourceMappingURL=pairwise.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/pairwise.js\n// module id = 1111\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar partition_1 = require('../../operator/partition');\nObservable_1.Observable.prototype.partition = partition_1.partition;\n//# sourceMappingURL=partition.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/partition.js\n// module id = 1112\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar pluck_1 = require('../../operator/pluck');\nObservable_1.Observable.prototype.pluck = pluck_1.pluck;\n//# sourceMappingURL=pluck.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/pluck.js\n// module id = 1113\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar publish_1 = require('../../operator/publish');\nObservable_1.Observable.prototype.publish = publish_1.publish;\n//# sourceMappingURL=publish.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/publish.js\n// module id = 1114\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar publishBehavior_1 = require('../../operator/publishBehavior');\nObservable_1.Observable.prototype.publishBehavior = publishBehavior_1.publishBehavior;\n//# sourceMappingURL=publishBehavior.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/publishBehavior.js\n// module id = 1115\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar publishLast_1 = require('../../operator/publishLast');\nObservable_1.Observable.prototype.publishLast = publishLast_1.publishLast;\n//# sourceMappingURL=publishLast.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/publishLast.js\n// module id = 1116\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar publishReplay_1 = require('../../operator/publishReplay');\nObservable_1.Observable.prototype.publishReplay = publishReplay_1.publishReplay;\n//# sourceMappingURL=publishReplay.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/publishReplay.js\n// module id = 1117\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar race_1 = require('../../operator/race');\nObservable_1.Observable.prototype.race = race_1.race;\n//# sourceMappingURL=race.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/race.js\n// module id = 1118\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar reduce_1 = require('../../operator/reduce');\nObservable_1.Observable.prototype.reduce = reduce_1.reduce;\n//# sourceMappingURL=reduce.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/reduce.js\n// module id = 1119\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar repeat_1 = require('../../operator/repeat');\nObservable_1.Observable.prototype.repeat = repeat_1.repeat;\n//# sourceMappingURL=repeat.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/repeat.js\n// module id = 1120\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar repeatWhen_1 = require('../../operator/repeatWhen');\nObservable_1.Observable.prototype.repeatWhen = repeatWhen_1.repeatWhen;\n//# sourceMappingURL=repeatWhen.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/repeatWhen.js\n// module id = 1121\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar retry_1 = require('../../operator/retry');\nObservable_1.Observable.prototype.retry = retry_1.retry;\n//# sourceMappingURL=retry.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/retry.js\n// module id = 1122\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar retryWhen_1 = require('../../operator/retryWhen');\nObservable_1.Observable.prototype.retryWhen = retryWhen_1.retryWhen;\n//# sourceMappingURL=retryWhen.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/retryWhen.js\n// module id = 1123\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar sample_1 = require('../../operator/sample');\nObservable_1.Observable.prototype.sample = sample_1.sample;\n//# sourceMappingURL=sample.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/sample.js\n// module id = 1124\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar sampleTime_1 = require('../../operator/sampleTime');\nObservable_1.Observable.prototype.sampleTime = sampleTime_1.sampleTime;\n//# sourceMappingURL=sampleTime.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/sampleTime.js\n// module id = 1125\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar scan_1 = require('../../operator/scan');\nObservable_1.Observable.prototype.scan = scan_1.scan;\n//# sourceMappingURL=scan.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/scan.js\n// module id = 1126\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar sequenceEqual_1 = require('../../operator/sequenceEqual');\nObservable_1.Observable.prototype.sequenceEqual = sequenceEqual_1.sequenceEqual;\n//# sourceMappingURL=sequenceEqual.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/sequenceEqual.js\n// module id = 1127\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar share_1 = require('../../operator/share');\nObservable_1.Observable.prototype.share = share_1.share;\n//# sourceMappingURL=share.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/share.js\n// module id = 1128\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar single_1 = require('../../operator/single');\nObservable_1.Observable.prototype.single = single_1.single;\n//# sourceMappingURL=single.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/single.js\n// module id = 1129\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar skip_1 = require('../../operator/skip');\nObservable_1.Observable.prototype.skip = skip_1.skip;\n//# sourceMappingURL=skip.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/skip.js\n// module id = 1130\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar skipUntil_1 = require('../../operator/skipUntil');\nObservable_1.Observable.prototype.skipUntil = skipUntil_1.skipUntil;\n//# sourceMappingURL=skipUntil.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/skipUntil.js\n// module id = 1131\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar skipWhile_1 = require('../../operator/skipWhile');\nObservable_1.Observable.prototype.skipWhile = skipWhile_1.skipWhile;\n//# sourceMappingURL=skipWhile.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/skipWhile.js\n// module id = 1132\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar startWith_1 = require('../../operator/startWith');\nObservable_1.Observable.prototype.startWith = startWith_1.startWith;\n//# sourceMappingURL=startWith.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/startWith.js\n// module id = 1133\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar subscribeOn_1 = require('../../operator/subscribeOn');\nObservable_1.Observable.prototype.subscribeOn = subscribeOn_1.subscribeOn;\n//# sourceMappingURL=subscribeOn.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/subscribeOn.js\n// module id = 1134\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar switch_1 = require('../../operator/switch');\nObservable_1.Observable.prototype.switch = switch_1._switch;\nObservable_1.Observable.prototype._switch = switch_1._switch;\n//# sourceMappingURL=switch.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/switch.js\n// module id = 1135\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar switchMap_1 = require('../../operator/switchMap');\nObservable_1.Observable.prototype.switchMap = switchMap_1.switchMap;\n//# sourceMappingURL=switchMap.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/switchMap.js\n// module id = 1136\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar switchMapTo_1 = require('../../operator/switchMapTo');\nObservable_1.Observable.prototype.switchMapTo = switchMapTo_1.switchMapTo;\n//# sourceMappingURL=switchMapTo.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/switchMapTo.js\n// module id = 1137\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar take_1 = require('../../operator/take');\nObservable_1.Observable.prototype.take = take_1.take;\n//# sourceMappingURL=take.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/take.js\n// module id = 1138\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar takeLast_1 = require('../../operator/takeLast');\nObservable_1.Observable.prototype.takeLast = takeLast_1.takeLast;\n//# sourceMappingURL=takeLast.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/takeLast.js\n// module id = 1139\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar takeUntil_1 = require('../../operator/takeUntil');\nObservable_1.Observable.prototype.takeUntil = takeUntil_1.takeUntil;\n//# sourceMappingURL=takeUntil.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/takeUntil.js\n// module id = 1140\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar takeWhile_1 = require('../../operator/takeWhile');\nObservable_1.Observable.prototype.takeWhile = takeWhile_1.takeWhile;\n//# sourceMappingURL=takeWhile.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/takeWhile.js\n// module id = 1141\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar throttleTime_1 = require('../../operator/throttleTime');\nObservable_1.Observable.prototype.throttleTime = throttleTime_1.throttleTime;\n//# sourceMappingURL=throttleTime.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/throttleTime.js\n// module id = 1142\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar timeInterval_1 = require('../../operator/timeInterval');\nObservable_1.Observable.prototype.timeInterval = timeInterval_1.timeInterval;\n//# sourceMappingURL=timeInterval.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/timeInterval.js\n// module id = 1143\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar timeout_1 = require('../../operator/timeout');\nObservable_1.Observable.prototype.timeout = timeout_1.timeout;\n//# sourceMappingURL=timeout.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/timeout.js\n// module id = 1144\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar timeoutWith_1 = require('../../operator/timeoutWith');\nObservable_1.Observable.prototype.timeoutWith = timeoutWith_1.timeoutWith;\n//# sourceMappingURL=timeoutWith.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/timeoutWith.js\n// module id = 1145\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar timestamp_1 = require('../../operator/timestamp');\nObservable_1.Observable.prototype.timestamp = timestamp_1.timestamp;\n//# sourceMappingURL=timestamp.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/timestamp.js\n// module id = 1146\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar toArray_1 = require('../../operator/toArray');\nObservable_1.Observable.prototype.toArray = toArray_1.toArray;\n//# sourceMappingURL=toArray.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/toArray.js\n// module id = 1147\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar window_1 = require('../../operator/window');\nObservable_1.Observable.prototype.window = window_1.window;\n//# sourceMappingURL=window.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/window.js\n// module id = 1148\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar windowCount_1 = require('../../operator/windowCount');\nObservable_1.Observable.prototype.windowCount = windowCount_1.windowCount;\n//# sourceMappingURL=windowCount.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/windowCount.js\n// module id = 1149\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar windowTime_1 = require('../../operator/windowTime');\nObservable_1.Observable.prototype.windowTime = windowTime_1.windowTime;\n//# sourceMappingURL=windowTime.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/windowTime.js\n// module id = 1150\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar windowToggle_1 = require('../../operator/windowToggle');\nObservable_1.Observable.prototype.windowToggle = windowToggle_1.windowToggle;\n//# sourceMappingURL=windowToggle.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/windowToggle.js\n// module id = 1151\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar windowWhen_1 = require('../../operator/windowWhen');\nObservable_1.Observable.prototype.windowWhen = windowWhen_1.windowWhen;\n//# sourceMappingURL=windowWhen.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/windowWhen.js\n// module id = 1152\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar withLatestFrom_1 = require('../../operator/withLatestFrom');\nObservable_1.Observable.prototype.withLatestFrom = withLatestFrom_1.withLatestFrom;\n//# sourceMappingURL=withLatestFrom.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/withLatestFrom.js\n// module id = 1153\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar zip_1 = require('../../operator/zip');\nObservable_1.Observable.prototype.zip = zip_1.zipProto;\n//# sourceMappingURL=zip.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/zip.js\n// module id = 1154\n// module chunks = 0","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar zipAll_1 = require('../../operator/zipAll');\nObservable_1.Observable.prototype.zipAll = zipAll_1.zipAll;\n//# sourceMappingURL=zipAll.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/zipAll.js\n// module id = 1155\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Observable_1 = require('../Observable');\nvar tryCatch_1 = require('../util/tryCatch');\nvar errorObject_1 = require('../util/errorObject');\nvar AsyncSubject_1 = require('../AsyncSubject');\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @extends {Ignored}\n * @hide true\n */\nvar BoundCallbackObservable = (function (_super) {\n    __extends(BoundCallbackObservable, _super);\n    function BoundCallbackObservable(callbackFunc, selector, args, scheduler) {\n        _super.call(this);\n        this.callbackFunc = callbackFunc;\n        this.selector = selector;\n        this.args = args;\n        this.scheduler = scheduler;\n    }\n    /* tslint:enable:max-line-length */\n    /**\n     * Converts a callback API to a function that returns an Observable.\n     *\n     * <span class=\"informal\">Give it a function `f` of type `f(x, callback)` and\n     * it will return a function `g` that when called as `g(x)` will output an\n     * Observable.</span>\n     *\n     * `bindCallback` is not an operator because its input and output are not\n     * Observables. The input is a function `func` with some parameters, but the\n     * last parameter must be a callback function that `func` calls when it is\n     * done. The output of `bindCallback` is a function that takes the same\n     * parameters as `func`, except the last one (the callback). When the output\n     * function is called with arguments, it will return an Observable where the\n     * results will be delivered to.\n     *\n     * @example <caption>Convert jQuery's getJSON to an Observable API</caption>\n     * // Suppose we have jQuery.getJSON('/my/url', callback)\n     * var getJSONAsObservable = Rx.Observable.bindCallback(jQuery.getJSON);\n     * var result = getJSONAsObservable('/my/url');\n     * result.subscribe(x => console.log(x), e => console.error(e));\n     *\n     * @see {@link bindNodeCallback}\n     * @see {@link from}\n     * @see {@link fromPromise}\n     *\n     * @param {function} func Function with a callback as the last parameter.\n     * @param {function} [selector] A function which takes the arguments from the\n     * callback and maps those a value to emit on the output Observable.\n     * @param {Scheduler} [scheduler] The scheduler on which to schedule the\n     * callbacks.\n     * @return {function(...params: *): Observable} A function which returns the\n     * Observable that delivers the same values the callback would deliver.\n     * @static true\n     * @name bindCallback\n     * @owner Observable\n     */\n    BoundCallbackObservable.create = function (func, selector, scheduler) {\n        if (selector === void 0) { selector = undefined; }\n        return function () {\n            var args = [];\n            for (var _i = 0; _i < arguments.length; _i++) {\n                args[_i - 0] = arguments[_i];\n            }\n            return new BoundCallbackObservable(func, selector, args, scheduler);\n        };\n    };\n    BoundCallbackObservable.prototype._subscribe = function (subscriber) {\n        var callbackFunc = this.callbackFunc;\n        var args = this.args;\n        var scheduler = this.scheduler;\n        var subject = this.subject;\n        if (!scheduler) {\n            if (!subject) {\n                subject = this.subject = new AsyncSubject_1.AsyncSubject();\n                var handler = function handlerFn() {\n                    var innerArgs = [];\n                    for (var _i = 0; _i < arguments.length; _i++) {\n                        innerArgs[_i - 0] = arguments[_i];\n                    }\n                    var source = handlerFn.source;\n                    var selector = source.selector, subject = source.subject;\n                    if (selector) {\n                        var result_1 = tryCatch_1.tryCatch(selector).apply(this, innerArgs);\n                        if (result_1 === errorObject_1.errorObject) {\n                            subject.error(errorObject_1.errorObject.e);\n                        }\n                        else {\n                            subject.next(result_1);\n                            subject.complete();\n                        }\n                    }\n                    else {\n                        subject.next(innerArgs.length === 1 ? innerArgs[0] : innerArgs);\n                        subject.complete();\n                    }\n                };\n                // use named function instance to avoid closure.\n                handler.source = this;\n                var result = tryCatch_1.tryCatch(callbackFunc).apply(this, args.concat(handler));\n                if (result === errorObject_1.errorObject) {\n                    subject.error(errorObject_1.errorObject.e);\n                }\n            }\n            return subject.subscribe(subscriber);\n        }\n        else {\n            return scheduler.schedule(BoundCallbackObservable.dispatch, 0, { source: this, subscriber: subscriber });\n        }\n    };\n    BoundCallbackObservable.dispatch = function (state) {\n        var self = this;\n        var source = state.source, subscriber = state.subscriber;\n        var callbackFunc = source.callbackFunc, args = source.args, scheduler = source.scheduler;\n        var subject = source.subject;\n        if (!subject) {\n            subject = source.subject = new AsyncSubject_1.AsyncSubject();\n            var handler = function handlerFn() {\n                var innerArgs = [];\n                for (var _i = 0; _i < arguments.length; _i++) {\n                    innerArgs[_i - 0] = arguments[_i];\n                }\n                var source = handlerFn.source;\n                var selector = source.selector, subject = source.subject;\n                if (selector) {\n                    var result_2 = tryCatch_1.tryCatch(selector).apply(this, innerArgs);\n                    if (result_2 === errorObject_1.errorObject) {\n                        self.add(scheduler.schedule(dispatchError, 0, { err: errorObject_1.errorObject.e, subject: subject }));\n                    }\n                    else {\n                        self.add(scheduler.schedule(dispatchNext, 0, { value: result_2, subject: subject }));\n                    }\n                }\n                else {\n                    var value = innerArgs.length === 1 ? innerArgs[0] : innerArgs;\n                    self.add(scheduler.schedule(dispatchNext, 0, { value: value, subject: subject }));\n                }\n            };\n            // use named function to pass values in without closure\n            handler.source = source;\n            var result = tryCatch_1.tryCatch(callbackFunc).apply(this, args.concat(handler));\n            if (result === errorObject_1.errorObject) {\n                subject.error(errorObject_1.errorObject.e);\n            }\n        }\n        self.add(subject.subscribe(subscriber));\n    };\n    return BoundCallbackObservable;\n}(Observable_1.Observable));\nexports.BoundCallbackObservable = BoundCallbackObservable;\nfunction dispatchNext(arg) {\n    var value = arg.value, subject = arg.subject;\n    subject.next(value);\n    subject.complete();\n}\nfunction dispatchError(arg) {\n    var err = arg.err, subject = arg.subject;\n    subject.error(err);\n}\n//# sourceMappingURL=BoundCallbackObservable.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/observable/BoundCallbackObservable.js\n// module id = 1157\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Observable_1 = require('../Observable');\nvar tryCatch_1 = require('../util/tryCatch');\nvar errorObject_1 = require('../util/errorObject');\nvar AsyncSubject_1 = require('../AsyncSubject');\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @extends {Ignored}\n * @hide true\n */\nvar BoundNodeCallbackObservable = (function (_super) {\n    __extends(BoundNodeCallbackObservable, _super);\n    function BoundNodeCallbackObservable(callbackFunc, selector, args, scheduler) {\n        _super.call(this);\n        this.callbackFunc = callbackFunc;\n        this.selector = selector;\n        this.args = args;\n        this.scheduler = scheduler;\n    }\n    /* tslint:enable:max-line-length */\n    /**\n     * Converts a Node.js-style callback API to a function that returns an\n     * Observable.\n     *\n     * <span class=\"informal\">It's just like {@link bindCallback}, but the\n     * callback is expected to be of type `callback(error, result)`.</span>\n     *\n     * `bindNodeCallback` is not an operator because its input and output are not\n     * Observables. The input is a function `func` with some parameters, but the\n     * last parameter must be a callback function that `func` calls when it is\n     * done. The callback function is expected to follow Node.js conventions,\n     * where the first argument to the callback is an error, while remaining\n     * arguments are the callback result. The output of `bindNodeCallback` is a\n     * function that takes the same parameters as `func`, except the last one (the\n     * callback). When the output function is called with arguments, it will\n     * return an Observable where the results will be delivered to.\n     *\n     * @example <caption>Read a file from the filesystem and get the data as an Observable</caption>\n     * import * as fs from 'fs';\n     * var readFileAsObservable = Rx.Observable.bindNodeCallback(fs.readFile);\n     * var result = readFileAsObservable('./roadNames.txt', 'utf8');\n     * result.subscribe(x => console.log(x), e => console.error(e));\n     *\n     * @see {@link bindCallback}\n     * @see {@link from}\n     * @see {@link fromPromise}\n     *\n     * @param {function} func Function with a callback as the last parameter.\n     * @param {function} [selector] A function which takes the arguments from the\n     * callback and maps those a value to emit on the output Observable.\n     * @param {Scheduler} [scheduler] The scheduler on which to schedule the\n     * callbacks.\n     * @return {function(...params: *): Observable} A function which returns the\n     * Observable that delivers the same values the Node.js callback would\n     * deliver.\n     * @static true\n     * @name bindNodeCallback\n     * @owner Observable\n     */\n    BoundNodeCallbackObservable.create = function (func, selector, scheduler) {\n        if (selector === void 0) { selector = undefined; }\n        return function () {\n            var args = [];\n            for (var _i = 0; _i < arguments.length; _i++) {\n                args[_i - 0] = arguments[_i];\n            }\n            return new BoundNodeCallbackObservable(func, selector, args, scheduler);\n        };\n    };\n    BoundNodeCallbackObservable.prototype._subscribe = function (subscriber) {\n        var callbackFunc = this.callbackFunc;\n        var args = this.args;\n        var scheduler = this.scheduler;\n        var subject = this.subject;\n        if (!scheduler) {\n            if (!subject) {\n                subject = this.subject = new AsyncSubject_1.AsyncSubject();\n                var handler = function handlerFn() {\n                    var innerArgs = [];\n                    for (var _i = 0; _i < arguments.length; _i++) {\n                        innerArgs[_i - 0] = arguments[_i];\n                    }\n                    var source = handlerFn.source;\n                    var selector = source.selector, subject = source.subject;\n                    var err = innerArgs.shift();\n                    if (err) {\n                        subject.error(err);\n                    }\n                    else if (selector) {\n                        var result_1 = tryCatch_1.tryCatch(selector).apply(this, innerArgs);\n                        if (result_1 === errorObject_1.errorObject) {\n                            subject.error(errorObject_1.errorObject.e);\n                        }\n                        else {\n                            subject.next(result_1);\n                            subject.complete();\n                        }\n                    }\n                    else {\n                        subject.next(innerArgs.length === 1 ? innerArgs[0] : innerArgs);\n                        subject.complete();\n                    }\n                };\n                // use named function instance to avoid closure.\n                handler.source = this;\n                var result = tryCatch_1.tryCatch(callbackFunc).apply(this, args.concat(handler));\n                if (result === errorObject_1.errorObject) {\n                    subject.error(errorObject_1.errorObject.e);\n                }\n            }\n            return subject.subscribe(subscriber);\n        }\n        else {\n            return scheduler.schedule(dispatch, 0, { source: this, subscriber: subscriber });\n        }\n    };\n    return BoundNodeCallbackObservable;\n}(Observable_1.Observable));\nexports.BoundNodeCallbackObservable = BoundNodeCallbackObservable;\nfunction dispatch(state) {\n    var self = this;\n    var source = state.source, subscriber = state.subscriber;\n    // XXX: cast to `any` to access to the private field in `source`.\n    var _a = source, callbackFunc = _a.callbackFunc, args = _a.args, scheduler = _a.scheduler;\n    var subject = source.subject;\n    if (!subject) {\n        subject = source.subject = new AsyncSubject_1.AsyncSubject();\n        var handler = function handlerFn() {\n            var innerArgs = [];\n            for (var _i = 0; _i < arguments.length; _i++) {\n                innerArgs[_i - 0] = arguments[_i];\n            }\n            var source = handlerFn.source;\n            var selector = source.selector, subject = source.subject;\n            var err = innerArgs.shift();\n            if (err) {\n                subject.error(err);\n            }\n            else if (selector) {\n                var result_2 = tryCatch_1.tryCatch(selector).apply(this, innerArgs);\n                if (result_2 === errorObject_1.errorObject) {\n                    self.add(scheduler.schedule(dispatchError, 0, { err: errorObject_1.errorObject.e, subject: subject }));\n                }\n                else {\n                    self.add(scheduler.schedule(dispatchNext, 0, { value: result_2, subject: subject }));\n                }\n            }\n            else {\n                var value = innerArgs.length === 1 ? innerArgs[0] : innerArgs;\n                self.add(scheduler.schedule(dispatchNext, 0, { value: value, subject: subject }));\n            }\n        };\n        // use named function to pass values in without closure\n        handler.source = source;\n        var result = tryCatch_1.tryCatch(callbackFunc).apply(this, args.concat(handler));\n        if (result === errorObject_1.errorObject) {\n            subject.error(errorObject_1.errorObject.e);\n        }\n    }\n    self.add(subject.subscribe(subscriber));\n}\nfunction dispatchNext(arg) {\n    var value = arg.value, subject = arg.subject;\n    subject.next(value);\n    subject.complete();\n}\nfunction dispatchError(arg) {\n    var err = arg.err, subject = arg.subject;\n    subject.error(err);\n}\n//# sourceMappingURL=BoundNodeCallbackObservable.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/observable/BoundNodeCallbackObservable.js\n// module id = 1158\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Observable_1 = require('../Observable');\nvar subscribeToResult_1 = require('../util/subscribeToResult');\nvar OuterSubscriber_1 = require('../OuterSubscriber');\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @extends {Ignored}\n * @hide true\n */\nvar DeferObservable = (function (_super) {\n    __extends(DeferObservable, _super);\n    function DeferObservable(observableFactory) {\n        _super.call(this);\n        this.observableFactory = observableFactory;\n    }\n    /**\n     * Creates an Observable that, on subscribe, calls an Observable factory to\n     * make an Observable for each new Observer.\n     *\n     * <span class=\"informal\">Creates the Observable lazily, that is, only when it\n     * is subscribed.\n     * </span>\n     *\n     * <img src=\"./img/defer.png\" width=\"100%\">\n     *\n     * `defer` allows you to create the Observable only when the Observer\n     * subscribes, and create a fresh Observable for each Observer. It waits until\n     * an Observer subscribes to it, and then it generates an Observable,\n     * typically with an Observable factory function. It does this afresh for each\n     * subscriber, so although each subscriber may think it is subscribing to the\n     * same Observable, in fact each subscriber gets its own individual\n     * Observable.\n     *\n     * @example <caption>Subscribe to either an Observable of clicks or an Observable of interval, at random</caption>\n     * var clicksOrInterval = Rx.Observable.defer(function () {\n     *   if (Math.random() > 0.5) {\n     *     return Rx.Observable.fromEvent(document, 'click');\n     *   } else {\n     *     return Rx.Observable.interval(1000);\n     *   }\n     * });\n     * clicksOrInterval.subscribe(x => console.log(x));\n     *\n     * // Results in the following behavior:\n     * // If the result of Math.random() is greater than 0.5 it will listen\n     * // for clicks anywhere on the \"document\"; when document is clicked it\n     * // will log a MouseEvent object to the console. If the result is less\n     * // than 0.5 it will emit ascending numbers, one every second(1000ms).\n     *\n     * @see {@link create}\n     *\n     * @param {function(): Observable|Promise} observableFactory The Observable\n     * factory function to invoke for each Observer that subscribes to the output\n     * Observable. May also return a Promise, which will be converted on the fly\n     * to an Observable.\n     * @return {Observable} An Observable whose Observers' subscriptions trigger\n     * an invocation of the given Observable factory function.\n     * @static true\n     * @name defer\n     * @owner Observable\n     */\n    DeferObservable.create = function (observableFactory) {\n        return new DeferObservable(observableFactory);\n    };\n    DeferObservable.prototype._subscribe = function (subscriber) {\n        return new DeferSubscriber(subscriber, this.observableFactory);\n    };\n    return DeferObservable;\n}(Observable_1.Observable));\nexports.DeferObservable = DeferObservable;\nvar DeferSubscriber = (function (_super) {\n    __extends(DeferSubscriber, _super);\n    function DeferSubscriber(destination, factory) {\n        _super.call(this, destination);\n        this.factory = factory;\n        this.tryDefer();\n    }\n    DeferSubscriber.prototype.tryDefer = function () {\n        try {\n            this._callFactory();\n        }\n        catch (err) {\n            this._error(err);\n        }\n    };\n    DeferSubscriber.prototype._callFactory = function () {\n        var result = this.factory();\n        if (result) {\n            this.add(subscribeToResult_1.subscribeToResult(this, result));\n        }\n    };\n    return DeferSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\n//# sourceMappingURL=DeferObservable.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/observable/DeferObservable.js\n// module id = 1159\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Observable_1 = require('../Observable');\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @extends {Ignored}\n * @hide true\n */\nvar ErrorObservable = (function (_super) {\n    __extends(ErrorObservable, _super);\n    function ErrorObservable(error, scheduler) {\n        _super.call(this);\n        this.error = error;\n        this.scheduler = scheduler;\n    }\n    /**\n     * Creates an Observable that emits no items to the Observer and immediately\n     * emits an error notification.\n     *\n     * <span class=\"informal\">Just emits 'error', and nothing else.\n     * </span>\n     *\n     * <img src=\"./img/throw.png\" width=\"100%\">\n     *\n     * This static operator is useful for creating a simple Observable that only\n     * emits the error notification. It can be used for composing with other\n     * Observables, such as in a {@link mergeMap}.\n     *\n     * @example <caption>Emit the number 7, then emit an error.</caption>\n     * var result = Rx.Observable.throw(new Error('oops!')).startWith(7);\n     * result.subscribe(x => console.log(x), e => console.error(e));\n     *\n     * @example <caption>Map and flattens numbers to the sequence 'a', 'b', 'c', but throw an error for 13</caption>\n     * var interval = Rx.Observable.interval(1000);\n     * var result = interval.mergeMap(x =>\n     *   x === 13 ?\n     *     Rx.Observable.throw('Thirteens are bad') :\n     *     Rx.Observable.of('a', 'b', 'c')\n     * );\n     * result.subscribe(x => console.log(x), e => console.error(e));\n     *\n     * @see {@link create}\n     * @see {@link empty}\n     * @see {@link never}\n     * @see {@link of}\n     *\n     * @param {any} error The particular Error to pass to the error notification.\n     * @param {Scheduler} [scheduler] A {@link Scheduler} to use for scheduling\n     * the emission of the error notification.\n     * @return {Observable} An error Observable: emits only the error notification\n     * using the given error argument.\n     * @static true\n     * @name throw\n     * @owner Observable\n     */\n    ErrorObservable.create = function (error, scheduler) {\n        return new ErrorObservable(error, scheduler);\n    };\n    ErrorObservable.dispatch = function (arg) {\n        var error = arg.error, subscriber = arg.subscriber;\n        subscriber.error(error);\n    };\n    ErrorObservable.prototype._subscribe = function (subscriber) {\n        var error = this.error;\n        var scheduler = this.scheduler;\n        if (scheduler) {\n            return scheduler.schedule(ErrorObservable.dispatch, 0, {\n                error: error, subscriber: subscriber\n            });\n        }\n        else {\n            subscriber.error(error);\n        }\n    };\n    return ErrorObservable;\n}(Observable_1.Observable));\nexports.ErrorObservable = ErrorObservable;\n//# sourceMappingURL=ErrorObservable.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/observable/ErrorObservable.js\n// module id = 1160\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Observable_1 = require('../Observable');\nvar EmptyObservable_1 = require('./EmptyObservable');\nvar isArray_1 = require('../util/isArray');\nvar subscribeToResult_1 = require('../util/subscribeToResult');\nvar OuterSubscriber_1 = require('../OuterSubscriber');\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @extends {Ignored}\n * @hide true\n */\nvar ForkJoinObservable = (function (_super) {\n    __extends(ForkJoinObservable, _super);\n    function ForkJoinObservable(sources, resultSelector) {\n        _super.call(this);\n        this.sources = sources;\n        this.resultSelector = resultSelector;\n    }\n    /* tslint:enable:max-line-length */\n    /**\n     * @param sources\n     * @return {any}\n     * @static true\n     * @name forkJoin\n     * @owner Observable\n     */\n    ForkJoinObservable.create = function () {\n        var sources = [];\n        for (var _i = 0; _i < arguments.length; _i++) {\n            sources[_i - 0] = arguments[_i];\n        }\n        if (sources === null || arguments.length === 0) {\n            return new EmptyObservable_1.EmptyObservable();\n        }\n        var resultSelector = null;\n        if (typeof sources[sources.length - 1] === 'function') {\n            resultSelector = sources.pop();\n        }\n        // if the first and only other argument besides the resultSelector is an array\n        // assume it's been called with `forkJoin([obs1, obs2, obs3], resultSelector)`\n        if (sources.length === 1 && isArray_1.isArray(sources[0])) {\n            sources = sources[0];\n        }\n        if (sources.length === 0) {\n            return new EmptyObservable_1.EmptyObservable();\n        }\n        return new ForkJoinObservable(sources, resultSelector);\n    };\n    ForkJoinObservable.prototype._subscribe = function (subscriber) {\n        return new ForkJoinSubscriber(subscriber, this.sources, this.resultSelector);\n    };\n    return ForkJoinObservable;\n}(Observable_1.Observable));\nexports.ForkJoinObservable = ForkJoinObservable;\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar ForkJoinSubscriber = (function (_super) {\n    __extends(ForkJoinSubscriber, _super);\n    function ForkJoinSubscriber(destination, sources, resultSelector) {\n        _super.call(this, destination);\n        this.sources = sources;\n        this.resultSelector = resultSelector;\n        this.completed = 0;\n        this.haveValues = 0;\n        var len = sources.length;\n        this.total = len;\n        this.values = new Array(len);\n        for (var i = 0; i < len; i++) {\n            var source = sources[i];\n            var innerSubscription = subscribeToResult_1.subscribeToResult(this, source, null, i);\n            if (innerSubscription) {\n                innerSubscription.outerIndex = i;\n                this.add(innerSubscription);\n            }\n        }\n    }\n    ForkJoinSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n        this.values[outerIndex] = innerValue;\n        if (!innerSub._hasValue) {\n            innerSub._hasValue = true;\n            this.haveValues++;\n        }\n    };\n    ForkJoinSubscriber.prototype.notifyComplete = function (innerSub) {\n        var destination = this.destination;\n        var _a = this, haveValues = _a.haveValues, resultSelector = _a.resultSelector, values = _a.values;\n        var len = values.length;\n        if (!innerSub._hasValue) {\n            destination.complete();\n            return;\n        }\n        this.completed++;\n        if (this.completed !== len) {\n            return;\n        }\n        if (haveValues === len) {\n            var value = resultSelector ? resultSelector.apply(this, values) : values;\n            destination.next(value);\n        }\n        destination.complete();\n    };\n    return ForkJoinSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\n//# sourceMappingURL=ForkJoinObservable.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/observable/ForkJoinObservable.js\n// module id = 1161\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Observable_1 = require('../Observable');\nvar tryCatch_1 = require('../util/tryCatch');\nvar isFunction_1 = require('../util/isFunction');\nvar errorObject_1 = require('../util/errorObject');\nvar Subscription_1 = require('../Subscription');\nvar toString = Object.prototype.toString;\nfunction isNodeStyleEventEmmitter(sourceObj) {\n    return !!sourceObj && typeof sourceObj.addListener === 'function' && typeof sourceObj.removeListener === 'function';\n}\nfunction isJQueryStyleEventEmitter(sourceObj) {\n    return !!sourceObj && typeof sourceObj.on === 'function' && typeof sourceObj.off === 'function';\n}\nfunction isNodeList(sourceObj) {\n    return !!sourceObj && toString.call(sourceObj) === '[object NodeList]';\n}\nfunction isHTMLCollection(sourceObj) {\n    return !!sourceObj && toString.call(sourceObj) === '[object HTMLCollection]';\n}\nfunction isEventTarget(sourceObj) {\n    return !!sourceObj && typeof sourceObj.addEventListener === 'function' && typeof sourceObj.removeEventListener === 'function';\n}\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @extends {Ignored}\n * @hide true\n */\nvar FromEventObservable = (function (_super) {\n    __extends(FromEventObservable, _super);\n    function FromEventObservable(sourceObj, eventName, selector, options) {\n        _super.call(this);\n        this.sourceObj = sourceObj;\n        this.eventName = eventName;\n        this.selector = selector;\n        this.options = options;\n    }\n    /* tslint:enable:max-line-length */\n    /**\n     * Creates an Observable that emits events of a specific type coming from the\n     * given event target.\n     *\n     * <span class=\"informal\">Creates an Observable from DOM events, or Node\n     * EventEmitter events or others.</span>\n     *\n     * <img src=\"./img/fromEvent.png\" width=\"100%\">\n     *\n     * Creates an Observable by attaching an event listener to an \"event target\",\n     * which may be an object with `addEventListener` and `removeEventListener`,\n     * a Node.js EventEmitter, a jQuery style EventEmitter, a NodeList from the\n     * DOM, or an HTMLCollection from the DOM. The event handler is attached when\n     * the output Observable is subscribed, and removed when the Subscription is\n     * unsubscribed.\n     *\n     * @example <caption>Emits clicks happening on the DOM document</caption>\n     * var clicks = Rx.Observable.fromEvent(document, 'click');\n     * clicks.subscribe(x => console.log(x));\n     *\n     * // Results in:\n     * // MouseEvent object logged to console everytime a click\n     * // occurs on the document.\n     *\n     * @see {@link from}\n     * @see {@link fromEventPattern}\n     *\n     * @param {EventTargetLike} target The DOMElement, event target, Node.js\n     * EventEmitter, NodeList or HTMLCollection to attach the event handler to.\n     * @param {string} eventName The event name of interest, being emitted by the\n     * `target`.\n     * @param {EventListenerOptions} [options] Options to pass through to addEventListener\n     * @param {SelectorMethodSignature<T>} [selector] An optional function to\n     * post-process results. It takes the arguments from the event handler and\n     * should return a single value.\n     * @return {Observable<T>}\n     * @static true\n     * @name fromEvent\n     * @owner Observable\n     */\n    FromEventObservable.create = function (target, eventName, options, selector) {\n        if (isFunction_1.isFunction(options)) {\n            selector = options;\n            options = undefined;\n        }\n        return new FromEventObservable(target, eventName, selector, options);\n    };\n    FromEventObservable.setupSubscription = function (sourceObj, eventName, handler, subscriber, options) {\n        var unsubscribe;\n        if (isNodeList(sourceObj) || isHTMLCollection(sourceObj)) {\n            for (var i = 0, len = sourceObj.length; i < len; i++) {\n                FromEventObservable.setupSubscription(sourceObj[i], eventName, handler, subscriber, options);\n            }\n        }\n        else if (isEventTarget(sourceObj)) {\n            var source_1 = sourceObj;\n            sourceObj.addEventListener(eventName, handler, options);\n            unsubscribe = function () { return source_1.removeEventListener(eventName, handler); };\n        }\n        else if (isJQueryStyleEventEmitter(sourceObj)) {\n            var source_2 = sourceObj;\n            sourceObj.on(eventName, handler);\n            unsubscribe = function () { return source_2.off(eventName, handler); };\n        }\n        else if (isNodeStyleEventEmmitter(sourceObj)) {\n            var source_3 = sourceObj;\n            sourceObj.addListener(eventName, handler);\n            unsubscribe = function () { return source_3.removeListener(eventName, handler); };\n        }\n        else {\n            throw new TypeError('Invalid event target');\n        }\n        subscriber.add(new Subscription_1.Subscription(unsubscribe));\n    };\n    FromEventObservable.prototype._subscribe = function (subscriber) {\n        var sourceObj = this.sourceObj;\n        var eventName = this.eventName;\n        var options = this.options;\n        var selector = this.selector;\n        var handler = selector ? function () {\n            var args = [];\n            for (var _i = 0; _i < arguments.length; _i++) {\n                args[_i - 0] = arguments[_i];\n            }\n            var result = tryCatch_1.tryCatch(selector).apply(void 0, args);\n            if (result === errorObject_1.errorObject) {\n                subscriber.error(errorObject_1.errorObject.e);\n            }\n            else {\n                subscriber.next(result);\n            }\n        } : function (e) { return subscriber.next(e); };\n        FromEventObservable.setupSubscription(sourceObj, eventName, handler, subscriber, options);\n    };\n    return FromEventObservable;\n}(Observable_1.Observable));\nexports.FromEventObservable = FromEventObservable;\n//# sourceMappingURL=FromEventObservable.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/observable/FromEventObservable.js\n// module id = 1162\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Observable_1 = require('../Observable');\nvar Subscription_1 = require('../Subscription');\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @extends {Ignored}\n * @hide true\n */\nvar FromEventPatternObservable = (function (_super) {\n    __extends(FromEventPatternObservable, _super);\n    function FromEventPatternObservable(addHandler, removeHandler, selector) {\n        _super.call(this);\n        this.addHandler = addHandler;\n        this.removeHandler = removeHandler;\n        this.selector = selector;\n    }\n    /**\n     * Creates an Observable from an API based on addHandler/removeHandler\n     * functions.\n     *\n     * <span class=\"informal\">Converts any addHandler/removeHandler API to an\n     * Observable.</span>\n     *\n     * <img src=\"./img/fromEventPattern.png\" width=\"100%\">\n     *\n     * Creates an Observable by using the `addHandler` and `removeHandler`\n     * functions to add and remove the handlers, with an optional selector\n     * function to project the event arguments to a result. The `addHandler` is\n     * called when the output Observable is subscribed, and `removeHandler` is\n     * called when the Subscription is unsubscribed.\n     *\n     * @example <caption>Emits clicks happening on the DOM document</caption>\n     * function addClickHandler(handler) {\n     *   document.addEventListener('click', handler);\n     * }\n     *\n     * function removeClickHandler(handler) {\n     *   document.removeEventListener('click', handler);\n     * }\n     *\n     * var clicks = Rx.Observable.fromEventPattern(\n     *   addClickHandler,\n     *   removeClickHandler\n     * );\n     * clicks.subscribe(x => console.log(x));\n     *\n     * @see {@link from}\n     * @see {@link fromEvent}\n     *\n     * @param {function(handler: Function): any} addHandler A function that takes\n     * a `handler` function as argument and attaches it somehow to the actual\n     * source of events.\n     * @param {function(handler: Function): void} removeHandler A function that\n     * takes a `handler` function as argument and removes it in case it was\n     * previously attached using `addHandler`.\n     * @param {function(...args: any): T} [selector] An optional function to\n     * post-process results. It takes the arguments from the event handler and\n     * should return a single value.\n     * @return {Observable<T>}\n     * @static true\n     * @name fromEventPattern\n     * @owner Observable\n     */\n    FromEventPatternObservable.create = function (addHandler, removeHandler, selector) {\n        return new FromEventPatternObservable(addHandler, removeHandler, selector);\n    };\n    FromEventPatternObservable.prototype._subscribe = function (subscriber) {\n        var _this = this;\n        var removeHandler = this.removeHandler;\n        var handler = !!this.selector ? function () {\n            var args = [];\n            for (var _i = 0; _i < arguments.length; _i++) {\n                args[_i - 0] = arguments[_i];\n            }\n            _this._callSelector(subscriber, args);\n        } : function (e) { subscriber.next(e); };\n        this._callAddHandler(handler, subscriber);\n        subscriber.add(new Subscription_1.Subscription(function () {\n            //TODO: determine whether or not to forward to error handler\n            removeHandler(handler);\n        }));\n    };\n    FromEventPatternObservable.prototype._callSelector = function (subscriber, args) {\n        try {\n            var result = this.selector.apply(this, args);\n            subscriber.next(result);\n        }\n        catch (e) {\n            subscriber.error(e);\n        }\n    };\n    FromEventPatternObservable.prototype._callAddHandler = function (handler, errorSubscriber) {\n        try {\n            this.addHandler(handler);\n        }\n        catch (e) {\n            errorSubscriber.error(e);\n        }\n    };\n    return FromEventPatternObservable;\n}(Observable_1.Observable));\nexports.FromEventPatternObservable = FromEventPatternObservable;\n//# sourceMappingURL=FromEventPatternObservable.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/observable/FromEventPatternObservable.js\n// module id = 1163\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Observable_1 = require('../Observable');\nvar isScheduler_1 = require('../util/isScheduler');\nvar selfSelector = function (value) { return value; };\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @extends {Ignored}\n * @hide true\n */\nvar GenerateObservable = (function (_super) {\n    __extends(GenerateObservable, _super);\n    function GenerateObservable(initialState, condition, iterate, resultSelector, scheduler) {\n        _super.call(this);\n        this.initialState = initialState;\n        this.condition = condition;\n        this.iterate = iterate;\n        this.resultSelector = resultSelector;\n        this.scheduler = scheduler;\n    }\n    GenerateObservable.create = function (initialStateOrOptions, condition, iterate, resultSelectorOrObservable, scheduler) {\n        if (arguments.length == 1) {\n            return new GenerateObservable(initialStateOrOptions.initialState, initialStateOrOptions.condition, initialStateOrOptions.iterate, initialStateOrOptions.resultSelector || selfSelector, initialStateOrOptions.scheduler);\n        }\n        if (resultSelectorOrObservable === undefined || isScheduler_1.isScheduler(resultSelectorOrObservable)) {\n            return new GenerateObservable(initialStateOrOptions, condition, iterate, selfSelector, resultSelectorOrObservable);\n        }\n        return new GenerateObservable(initialStateOrOptions, condition, iterate, resultSelectorOrObservable, scheduler);\n    };\n    GenerateObservable.prototype._subscribe = function (subscriber) {\n        var state = this.initialState;\n        if (this.scheduler) {\n            return this.scheduler.schedule(GenerateObservable.dispatch, 0, {\n                subscriber: subscriber,\n                iterate: this.iterate,\n                condition: this.condition,\n                resultSelector: this.resultSelector,\n                state: state });\n        }\n        var _a = this, condition = _a.condition, resultSelector = _a.resultSelector, iterate = _a.iterate;\n        do {\n            if (condition) {\n                var conditionResult = void 0;\n                try {\n                    conditionResult = condition(state);\n                }\n                catch (err) {\n                    subscriber.error(err);\n                    return;\n                }\n                if (!conditionResult) {\n                    subscriber.complete();\n                    break;\n                }\n            }\n            var value = void 0;\n            try {\n                value = resultSelector(state);\n            }\n            catch (err) {\n                subscriber.error(err);\n                return;\n            }\n            subscriber.next(value);\n            if (subscriber.closed) {\n                break;\n            }\n            try {\n                state = iterate(state);\n            }\n            catch (err) {\n                subscriber.error(err);\n                return;\n            }\n        } while (true);\n    };\n    GenerateObservable.dispatch = function (state) {\n        var subscriber = state.subscriber, condition = state.condition;\n        if (subscriber.closed) {\n            return;\n        }\n        if (state.needIterate) {\n            try {\n                state.state = state.iterate(state.state);\n            }\n            catch (err) {\n                subscriber.error(err);\n                return;\n            }\n        }\n        else {\n            state.needIterate = true;\n        }\n        if (condition) {\n            var conditionResult = void 0;\n            try {\n                conditionResult = condition(state.state);\n            }\n            catch (err) {\n                subscriber.error(err);\n                return;\n            }\n            if (!conditionResult) {\n                subscriber.complete();\n                return;\n            }\n            if (subscriber.closed) {\n                return;\n            }\n        }\n        var value;\n        try {\n            value = state.resultSelector(state.state);\n        }\n        catch (err) {\n            subscriber.error(err);\n            return;\n        }\n        if (subscriber.closed) {\n            return;\n        }\n        subscriber.next(value);\n        if (subscriber.closed) {\n            return;\n        }\n        return this.schedule(state);\n    };\n    return GenerateObservable;\n}(Observable_1.Observable));\nexports.GenerateObservable = GenerateObservable;\n//# sourceMappingURL=GenerateObservable.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/observable/GenerateObservable.js\n// module id = 1164\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Observable_1 = require('../Observable');\nvar subscribeToResult_1 = require('../util/subscribeToResult');\nvar OuterSubscriber_1 = require('../OuterSubscriber');\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @extends {Ignored}\n * @hide true\n */\nvar IfObservable = (function (_super) {\n    __extends(IfObservable, _super);\n    function IfObservable(condition, thenSource, elseSource) {\n        _super.call(this);\n        this.condition = condition;\n        this.thenSource = thenSource;\n        this.elseSource = elseSource;\n    }\n    IfObservable.create = function (condition, thenSource, elseSource) {\n        return new IfObservable(condition, thenSource, elseSource);\n    };\n    IfObservable.prototype._subscribe = function (subscriber) {\n        var _a = this, condition = _a.condition, thenSource = _a.thenSource, elseSource = _a.elseSource;\n        return new IfSubscriber(subscriber, condition, thenSource, elseSource);\n    };\n    return IfObservable;\n}(Observable_1.Observable));\nexports.IfObservable = IfObservable;\nvar IfSubscriber = (function (_super) {\n    __extends(IfSubscriber, _super);\n    function IfSubscriber(destination, condition, thenSource, elseSource) {\n        _super.call(this, destination);\n        this.condition = condition;\n        this.thenSource = thenSource;\n        this.elseSource = elseSource;\n        this.tryIf();\n    }\n    IfSubscriber.prototype.tryIf = function () {\n        var _a = this, condition = _a.condition, thenSource = _a.thenSource, elseSource = _a.elseSource;\n        var result;\n        try {\n            result = condition();\n            var source = result ? thenSource : elseSource;\n            if (source) {\n                this.add(subscribeToResult_1.subscribeToResult(this, source));\n            }\n            else {\n                this._complete();\n            }\n        }\n        catch (err) {\n            this._error(err);\n        }\n    };\n    return IfSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\n//# sourceMappingURL=IfObservable.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/observable/IfObservable.js\n// module id = 1165\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar isNumeric_1 = require('../util/isNumeric');\nvar Observable_1 = require('../Observable');\nvar async_1 = require('../scheduler/async');\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @extends {Ignored}\n * @hide true\n */\nvar IntervalObservable = (function (_super) {\n    __extends(IntervalObservable, _super);\n    function IntervalObservable(period, scheduler) {\n        if (period === void 0) { period = 0; }\n        if (scheduler === void 0) { scheduler = async_1.async; }\n        _super.call(this);\n        this.period = period;\n        this.scheduler = scheduler;\n        if (!isNumeric_1.isNumeric(period) || period < 0) {\n            this.period = 0;\n        }\n        if (!scheduler || typeof scheduler.schedule !== 'function') {\n            this.scheduler = async_1.async;\n        }\n    }\n    /**\n     * Creates an Observable that emits sequential numbers every specified\n     * interval of time, on a specified Scheduler.\n     *\n     * <span class=\"informal\">Emits incremental numbers periodically in time.\n     * </span>\n     *\n     * <img src=\"./img/interval.png\" width=\"100%\">\n     *\n     * `interval` returns an Observable that emits an infinite sequence of\n     * ascending integers, with a constant interval of time of your choosing\n     * between those emissions. The first emission is not sent immediately, but\n     * only after the first period has passed. By default, this operator uses the\n     * `async` Scheduler to provide a notion of time, but you may pass any\n     * Scheduler to it.\n     *\n     * @example <caption>Emits ascending numbers, one every second (1000ms)</caption>\n     * var numbers = Rx.Observable.interval(1000);\n     * numbers.subscribe(x => console.log(x));\n     *\n     * @see {@link timer}\n     * @see {@link delay}\n     *\n     * @param {number} [period=0] The interval size in milliseconds (by default)\n     * or the time unit determined by the scheduler's clock.\n     * @param {Scheduler} [scheduler=async] The Scheduler to use for scheduling\n     * the emission of values, and providing a notion of \"time\".\n     * @return {Observable} An Observable that emits a sequential number each time\n     * interval.\n     * @static true\n     * @name interval\n     * @owner Observable\n     */\n    IntervalObservable.create = function (period, scheduler) {\n        if (period === void 0) { period = 0; }\n        if (scheduler === void 0) { scheduler = async_1.async; }\n        return new IntervalObservable(period, scheduler);\n    };\n    IntervalObservable.dispatch = function (state) {\n        var index = state.index, subscriber = state.subscriber, period = state.period;\n        subscriber.next(index);\n        if (subscriber.closed) {\n            return;\n        }\n        state.index += 1;\n        this.schedule(state, period);\n    };\n    IntervalObservable.prototype._subscribe = function (subscriber) {\n        var index = 0;\n        var period = this.period;\n        var scheduler = this.scheduler;\n        subscriber.add(scheduler.schedule(IntervalObservable.dispatch, period, {\n            index: index, subscriber: subscriber, period: period\n        }));\n    };\n    return IntervalObservable;\n}(Observable_1.Observable));\nexports.IntervalObservable = IntervalObservable;\n//# sourceMappingURL=IntervalObservable.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/observable/IntervalObservable.js\n// module id = 1166\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Observable_1 = require('../Observable');\nvar noop_1 = require('../util/noop');\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @extends {Ignored}\n * @hide true\n */\nvar NeverObservable = (function (_super) {\n    __extends(NeverObservable, _super);\n    function NeverObservable() {\n        _super.call(this);\n    }\n    /**\n     * Creates an Observable that emits no items to the Observer.\n     *\n     * <span class=\"informal\">An Observable that never emits anything.</span>\n     *\n     * <img src=\"./img/never.png\" width=\"100%\">\n     *\n     * This static operator is useful for creating a simple Observable that emits\n     * neither values nor errors nor the completion notification. It can be used\n     * for testing purposes or for composing with other Observables. Please not\n     * that by never emitting a complete notification, this Observable keeps the\n     * subscription from being disposed automatically. Subscriptions need to be\n     * manually disposed.\n     *\n     * @example <caption>Emit the number 7, then never emit anything else (not even complete).</caption>\n     * function info() {\n     *   console.log('Will not be called');\n     * }\n     * var result = Rx.Observable.never().startWith(7);\n     * result.subscribe(x => console.log(x), info, info);\n     *\n     * @see {@link create}\n     * @see {@link empty}\n     * @see {@link of}\n     * @see {@link throw}\n     *\n     * @return {Observable} A \"never\" Observable: never emits anything.\n     * @static true\n     * @name never\n     * @owner Observable\n     */\n    NeverObservable.create = function () {\n        return new NeverObservable();\n    };\n    NeverObservable.prototype._subscribe = function (subscriber) {\n        noop_1.noop();\n    };\n    return NeverObservable;\n}(Observable_1.Observable));\nexports.NeverObservable = NeverObservable;\n//# sourceMappingURL=NeverObservable.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/observable/NeverObservable.js\n// module id = 1168\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Observable_1 = require('../Observable');\nfunction dispatch(state) {\n    var obj = state.obj, keys = state.keys, length = state.length, index = state.index, subscriber = state.subscriber;\n    if (index === length) {\n        subscriber.complete();\n        return;\n    }\n    var key = keys[index];\n    subscriber.next([key, obj[key]]);\n    state.index = index + 1;\n    this.schedule(state);\n}\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @extends {Ignored}\n * @hide true\n */\nvar PairsObservable = (function (_super) {\n    __extends(PairsObservable, _super);\n    function PairsObservable(obj, scheduler) {\n        _super.call(this);\n        this.obj = obj;\n        this.scheduler = scheduler;\n        this.keys = Object.keys(obj);\n    }\n    /**\n     * Convert an object into an observable sequence of [key, value] pairs\n     * using an optional Scheduler to enumerate the object.\n     *\n     * @example <caption>Converts a javascript object to an Observable</caption>\n     * var obj = {\n     *   foo: 42,\n     *   bar: 56,\n     *   baz: 78\n     * };\n     *\n     * var source = Rx.Observable.pairs(obj);\n     *\n     * var subscription = source.subscribe(\n     *   function (x) {\n     *     console.log('Next: %s', x);\n     *   },\n     *   function (err) {\n     *     console.log('Error: %s', err);\n     *   },\n     *   function () {\n     *     console.log('Completed');\n     *   });\n     *\n     * @param {Object} obj The object to inspect and turn into an\n     * Observable sequence.\n     * @param {Scheduler} [scheduler] An optional Scheduler to run the\n     * enumeration of the input sequence on.\n     * @returns {(Observable<Array<string | T>>)} An observable sequence of\n     * [key, value] pairs from the object.\n     */\n    PairsObservable.create = function (obj, scheduler) {\n        return new PairsObservable(obj, scheduler);\n    };\n    PairsObservable.prototype._subscribe = function (subscriber) {\n        var _a = this, keys = _a.keys, scheduler = _a.scheduler;\n        var length = keys.length;\n        if (scheduler) {\n            return scheduler.schedule(dispatch, 0, {\n                obj: this.obj, keys: keys, length: length, index: 0, subscriber: subscriber\n            });\n        }\n        else {\n            for (var idx = 0; idx < length; idx++) {\n                var key = keys[idx];\n                subscriber.next([key, this.obj[key]]);\n            }\n            subscriber.complete();\n        }\n    };\n    return PairsObservable;\n}(Observable_1.Observable));\nexports.PairsObservable = PairsObservable;\n//# sourceMappingURL=PairsObservable.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/observable/PairsObservable.js\n// module id = 1169\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Observable_1 = require('../Observable');\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @extends {Ignored}\n * @hide true\n */\nvar RangeObservable = (function (_super) {\n    __extends(RangeObservable, _super);\n    function RangeObservable(start, count, scheduler) {\n        _super.call(this);\n        this.start = start;\n        this._count = count;\n        this.scheduler = scheduler;\n    }\n    /**\n     * Creates an Observable that emits a sequence of numbers within a specified\n     * range.\n     *\n     * <span class=\"informal\">Emits a sequence of numbers in a range.</span>\n     *\n     * <img src=\"./img/range.png\" width=\"100%\">\n     *\n     * `range` operator emits a range of sequential integers, in order, where you\n     * select the `start` of the range and its `length`. By default, uses no\n     * Scheduler and just delivers the notifications synchronously, but may use\n     * an optional Scheduler to regulate those deliveries.\n     *\n     * @example <caption>Emits the numbers 1 to 10</caption>\n     * var numbers = Rx.Observable.range(1, 10);\n     * numbers.subscribe(x => console.log(x));\n     *\n     * @see {@link timer}\n     * @see {@link interval}\n     *\n     * @param {number} [start=0] The value of the first integer in the sequence.\n     * @param {number} [count=0] The number of sequential integers to generate.\n     * @param {Scheduler} [scheduler] A {@link Scheduler} to use for scheduling\n     * the emissions of the notifications.\n     * @return {Observable} An Observable of numbers that emits a finite range of\n     * sequential integers.\n     * @static true\n     * @name range\n     * @owner Observable\n     */\n    RangeObservable.create = function (start, count, scheduler) {\n        if (start === void 0) { start = 0; }\n        if (count === void 0) { count = 0; }\n        return new RangeObservable(start, count, scheduler);\n    };\n    RangeObservable.dispatch = function (state) {\n        var start = state.start, index = state.index, count = state.count, subscriber = state.subscriber;\n        if (index >= count) {\n            subscriber.complete();\n            return;\n        }\n        subscriber.next(start);\n        if (subscriber.closed) {\n            return;\n        }\n        state.index = index + 1;\n        state.start = start + 1;\n        this.schedule(state);\n    };\n    RangeObservable.prototype._subscribe = function (subscriber) {\n        var index = 0;\n        var start = this.start;\n        var count = this._count;\n        var scheduler = this.scheduler;\n        if (scheduler) {\n            return scheduler.schedule(RangeObservable.dispatch, 0, {\n                index: index, count: count, start: start, subscriber: subscriber\n            });\n        }\n        else {\n            do {\n                if (index++ >= count) {\n                    subscriber.complete();\n                    break;\n                }\n                subscriber.next(start++);\n                if (subscriber.closed) {\n                    break;\n                }\n            } while (true);\n        }\n    };\n    return RangeObservable;\n}(Observable_1.Observable));\nexports.RangeObservable = RangeObservable;\n//# sourceMappingURL=RangeObservable.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/observable/RangeObservable.js\n// module id = 1170\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Observable_1 = require('../Observable');\nvar asap_1 = require('../scheduler/asap');\nvar isNumeric_1 = require('../util/isNumeric');\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @extends {Ignored}\n * @hide true\n */\nvar SubscribeOnObservable = (function (_super) {\n    __extends(SubscribeOnObservable, _super);\n    function SubscribeOnObservable(source, delayTime, scheduler) {\n        if (delayTime === void 0) { delayTime = 0; }\n        if (scheduler === void 0) { scheduler = asap_1.asap; }\n        _super.call(this);\n        this.source = source;\n        this.delayTime = delayTime;\n        this.scheduler = scheduler;\n        if (!isNumeric_1.isNumeric(delayTime) || delayTime < 0) {\n            this.delayTime = 0;\n        }\n        if (!scheduler || typeof scheduler.schedule !== 'function') {\n            this.scheduler = asap_1.asap;\n        }\n    }\n    SubscribeOnObservable.create = function (source, delay, scheduler) {\n        if (delay === void 0) { delay = 0; }\n        if (scheduler === void 0) { scheduler = asap_1.asap; }\n        return new SubscribeOnObservable(source, delay, scheduler);\n    };\n    SubscribeOnObservable.dispatch = function (arg) {\n        var source = arg.source, subscriber = arg.subscriber;\n        return this.add(source.subscribe(subscriber));\n    };\n    SubscribeOnObservable.prototype._subscribe = function (subscriber) {\n        var delay = this.delayTime;\n        var source = this.source;\n        var scheduler = this.scheduler;\n        return scheduler.schedule(SubscribeOnObservable.dispatch, delay, {\n            source: source, subscriber: subscriber\n        });\n    };\n    return SubscribeOnObservable;\n}(Observable_1.Observable));\nexports.SubscribeOnObservable = SubscribeOnObservable;\n//# sourceMappingURL=SubscribeOnObservable.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/observable/SubscribeOnObservable.js\n// module id = 1171\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar isNumeric_1 = require('../util/isNumeric');\nvar Observable_1 = require('../Observable');\nvar async_1 = require('../scheduler/async');\nvar isScheduler_1 = require('../util/isScheduler');\nvar isDate_1 = require('../util/isDate');\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @extends {Ignored}\n * @hide true\n */\nvar TimerObservable = (function (_super) {\n    __extends(TimerObservable, _super);\n    function TimerObservable(dueTime, period, scheduler) {\n        if (dueTime === void 0) { dueTime = 0; }\n        _super.call(this);\n        this.period = -1;\n        this.dueTime = 0;\n        if (isNumeric_1.isNumeric(period)) {\n            this.period = Number(period) < 1 && 1 || Number(period);\n        }\n        else if (isScheduler_1.isScheduler(period)) {\n            scheduler = period;\n        }\n        if (!isScheduler_1.isScheduler(scheduler)) {\n            scheduler = async_1.async;\n        }\n        this.scheduler = scheduler;\n        this.dueTime = isDate_1.isDate(dueTime) ?\n            (+dueTime - this.scheduler.now()) :\n            dueTime;\n    }\n    /**\n     * Creates an Observable that starts emitting after an `initialDelay` and\n     * emits ever increasing numbers after each `period` of time thereafter.\n     *\n     * <span class=\"informal\">Its like {@link interval}, but you can specify when\n     * should the emissions start.</span>\n     *\n     * <img src=\"./img/timer.png\" width=\"100%\">\n     *\n     * `timer` returns an Observable that emits an infinite sequence of ascending\n     * integers, with a constant interval of time, `period` of your choosing\n     * between those emissions. The first emission happens after the specified\n     * `initialDelay`. The initial delay may be a {@link Date}. By default, this\n     * operator uses the `async` Scheduler to provide a notion of time, but you\n     * may pass any Scheduler to it. If `period` is not specified, the output\n     * Observable emits only one value, `0`. Otherwise, it emits an infinite\n     * sequence.\n     *\n     * @example <caption>Emits ascending numbers, one every second (1000ms), starting after 3 seconds</caption>\n     * var numbers = Rx.Observable.timer(3000, 1000);\n     * numbers.subscribe(x => console.log(x));\n     *\n     * @example <caption>Emits one number after five seconds</caption>\n     * var numbers = Rx.Observable.timer(5000);\n     * numbers.subscribe(x => console.log(x));\n     *\n     * @see {@link interval}\n     * @see {@link delay}\n     *\n     * @param {number|Date} initialDelay The initial delay time to wait before\n     * emitting the first value of `0`.\n     * @param {number} [period] The period of time between emissions of the\n     * subsequent numbers.\n     * @param {Scheduler} [scheduler=async] The Scheduler to use for scheduling\n     * the emission of values, and providing a notion of \"time\".\n     * @return {Observable} An Observable that emits a `0` after the\n     * `initialDelay` and ever increasing numbers after each `period` of time\n     * thereafter.\n     * @static true\n     * @name timer\n     * @owner Observable\n     */\n    TimerObservable.create = function (initialDelay, period, scheduler) {\n        if (initialDelay === void 0) { initialDelay = 0; }\n        return new TimerObservable(initialDelay, period, scheduler);\n    };\n    TimerObservable.dispatch = function (state) {\n        var index = state.index, period = state.period, subscriber = state.subscriber;\n        var action = this;\n        subscriber.next(index);\n        if (subscriber.closed) {\n            return;\n        }\n        else if (period === -1) {\n            return subscriber.complete();\n        }\n        state.index = index + 1;\n        action.schedule(state, period);\n    };\n    TimerObservable.prototype._subscribe = function (subscriber) {\n        var index = 0;\n        var _a = this, period = _a.period, dueTime = _a.dueTime, scheduler = _a.scheduler;\n        return scheduler.schedule(TimerObservable.dispatch, dueTime, {\n            index: index, period: period, subscriber: subscriber\n        });\n    };\n    return TimerObservable;\n}(Observable_1.Observable));\nexports.TimerObservable = TimerObservable;\n//# sourceMappingURL=TimerObservable.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/observable/TimerObservable.js\n// module id = 1172\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Observable_1 = require('../Observable');\nvar subscribeToResult_1 = require('../util/subscribeToResult');\nvar OuterSubscriber_1 = require('../OuterSubscriber');\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @extends {Ignored}\n * @hide true\n */\nvar UsingObservable = (function (_super) {\n    __extends(UsingObservable, _super);\n    function UsingObservable(resourceFactory, observableFactory) {\n        _super.call(this);\n        this.resourceFactory = resourceFactory;\n        this.observableFactory = observableFactory;\n    }\n    UsingObservable.create = function (resourceFactory, observableFactory) {\n        return new UsingObservable(resourceFactory, observableFactory);\n    };\n    UsingObservable.prototype._subscribe = function (subscriber) {\n        var _a = this, resourceFactory = _a.resourceFactory, observableFactory = _a.observableFactory;\n        var resource;\n        try {\n            resource = resourceFactory();\n            return new UsingSubscriber(subscriber, resource, observableFactory);\n        }\n        catch (err) {\n            subscriber.error(err);\n        }\n    };\n    return UsingObservable;\n}(Observable_1.Observable));\nexports.UsingObservable = UsingObservable;\nvar UsingSubscriber = (function (_super) {\n    __extends(UsingSubscriber, _super);\n    function UsingSubscriber(destination, resource, observableFactory) {\n        _super.call(this, destination);\n        this.resource = resource;\n        this.observableFactory = observableFactory;\n        destination.add(resource);\n        this.tryUse();\n    }\n    UsingSubscriber.prototype.tryUse = function () {\n        try {\n            var source = this.observableFactory.call(this, this.resource);\n            if (source) {\n                this.add(subscribeToResult_1.subscribeToResult(this, source));\n            }\n        }\n        catch (err) {\n            this._error(err);\n        }\n    };\n    return UsingSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\n//# sourceMappingURL=UsingObservable.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/observable/UsingObservable.js\n// module id = 1173\n// module chunks = 0","\"use strict\";\nvar BoundCallbackObservable_1 = require('./BoundCallbackObservable');\nexports.bindCallback = BoundCallbackObservable_1.BoundCallbackObservable.create;\n//# sourceMappingURL=bindCallback.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/observable/bindCallback.js\n// module id = 1174\n// module chunks = 0","\"use strict\";\nvar BoundNodeCallbackObservable_1 = require('./BoundNodeCallbackObservable');\nexports.bindNodeCallback = BoundNodeCallbackObservable_1.BoundNodeCallbackObservable.create;\n//# sourceMappingURL=bindNodeCallback.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/observable/bindNodeCallback.js\n// module id = 1175\n// module chunks = 0","\"use strict\";\nvar isScheduler_1 = require('../util/isScheduler');\nvar isArray_1 = require('../util/isArray');\nvar ArrayObservable_1 = require('./ArrayObservable');\nvar combineLatest_1 = require('../operator/combineLatest');\n/* tslint:enable:max-line-length */\n/**\n * Combines multiple Observables to create an Observable whose values are\n * calculated from the latest values of each of its input Observables.\n *\n * <span class=\"informal\">Whenever any input Observable emits a value, it\n * computes a formula using the latest values from all the inputs, then emits\n * the output of that formula.</span>\n *\n * <img src=\"./img/combineLatest.png\" width=\"100%\">\n *\n * `combineLatest` combines the values from all the Observables passed as\n * arguments. This is done by subscribing to each Observable, in order, and\n * collecting an array of each of the most recent values any time any of the\n * input Observables emits, then either taking that array and passing it as\n * arguments to an optional `project` function and emitting the return value of\n * that, or just emitting the array of recent values directly if there is no\n * `project` function.\n *\n * @example <caption>Dynamically calculate the Body-Mass Index from an Observable of weight and one for height</caption>\n * var weight = Rx.Observable.of(70, 72, 76, 79, 75);\n * var height = Rx.Observable.of(1.76, 1.77, 1.78);\n * var bmi = Rx.Observable.combineLatest(weight, height, (w, h) => w / (h * h));\n * bmi.subscribe(x => console.log('BMI is ' + x));\n *\n * // With output to console:\n * // BMI is 24.212293388429753\n * // BMI is 23.93948099205209\n * // BMI is 23.671253629592222\n *\n * @see {@link combineAll}\n * @see {@link merge}\n * @see {@link withLatestFrom}\n *\n * @param {Observable} observable1 An input Observable to combine with the\n * source Observable.\n * @param {Observable} observable2 An input Observable to combine with the\n * source Observable. More than one input Observables may be given as argument.\n * @param {function} [project] An optional function to project the values from\n * the combined latest values into a new value on the output Observable.\n * @param {Scheduler} [scheduler=null] The Scheduler to use for subscribing to\n * each input Observable.\n * @return {Observable} An Observable of projected values from the most recent\n * values from each input Observable, or an array of the most recent values from\n * each input Observable.\n * @static true\n * @name combineLatest\n * @owner Observable\n */\nfunction combineLatest() {\n    var observables = [];\n    for (var _i = 0; _i < arguments.length; _i++) {\n        observables[_i - 0] = arguments[_i];\n    }\n    var project = null;\n    var scheduler = null;\n    if (isScheduler_1.isScheduler(observables[observables.length - 1])) {\n        scheduler = observables.pop();\n    }\n    if (typeof observables[observables.length - 1] === 'function') {\n        project = observables.pop();\n    }\n    // if the first and only other argument besides the resultSelector is an array\n    // assume it's been called with `combineLatest([obs1, obs2, obs3], project)`\n    if (observables.length === 1 && isArray_1.isArray(observables[0])) {\n        observables = observables[0];\n    }\n    return new ArrayObservable_1.ArrayObservable(observables, scheduler).lift(new combineLatest_1.CombineLatestOperator(project));\n}\nexports.combineLatest = combineLatest;\n//# sourceMappingURL=combineLatest.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/observable/combineLatest.js\n// module id = 1176\n// module chunks = 0","\"use strict\";\nvar concat_1 = require('../operator/concat');\nexports.concat = concat_1.concatStatic;\n//# sourceMappingURL=concat.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/observable/concat.js\n// module id = 1177\n// module chunks = 0","\"use strict\";\nvar DeferObservable_1 = require('./DeferObservable');\nexports.defer = DeferObservable_1.DeferObservable.create;\n//# sourceMappingURL=defer.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/observable/defer.js\n// module id = 1178\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subject_1 = require('../../Subject');\nvar Subscriber_1 = require('../../Subscriber');\nvar Observable_1 = require('../../Observable');\nvar Subscription_1 = require('../../Subscription');\nvar root_1 = require('../../util/root');\nvar ReplaySubject_1 = require('../../ReplaySubject');\nvar tryCatch_1 = require('../../util/tryCatch');\nvar errorObject_1 = require('../../util/errorObject');\nvar assign_1 = require('../../util/assign');\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @extends {Ignored}\n * @hide true\n */\nvar WebSocketSubject = (function (_super) {\n    __extends(WebSocketSubject, _super);\n    function WebSocketSubject(urlConfigOrSource, destination) {\n        if (urlConfigOrSource instanceof Observable_1.Observable) {\n            _super.call(this, destination, urlConfigOrSource);\n        }\n        else {\n            _super.call(this);\n            this.WebSocketCtor = root_1.root.WebSocket;\n            this._output = new Subject_1.Subject();\n            if (typeof urlConfigOrSource === 'string') {\n                this.url = urlConfigOrSource;\n            }\n            else {\n                // WARNING: config object could override important members here.\n                assign_1.assign(this, urlConfigOrSource);\n            }\n            if (!this.WebSocketCtor) {\n                throw new Error('no WebSocket constructor can be found');\n            }\n            this.destination = new ReplaySubject_1.ReplaySubject();\n        }\n    }\n    WebSocketSubject.prototype.resultSelector = function (e) {\n        return JSON.parse(e.data);\n    };\n    /**\n     * @param urlConfigOrSource\n     * @return {WebSocketSubject}\n     * @static true\n     * @name webSocket\n     * @owner Observable\n     */\n    WebSocketSubject.create = function (urlConfigOrSource) {\n        return new WebSocketSubject(urlConfigOrSource);\n    };\n    WebSocketSubject.prototype.lift = function (operator) {\n        var sock = new WebSocketSubject(this, this.destination);\n        sock.operator = operator;\n        return sock;\n    };\n    WebSocketSubject.prototype._resetState = function () {\n        this.socket = null;\n        if (!this.source) {\n            this.destination = new ReplaySubject_1.ReplaySubject();\n        }\n        this._output = new Subject_1.Subject();\n    };\n    // TODO: factor this out to be a proper Operator/Subscriber implementation and eliminate closures\n    WebSocketSubject.prototype.multiplex = function (subMsg, unsubMsg, messageFilter) {\n        var self = this;\n        return new Observable_1.Observable(function (observer) {\n            var result = tryCatch_1.tryCatch(subMsg)();\n            if (result === errorObject_1.errorObject) {\n                observer.error(errorObject_1.errorObject.e);\n            }\n            else {\n                self.next(result);\n            }\n            var subscription = self.subscribe(function (x) {\n                var result = tryCatch_1.tryCatch(messageFilter)(x);\n                if (result === errorObject_1.errorObject) {\n                    observer.error(errorObject_1.errorObject.e);\n                }\n                else if (result) {\n                    observer.next(x);\n                }\n            }, function (err) { return observer.error(err); }, function () { return observer.complete(); });\n            return function () {\n                var result = tryCatch_1.tryCatch(unsubMsg)();\n                if (result === errorObject_1.errorObject) {\n                    observer.error(errorObject_1.errorObject.e);\n                }\n                else {\n                    self.next(result);\n                }\n                subscription.unsubscribe();\n            };\n        });\n    };\n    WebSocketSubject.prototype._connectSocket = function () {\n        var _this = this;\n        var WebSocketCtor = this.WebSocketCtor;\n        var observer = this._output;\n        var socket = null;\n        try {\n            socket = this.protocol ?\n                new WebSocketCtor(this.url, this.protocol) :\n                new WebSocketCtor(this.url);\n            this.socket = socket;\n        }\n        catch (e) {\n            observer.error(e);\n            return;\n        }\n        var subscription = new Subscription_1.Subscription(function () {\n            _this.socket = null;\n            if (socket && socket.readyState === 1) {\n                socket.close();\n            }\n        });\n        socket.onopen = function (e) {\n            var openObserver = _this.openObserver;\n            if (openObserver) {\n                openObserver.next(e);\n            }\n            var queue = _this.destination;\n            _this.destination = Subscriber_1.Subscriber.create(function (x) { return socket.readyState === 1 && socket.send(x); }, function (e) {\n                var closingObserver = _this.closingObserver;\n                if (closingObserver) {\n                    closingObserver.next(undefined);\n                }\n                if (e && e.code) {\n                    socket.close(e.code, e.reason);\n                }\n                else {\n                    observer.error(new TypeError('WebSocketSubject.error must be called with an object with an error code, ' +\n                        'and an optional reason: { code: number, reason: string }'));\n                }\n                _this._resetState();\n            }, function () {\n                var closingObserver = _this.closingObserver;\n                if (closingObserver) {\n                    closingObserver.next(undefined);\n                }\n                socket.close();\n                _this._resetState();\n            });\n            if (queue && queue instanceof ReplaySubject_1.ReplaySubject) {\n                subscription.add(queue.subscribe(_this.destination));\n            }\n        };\n        socket.onerror = function (e) {\n            _this._resetState();\n            observer.error(e);\n        };\n        socket.onclose = function (e) {\n            _this._resetState();\n            var closeObserver = _this.closeObserver;\n            if (closeObserver) {\n                closeObserver.next(e);\n            }\n            if (e.wasClean) {\n                observer.complete();\n            }\n            else {\n                observer.error(e);\n            }\n        };\n        socket.onmessage = function (e) {\n            var result = tryCatch_1.tryCatch(_this.resultSelector)(e);\n            if (result === errorObject_1.errorObject) {\n                observer.error(errorObject_1.errorObject.e);\n            }\n            else {\n                observer.next(result);\n            }\n        };\n    };\n    WebSocketSubject.prototype._subscribe = function (subscriber) {\n        var _this = this;\n        var source = this.source;\n        if (source) {\n            return source.subscribe(subscriber);\n        }\n        if (!this.socket) {\n            this._connectSocket();\n        }\n        var subscription = new Subscription_1.Subscription();\n        subscription.add(this._output.subscribe(subscriber));\n        subscription.add(function () {\n            var socket = _this.socket;\n            if (_this._output.observers.length === 0) {\n                if (socket && socket.readyState === 1) {\n                    socket.close();\n                }\n                _this._resetState();\n            }\n        });\n        return subscription;\n    };\n    WebSocketSubject.prototype.unsubscribe = function () {\n        var _a = this, source = _a.source, socket = _a.socket;\n        if (socket && socket.readyState === 1) {\n            socket.close();\n            this._resetState();\n        }\n        _super.prototype.unsubscribe.call(this);\n        if (!source) {\n            this.destination = new ReplaySubject_1.ReplaySubject();\n        }\n    };\n    return WebSocketSubject;\n}(Subject_1.AnonymousSubject));\nexports.WebSocketSubject = WebSocketSubject;\n//# sourceMappingURL=WebSocketSubject.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/observable/dom/WebSocketSubject.js\n// module id = 1179\n// module chunks = 0","\"use strict\";\nvar AjaxObservable_1 = require('./AjaxObservable');\nexports.ajax = AjaxObservable_1.AjaxObservable.create;\n//# sourceMappingURL=ajax.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/observable/dom/ajax.js\n// module id = 1180\n// module chunks = 0","\"use strict\";\nvar WebSocketSubject_1 = require('./WebSocketSubject');\nexports.webSocket = WebSocketSubject_1.WebSocketSubject.create;\n//# sourceMappingURL=webSocket.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/observable/dom/webSocket.js\n// module id = 1181\n// module chunks = 0","\"use strict\";\nvar EmptyObservable_1 = require('./EmptyObservable');\nexports.empty = EmptyObservable_1.EmptyObservable.create;\n//# sourceMappingURL=empty.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/observable/empty.js\n// module id = 1182\n// module chunks = 0","\"use strict\";\nvar ForkJoinObservable_1 = require('./ForkJoinObservable');\nexports.forkJoin = ForkJoinObservable_1.ForkJoinObservable.create;\n//# sourceMappingURL=forkJoin.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/observable/forkJoin.js\n// module id = 1183\n// module chunks = 0","\"use strict\";\nvar FromEventObservable_1 = require('./FromEventObservable');\nexports.fromEvent = FromEventObservable_1.FromEventObservable.create;\n//# sourceMappingURL=fromEvent.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/observable/fromEvent.js\n// module id = 1184\n// module chunks = 0","\"use strict\";\nvar FromEventPatternObservable_1 = require('./FromEventPatternObservable');\nexports.fromEventPattern = FromEventPatternObservable_1.FromEventPatternObservable.create;\n//# sourceMappingURL=fromEventPattern.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/observable/fromEventPattern.js\n// module id = 1185\n// module chunks = 0","\"use strict\";\nvar IfObservable_1 = require('./IfObservable');\nexports._if = IfObservable_1.IfObservable.create;\n//# sourceMappingURL=if.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/observable/if.js\n// module id = 1186\n// module chunks = 0","\"use strict\";\nvar IntervalObservable_1 = require('./IntervalObservable');\nexports.interval = IntervalObservable_1.IntervalObservable.create;\n//# sourceMappingURL=interval.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/observable/interval.js\n// module id = 1187\n// module chunks = 0","\"use strict\";\nvar merge_1 = require('../operator/merge');\nexports.merge = merge_1.mergeStatic;\n//# sourceMappingURL=merge.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/observable/merge.js\n// module id = 1188\n// module chunks = 0","\"use strict\";\nvar NeverObservable_1 = require('./NeverObservable');\nexports.never = NeverObservable_1.NeverObservable.create;\n//# sourceMappingURL=never.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/observable/never.js\n// module id = 1189\n// module chunks = 0","\"use strict\";\nvar PairsObservable_1 = require('./PairsObservable');\nexports.pairs = PairsObservable_1.PairsObservable.create;\n//# sourceMappingURL=pairs.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/observable/pairs.js\n// module id = 1190\n// module chunks = 0","\"use strict\";\nvar RangeObservable_1 = require('./RangeObservable');\nexports.range = RangeObservable_1.RangeObservable.create;\n//# sourceMappingURL=range.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/observable/range.js\n// module id = 1191\n// module chunks = 0","\"use strict\";\nvar ErrorObservable_1 = require('./ErrorObservable');\nexports._throw = ErrorObservable_1.ErrorObservable.create;\n//# sourceMappingURL=throw.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/observable/throw.js\n// module id = 1192\n// module chunks = 0","\"use strict\";\nvar TimerObservable_1 = require('./TimerObservable');\nexports.timer = TimerObservable_1.TimerObservable.create;\n//# sourceMappingURL=timer.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/observable/timer.js\n// module id = 1193\n// module chunks = 0","\"use strict\";\nvar UsingObservable_1 = require('./UsingObservable');\nexports.using = UsingObservable_1.UsingObservable.create;\n//# sourceMappingURL=using.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/observable/using.js\n// module id = 1194\n// module chunks = 0","\"use strict\";\nvar zip_1 = require('../operator/zip');\nexports.zip = zip_1.zipStatic;\n//# sourceMappingURL=zip.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/observable/zip.js\n// module id = 1195\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar tryCatch_1 = require('../util/tryCatch');\nvar errorObject_1 = require('../util/errorObject');\nvar OuterSubscriber_1 = require('../OuterSubscriber');\nvar subscribeToResult_1 = require('../util/subscribeToResult');\n/**\n * Ignores source values for a duration determined by another Observable, then\n * emits the most recent value from the source Observable, then repeats this\n * process.\n *\n * <span class=\"informal\">It's like {@link auditTime}, but the silencing\n * duration is determined by a second Observable.</span>\n *\n * <img src=\"./img/audit.png\" width=\"100%\">\n *\n * `audit` is similar to `throttle`, but emits the last value from the silenced\n * time window, instead of the first value. `audit` emits the most recent value\n * from the source Observable on the output Observable as soon as its internal\n * timer becomes disabled, and ignores source values while the timer is enabled.\n * Initially, the timer is disabled. As soon as the first source value arrives,\n * the timer is enabled by calling the `durationSelector` function with the\n * source value, which returns the \"duration\" Observable. When the duration\n * Observable emits a value or completes, the timer is disabled, then the most\n * recent source value is emitted on the output Observable, and this process\n * repeats for the next source value.\n *\n * @example <caption>Emit clicks at a rate of at most one click per second</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.audit(ev => Rx.Observable.interval(1000));\n * result.subscribe(x => console.log(x));\n *\n * @see {@link auditTime}\n * @see {@link debounce}\n * @see {@link delayWhen}\n * @see {@link sample}\n * @see {@link throttle}\n *\n * @param {function(value: T): Observable|Promise} durationSelector A function\n * that receives a value from the source Observable, for computing the silencing\n * duration, returned as an Observable or a Promise.\n * @return {Observable<T>} An Observable that performs rate-limiting of\n * emissions from the source Observable.\n * @method audit\n * @owner Observable\n */\nfunction audit(durationSelector) {\n    return this.lift(new AuditOperator(durationSelector));\n}\nexports.audit = audit;\nvar AuditOperator = (function () {\n    function AuditOperator(durationSelector) {\n        this.durationSelector = durationSelector;\n    }\n    AuditOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new AuditSubscriber(subscriber, this.durationSelector));\n    };\n    return AuditOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar AuditSubscriber = (function (_super) {\n    __extends(AuditSubscriber, _super);\n    function AuditSubscriber(destination, durationSelector) {\n        _super.call(this, destination);\n        this.durationSelector = durationSelector;\n        this.hasValue = false;\n    }\n    AuditSubscriber.prototype._next = function (value) {\n        this.value = value;\n        this.hasValue = true;\n        if (!this.throttled) {\n            var duration = tryCatch_1.tryCatch(this.durationSelector)(value);\n            if (duration === errorObject_1.errorObject) {\n                this.destination.error(errorObject_1.errorObject.e);\n            }\n            else {\n                this.add(this.throttled = subscribeToResult_1.subscribeToResult(this, duration));\n            }\n        }\n    };\n    AuditSubscriber.prototype.clearThrottle = function () {\n        var _a = this, value = _a.value, hasValue = _a.hasValue, throttled = _a.throttled;\n        if (throttled) {\n            this.remove(throttled);\n            this.throttled = null;\n            throttled.unsubscribe();\n        }\n        if (hasValue) {\n            this.value = null;\n            this.hasValue = false;\n            this.destination.next(value);\n        }\n    };\n    AuditSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex) {\n        this.clearThrottle();\n    };\n    AuditSubscriber.prototype.notifyComplete = function () {\n        this.clearThrottle();\n    };\n    return AuditSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\n//# sourceMappingURL=audit.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/audit.js\n// module id = 1196\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar async_1 = require('../scheduler/async');\nvar Subscriber_1 = require('../Subscriber');\n/**\n * Ignores source values for `duration` milliseconds, then emits the most recent\n * value from the source Observable, then repeats this process.\n *\n * <span class=\"informal\">When it sees a source values, it ignores that plus\n * the next ones for `duration` milliseconds, and then it emits the most recent\n * value from the source.</span>\n *\n * <img src=\"./img/auditTime.png\" width=\"100%\">\n *\n * `auditTime` is similar to `throttleTime`, but emits the last value from the\n * silenced time window, instead of the first value. `auditTime` emits the most\n * recent value from the source Observable on the output Observable as soon as\n * its internal timer becomes disabled, and ignores source values while the\n * timer is enabled. Initially, the timer is disabled. As soon as the first\n * source value arrives, the timer is enabled. After `duration` milliseconds (or\n * the time unit determined internally by the optional `scheduler`) has passed,\n * the timer is disabled, then the most recent source value is emitted on the\n * output Observable, and this process repeats for the next source value.\n * Optionally takes a {@link Scheduler} for managing timers.\n *\n * @example <caption>Emit clicks at a rate of at most one click per second</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.auditTime(1000);\n * result.subscribe(x => console.log(x));\n *\n * @see {@link audit}\n * @see {@link debounceTime}\n * @see {@link delay}\n * @see {@link sampleTime}\n * @see {@link throttleTime}\n *\n * @param {number} duration Time to wait before emitting the most recent source\n * value, measured in milliseconds or the time unit determined internally\n * by the optional `scheduler`.\n * @param {Scheduler} [scheduler=async] The {@link Scheduler} to use for\n * managing the timers that handle the rate-limiting behavior.\n * @return {Observable<T>} An Observable that performs rate-limiting of\n * emissions from the source Observable.\n * @method auditTime\n * @owner Observable\n */\nfunction auditTime(duration, scheduler) {\n    if (scheduler === void 0) { scheduler = async_1.async; }\n    return this.lift(new AuditTimeOperator(duration, scheduler));\n}\nexports.auditTime = auditTime;\nvar AuditTimeOperator = (function () {\n    function AuditTimeOperator(duration, scheduler) {\n        this.duration = duration;\n        this.scheduler = scheduler;\n    }\n    AuditTimeOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new AuditTimeSubscriber(subscriber, this.duration, this.scheduler));\n    };\n    return AuditTimeOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar AuditTimeSubscriber = (function (_super) {\n    __extends(AuditTimeSubscriber, _super);\n    function AuditTimeSubscriber(destination, duration, scheduler) {\n        _super.call(this, destination);\n        this.duration = duration;\n        this.scheduler = scheduler;\n        this.hasValue = false;\n    }\n    AuditTimeSubscriber.prototype._next = function (value) {\n        this.value = value;\n        this.hasValue = true;\n        if (!this.throttled) {\n            this.add(this.throttled = this.scheduler.schedule(dispatchNext, this.duration, this));\n        }\n    };\n    AuditTimeSubscriber.prototype.clearThrottle = function () {\n        var _a = this, value = _a.value, hasValue = _a.hasValue, throttled = _a.throttled;\n        if (throttled) {\n            this.remove(throttled);\n            this.throttled = null;\n            throttled.unsubscribe();\n        }\n        if (hasValue) {\n            this.value = null;\n            this.hasValue = false;\n            this.destination.next(value);\n        }\n    };\n    return AuditTimeSubscriber;\n}(Subscriber_1.Subscriber));\nfunction dispatchNext(subscriber) {\n    subscriber.clearThrottle();\n}\n//# sourceMappingURL=auditTime.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/auditTime.js\n// module id = 1197\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar OuterSubscriber_1 = require('../OuterSubscriber');\nvar subscribeToResult_1 = require('../util/subscribeToResult');\n/**\n * Buffers the source Observable values until `closingNotifier` emits.\n *\n * <span class=\"informal\">Collects values from the past as an array, and emits\n * that array only when another Observable emits.</span>\n *\n * <img src=\"./img/buffer.png\" width=\"100%\">\n *\n * Buffers the incoming Observable values until the given `closingNotifier`\n * Observable emits a value, at which point it emits the buffer on the output\n * Observable and starts a new buffer internally, awaiting the next time\n * `closingNotifier` emits.\n *\n * @example <caption>On every click, emit array of most recent interval events</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var interval = Rx.Observable.interval(1000);\n * var buffered = interval.buffer(clicks);\n * buffered.subscribe(x => console.log(x));\n *\n * @see {@link bufferCount}\n * @see {@link bufferTime}\n * @see {@link bufferToggle}\n * @see {@link bufferWhen}\n * @see {@link window}\n *\n * @param {Observable<any>} closingNotifier An Observable that signals the\n * buffer to be emitted on the output Observable.\n * @return {Observable<T[]>} An Observable of buffers, which are arrays of\n * values.\n * @method buffer\n * @owner Observable\n */\nfunction buffer(closingNotifier) {\n    return this.lift(new BufferOperator(closingNotifier));\n}\nexports.buffer = buffer;\nvar BufferOperator = (function () {\n    function BufferOperator(closingNotifier) {\n        this.closingNotifier = closingNotifier;\n    }\n    BufferOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new BufferSubscriber(subscriber, this.closingNotifier));\n    };\n    return BufferOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar BufferSubscriber = (function (_super) {\n    __extends(BufferSubscriber, _super);\n    function BufferSubscriber(destination, closingNotifier) {\n        _super.call(this, destination);\n        this.buffer = [];\n        this.add(subscribeToResult_1.subscribeToResult(this, closingNotifier));\n    }\n    BufferSubscriber.prototype._next = function (value) {\n        this.buffer.push(value);\n    };\n    BufferSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n        var buffer = this.buffer;\n        this.buffer = [];\n        this.destination.next(buffer);\n    };\n    return BufferSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\n//# sourceMappingURL=buffer.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/buffer.js\n// module id = 1198\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = require('../Subscriber');\n/**\n * Buffers the source Observable values until the size hits the maximum\n * `bufferSize` given.\n *\n * <span class=\"informal\">Collects values from the past as an array, and emits\n * that array only when its size reaches `bufferSize`.</span>\n *\n * <img src=\"./img/bufferCount.png\" width=\"100%\">\n *\n * Buffers a number of values from the source Observable by `bufferSize` then\n * emits the buffer and clears it, and starts a new buffer each\n * `startBufferEvery` values. If `startBufferEvery` is not provided or is\n * `null`, then new buffers are started immediately at the start of the source\n * and when each buffer closes and is emitted.\n *\n * @example <caption>Emit the last two click events as an array</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var buffered = clicks.bufferCount(2);\n * buffered.subscribe(x => console.log(x));\n *\n * @example <caption>On every click, emit the last two click events as an array</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var buffered = clicks.bufferCount(2, 1);\n * buffered.subscribe(x => console.log(x));\n *\n * @see {@link buffer}\n * @see {@link bufferTime}\n * @see {@link bufferToggle}\n * @see {@link bufferWhen}\n * @see {@link pairwise}\n * @see {@link windowCount}\n *\n * @param {number} bufferSize The maximum size of the buffer emitted.\n * @param {number} [startBufferEvery] Interval at which to start a new buffer.\n * For example if `startBufferEvery` is `2`, then a new buffer will be started\n * on every other value from the source. A new buffer is started at the\n * beginning of the source by default.\n * @return {Observable<T[]>} An Observable of arrays of buffered values.\n * @method bufferCount\n * @owner Observable\n */\nfunction bufferCount(bufferSize, startBufferEvery) {\n    if (startBufferEvery === void 0) { startBufferEvery = null; }\n    return this.lift(new BufferCountOperator(bufferSize, startBufferEvery));\n}\nexports.bufferCount = bufferCount;\nvar BufferCountOperator = (function () {\n    function BufferCountOperator(bufferSize, startBufferEvery) {\n        this.bufferSize = bufferSize;\n        this.startBufferEvery = startBufferEvery;\n    }\n    BufferCountOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new BufferCountSubscriber(subscriber, this.bufferSize, this.startBufferEvery));\n    };\n    return BufferCountOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar BufferCountSubscriber = (function (_super) {\n    __extends(BufferCountSubscriber, _super);\n    function BufferCountSubscriber(destination, bufferSize, startBufferEvery) {\n        _super.call(this, destination);\n        this.bufferSize = bufferSize;\n        this.startBufferEvery = startBufferEvery;\n        this.buffers = [];\n        this.count = 0;\n    }\n    BufferCountSubscriber.prototype._next = function (value) {\n        var count = this.count++;\n        var _a = this, destination = _a.destination, bufferSize = _a.bufferSize, startBufferEvery = _a.startBufferEvery, buffers = _a.buffers;\n        var startOn = (startBufferEvery == null) ? bufferSize : startBufferEvery;\n        if (count % startOn === 0) {\n            buffers.push([]);\n        }\n        for (var i = buffers.length; i--;) {\n            var buffer = buffers[i];\n            buffer.push(value);\n            if (buffer.length === bufferSize) {\n                buffers.splice(i, 1);\n                destination.next(buffer);\n            }\n        }\n    };\n    BufferCountSubscriber.prototype._complete = function () {\n        var destination = this.destination;\n        var buffers = this.buffers;\n        while (buffers.length > 0) {\n            var buffer = buffers.shift();\n            if (buffer.length > 0) {\n                destination.next(buffer);\n            }\n        }\n        _super.prototype._complete.call(this);\n    };\n    return BufferCountSubscriber;\n}(Subscriber_1.Subscriber));\n//# sourceMappingURL=bufferCount.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/bufferCount.js\n// module id = 1199\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar async_1 = require('../scheduler/async');\nvar Subscriber_1 = require('../Subscriber');\nvar isScheduler_1 = require('../util/isScheduler');\n/* tslint:disable:max-line-length */\n/**\n * Buffers the source Observable values for a specific time period.\n *\n * <span class=\"informal\">Collects values from the past as an array, and emits\n * those arrays periodically in time.</span>\n *\n * <img src=\"./img/bufferTime.png\" width=\"100%\">\n *\n * Buffers values from the source for a specific time duration `bufferTimeSpan`.\n * Unless the optional argument `bufferCreationInterval` is given, it emits and\n * resets the buffer every `bufferTimeSpan` milliseconds. If\n * `bufferCreationInterval` is given, this operator opens the buffer every\n * `bufferCreationInterval` milliseconds and closes (emits and resets) the\n * buffer every `bufferTimeSpan` milliseconds. When the optional argument\n * `maxBufferSize` is specified, the buffer will be closed either after\n * `bufferTimeSpan` milliseconds or when it contains `maxBufferSize` elements.\n *\n * @example <caption>Every second, emit an array of the recent click events</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var buffered = clicks.bufferTime(1000);\n * buffered.subscribe(x => console.log(x));\n *\n * @example <caption>Every 5 seconds, emit the click events from the next 2 seconds</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var buffered = clicks.bufferTime(2000, 5000);\n * buffered.subscribe(x => console.log(x));\n *\n * @see {@link buffer}\n * @see {@link bufferCount}\n * @see {@link bufferToggle}\n * @see {@link bufferWhen}\n * @see {@link windowTime}\n *\n * @param {number} bufferTimeSpan The amount of time to fill each buffer array.\n * @param {number} [bufferCreationInterval] The interval at which to start new\n * buffers.\n * @param {number} [maxBufferSize] The maximum buffer size.\n * @param {Scheduler} [scheduler=async] The scheduler on which to schedule the\n * intervals that determine buffer boundaries.\n * @return {Observable<T[]>} An observable of arrays of buffered values.\n * @method bufferTime\n * @owner Observable\n */\nfunction bufferTime(bufferTimeSpan) {\n    var length = arguments.length;\n    var scheduler = async_1.async;\n    if (isScheduler_1.isScheduler(arguments[arguments.length - 1])) {\n        scheduler = arguments[arguments.length - 1];\n        length--;\n    }\n    var bufferCreationInterval = null;\n    if (length >= 2) {\n        bufferCreationInterval = arguments[1];\n    }\n    var maxBufferSize = Number.POSITIVE_INFINITY;\n    if (length >= 3) {\n        maxBufferSize = arguments[2];\n    }\n    return this.lift(new BufferTimeOperator(bufferTimeSpan, bufferCreationInterval, maxBufferSize, scheduler));\n}\nexports.bufferTime = bufferTime;\nvar BufferTimeOperator = (function () {\n    function BufferTimeOperator(bufferTimeSpan, bufferCreationInterval, maxBufferSize, scheduler) {\n        this.bufferTimeSpan = bufferTimeSpan;\n        this.bufferCreationInterval = bufferCreationInterval;\n        this.maxBufferSize = maxBufferSize;\n        this.scheduler = scheduler;\n    }\n    BufferTimeOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new BufferTimeSubscriber(subscriber, this.bufferTimeSpan, this.bufferCreationInterval, this.maxBufferSize, this.scheduler));\n    };\n    return BufferTimeOperator;\n}());\nvar Context = (function () {\n    function Context() {\n        this.buffer = [];\n    }\n    return Context;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar BufferTimeSubscriber = (function (_super) {\n    __extends(BufferTimeSubscriber, _super);\n    function BufferTimeSubscriber(destination, bufferTimeSpan, bufferCreationInterval, maxBufferSize, scheduler) {\n        _super.call(this, destination);\n        this.bufferTimeSpan = bufferTimeSpan;\n        this.bufferCreationInterval = bufferCreationInterval;\n        this.maxBufferSize = maxBufferSize;\n        this.scheduler = scheduler;\n        this.contexts = [];\n        var context = this.openContext();\n        this.timespanOnly = bufferCreationInterval == null || bufferCreationInterval < 0;\n        if (this.timespanOnly) {\n            var timeSpanOnlyState = { subscriber: this, context: context, bufferTimeSpan: bufferTimeSpan };\n            this.add(context.closeAction = scheduler.schedule(dispatchBufferTimeSpanOnly, bufferTimeSpan, timeSpanOnlyState));\n        }\n        else {\n            var closeState = { subscriber: this, context: context };\n            var creationState = { bufferTimeSpan: bufferTimeSpan, bufferCreationInterval: bufferCreationInterval, subscriber: this, scheduler: scheduler };\n            this.add(context.closeAction = scheduler.schedule(dispatchBufferClose, bufferTimeSpan, closeState));\n            this.add(scheduler.schedule(dispatchBufferCreation, bufferCreationInterval, creationState));\n        }\n    }\n    BufferTimeSubscriber.prototype._next = function (value) {\n        var contexts = this.contexts;\n        var len = contexts.length;\n        var filledBufferContext;\n        for (var i = 0; i < len; i++) {\n            var context = contexts[i];\n            var buffer = context.buffer;\n            buffer.push(value);\n            if (buffer.length == this.maxBufferSize) {\n                filledBufferContext = context;\n            }\n        }\n        if (filledBufferContext) {\n            this.onBufferFull(filledBufferContext);\n        }\n    };\n    BufferTimeSubscriber.prototype._error = function (err) {\n        this.contexts.length = 0;\n        _super.prototype._error.call(this, err);\n    };\n    BufferTimeSubscriber.prototype._complete = function () {\n        var _a = this, contexts = _a.contexts, destination = _a.destination;\n        while (contexts.length > 0) {\n            var context = contexts.shift();\n            destination.next(context.buffer);\n        }\n        _super.prototype._complete.call(this);\n    };\n    BufferTimeSubscriber.prototype._unsubscribe = function () {\n        this.contexts = null;\n    };\n    BufferTimeSubscriber.prototype.onBufferFull = function (context) {\n        this.closeContext(context);\n        var closeAction = context.closeAction;\n        closeAction.unsubscribe();\n        this.remove(closeAction);\n        if (!this.closed && this.timespanOnly) {\n            context = this.openContext();\n            var bufferTimeSpan = this.bufferTimeSpan;\n            var timeSpanOnlyState = { subscriber: this, context: context, bufferTimeSpan: bufferTimeSpan };\n            this.add(context.closeAction = this.scheduler.schedule(dispatchBufferTimeSpanOnly, bufferTimeSpan, timeSpanOnlyState));\n        }\n    };\n    BufferTimeSubscriber.prototype.openContext = function () {\n        var context = new Context();\n        this.contexts.push(context);\n        return context;\n    };\n    BufferTimeSubscriber.prototype.closeContext = function (context) {\n        this.destination.next(context.buffer);\n        var contexts = this.contexts;\n        var spliceIndex = contexts ? contexts.indexOf(context) : -1;\n        if (spliceIndex >= 0) {\n            contexts.splice(contexts.indexOf(context), 1);\n        }\n    };\n    return BufferTimeSubscriber;\n}(Subscriber_1.Subscriber));\nfunction dispatchBufferTimeSpanOnly(state) {\n    var subscriber = state.subscriber;\n    var prevContext = state.context;\n    if (prevContext) {\n        subscriber.closeContext(prevContext);\n    }\n    if (!subscriber.closed) {\n        state.context = subscriber.openContext();\n        state.context.closeAction = this.schedule(state, state.bufferTimeSpan);\n    }\n}\nfunction dispatchBufferCreation(state) {\n    var bufferCreationInterval = state.bufferCreationInterval, bufferTimeSpan = state.bufferTimeSpan, subscriber = state.subscriber, scheduler = state.scheduler;\n    var context = subscriber.openContext();\n    var action = this;\n    if (!subscriber.closed) {\n        subscriber.add(context.closeAction = scheduler.schedule(dispatchBufferClose, bufferTimeSpan, { subscriber: subscriber, context: context }));\n        action.schedule(state, bufferCreationInterval);\n    }\n}\nfunction dispatchBufferClose(arg) {\n    var subscriber = arg.subscriber, context = arg.context;\n    subscriber.closeContext(context);\n}\n//# sourceMappingURL=bufferTime.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/bufferTime.js\n// module id = 1200\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscription_1 = require('../Subscription');\nvar subscribeToResult_1 = require('../util/subscribeToResult');\nvar OuterSubscriber_1 = require('../OuterSubscriber');\n/**\n * Buffers the source Observable values starting from an emission from\n * `openings` and ending when the output of `closingSelector` emits.\n *\n * <span class=\"informal\">Collects values from the past as an array. Starts\n * collecting only when `opening` emits, and calls the `closingSelector`\n * function to get an Observable that tells when to close the buffer.</span>\n *\n * <img src=\"./img/bufferToggle.png\" width=\"100%\">\n *\n * Buffers values from the source by opening the buffer via signals from an\n * Observable provided to `openings`, and closing and sending the buffers when\n * a Subscribable or Promise returned by the `closingSelector` function emits.\n *\n * @example <caption>Every other second, emit the click events from the next 500ms</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var openings = Rx.Observable.interval(1000);\n * var buffered = clicks.bufferToggle(openings, i =>\n *   i % 2 ? Rx.Observable.interval(500) : Rx.Observable.empty()\n * );\n * buffered.subscribe(x => console.log(x));\n *\n * @see {@link buffer}\n * @see {@link bufferCount}\n * @see {@link bufferTime}\n * @see {@link bufferWhen}\n * @see {@link windowToggle}\n *\n * @param {SubscribableOrPromise<O>} openings A Subscribable or Promise of notifications to start new\n * buffers.\n * @param {function(value: O): SubscribableOrPromise} closingSelector A function that takes\n * the value emitted by the `openings` observable and returns a Subscribable or Promise,\n * which, when it emits, signals that the associated buffer should be emitted\n * and cleared.\n * @return {Observable<T[]>} An observable of arrays of buffered values.\n * @method bufferToggle\n * @owner Observable\n */\nfunction bufferToggle(openings, closingSelector) {\n    return this.lift(new BufferToggleOperator(openings, closingSelector));\n}\nexports.bufferToggle = bufferToggle;\nvar BufferToggleOperator = (function () {\n    function BufferToggleOperator(openings, closingSelector) {\n        this.openings = openings;\n        this.closingSelector = closingSelector;\n    }\n    BufferToggleOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new BufferToggleSubscriber(subscriber, this.openings, this.closingSelector));\n    };\n    return BufferToggleOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar BufferToggleSubscriber = (function (_super) {\n    __extends(BufferToggleSubscriber, _super);\n    function BufferToggleSubscriber(destination, openings, closingSelector) {\n        _super.call(this, destination);\n        this.openings = openings;\n        this.closingSelector = closingSelector;\n        this.contexts = [];\n        this.add(subscribeToResult_1.subscribeToResult(this, openings));\n    }\n    BufferToggleSubscriber.prototype._next = function (value) {\n        var contexts = this.contexts;\n        var len = contexts.length;\n        for (var i = 0; i < len; i++) {\n            contexts[i].buffer.push(value);\n        }\n    };\n    BufferToggleSubscriber.prototype._error = function (err) {\n        var contexts = this.contexts;\n        while (contexts.length > 0) {\n            var context = contexts.shift();\n            context.subscription.unsubscribe();\n            context.buffer = null;\n            context.subscription = null;\n        }\n        this.contexts = null;\n        _super.prototype._error.call(this, err);\n    };\n    BufferToggleSubscriber.prototype._complete = function () {\n        var contexts = this.contexts;\n        while (contexts.length > 0) {\n            var context = contexts.shift();\n            this.destination.next(context.buffer);\n            context.subscription.unsubscribe();\n            context.buffer = null;\n            context.subscription = null;\n        }\n        this.contexts = null;\n        _super.prototype._complete.call(this);\n    };\n    BufferToggleSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n        outerValue ? this.closeBuffer(outerValue) : this.openBuffer(innerValue);\n    };\n    BufferToggleSubscriber.prototype.notifyComplete = function (innerSub) {\n        this.closeBuffer(innerSub.context);\n    };\n    BufferToggleSubscriber.prototype.openBuffer = function (value) {\n        try {\n            var closingSelector = this.closingSelector;\n            var closingNotifier = closingSelector.call(this, value);\n            if (closingNotifier) {\n                this.trySubscribe(closingNotifier);\n            }\n        }\n        catch (err) {\n            this._error(err);\n        }\n    };\n    BufferToggleSubscriber.prototype.closeBuffer = function (context) {\n        var contexts = this.contexts;\n        if (contexts && context) {\n            var buffer = context.buffer, subscription = context.subscription;\n            this.destination.next(buffer);\n            contexts.splice(contexts.indexOf(context), 1);\n            this.remove(subscription);\n            subscription.unsubscribe();\n        }\n    };\n    BufferToggleSubscriber.prototype.trySubscribe = function (closingNotifier) {\n        var contexts = this.contexts;\n        var buffer = [];\n        var subscription = new Subscription_1.Subscription();\n        var context = { buffer: buffer, subscription: subscription };\n        contexts.push(context);\n        var innerSubscription = subscribeToResult_1.subscribeToResult(this, closingNotifier, context);\n        if (!innerSubscription || innerSubscription.closed) {\n            this.closeBuffer(context);\n        }\n        else {\n            innerSubscription.context = context;\n            this.add(innerSubscription);\n            subscription.add(innerSubscription);\n        }\n    };\n    return BufferToggleSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\n//# sourceMappingURL=bufferToggle.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/bufferToggle.js\n// module id = 1201\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscription_1 = require('../Subscription');\nvar tryCatch_1 = require('../util/tryCatch');\nvar errorObject_1 = require('../util/errorObject');\nvar OuterSubscriber_1 = require('../OuterSubscriber');\nvar subscribeToResult_1 = require('../util/subscribeToResult');\n/**\n * Buffers the source Observable values, using a factory function of closing\n * Observables to determine when to close, emit, and reset the buffer.\n *\n * <span class=\"informal\">Collects values from the past as an array. When it\n * starts collecting values, it calls a function that returns an Observable that\n * tells when to close the buffer and restart collecting.</span>\n *\n * <img src=\"./img/bufferWhen.png\" width=\"100%\">\n *\n * Opens a buffer immediately, then closes the buffer when the observable\n * returned by calling `closingSelector` function emits a value. When it closes\n * the buffer, it immediately opens a new buffer and repeats the process.\n *\n * @example <caption>Emit an array of the last clicks every [1-5] random seconds</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var buffered = clicks.bufferWhen(() =>\n *   Rx.Observable.interval(1000 + Math.random() * 4000)\n * );\n * buffered.subscribe(x => console.log(x));\n *\n * @see {@link buffer}\n * @see {@link bufferCount}\n * @see {@link bufferTime}\n * @see {@link bufferToggle}\n * @see {@link windowWhen}\n *\n * @param {function(): Observable} closingSelector A function that takes no\n * arguments and returns an Observable that signals buffer closure.\n * @return {Observable<T[]>} An observable of arrays of buffered values.\n * @method bufferWhen\n * @owner Observable\n */\nfunction bufferWhen(closingSelector) {\n    return this.lift(new BufferWhenOperator(closingSelector));\n}\nexports.bufferWhen = bufferWhen;\nvar BufferWhenOperator = (function () {\n    function BufferWhenOperator(closingSelector) {\n        this.closingSelector = closingSelector;\n    }\n    BufferWhenOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new BufferWhenSubscriber(subscriber, this.closingSelector));\n    };\n    return BufferWhenOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar BufferWhenSubscriber = (function (_super) {\n    __extends(BufferWhenSubscriber, _super);\n    function BufferWhenSubscriber(destination, closingSelector) {\n        _super.call(this, destination);\n        this.closingSelector = closingSelector;\n        this.subscribing = false;\n        this.openBuffer();\n    }\n    BufferWhenSubscriber.prototype._next = function (value) {\n        this.buffer.push(value);\n    };\n    BufferWhenSubscriber.prototype._complete = function () {\n        var buffer = this.buffer;\n        if (buffer) {\n            this.destination.next(buffer);\n        }\n        _super.prototype._complete.call(this);\n    };\n    BufferWhenSubscriber.prototype._unsubscribe = function () {\n        this.buffer = null;\n        this.subscribing = false;\n    };\n    BufferWhenSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n        this.openBuffer();\n    };\n    BufferWhenSubscriber.prototype.notifyComplete = function () {\n        if (this.subscribing) {\n            this.complete();\n        }\n        else {\n            this.openBuffer();\n        }\n    };\n    BufferWhenSubscriber.prototype.openBuffer = function () {\n        var closingSubscription = this.closingSubscription;\n        if (closingSubscription) {\n            this.remove(closingSubscription);\n            closingSubscription.unsubscribe();\n        }\n        var buffer = this.buffer;\n        if (this.buffer) {\n            this.destination.next(buffer);\n        }\n        this.buffer = [];\n        var closingNotifier = tryCatch_1.tryCatch(this.closingSelector)();\n        if (closingNotifier === errorObject_1.errorObject) {\n            this.error(errorObject_1.errorObject.e);\n        }\n        else {\n            closingSubscription = new Subscription_1.Subscription();\n            this.closingSubscription = closingSubscription;\n            this.add(closingSubscription);\n            this.subscribing = true;\n            closingSubscription.add(subscribeToResult_1.subscribeToResult(this, closingNotifier));\n            this.subscribing = false;\n        }\n    };\n    return BufferWhenSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\n//# sourceMappingURL=bufferWhen.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/bufferWhen.js\n// module id = 1202\n// module chunks = 0","\"use strict\";\nvar combineLatest_1 = require('./combineLatest');\n/**\n * Converts a higher-order Observable into a first-order Observable by waiting\n * for the outer Observable to complete, then applying {@link combineLatest}.\n *\n * <span class=\"informal\">Flattens an Observable-of-Observables by applying\n * {@link combineLatest} when the Observable-of-Observables completes.</span>\n *\n * <img src=\"./img/combineAll.png\" width=\"100%\">\n *\n * Takes an Observable of Observables, and collects all Observables from it.\n * Once the outer Observable completes, it subscribes to all collected\n * Observables and combines their values using the {@link combineLatest}\n * strategy, such that:\n * - Every time an inner Observable emits, the output Observable emits.\n * - When the returned observable emits, it emits all of the latest values by:\n *   - If a `project` function is provided, it is called with each recent value\n *     from each inner Observable in whatever order they arrived, and the result\n *     of the `project` function is what is emitted by the output Observable.\n *   - If there is no `project` function, an array of all of the most recent\n *     values is emitted by the output Observable.\n *\n * @example <caption>Map two click events to a finite interval Observable, then apply combineAll</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var higherOrder = clicks.map(ev =>\n *   Rx.Observable.interval(Math.random()*2000).take(3)\n * ).take(2);\n * var result = higherOrder.combineAll();\n * result.subscribe(x => console.log(x));\n *\n * @see {@link combineLatest}\n * @see {@link mergeAll}\n *\n * @param {function} [project] An optional function to map the most recent\n * values from each inner Observable into a new result. Takes each of the most\n * recent values from each collected inner Observable as arguments, in order.\n * @return {Observable} An Observable of projected results or arrays of recent\n * values.\n * @method combineAll\n * @owner Observable\n */\nfunction combineAll(project) {\n    return this.lift(new combineLatest_1.CombineLatestOperator(project));\n}\nexports.combineAll = combineAll;\n//# sourceMappingURL=combineAll.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/combineAll.js\n// module id = 1203\n// module chunks = 0","\"use strict\";\nvar mergeMapTo_1 = require('./mergeMapTo');\n/* tslint:disable:max-line-length */\n/**\n * Projects each source value to the same Observable which is merged multiple\n * times in a serialized fashion on the output Observable.\n *\n * <span class=\"informal\">It's like {@link concatMap}, but maps each value\n * always to the same inner Observable.</span>\n *\n * <img src=\"./img/concatMapTo.png\" width=\"100%\">\n *\n * Maps each source value to the given Observable `innerObservable` regardless\n * of the source value, and then flattens those resulting Observables into one\n * single Observable, which is the output Observable. Each new `innerObservable`\n * instance emitted on the output Observable is concatenated with the previous\n * `innerObservable` instance.\n *\n * __Warning:__ if source values arrive endlessly and faster than their\n * corresponding inner Observables can complete, it will result in memory issues\n * as inner Observables amass in an unbounded buffer waiting for their turn to\n * be subscribed to.\n *\n * Note: `concatMapTo` is equivalent to `mergeMapTo` with concurrency parameter\n * set to `1`.\n *\n * @example <caption>For each click event, tick every second from 0 to 3, with no concurrency</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.concatMapTo(Rx.Observable.interval(1000).take(4));\n * result.subscribe(x => console.log(x));\n *\n * // Results in the following:\n * // (results are not concurrent)\n * // For every click on the \"document\" it will emit values 0 to 3 spaced\n * // on a 1000ms interval\n * // one click = 1000ms-> 0 -1000ms-> 1 -1000ms-> 2 -1000ms-> 3\n *\n * @see {@link concat}\n * @see {@link concatAll}\n * @see {@link concatMap}\n * @see {@link mergeMapTo}\n * @see {@link switchMapTo}\n *\n * @param {Observable} innerObservable An Observable to replace each value from\n * the source Observable.\n * @param {function(outerValue: T, innerValue: I, outerIndex: number, innerIndex: number): any} [resultSelector]\n * A function to produce the value on the output Observable based on the values\n * and the indices of the source (outer) emission and the inner Observable\n * emission. The arguments passed to this function are:\n * - `outerValue`: the value that came from the source\n * - `innerValue`: the value that came from the projected Observable\n * - `outerIndex`: the \"index\" of the value that came from the source\n * - `innerIndex`: the \"index\" of the value from the projected Observable\n * @return {Observable} An observable of values merged together by joining the\n * passed observable with itself, one after the other, for each value emitted\n * from the source.\n * @method concatMapTo\n * @owner Observable\n */\nfunction concatMapTo(innerObservable, resultSelector) {\n    return this.lift(new mergeMapTo_1.MergeMapToOperator(innerObservable, resultSelector, 1));\n}\nexports.concatMapTo = concatMapTo;\n//# sourceMappingURL=concatMapTo.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/concatMapTo.js\n// module id = 1204\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = require('../Subscriber');\n/**\n * Counts the number of emissions on the source and emits that number when the\n * source completes.\n *\n * <span class=\"informal\">Tells how many values were emitted, when the source\n * completes.</span>\n *\n * <img src=\"./img/count.png\" width=\"100%\">\n *\n * `count` transforms an Observable that emits values into an Observable that\n * emits a single value that represents the number of values emitted by the\n * source Observable. If the source Observable terminates with an error, `count`\n * will pass this error notification along without emitting an value first. If\n * the source Observable does not terminate at all, `count` will neither emit\n * a value nor terminate. This operator takes an optional `predicate` function\n * as argument, in which case the output emission will represent the number of\n * source values that matched `true` with the `predicate`.\n *\n * @example <caption>Counts how many seconds have passed before the first click happened</caption>\n * var seconds = Rx.Observable.interval(1000);\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var secondsBeforeClick = seconds.takeUntil(clicks);\n * var result = secondsBeforeClick.count();\n * result.subscribe(x => console.log(x));\n *\n * @example <caption>Counts how many odd numbers are there between 1 and 7</caption>\n * var numbers = Rx.Observable.range(1, 7);\n * var result = numbers.count(i => i % 2 === 1);\n * result.subscribe(x => console.log(x));\n *\n * // Results in:\n * // 4\n *\n * @see {@link max}\n * @see {@link min}\n * @see {@link reduce}\n *\n * @param {function(value: T, i: number, source: Observable<T>): boolean} [predicate] A\n * boolean function to select what values are to be counted. It is provided with\n * arguments of:\n * - `value`: the value from the source Observable.\n * - `index`: the (zero-based) \"index\" of the value from the source Observable.\n * - `source`: the source Observable instance itself.\n * @return {Observable} An Observable of one number that represents the count as\n * described above.\n * @method count\n * @owner Observable\n */\nfunction count(predicate) {\n    return this.lift(new CountOperator(predicate, this));\n}\nexports.count = count;\nvar CountOperator = (function () {\n    function CountOperator(predicate, source) {\n        this.predicate = predicate;\n        this.source = source;\n    }\n    CountOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new CountSubscriber(subscriber, this.predicate, this.source));\n    };\n    return CountOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar CountSubscriber = (function (_super) {\n    __extends(CountSubscriber, _super);\n    function CountSubscriber(destination, predicate, source) {\n        _super.call(this, destination);\n        this.predicate = predicate;\n        this.source = source;\n        this.count = 0;\n        this.index = 0;\n    }\n    CountSubscriber.prototype._next = function (value) {\n        if (this.predicate) {\n            this._tryPredicate(value);\n        }\n        else {\n            this.count++;\n        }\n    };\n    CountSubscriber.prototype._tryPredicate = function (value) {\n        var result;\n        try {\n            result = this.predicate(value, this.index++, this.source);\n        }\n        catch (err) {\n            this.destination.error(err);\n            return;\n        }\n        if (result) {\n            this.count++;\n        }\n    };\n    CountSubscriber.prototype._complete = function () {\n        this.destination.next(this.count);\n        this.destination.complete();\n    };\n    return CountSubscriber;\n}(Subscriber_1.Subscriber));\n//# sourceMappingURL=count.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/count.js\n// module id = 1205\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar OuterSubscriber_1 = require('../OuterSubscriber');\nvar subscribeToResult_1 = require('../util/subscribeToResult');\n/**\n * Emits a value from the source Observable only after a particular time span\n * determined by another Observable has passed without another source emission.\n *\n * <span class=\"informal\">It's like {@link debounceTime}, but the time span of\n * emission silence is determined by a second Observable.</span>\n *\n * <img src=\"./img/debounce.png\" width=\"100%\">\n *\n * `debounce` delays values emitted by the source Observable, but drops previous\n * pending delayed emissions if a new value arrives on the source Observable.\n * This operator keeps track of the most recent value from the source\n * Observable, and spawns a duration Observable by calling the\n * `durationSelector` function. The value is emitted only when the duration\n * Observable emits a value or completes, and if no other value was emitted on\n * the source Observable since the duration Observable was spawned. If a new\n * value appears before the duration Observable emits, the previous value will\n * be dropped and will not be emitted on the output Observable.\n *\n * Like {@link debounceTime}, this is a rate-limiting operator, and also a\n * delay-like operator since output emissions do not necessarily occur at the\n * same time as they did on the source Observable.\n *\n * @example <caption>Emit the most recent click after a burst of clicks</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.debounce(() => Rx.Observable.interval(1000));\n * result.subscribe(x => console.log(x));\n *\n * @see {@link audit}\n * @see {@link debounceTime}\n * @see {@link delayWhen}\n * @see {@link throttle}\n *\n * @param {function(value: T): Observable|Promise} durationSelector A function\n * that receives a value from the source Observable, for computing the timeout\n * duration for each source value, returned as an Observable or a Promise.\n * @return {Observable} An Observable that delays the emissions of the source\n * Observable by the specified duration Observable returned by\n * `durationSelector`, and may drop some values if they occur too frequently.\n * @method debounce\n * @owner Observable\n */\nfunction debounce(durationSelector) {\n    return this.lift(new DebounceOperator(durationSelector));\n}\nexports.debounce = debounce;\nvar DebounceOperator = (function () {\n    function DebounceOperator(durationSelector) {\n        this.durationSelector = durationSelector;\n    }\n    DebounceOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new DebounceSubscriber(subscriber, this.durationSelector));\n    };\n    return DebounceOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar DebounceSubscriber = (function (_super) {\n    __extends(DebounceSubscriber, _super);\n    function DebounceSubscriber(destination, durationSelector) {\n        _super.call(this, destination);\n        this.durationSelector = durationSelector;\n        this.hasValue = false;\n        this.durationSubscription = null;\n    }\n    DebounceSubscriber.prototype._next = function (value) {\n        try {\n            var result = this.durationSelector.call(this, value);\n            if (result) {\n                this._tryNext(value, result);\n            }\n        }\n        catch (err) {\n            this.destination.error(err);\n        }\n    };\n    DebounceSubscriber.prototype._complete = function () {\n        this.emitValue();\n        this.destination.complete();\n    };\n    DebounceSubscriber.prototype._tryNext = function (value, duration) {\n        var subscription = this.durationSubscription;\n        this.value = value;\n        this.hasValue = true;\n        if (subscription) {\n            subscription.unsubscribe();\n            this.remove(subscription);\n        }\n        subscription = subscribeToResult_1.subscribeToResult(this, duration);\n        if (!subscription.closed) {\n            this.add(this.durationSubscription = subscription);\n        }\n    };\n    DebounceSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n        this.emitValue();\n    };\n    DebounceSubscriber.prototype.notifyComplete = function () {\n        this.emitValue();\n    };\n    DebounceSubscriber.prototype.emitValue = function () {\n        if (this.hasValue) {\n            var value = this.value;\n            var subscription = this.durationSubscription;\n            if (subscription) {\n                this.durationSubscription = null;\n                subscription.unsubscribe();\n                this.remove(subscription);\n            }\n            this.value = null;\n            this.hasValue = false;\n            _super.prototype._next.call(this, value);\n        }\n    };\n    return DebounceSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\n//# sourceMappingURL=debounce.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/debounce.js\n// module id = 1206\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = require('../Subscriber');\nvar async_1 = require('../scheduler/async');\n/**\n * Emits a value from the source Observable only after a particular time span\n * has passed without another source emission.\n *\n * <span class=\"informal\">It's like {@link delay}, but passes only the most\n * recent value from each burst of emissions.</span>\n *\n * <img src=\"./img/debounceTime.png\" width=\"100%\">\n *\n * `debounceTime` delays values emitted by the source Observable, but drops\n * previous pending delayed emissions if a new value arrives on the source\n * Observable. This operator keeps track of the most recent value from the\n * source Observable, and emits that only when `dueTime` enough time has passed\n * without any other value appearing on the source Observable. If a new value\n * appears before `dueTime` silence occurs, the previous value will be dropped\n * and will not be emitted on the output Observable.\n *\n * This is a rate-limiting operator, because it is impossible for more than one\n * value to be emitted in any time window of duration `dueTime`, but it is also\n * a delay-like operator since output emissions do not occur at the same time as\n * they did on the source Observable. Optionally takes a {@link Scheduler} for\n * managing timers.\n *\n * @example <caption>Emit the most recent click after a burst of clicks</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.debounceTime(1000);\n * result.subscribe(x => console.log(x));\n *\n * @see {@link auditTime}\n * @see {@link debounce}\n * @see {@link delay}\n * @see {@link sampleTime}\n * @see {@link throttleTime}\n *\n * @param {number} dueTime The timeout duration in milliseconds (or the time\n * unit determined internally by the optional `scheduler`) for the window of\n * time required to wait for emission silence before emitting the most recent\n * source value.\n * @param {Scheduler} [scheduler=async] The {@link Scheduler} to use for\n * managing the timers that handle the timeout for each value.\n * @return {Observable} An Observable that delays the emissions of the source\n * Observable by the specified `dueTime`, and may drop some values if they occur\n * too frequently.\n * @method debounceTime\n * @owner Observable\n */\nfunction debounceTime(dueTime, scheduler) {\n    if (scheduler === void 0) { scheduler = async_1.async; }\n    return this.lift(new DebounceTimeOperator(dueTime, scheduler));\n}\nexports.debounceTime = debounceTime;\nvar DebounceTimeOperator = (function () {\n    function DebounceTimeOperator(dueTime, scheduler) {\n        this.dueTime = dueTime;\n        this.scheduler = scheduler;\n    }\n    DebounceTimeOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new DebounceTimeSubscriber(subscriber, this.dueTime, this.scheduler));\n    };\n    return DebounceTimeOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar DebounceTimeSubscriber = (function (_super) {\n    __extends(DebounceTimeSubscriber, _super);\n    function DebounceTimeSubscriber(destination, dueTime, scheduler) {\n        _super.call(this, destination);\n        this.dueTime = dueTime;\n        this.scheduler = scheduler;\n        this.debouncedSubscription = null;\n        this.lastValue = null;\n        this.hasValue = false;\n    }\n    DebounceTimeSubscriber.prototype._next = function (value) {\n        this.clearDebounce();\n        this.lastValue = value;\n        this.hasValue = true;\n        this.add(this.debouncedSubscription = this.scheduler.schedule(dispatchNext, this.dueTime, this));\n    };\n    DebounceTimeSubscriber.prototype._complete = function () {\n        this.debouncedNext();\n        this.destination.complete();\n    };\n    DebounceTimeSubscriber.prototype.debouncedNext = function () {\n        this.clearDebounce();\n        if (this.hasValue) {\n            this.destination.next(this.lastValue);\n            this.lastValue = null;\n            this.hasValue = false;\n        }\n    };\n    DebounceTimeSubscriber.prototype.clearDebounce = function () {\n        var debouncedSubscription = this.debouncedSubscription;\n        if (debouncedSubscription !== null) {\n            this.remove(debouncedSubscription);\n            debouncedSubscription.unsubscribe();\n            this.debouncedSubscription = null;\n        }\n    };\n    return DebounceTimeSubscriber;\n}(Subscriber_1.Subscriber));\nfunction dispatchNext(subscriber) {\n    subscriber.debouncedNext();\n}\n//# sourceMappingURL=debounceTime.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/debounceTime.js\n// module id = 1207\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = require('../Subscriber');\n/* tslint:disable:max-line-length */\n/**\n * Emits a given value if the source Observable completes without emitting any\n * `next` value, otherwise mirrors the source Observable.\n *\n * <span class=\"informal\">If the source Observable turns out to be empty, then\n * this operator will emit a default value.</span>\n *\n * <img src=\"./img/defaultIfEmpty.png\" width=\"100%\">\n *\n * `defaultIfEmpty` emits the values emitted by the source Observable or a\n * specified default value if the source Observable is empty (completes without\n * having emitted any `next` value).\n *\n * @example <caption>If no clicks happen in 5 seconds, then emit \"no clicks\"</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var clicksBeforeFive = clicks.takeUntil(Rx.Observable.interval(5000));\n * var result = clicksBeforeFive.defaultIfEmpty('no clicks');\n * result.subscribe(x => console.log(x));\n *\n * @see {@link empty}\n * @see {@link last}\n *\n * @param {any} [defaultValue=null] The default value used if the source\n * Observable is empty.\n * @return {Observable} An Observable that emits either the specified\n * `defaultValue` if the source Observable emits no items, or the values emitted\n * by the source Observable.\n * @method defaultIfEmpty\n * @owner Observable\n */\nfunction defaultIfEmpty(defaultValue) {\n    if (defaultValue === void 0) { defaultValue = null; }\n    return this.lift(new DefaultIfEmptyOperator(defaultValue));\n}\nexports.defaultIfEmpty = defaultIfEmpty;\nvar DefaultIfEmptyOperator = (function () {\n    function DefaultIfEmptyOperator(defaultValue) {\n        this.defaultValue = defaultValue;\n    }\n    DefaultIfEmptyOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new DefaultIfEmptySubscriber(subscriber, this.defaultValue));\n    };\n    return DefaultIfEmptyOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar DefaultIfEmptySubscriber = (function (_super) {\n    __extends(DefaultIfEmptySubscriber, _super);\n    function DefaultIfEmptySubscriber(destination, defaultValue) {\n        _super.call(this, destination);\n        this.defaultValue = defaultValue;\n        this.isEmpty = true;\n    }\n    DefaultIfEmptySubscriber.prototype._next = function (value) {\n        this.isEmpty = false;\n        this.destination.next(value);\n    };\n    DefaultIfEmptySubscriber.prototype._complete = function () {\n        if (this.isEmpty) {\n            this.destination.next(this.defaultValue);\n        }\n        this.destination.complete();\n    };\n    return DefaultIfEmptySubscriber;\n}(Subscriber_1.Subscriber));\n//# sourceMappingURL=defaultIfEmpty.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/defaultIfEmpty.js\n// module id = 1208\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar async_1 = require('../scheduler/async');\nvar isDate_1 = require('../util/isDate');\nvar Subscriber_1 = require('../Subscriber');\nvar Notification_1 = require('../Notification');\n/**\n * Delays the emission of items from the source Observable by a given timeout or\n * until a given Date.\n *\n * <span class=\"informal\">Time shifts each item by some specified amount of\n * milliseconds.</span>\n *\n * <img src=\"./img/delay.png\" width=\"100%\">\n *\n * If the delay argument is a Number, this operator time shifts the source\n * Observable by that amount of time expressed in milliseconds. The relative\n * time intervals between the values are preserved.\n *\n * If the delay argument is a Date, this operator time shifts the start of the\n * Observable execution until the given date occurs.\n *\n * @example <caption>Delay each click by one second</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var delayedClicks = clicks.delay(1000); // each click emitted after 1 second\n * delayedClicks.subscribe(x => console.log(x));\n *\n * @example <caption>Delay all clicks until a future date happens</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var date = new Date('March 15, 2050 12:00:00'); // in the future\n * var delayedClicks = clicks.delay(date); // click emitted only after that date\n * delayedClicks.subscribe(x => console.log(x));\n *\n * @see {@link debounceTime}\n * @see {@link delayWhen}\n *\n * @param {number|Date} delay The delay duration in milliseconds (a `number`) or\n * a `Date` until which the emission of the source items is delayed.\n * @param {Scheduler} [scheduler=async] The Scheduler to use for\n * managing the timers that handle the time-shift for each item.\n * @return {Observable} An Observable that delays the emissions of the source\n * Observable by the specified timeout or Date.\n * @method delay\n * @owner Observable\n */\nfunction delay(delay, scheduler) {\n    if (scheduler === void 0) { scheduler = async_1.async; }\n    var absoluteDelay = isDate_1.isDate(delay);\n    var delayFor = absoluteDelay ? (+delay - scheduler.now()) : Math.abs(delay);\n    return this.lift(new DelayOperator(delayFor, scheduler));\n}\nexports.delay = delay;\nvar DelayOperator = (function () {\n    function DelayOperator(delay, scheduler) {\n        this.delay = delay;\n        this.scheduler = scheduler;\n    }\n    DelayOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new DelaySubscriber(subscriber, this.delay, this.scheduler));\n    };\n    return DelayOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar DelaySubscriber = (function (_super) {\n    __extends(DelaySubscriber, _super);\n    function DelaySubscriber(destination, delay, scheduler) {\n        _super.call(this, destination);\n        this.delay = delay;\n        this.scheduler = scheduler;\n        this.queue = [];\n        this.active = false;\n        this.errored = false;\n    }\n    DelaySubscriber.dispatch = function (state) {\n        var source = state.source;\n        var queue = source.queue;\n        var scheduler = state.scheduler;\n        var destination = state.destination;\n        while (queue.length > 0 && (queue[0].time - scheduler.now()) <= 0) {\n            queue.shift().notification.observe(destination);\n        }\n        if (queue.length > 0) {\n            var delay_1 = Math.max(0, queue[0].time - scheduler.now());\n            this.schedule(state, delay_1);\n        }\n        else {\n            source.active = false;\n        }\n    };\n    DelaySubscriber.prototype._schedule = function (scheduler) {\n        this.active = true;\n        this.add(scheduler.schedule(DelaySubscriber.dispatch, this.delay, {\n            source: this, destination: this.destination, scheduler: scheduler\n        }));\n    };\n    DelaySubscriber.prototype.scheduleNotification = function (notification) {\n        if (this.errored === true) {\n            return;\n        }\n        var scheduler = this.scheduler;\n        var message = new DelayMessage(scheduler.now() + this.delay, notification);\n        this.queue.push(message);\n        if (this.active === false) {\n            this._schedule(scheduler);\n        }\n    };\n    DelaySubscriber.prototype._next = function (value) {\n        this.scheduleNotification(Notification_1.Notification.createNext(value));\n    };\n    DelaySubscriber.prototype._error = function (err) {\n        this.errored = true;\n        this.queue = [];\n        this.destination.error(err);\n    };\n    DelaySubscriber.prototype._complete = function () {\n        this.scheduleNotification(Notification_1.Notification.createComplete());\n    };\n    return DelaySubscriber;\n}(Subscriber_1.Subscriber));\nvar DelayMessage = (function () {\n    function DelayMessage(time, notification) {\n        this.time = time;\n        this.notification = notification;\n    }\n    return DelayMessage;\n}());\n//# sourceMappingURL=delay.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/delay.js\n// module id = 1209\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = require('../Subscriber');\nvar Observable_1 = require('../Observable');\nvar OuterSubscriber_1 = require('../OuterSubscriber');\nvar subscribeToResult_1 = require('../util/subscribeToResult');\n/**\n * Delays the emission of items from the source Observable by a given time span\n * determined by the emissions of another Observable.\n *\n * <span class=\"informal\">It's like {@link delay}, but the time span of the\n * delay duration is determined by a second Observable.</span>\n *\n * <img src=\"./img/delayWhen.png\" width=\"100%\">\n *\n * `delayWhen` time shifts each emitted value from the source Observable by a\n * time span determined by another Observable. When the source emits a value,\n * the `delayDurationSelector` function is called with the source value as\n * argument, and should return an Observable, called the \"duration\" Observable.\n * The source value is emitted on the output Observable only when the duration\n * Observable emits a value or completes.\n *\n * Optionally, `delayWhen` takes a second argument, `subscriptionDelay`, which\n * is an Observable. When `subscriptionDelay` emits its first value or\n * completes, the source Observable is subscribed to and starts behaving like\n * described in the previous paragraph. If `subscriptionDelay` is not provided,\n * `delayWhen` will subscribe to the source Observable as soon as the output\n * Observable is subscribed.\n *\n * @example <caption>Delay each click by a random amount of time, between 0 and 5 seconds</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var delayedClicks = clicks.delayWhen(event =>\n *   Rx.Observable.interval(Math.random() * 5000)\n * );\n * delayedClicks.subscribe(x => console.log(x));\n *\n * @see {@link debounce}\n * @see {@link delay}\n *\n * @param {function(value: T): Observable} delayDurationSelector A function that\n * returns an Observable for each value emitted by the source Observable, which\n * is then used to delay the emission of that item on the output Observable\n * until the Observable returned from this function emits a value.\n * @param {Observable} subscriptionDelay An Observable that triggers the\n * subscription to the source Observable once it emits any value.\n * @return {Observable} An Observable that delays the emissions of the source\n * Observable by an amount of time specified by the Observable returned by\n * `delayDurationSelector`.\n * @method delayWhen\n * @owner Observable\n */\nfunction delayWhen(delayDurationSelector, subscriptionDelay) {\n    if (subscriptionDelay) {\n        return new SubscriptionDelayObservable(this, subscriptionDelay)\n            .lift(new DelayWhenOperator(delayDurationSelector));\n    }\n    return this.lift(new DelayWhenOperator(delayDurationSelector));\n}\nexports.delayWhen = delayWhen;\nvar DelayWhenOperator = (function () {\n    function DelayWhenOperator(delayDurationSelector) {\n        this.delayDurationSelector = delayDurationSelector;\n    }\n    DelayWhenOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new DelayWhenSubscriber(subscriber, this.delayDurationSelector));\n    };\n    return DelayWhenOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar DelayWhenSubscriber = (function (_super) {\n    __extends(DelayWhenSubscriber, _super);\n    function DelayWhenSubscriber(destination, delayDurationSelector) {\n        _super.call(this, destination);\n        this.delayDurationSelector = delayDurationSelector;\n        this.completed = false;\n        this.delayNotifierSubscriptions = [];\n        this.values = [];\n    }\n    DelayWhenSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n        this.destination.next(outerValue);\n        this.removeSubscription(innerSub);\n        this.tryComplete();\n    };\n    DelayWhenSubscriber.prototype.notifyError = function (error, innerSub) {\n        this._error(error);\n    };\n    DelayWhenSubscriber.prototype.notifyComplete = function (innerSub) {\n        var value = this.removeSubscription(innerSub);\n        if (value) {\n            this.destination.next(value);\n        }\n        this.tryComplete();\n    };\n    DelayWhenSubscriber.prototype._next = function (value) {\n        try {\n            var delayNotifier = this.delayDurationSelector(value);\n            if (delayNotifier) {\n                this.tryDelay(delayNotifier, value);\n            }\n        }\n        catch (err) {\n            this.destination.error(err);\n        }\n    };\n    DelayWhenSubscriber.prototype._complete = function () {\n        this.completed = true;\n        this.tryComplete();\n    };\n    DelayWhenSubscriber.prototype.removeSubscription = function (subscription) {\n        subscription.unsubscribe();\n        var subscriptionIdx = this.delayNotifierSubscriptions.indexOf(subscription);\n        var value = null;\n        if (subscriptionIdx !== -1) {\n            value = this.values[subscriptionIdx];\n            this.delayNotifierSubscriptions.splice(subscriptionIdx, 1);\n            this.values.splice(subscriptionIdx, 1);\n        }\n        return value;\n    };\n    DelayWhenSubscriber.prototype.tryDelay = function (delayNotifier, value) {\n        var notifierSubscription = subscribeToResult_1.subscribeToResult(this, delayNotifier, value);\n        this.add(notifierSubscription);\n        this.delayNotifierSubscriptions.push(notifierSubscription);\n        this.values.push(value);\n    };\n    DelayWhenSubscriber.prototype.tryComplete = function () {\n        if (this.completed && this.delayNotifierSubscriptions.length === 0) {\n            this.destination.complete();\n        }\n    };\n    return DelayWhenSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar SubscriptionDelayObservable = (function (_super) {\n    __extends(SubscriptionDelayObservable, _super);\n    function SubscriptionDelayObservable(source, subscriptionDelay) {\n        _super.call(this);\n        this.source = source;\n        this.subscriptionDelay = subscriptionDelay;\n    }\n    SubscriptionDelayObservable.prototype._subscribe = function (subscriber) {\n        this.subscriptionDelay.subscribe(new SubscriptionDelaySubscriber(subscriber, this.source));\n    };\n    return SubscriptionDelayObservable;\n}(Observable_1.Observable));\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar SubscriptionDelaySubscriber = (function (_super) {\n    __extends(SubscriptionDelaySubscriber, _super);\n    function SubscriptionDelaySubscriber(parent, source) {\n        _super.call(this);\n        this.parent = parent;\n        this.source = source;\n        this.sourceSubscribed = false;\n    }\n    SubscriptionDelaySubscriber.prototype._next = function (unused) {\n        this.subscribeToSource();\n    };\n    SubscriptionDelaySubscriber.prototype._error = function (err) {\n        this.unsubscribe();\n        this.parent.error(err);\n    };\n    SubscriptionDelaySubscriber.prototype._complete = function () {\n        this.subscribeToSource();\n    };\n    SubscriptionDelaySubscriber.prototype.subscribeToSource = function () {\n        if (!this.sourceSubscribed) {\n            this.sourceSubscribed = true;\n            this.unsubscribe();\n            this.source.subscribe(this.parent);\n        }\n    };\n    return SubscriptionDelaySubscriber;\n}(Subscriber_1.Subscriber));\n//# sourceMappingURL=delayWhen.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/delayWhen.js\n// module id = 1210\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = require('../Subscriber');\n/**\n * Converts an Observable of {@link Notification} objects into the emissions\n * that they represent.\n *\n * <span class=\"informal\">Unwraps {@link Notification} objects as actual `next`,\n * `error` and `complete` emissions. The opposite of {@link materialize}.</span>\n *\n * <img src=\"./img/dematerialize.png\" width=\"100%\">\n *\n * `dematerialize` is assumed to operate an Observable that only emits\n * {@link Notification} objects as `next` emissions, and does not emit any\n * `error`. Such Observable is the output of a `materialize` operation. Those\n * notifications are then unwrapped using the metadata they contain, and emitted\n * as `next`, `error`, and `complete` on the output Observable.\n *\n * Use this operator in conjunction with {@link materialize}.\n *\n * @example <caption>Convert an Observable of Notifications to an actual Observable</caption>\n * var notifA = new Rx.Notification('N', 'A');\n * var notifB = new Rx.Notification('N', 'B');\n * var notifE = new Rx.Notification('E', void 0,\n *   new TypeError('x.toUpperCase is not a function')\n * );\n * var materialized = Rx.Observable.of(notifA, notifB, notifE);\n * var upperCase = materialized.dematerialize();\n * upperCase.subscribe(x => console.log(x), e => console.error(e));\n *\n * // Results in:\n * // A\n * // B\n * // TypeError: x.toUpperCase is not a function\n *\n * @see {@link Notification}\n * @see {@link materialize}\n *\n * @return {Observable} An Observable that emits items and notifications\n * embedded in Notification objects emitted by the source Observable.\n * @method dematerialize\n * @owner Observable\n */\nfunction dematerialize() {\n    return this.lift(new DeMaterializeOperator());\n}\nexports.dematerialize = dematerialize;\nvar DeMaterializeOperator = (function () {\n    function DeMaterializeOperator() {\n    }\n    DeMaterializeOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new DeMaterializeSubscriber(subscriber));\n    };\n    return DeMaterializeOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar DeMaterializeSubscriber = (function (_super) {\n    __extends(DeMaterializeSubscriber, _super);\n    function DeMaterializeSubscriber(destination) {\n        _super.call(this, destination);\n    }\n    DeMaterializeSubscriber.prototype._next = function (value) {\n        value.observe(this.destination);\n    };\n    return DeMaterializeSubscriber;\n}(Subscriber_1.Subscriber));\n//# sourceMappingURL=dematerialize.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/dematerialize.js\n// module id = 1211\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar OuterSubscriber_1 = require('../OuterSubscriber');\nvar subscribeToResult_1 = require('../util/subscribeToResult');\nvar Set_1 = require('../util/Set');\n/**\n * Returns an Observable that emits all items emitted by the source Observable that are distinct by comparison from previous items.\n * If a keySelector function is provided, then it will project each value from the source observable into a new value that it will\n * check for equality with previously projected values. If a keySelector function is not provided, it will use each value from the\n * source observable directly with an equality check against previous values.\n * In JavaScript runtimes that support `Set`, this operator will use a `Set` to improve performance of the distinct value checking.\n * In other runtimes, this operator will use a minimal implementation of `Set` that relies on an `Array` and `indexOf` under the\n * hood, so performance will degrade as more values are checked for distinction. Even in newer browsers, a long-running `distinct`\n * use might result in memory leaks. To help alleviate this in some scenarios, an optional `flushes` parameter is also provided so\n * that the internal `Set` can be \"flushed\", basically clearing it of values.\n * @param {function} [keySelector] optional function to select which value you want to check as distinct.\n * @param {Observable} [flushes] optional Observable for flushing the internal HashSet of the operator.\n * @return {Observable} an Observable that emits items from the source Observable with distinct values.\n * @method distinct\n * @owner Observable\n */\nfunction distinct(keySelector, flushes) {\n    return this.lift(new DistinctOperator(keySelector, flushes));\n}\nexports.distinct = distinct;\nvar DistinctOperator = (function () {\n    function DistinctOperator(keySelector, flushes) {\n        this.keySelector = keySelector;\n        this.flushes = flushes;\n    }\n    DistinctOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new DistinctSubscriber(subscriber, this.keySelector, this.flushes));\n    };\n    return DistinctOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar DistinctSubscriber = (function (_super) {\n    __extends(DistinctSubscriber, _super);\n    function DistinctSubscriber(destination, keySelector, flushes) {\n        _super.call(this, destination);\n        this.keySelector = keySelector;\n        this.values = new Set_1.Set();\n        if (flushes) {\n            this.add(subscribeToResult_1.subscribeToResult(this, flushes));\n        }\n    }\n    DistinctSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n        this.values.clear();\n    };\n    DistinctSubscriber.prototype.notifyError = function (error, innerSub) {\n        this._error(error);\n    };\n    DistinctSubscriber.prototype._next = function (value) {\n        if (this.keySelector) {\n            this._useKeySelector(value);\n        }\n        else {\n            this._finalizeNext(value, value);\n        }\n    };\n    DistinctSubscriber.prototype._useKeySelector = function (value) {\n        var key;\n        var destination = this.destination;\n        try {\n            key = this.keySelector(value);\n        }\n        catch (err) {\n            destination.error(err);\n            return;\n        }\n        this._finalizeNext(key, value);\n    };\n    DistinctSubscriber.prototype._finalizeNext = function (key, value) {\n        var values = this.values;\n        if (!values.has(key)) {\n            values.add(key);\n            this.destination.next(value);\n        }\n    };\n    return DistinctSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\nexports.DistinctSubscriber = DistinctSubscriber;\n//# sourceMappingURL=distinct.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/distinct.js\n// module id = 1212\n// module chunks = 0","\"use strict\";\nvar distinctUntilChanged_1 = require('./distinctUntilChanged');\n/* tslint:disable:max-line-length */\n/**\n * Returns an Observable that emits all items emitted by the source Observable that are distinct by comparison from the previous item,\n * using a property accessed by using the key provided to check if the two items are distinct.\n * If a comparator function is provided, then it will be called for each item to test for whether or not that value should be emitted.\n * If a comparator function is not provided, an equality check is used by default.\n * @param {string} key string key for object property lookup on each item.\n * @param {function} [compare] optional comparison function called to test if an item is distinct from the previous item in the source.\n * @return {Observable} an Observable that emits items from the source Observable with distinct values based on the key specified.\n * @method distinctUntilKeyChanged\n * @owner Observable\n */\nfunction distinctUntilKeyChanged(key, compare) {\n    return distinctUntilChanged_1.distinctUntilChanged.call(this, function (x, y) {\n        if (compare) {\n            return compare(x[key], y[key]);\n        }\n        return x[key] === y[key];\n    });\n}\nexports.distinctUntilKeyChanged = distinctUntilKeyChanged;\n//# sourceMappingURL=distinctUntilKeyChanged.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/distinctUntilKeyChanged.js\n// module id = 1213\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = require('../Subscriber');\n/* tslint:disable:max-line-length */\n/**\n * Perform a side effect for every emission on the source Observable, but return\n * an Observable that is identical to the source.\n *\n * <span class=\"informal\">Intercepts each emission on the source and runs a\n * function, but returns an output which is identical to the source.</span>\n *\n * <img src=\"./img/do.png\" width=\"100%\">\n *\n * Returns a mirrored Observable of the source Observable, but modified so that\n * the provided Observer is called to perform a side effect for every value,\n * error, and completion emitted by the source. Any errors that are thrown in\n * the aforementioned Observer or handlers are safely sent down the error path\n * of the output Observable.\n *\n * This operator is useful for debugging your Observables for the correct values\n * or performing other side effects.\n *\n * Note: this is different to a `subscribe` on the Observable. If the Observable\n * returned by `do` is not subscribed, the side effects specified by the\n * Observer will never happen. `do` therefore simply spies on existing\n * execution, it does not trigger an execution to happen like `subscribe` does.\n *\n * @example <caption>Map every every click to the clientX position of that click, while also logging the click event</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var positions = clicks\n *   .do(ev => console.log(ev))\n *   .map(ev => ev.clientX);\n * positions.subscribe(x => console.log(x));\n *\n * @see {@link map}\n * @see {@link subscribe}\n *\n * @param {Observer|function} [nextOrObserver] A normal Observer object or a\n * callback for `next`.\n * @param {function} [error] Callback for errors in the source.\n * @param {function} [complete] Callback for the completion of the source.\n * @return {Observable} An Observable identical to the source, but runs the\n * specified Observer or callback(s) for each item.\n * @method do\n * @name do\n * @owner Observable\n */\nfunction _do(nextOrObserver, error, complete) {\n    return this.lift(new DoOperator(nextOrObserver, error, complete));\n}\nexports._do = _do;\nvar DoOperator = (function () {\n    function DoOperator(nextOrObserver, error, complete) {\n        this.nextOrObserver = nextOrObserver;\n        this.error = error;\n        this.complete = complete;\n    }\n    DoOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new DoSubscriber(subscriber, this.nextOrObserver, this.error, this.complete));\n    };\n    return DoOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar DoSubscriber = (function (_super) {\n    __extends(DoSubscriber, _super);\n    function DoSubscriber(destination, nextOrObserver, error, complete) {\n        _super.call(this, destination);\n        var safeSubscriber = new Subscriber_1.Subscriber(nextOrObserver, error, complete);\n        safeSubscriber.syncErrorThrowable = true;\n        this.add(safeSubscriber);\n        this.safeSubscriber = safeSubscriber;\n    }\n    DoSubscriber.prototype._next = function (value) {\n        var safeSubscriber = this.safeSubscriber;\n        safeSubscriber.next(value);\n        if (safeSubscriber.syncErrorThrown) {\n            this.destination.error(safeSubscriber.syncErrorValue);\n        }\n        else {\n            this.destination.next(value);\n        }\n    };\n    DoSubscriber.prototype._error = function (err) {\n        var safeSubscriber = this.safeSubscriber;\n        safeSubscriber.error(err);\n        if (safeSubscriber.syncErrorThrown) {\n            this.destination.error(safeSubscriber.syncErrorValue);\n        }\n        else {\n            this.destination.error(err);\n        }\n    };\n    DoSubscriber.prototype._complete = function () {\n        var safeSubscriber = this.safeSubscriber;\n        safeSubscriber.complete();\n        if (safeSubscriber.syncErrorThrown) {\n            this.destination.error(safeSubscriber.syncErrorValue);\n        }\n        else {\n            this.destination.complete();\n        }\n    };\n    return DoSubscriber;\n}(Subscriber_1.Subscriber));\n//# sourceMappingURL=do.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/do.js\n// module id = 1214\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = require('../Subscriber');\nvar ArgumentOutOfRangeError_1 = require('../util/ArgumentOutOfRangeError');\n/**\n * Emits the single value at the specified `index` in a sequence of emissions\n * from the source Observable.\n *\n * <span class=\"informal\">Emits only the i-th value, then completes.</span>\n *\n * <img src=\"./img/elementAt.png\" width=\"100%\">\n *\n * `elementAt` returns an Observable that emits the item at the specified\n * `index` in the source Observable, or a default value if that `index` is out\n * of range and the `default` argument is provided. If the `default` argument is\n * not given and the `index` is out of range, the output Observable will emit an\n * `ArgumentOutOfRangeError` error.\n *\n * @example <caption>Emit only the third click event</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.elementAt(2);\n * result.subscribe(x => console.log(x));\n *\n * // Results in:\n * // click 1 = nothing\n * // click 2 = nothing\n * // click 3 = MouseEvent object logged to console\n *\n * @see {@link first}\n * @see {@link last}\n * @see {@link skip}\n * @see {@link single}\n * @see {@link take}\n *\n * @throws {ArgumentOutOfRangeError} When using `elementAt(i)`, it delivers an\n * ArgumentOutOrRangeError to the Observer's `error` callback if `i < 0` or the\n * Observable has completed before emitting the i-th `next` notification.\n *\n * @param {number} index Is the number `i` for the i-th source emission that has\n * happened since the subscription, starting from the number `0`.\n * @param {T} [defaultValue] The default value returned for missing indices.\n * @return {Observable} An Observable that emits a single item, if it is found.\n * Otherwise, will emit the default value if given. If not, then emits an error.\n * @method elementAt\n * @owner Observable\n */\nfunction elementAt(index, defaultValue) {\n    return this.lift(new ElementAtOperator(index, defaultValue));\n}\nexports.elementAt = elementAt;\nvar ElementAtOperator = (function () {\n    function ElementAtOperator(index, defaultValue) {\n        this.index = index;\n        this.defaultValue = defaultValue;\n        if (index < 0) {\n            throw new ArgumentOutOfRangeError_1.ArgumentOutOfRangeError;\n        }\n    }\n    ElementAtOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new ElementAtSubscriber(subscriber, this.index, this.defaultValue));\n    };\n    return ElementAtOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar ElementAtSubscriber = (function (_super) {\n    __extends(ElementAtSubscriber, _super);\n    function ElementAtSubscriber(destination, index, defaultValue) {\n        _super.call(this, destination);\n        this.index = index;\n        this.defaultValue = defaultValue;\n    }\n    ElementAtSubscriber.prototype._next = function (x) {\n        if (this.index-- === 0) {\n            this.destination.next(x);\n            this.destination.complete();\n        }\n    };\n    ElementAtSubscriber.prototype._complete = function () {\n        var destination = this.destination;\n        if (this.index >= 0) {\n            if (typeof this.defaultValue !== 'undefined') {\n                destination.next(this.defaultValue);\n            }\n            else {\n                destination.error(new ArgumentOutOfRangeError_1.ArgumentOutOfRangeError);\n            }\n        }\n        destination.complete();\n    };\n    return ElementAtSubscriber;\n}(Subscriber_1.Subscriber));\n//# sourceMappingURL=elementAt.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/elementAt.js\n// module id = 1215\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar OuterSubscriber_1 = require('../OuterSubscriber');\nvar subscribeToResult_1 = require('../util/subscribeToResult');\n/**\n * Converts a higher-order Observable into a first-order Observable by dropping\n * inner Observables while the previous inner Observable has not yet completed.\n *\n * <span class=\"informal\">Flattens an Observable-of-Observables by dropping the\n * next inner Observables while the current inner is still executing.</span>\n *\n * <img src=\"./img/exhaust.png\" width=\"100%\">\n *\n * `exhaust` subscribes to an Observable that emits Observables, also known as a\n * higher-order Observable. Each time it observes one of these emitted inner\n * Observables, the output Observable begins emitting the items emitted by that\n * inner Observable. So far, it behaves like {@link mergeAll}. However,\n * `exhaust` ignores every new inner Observable if the previous Observable has\n * not yet completed. Once that one completes, it will accept and flatten the\n * next inner Observable and repeat this process.\n *\n * @example <caption>Run a finite timer for each click, only if there is no currently active timer</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var higherOrder = clicks.map((ev) => Rx.Observable.interval(1000));\n * var result = higherOrder.exhaust();\n * result.subscribe(x => console.log(x));\n *\n * @see {@link combineAll}\n * @see {@link concatAll}\n * @see {@link switch}\n * @see {@link mergeAll}\n * @see {@link exhaustMap}\n * @see {@link zipAll}\n *\n * @return {Observable} Returns an Observable that takes a source of Observables\n * and propagates the first observable exclusively until it completes before\n * subscribing to the next.\n * @method exhaust\n * @owner Observable\n */\nfunction exhaust() {\n    return this.lift(new SwitchFirstOperator());\n}\nexports.exhaust = exhaust;\nvar SwitchFirstOperator = (function () {\n    function SwitchFirstOperator() {\n    }\n    SwitchFirstOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new SwitchFirstSubscriber(subscriber));\n    };\n    return SwitchFirstOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar SwitchFirstSubscriber = (function (_super) {\n    __extends(SwitchFirstSubscriber, _super);\n    function SwitchFirstSubscriber(destination) {\n        _super.call(this, destination);\n        this.hasCompleted = false;\n        this.hasSubscription = false;\n    }\n    SwitchFirstSubscriber.prototype._next = function (value) {\n        if (!this.hasSubscription) {\n            this.hasSubscription = true;\n            this.add(subscribeToResult_1.subscribeToResult(this, value));\n        }\n    };\n    SwitchFirstSubscriber.prototype._complete = function () {\n        this.hasCompleted = true;\n        if (!this.hasSubscription) {\n            this.destination.complete();\n        }\n    };\n    SwitchFirstSubscriber.prototype.notifyComplete = function (innerSub) {\n        this.remove(innerSub);\n        this.hasSubscription = false;\n        if (this.hasCompleted) {\n            this.destination.complete();\n        }\n    };\n    return SwitchFirstSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\n//# sourceMappingURL=exhaust.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/exhaust.js\n// module id = 1216\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar OuterSubscriber_1 = require('../OuterSubscriber');\nvar subscribeToResult_1 = require('../util/subscribeToResult');\n/* tslint:disable:max-line-length */\n/**\n * Projects each source value to an Observable which is merged in the output\n * Observable only if the previous projected Observable has completed.\n *\n * <span class=\"informal\">Maps each value to an Observable, then flattens all of\n * these inner Observables using {@link exhaust}.</span>\n *\n * <img src=\"./img/exhaustMap.png\" width=\"100%\">\n *\n * Returns an Observable that emits items based on applying a function that you\n * supply to each item emitted by the source Observable, where that function\n * returns an (so-called \"inner\") Observable. When it projects a source value to\n * an Observable, the output Observable begins emitting the items emitted by\n * that projected Observable. However, `exhaustMap` ignores every new projected\n * Observable if the previous projected Observable has not yet completed. Once\n * that one completes, it will accept and flatten the next projected Observable\n * and repeat this process.\n *\n * @example <caption>Run a finite timer for each click, only if there is no currently active timer</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.exhaustMap((ev) => Rx.Observable.interval(1000));\n * result.subscribe(x => console.log(x));\n *\n * @see {@link concatMap}\n * @see {@link exhaust}\n * @see {@link mergeMap}\n * @see {@link switchMap}\n *\n * @param {function(value: T, ?index: number): Observable} project A function\n * that, when applied to an item emitted by the source Observable, returns an\n * Observable.\n * @param {function(outerValue: T, innerValue: I, outerIndex: number, innerIndex: number): any} [resultSelector]\n * A function to produce the value on the output Observable based on the values\n * and the indices of the source (outer) emission and the inner Observable\n * emission. The arguments passed to this function are:\n * - `outerValue`: the value that came from the source\n * - `innerValue`: the value that came from the projected Observable\n * - `outerIndex`: the \"index\" of the value that came from the source\n * - `innerIndex`: the \"index\" of the value from the projected Observable\n * @return {Observable} An Observable containing projected Observables\n * of each item of the source, ignoring projected Observables that start before\n * their preceding Observable has completed.\n * @method exhaustMap\n * @owner Observable\n */\nfunction exhaustMap(project, resultSelector) {\n    return this.lift(new SwitchFirstMapOperator(project, resultSelector));\n}\nexports.exhaustMap = exhaustMap;\nvar SwitchFirstMapOperator = (function () {\n    function SwitchFirstMapOperator(project, resultSelector) {\n        this.project = project;\n        this.resultSelector = resultSelector;\n    }\n    SwitchFirstMapOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new SwitchFirstMapSubscriber(subscriber, this.project, this.resultSelector));\n    };\n    return SwitchFirstMapOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar SwitchFirstMapSubscriber = (function (_super) {\n    __extends(SwitchFirstMapSubscriber, _super);\n    function SwitchFirstMapSubscriber(destination, project, resultSelector) {\n        _super.call(this, destination);\n        this.project = project;\n        this.resultSelector = resultSelector;\n        this.hasSubscription = false;\n        this.hasCompleted = false;\n        this.index = 0;\n    }\n    SwitchFirstMapSubscriber.prototype._next = function (value) {\n        if (!this.hasSubscription) {\n            this.tryNext(value);\n        }\n    };\n    SwitchFirstMapSubscriber.prototype.tryNext = function (value) {\n        var index = this.index++;\n        var destination = this.destination;\n        try {\n            var result = this.project(value, index);\n            this.hasSubscription = true;\n            this.add(subscribeToResult_1.subscribeToResult(this, result, value, index));\n        }\n        catch (err) {\n            destination.error(err);\n        }\n    };\n    SwitchFirstMapSubscriber.prototype._complete = function () {\n        this.hasCompleted = true;\n        if (!this.hasSubscription) {\n            this.destination.complete();\n        }\n    };\n    SwitchFirstMapSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n        var _a = this, resultSelector = _a.resultSelector, destination = _a.destination;\n        if (resultSelector) {\n            this.trySelectResult(outerValue, innerValue, outerIndex, innerIndex);\n        }\n        else {\n            destination.next(innerValue);\n        }\n    };\n    SwitchFirstMapSubscriber.prototype.trySelectResult = function (outerValue, innerValue, outerIndex, innerIndex) {\n        var _a = this, resultSelector = _a.resultSelector, destination = _a.destination;\n        try {\n            var result = resultSelector(outerValue, innerValue, outerIndex, innerIndex);\n            destination.next(result);\n        }\n        catch (err) {\n            destination.error(err);\n        }\n    };\n    SwitchFirstMapSubscriber.prototype.notifyError = function (err) {\n        this.destination.error(err);\n    };\n    SwitchFirstMapSubscriber.prototype.notifyComplete = function (innerSub) {\n        this.remove(innerSub);\n        this.hasSubscription = false;\n        if (this.hasCompleted) {\n            this.destination.complete();\n        }\n    };\n    return SwitchFirstMapSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\n//# sourceMappingURL=exhaustMap.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/exhaustMap.js\n// module id = 1217\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar tryCatch_1 = require('../util/tryCatch');\nvar errorObject_1 = require('../util/errorObject');\nvar OuterSubscriber_1 = require('../OuterSubscriber');\nvar subscribeToResult_1 = require('../util/subscribeToResult');\n/* tslint:disable:max-line-length */\n/**\n * Recursively projects each source value to an Observable which is merged in\n * the output Observable.\n *\n * <span class=\"informal\">It's similar to {@link mergeMap}, but applies the\n * projection function to every source value as well as every output value.\n * It's recursive.</span>\n *\n * <img src=\"./img/expand.png\" width=\"100%\">\n *\n * Returns an Observable that emits items based on applying a function that you\n * supply to each item emitted by the source Observable, where that function\n * returns an Observable, and then merging those resulting Observables and\n * emitting the results of this merger. *Expand* will re-emit on the output\n * Observable every source value. Then, each output value is given to the\n * `project` function which returns an inner Observable to be merged on the\n * output Observable. Those output values resulting from the projection are also\n * given to the `project` function to produce new output values. This is how\n * *expand* behaves recursively.\n *\n * @example <caption>Start emitting the powers of two on every click, at most 10 of them</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var powersOfTwo = clicks\n *   .mapTo(1)\n *   .expand(x => Rx.Observable.of(2 * x).delay(1000))\n *   .take(10);\n * powersOfTwo.subscribe(x => console.log(x));\n *\n * @see {@link mergeMap}\n * @see {@link mergeScan}\n *\n * @param {function(value: T, index: number) => Observable} project A function\n * that, when applied to an item emitted by the source or the output Observable,\n * returns an Observable.\n * @param {number} [concurrent=Number.POSITIVE_INFINITY] Maximum number of input\n * Observables being subscribed to concurrently.\n * @param {Scheduler} [scheduler=null] The Scheduler to use for subscribing to\n * each projected inner Observable.\n * @return {Observable} An Observable that emits the source values and also\n * result of applying the projection function to each value emitted on the\n * output Observable and and merging the results of the Observables obtained\n * from this transformation.\n * @method expand\n * @owner Observable\n */\nfunction expand(project, concurrent, scheduler) {\n    if (concurrent === void 0) { concurrent = Number.POSITIVE_INFINITY; }\n    if (scheduler === void 0) { scheduler = undefined; }\n    concurrent = (concurrent || 0) < 1 ? Number.POSITIVE_INFINITY : concurrent;\n    return this.lift(new ExpandOperator(project, concurrent, scheduler));\n}\nexports.expand = expand;\nvar ExpandOperator = (function () {\n    function ExpandOperator(project, concurrent, scheduler) {\n        this.project = project;\n        this.concurrent = concurrent;\n        this.scheduler = scheduler;\n    }\n    ExpandOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new ExpandSubscriber(subscriber, this.project, this.concurrent, this.scheduler));\n    };\n    return ExpandOperator;\n}());\nexports.ExpandOperator = ExpandOperator;\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar ExpandSubscriber = (function (_super) {\n    __extends(ExpandSubscriber, _super);\n    function ExpandSubscriber(destination, project, concurrent, scheduler) {\n        _super.call(this, destination);\n        this.project = project;\n        this.concurrent = concurrent;\n        this.scheduler = scheduler;\n        this.index = 0;\n        this.active = 0;\n        this.hasCompleted = false;\n        if (concurrent < Number.POSITIVE_INFINITY) {\n            this.buffer = [];\n        }\n    }\n    ExpandSubscriber.dispatch = function (arg) {\n        var subscriber = arg.subscriber, result = arg.result, value = arg.value, index = arg.index;\n        subscriber.subscribeToProjection(result, value, index);\n    };\n    ExpandSubscriber.prototype._next = function (value) {\n        var destination = this.destination;\n        if (destination.closed) {\n            this._complete();\n            return;\n        }\n        var index = this.index++;\n        if (this.active < this.concurrent) {\n            destination.next(value);\n            var result = tryCatch_1.tryCatch(this.project)(value, index);\n            if (result === errorObject_1.errorObject) {\n                destination.error(errorObject_1.errorObject.e);\n            }\n            else if (!this.scheduler) {\n                this.subscribeToProjection(result, value, index);\n            }\n            else {\n                var state = { subscriber: this, result: result, value: value, index: index };\n                this.add(this.scheduler.schedule(ExpandSubscriber.dispatch, 0, state));\n            }\n        }\n        else {\n            this.buffer.push(value);\n        }\n    };\n    ExpandSubscriber.prototype.subscribeToProjection = function (result, value, index) {\n        this.active++;\n        this.add(subscribeToResult_1.subscribeToResult(this, result, value, index));\n    };\n    ExpandSubscriber.prototype._complete = function () {\n        this.hasCompleted = true;\n        if (this.hasCompleted && this.active === 0) {\n            this.destination.complete();\n        }\n    };\n    ExpandSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n        this._next(innerValue);\n    };\n    ExpandSubscriber.prototype.notifyComplete = function (innerSub) {\n        var buffer = this.buffer;\n        this.remove(innerSub);\n        this.active--;\n        if (buffer && buffer.length > 0) {\n            this._next(buffer.shift());\n        }\n        if (this.hasCompleted && this.active === 0) {\n            this.destination.complete();\n        }\n    };\n    return ExpandSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\nexports.ExpandSubscriber = ExpandSubscriber;\n//# sourceMappingURL=expand.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/expand.js\n// module id = 1218\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = require('../Subscriber');\nvar Subscription_1 = require('../Subscription');\n/**\n * Returns an Observable that mirrors the source Observable, but will call a specified function when\n * the source terminates on complete or error.\n * @param {function} callback function to be called when source terminates.\n * @return {Observable} an Observable that mirrors the source, but will call the specified function on termination.\n * @method finally\n * @owner Observable\n */\nfunction _finally(callback) {\n    return this.lift(new FinallyOperator(callback));\n}\nexports._finally = _finally;\nvar FinallyOperator = (function () {\n    function FinallyOperator(callback) {\n        this.callback = callback;\n    }\n    FinallyOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new FinallySubscriber(subscriber, this.callback));\n    };\n    return FinallyOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar FinallySubscriber = (function (_super) {\n    __extends(FinallySubscriber, _super);\n    function FinallySubscriber(destination, callback) {\n        _super.call(this, destination);\n        this.add(new Subscription_1.Subscription(callback));\n    }\n    return FinallySubscriber;\n}(Subscriber_1.Subscriber));\n//# sourceMappingURL=finally.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/finally.js\n// module id = 1219\n// module chunks = 0","\"use strict\";\nvar find_1 = require('./find');\n/**\n * Emits only the index of the first value emitted by the source Observable that\n * meets some condition.\n *\n * <span class=\"informal\">It's like {@link find}, but emits the index of the\n * found value, not the value itself.</span>\n *\n * <img src=\"./img/findIndex.png\" width=\"100%\">\n *\n * `findIndex` searches for the first item in the source Observable that matches\n * the specified condition embodied by the `predicate`, and returns the\n * (zero-based) index of the first occurrence in the source. Unlike\n * {@link first}, the `predicate` is required in `findIndex`, and does not emit\n * an error if a valid value is not found.\n *\n * @example <caption>Emit the index of first click that happens on a DIV element</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.findIndex(ev => ev.target.tagName === 'DIV');\n * result.subscribe(x => console.log(x));\n *\n * @see {@link filter}\n * @see {@link find}\n * @see {@link first}\n * @see {@link take}\n *\n * @param {function(value: T, index: number, source: Observable<T>): boolean} predicate\n * A function called with each item to test for condition matching.\n * @param {any} [thisArg] An optional argument to determine the value of `this`\n * in the `predicate` function.\n * @return {Observable} An Observable of the index of the first item that\n * matches the condition.\n * @method find\n * @owner Observable\n */\nfunction findIndex(predicate, thisArg) {\n    return this.lift(new find_1.FindValueOperator(predicate, this, true, thisArg));\n}\nexports.findIndex = findIndex;\n//# sourceMappingURL=findIndex.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/findIndex.js\n// module id = 1220\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = require('../Subscriber');\nvar Subscription_1 = require('../Subscription');\nvar Observable_1 = require('../Observable');\nvar Subject_1 = require('../Subject');\nvar Map_1 = require('../util/Map');\nvar FastMap_1 = require('../util/FastMap');\n/* tslint:disable:max-line-length */\n/**\n * Groups the items emitted by an Observable according to a specified criterion,\n * and emits these grouped items as `GroupedObservables`, one\n * {@link GroupedObservable} per group.\n *\n * <img src=\"./img/groupBy.png\" width=\"100%\">\n *\n * @param {function(value: T): K} keySelector a function that extracts the key\n * for each item.\n * @param {function(value: T): R} [elementSelector] a function that extracts the\n * return element for each item.\n * @param {function(grouped: GroupedObservable<K,R>): Observable<any>} [durationSelector]\n * a function that returns an Observable to determine how long each group should\n * exist.\n * @return {Observable<GroupedObservable<K,R>>} an Observable that emits\n * GroupedObservables, each of which corresponds to a unique key value and each\n * of which emits those items from the source Observable that share that key\n * value.\n * @method groupBy\n * @owner Observable\n */\nfunction groupBy(keySelector, elementSelector, durationSelector, subjectSelector) {\n    return this.lift(new GroupByOperator(keySelector, elementSelector, durationSelector, subjectSelector));\n}\nexports.groupBy = groupBy;\nvar GroupByOperator = (function () {\n    function GroupByOperator(keySelector, elementSelector, durationSelector, subjectSelector) {\n        this.keySelector = keySelector;\n        this.elementSelector = elementSelector;\n        this.durationSelector = durationSelector;\n        this.subjectSelector = subjectSelector;\n    }\n    GroupByOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new GroupBySubscriber(subscriber, this.keySelector, this.elementSelector, this.durationSelector, this.subjectSelector));\n    };\n    return GroupByOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar GroupBySubscriber = (function (_super) {\n    __extends(GroupBySubscriber, _super);\n    function GroupBySubscriber(destination, keySelector, elementSelector, durationSelector, subjectSelector) {\n        _super.call(this, destination);\n        this.keySelector = keySelector;\n        this.elementSelector = elementSelector;\n        this.durationSelector = durationSelector;\n        this.subjectSelector = subjectSelector;\n        this.groups = null;\n        this.attemptedToUnsubscribe = false;\n        this.count = 0;\n    }\n    GroupBySubscriber.prototype._next = function (value) {\n        var key;\n        try {\n            key = this.keySelector(value);\n        }\n        catch (err) {\n            this.error(err);\n            return;\n        }\n        this._group(value, key);\n    };\n    GroupBySubscriber.prototype._group = function (value, key) {\n        var groups = this.groups;\n        if (!groups) {\n            groups = this.groups = typeof key === 'string' ? new FastMap_1.FastMap() : new Map_1.Map();\n        }\n        var group = groups.get(key);\n        var element;\n        if (this.elementSelector) {\n            try {\n                element = this.elementSelector(value);\n            }\n            catch (err) {\n                this.error(err);\n            }\n        }\n        else {\n            element = value;\n        }\n        if (!group) {\n            group = this.subjectSelector ? this.subjectSelector() : new Subject_1.Subject();\n            groups.set(key, group);\n            var groupedObservable = new GroupedObservable(key, group, this);\n            this.destination.next(groupedObservable);\n            if (this.durationSelector) {\n                var duration = void 0;\n                try {\n                    duration = this.durationSelector(new GroupedObservable(key, group));\n                }\n                catch (err) {\n                    this.error(err);\n                    return;\n                }\n                this.add(duration.subscribe(new GroupDurationSubscriber(key, group, this)));\n            }\n        }\n        if (!group.closed) {\n            group.next(element);\n        }\n    };\n    GroupBySubscriber.prototype._error = function (err) {\n        var groups = this.groups;\n        if (groups) {\n            groups.forEach(function (group, key) {\n                group.error(err);\n            });\n            groups.clear();\n        }\n        this.destination.error(err);\n    };\n    GroupBySubscriber.prototype._complete = function () {\n        var groups = this.groups;\n        if (groups) {\n            groups.forEach(function (group, key) {\n                group.complete();\n            });\n            groups.clear();\n        }\n        this.destination.complete();\n    };\n    GroupBySubscriber.prototype.removeGroup = function (key) {\n        this.groups.delete(key);\n    };\n    GroupBySubscriber.prototype.unsubscribe = function () {\n        if (!this.closed) {\n            this.attemptedToUnsubscribe = true;\n            if (this.count === 0) {\n                _super.prototype.unsubscribe.call(this);\n            }\n        }\n    };\n    return GroupBySubscriber;\n}(Subscriber_1.Subscriber));\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar GroupDurationSubscriber = (function (_super) {\n    __extends(GroupDurationSubscriber, _super);\n    function GroupDurationSubscriber(key, group, parent) {\n        _super.call(this);\n        this.key = key;\n        this.group = group;\n        this.parent = parent;\n    }\n    GroupDurationSubscriber.prototype._next = function (value) {\n        this._complete();\n    };\n    GroupDurationSubscriber.prototype._error = function (err) {\n        var group = this.group;\n        if (!group.closed) {\n            group.error(err);\n        }\n        this.parent.removeGroup(this.key);\n    };\n    GroupDurationSubscriber.prototype._complete = function () {\n        var group = this.group;\n        if (!group.closed) {\n            group.complete();\n        }\n        this.parent.removeGroup(this.key);\n    };\n    return GroupDurationSubscriber;\n}(Subscriber_1.Subscriber));\n/**\n * An Observable representing values belonging to the same group represented by\n * a common key. The values emitted by a GroupedObservable come from the source\n * Observable. The common key is available as the field `key` on a\n * GroupedObservable instance.\n *\n * @class GroupedObservable<K, T>\n */\nvar GroupedObservable = (function (_super) {\n    __extends(GroupedObservable, _super);\n    function GroupedObservable(key, groupSubject, refCountSubscription) {\n        _super.call(this);\n        this.key = key;\n        this.groupSubject = groupSubject;\n        this.refCountSubscription = refCountSubscription;\n    }\n    GroupedObservable.prototype._subscribe = function (subscriber) {\n        var subscription = new Subscription_1.Subscription();\n        var _a = this, refCountSubscription = _a.refCountSubscription, groupSubject = _a.groupSubject;\n        if (refCountSubscription && !refCountSubscription.closed) {\n            subscription.add(new InnerRefCountSubscription(refCountSubscription));\n        }\n        subscription.add(groupSubject.subscribe(subscriber));\n        return subscription;\n    };\n    return GroupedObservable;\n}(Observable_1.Observable));\nexports.GroupedObservable = GroupedObservable;\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar InnerRefCountSubscription = (function (_super) {\n    __extends(InnerRefCountSubscription, _super);\n    function InnerRefCountSubscription(parent) {\n        _super.call(this);\n        this.parent = parent;\n        parent.count++;\n    }\n    InnerRefCountSubscription.prototype.unsubscribe = function () {\n        var parent = this.parent;\n        if (!parent.closed && !this.closed) {\n            _super.prototype.unsubscribe.call(this);\n            parent.count -= 1;\n            if (parent.count === 0 && parent.attemptedToUnsubscribe) {\n                parent.unsubscribe();\n            }\n        }\n    };\n    return InnerRefCountSubscription;\n}(Subscription_1.Subscription));\n//# sourceMappingURL=groupBy.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/groupBy.js\n// module id = 1221\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = require('../Subscriber');\nvar noop_1 = require('../util/noop');\n/**\n * Ignores all items emitted by the source Observable and only passes calls of `complete` or `error`.\n *\n * <img src=\"./img/ignoreElements.png\" width=\"100%\">\n *\n * @return {Observable} an empty Observable that only calls `complete`\n * or `error`, based on which one is called by the source Observable.\n * @method ignoreElements\n * @owner Observable\n */\nfunction ignoreElements() {\n    return this.lift(new IgnoreElementsOperator());\n}\nexports.ignoreElements = ignoreElements;\n;\nvar IgnoreElementsOperator = (function () {\n    function IgnoreElementsOperator() {\n    }\n    IgnoreElementsOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new IgnoreElementsSubscriber(subscriber));\n    };\n    return IgnoreElementsOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar IgnoreElementsSubscriber = (function (_super) {\n    __extends(IgnoreElementsSubscriber, _super);\n    function IgnoreElementsSubscriber() {\n        _super.apply(this, arguments);\n    }\n    IgnoreElementsSubscriber.prototype._next = function (unused) {\n        noop_1.noop();\n    };\n    return IgnoreElementsSubscriber;\n}(Subscriber_1.Subscriber));\n//# sourceMappingURL=ignoreElements.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/ignoreElements.js\n// module id = 1222\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = require('../Subscriber');\n/**\n * If the source Observable is empty it returns an Observable that emits true, otherwise it emits false.\n *\n * <img src=\"./img/isEmpty.png\" width=\"100%\">\n *\n * @return {Observable} an Observable that emits a Boolean.\n * @method isEmpty\n * @owner Observable\n */\nfunction isEmpty() {\n    return this.lift(new IsEmptyOperator());\n}\nexports.isEmpty = isEmpty;\nvar IsEmptyOperator = (function () {\n    function IsEmptyOperator() {\n    }\n    IsEmptyOperator.prototype.call = function (observer, source) {\n        return source.subscribe(new IsEmptySubscriber(observer));\n    };\n    return IsEmptyOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar IsEmptySubscriber = (function (_super) {\n    __extends(IsEmptySubscriber, _super);\n    function IsEmptySubscriber(destination) {\n        _super.call(this, destination);\n    }\n    IsEmptySubscriber.prototype.notifyComplete = function (isEmpty) {\n        var destination = this.destination;\n        destination.next(isEmpty);\n        destination.complete();\n    };\n    IsEmptySubscriber.prototype._next = function (value) {\n        this.notifyComplete(false);\n    };\n    IsEmptySubscriber.prototype._complete = function () {\n        this.notifyComplete(true);\n    };\n    return IsEmptySubscriber;\n}(Subscriber_1.Subscriber));\n//# sourceMappingURL=isEmpty.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/isEmpty.js\n// module id = 1223\n// module chunks = 0","\"use strict\";\n/**\n * @param func\n * @return {Observable<R>}\n * @method let\n * @owner Observable\n */\nfunction letProto(func) {\n    return func(this);\n}\nexports.letProto = letProto;\n//# sourceMappingURL=let.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/let.js\n// module id = 1224\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = require('../Subscriber');\n/**\n * Emits the given constant value on the output Observable every time the source\n * Observable emits a value.\n *\n * <span class=\"informal\">Like {@link map}, but it maps every source value to\n * the same output value every time.</span>\n *\n * <img src=\"./img/mapTo.png\" width=\"100%\">\n *\n * Takes a constant `value` as argument, and emits that whenever the source\n * Observable emits a value. In other words, ignores the actual source value,\n * and simply uses the emission moment to know when to emit the given `value`.\n *\n * @example <caption>Map every every click to the string 'Hi'</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var greetings = clicks.mapTo('Hi');\n * greetings.subscribe(x => console.log(x));\n *\n * @see {@link map}\n *\n * @param {any} value The value to map each source value to.\n * @return {Observable} An Observable that emits the given `value` every time\n * the source Observable emits something.\n * @method mapTo\n * @owner Observable\n */\nfunction mapTo(value) {\n    return this.lift(new MapToOperator(value));\n}\nexports.mapTo = mapTo;\nvar MapToOperator = (function () {\n    function MapToOperator(value) {\n        this.value = value;\n    }\n    MapToOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new MapToSubscriber(subscriber, this.value));\n    };\n    return MapToOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar MapToSubscriber = (function (_super) {\n    __extends(MapToSubscriber, _super);\n    function MapToSubscriber(destination, value) {\n        _super.call(this, destination);\n        this.value = value;\n    }\n    MapToSubscriber.prototype._next = function (x) {\n        this.destination.next(this.value);\n    };\n    return MapToSubscriber;\n}(Subscriber_1.Subscriber));\n//# sourceMappingURL=mapTo.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/mapTo.js\n// module id = 1225\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = require('../Subscriber');\nvar Notification_1 = require('../Notification');\n/**\n * Represents all of the notifications from the source Observable as `next`\n * emissions marked with their original types within {@link Notification}\n * objects.\n *\n * <span class=\"informal\">Wraps `next`, `error` and `complete` emissions in\n * {@link Notification} objects, emitted as `next` on the output Observable.\n * </span>\n *\n * <img src=\"./img/materialize.png\" width=\"100%\">\n *\n * `materialize` returns an Observable that emits a `next` notification for each\n * `next`, `error`, or `complete` emission of the source Observable. When the\n * source Observable emits `complete`, the output Observable will emit `next` as\n * a Notification of type \"complete\", and then it will emit `complete` as well.\n * When the source Observable emits `error`, the output will emit `next` as a\n * Notification of type \"error\", and then `complete`.\n *\n * This operator is useful for producing metadata of the source Observable, to\n * be consumed as `next` emissions. Use it in conjunction with\n * {@link dematerialize}.\n *\n * @example <caption>Convert a faulty Observable to an Observable of Notifications</caption>\n * var letters = Rx.Observable.of('a', 'b', 13, 'd');\n * var upperCase = letters.map(x => x.toUpperCase());\n * var materialized = upperCase.materialize();\n * materialized.subscribe(x => console.log(x));\n *\n * // Results in the following:\n * // - Notification {kind: \"N\", value: \"A\", error: undefined, hasValue: true}\n * // - Notification {kind: \"N\", value: \"B\", error: undefined, hasValue: true}\n * // - Notification {kind: \"E\", value: undefined, error: TypeError:\n * //   x.toUpperCase is not a function at MapSubscriber.letters.map.x\n * //   [as project] (http://1…, hasValue: false}\n *\n * @see {@link Notification}\n * @see {@link dematerialize}\n *\n * @return {Observable<Notification<T>>} An Observable that emits\n * {@link Notification} objects that wrap the original emissions from the source\n * Observable with metadata.\n * @method materialize\n * @owner Observable\n */\nfunction materialize() {\n    return this.lift(new MaterializeOperator());\n}\nexports.materialize = materialize;\nvar MaterializeOperator = (function () {\n    function MaterializeOperator() {\n    }\n    MaterializeOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new MaterializeSubscriber(subscriber));\n    };\n    return MaterializeOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar MaterializeSubscriber = (function (_super) {\n    __extends(MaterializeSubscriber, _super);\n    function MaterializeSubscriber(destination) {\n        _super.call(this, destination);\n    }\n    MaterializeSubscriber.prototype._next = function (value) {\n        this.destination.next(Notification_1.Notification.createNext(value));\n    };\n    MaterializeSubscriber.prototype._error = function (err) {\n        var destination = this.destination;\n        destination.next(Notification_1.Notification.createError(err));\n        destination.complete();\n    };\n    MaterializeSubscriber.prototype._complete = function () {\n        var destination = this.destination;\n        destination.next(Notification_1.Notification.createComplete());\n        destination.complete();\n    };\n    return MaterializeSubscriber;\n}(Subscriber_1.Subscriber));\n//# sourceMappingURL=materialize.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/materialize.js\n// module id = 1226\n// module chunks = 0","\"use strict\";\nvar reduce_1 = require('./reduce');\n/**\n * The Max operator operates on an Observable that emits numbers (or items that can be evaluated as numbers),\n * and when source Observable completes it emits a single item: the item with the largest number.\n *\n * <img src=\"./img/max.png\" width=\"100%\">\n *\n * @param {Function} optional comparer function that it will use instead of its default to compare the value of two\n * items.\n * @return {Observable} an Observable that emits item with the largest number.\n * @method max\n * @owner Observable\n */\nfunction max(comparer) {\n    var max = (typeof comparer === 'function')\n        ? function (x, y) { return comparer(x, y) > 0 ? x : y; }\n        : function (x, y) { return x > y ? x : y; };\n    return this.lift(new reduce_1.ReduceOperator(max));\n}\nexports.max = max;\n//# sourceMappingURL=max.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/max.js\n// module id = 1227\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar tryCatch_1 = require('../util/tryCatch');\nvar errorObject_1 = require('../util/errorObject');\nvar subscribeToResult_1 = require('../util/subscribeToResult');\nvar OuterSubscriber_1 = require('../OuterSubscriber');\n/**\n * @param project\n * @param seed\n * @param concurrent\n * @return {Observable<R>|WebSocketSubject<T>|Observable<T>}\n * @method mergeScan\n * @owner Observable\n */\nfunction mergeScan(project, seed, concurrent) {\n    if (concurrent === void 0) { concurrent = Number.POSITIVE_INFINITY; }\n    return this.lift(new MergeScanOperator(project, seed, concurrent));\n}\nexports.mergeScan = mergeScan;\nvar MergeScanOperator = (function () {\n    function MergeScanOperator(project, seed, concurrent) {\n        this.project = project;\n        this.seed = seed;\n        this.concurrent = concurrent;\n    }\n    MergeScanOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new MergeScanSubscriber(subscriber, this.project, this.seed, this.concurrent));\n    };\n    return MergeScanOperator;\n}());\nexports.MergeScanOperator = MergeScanOperator;\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar MergeScanSubscriber = (function (_super) {\n    __extends(MergeScanSubscriber, _super);\n    function MergeScanSubscriber(destination, project, acc, concurrent) {\n        _super.call(this, destination);\n        this.project = project;\n        this.acc = acc;\n        this.concurrent = concurrent;\n        this.hasValue = false;\n        this.hasCompleted = false;\n        this.buffer = [];\n        this.active = 0;\n        this.index = 0;\n    }\n    MergeScanSubscriber.prototype._next = function (value) {\n        if (this.active < this.concurrent) {\n            var index = this.index++;\n            var ish = tryCatch_1.tryCatch(this.project)(this.acc, value);\n            var destination = this.destination;\n            if (ish === errorObject_1.errorObject) {\n                destination.error(errorObject_1.errorObject.e);\n            }\n            else {\n                this.active++;\n                this._innerSub(ish, value, index);\n            }\n        }\n        else {\n            this.buffer.push(value);\n        }\n    };\n    MergeScanSubscriber.prototype._innerSub = function (ish, value, index) {\n        this.add(subscribeToResult_1.subscribeToResult(this, ish, value, index));\n    };\n    MergeScanSubscriber.prototype._complete = function () {\n        this.hasCompleted = true;\n        if (this.active === 0 && this.buffer.length === 0) {\n            if (this.hasValue === false) {\n                this.destination.next(this.acc);\n            }\n            this.destination.complete();\n        }\n    };\n    MergeScanSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n        var destination = this.destination;\n        this.acc = innerValue;\n        this.hasValue = true;\n        destination.next(innerValue);\n    };\n    MergeScanSubscriber.prototype.notifyComplete = function (innerSub) {\n        var buffer = this.buffer;\n        this.remove(innerSub);\n        this.active--;\n        if (buffer.length > 0) {\n            this._next(buffer.shift());\n        }\n        else if (this.active === 0 && this.hasCompleted) {\n            if (this.hasValue === false) {\n                this.destination.next(this.acc);\n            }\n            this.destination.complete();\n        }\n    };\n    return MergeScanSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\nexports.MergeScanSubscriber = MergeScanSubscriber;\n//# sourceMappingURL=mergeScan.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/mergeScan.js\n// module id = 1228\n// module chunks = 0","\"use strict\";\nvar reduce_1 = require('./reduce');\n/**\n * The Min operator operates on an Observable that emits numbers (or items that can be evaluated as numbers),\n * and when source Observable completes it emits a single item: the item with the smallest number.\n *\n * <img src=\"./img/min.png\" width=\"100%\">\n *\n * @param {Function} optional comparer function that it will use instead of its default to compare the value of two items.\n * @return {Observable<R>} an Observable that emits item with the smallest number.\n * @method min\n * @owner Observable\n */\nfunction min(comparer) {\n    var min = (typeof comparer === 'function')\n        ? function (x, y) { return comparer(x, y) < 0 ? x : y; }\n        : function (x, y) { return x < y ? x : y; };\n    return this.lift(new reduce_1.ReduceOperator(min));\n}\nexports.min = min;\n//# sourceMappingURL=min.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/min.js\n// module id = 1229\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = require('../Subscriber');\n/**\n * Groups pairs of consecutive emissions together and emits them as an array of\n * two values.\n *\n * <span class=\"informal\">Puts the current value and previous value together as\n * an array, and emits that.</span>\n *\n * <img src=\"./img/pairwise.png\" width=\"100%\">\n *\n * The Nth emission from the source Observable will cause the output Observable\n * to emit an array [(N-1)th, Nth] of the previous and the current value, as a\n * pair. For this reason, `pairwise` emits on the second and subsequent\n * emissions from the source Observable, but not on the first emission, because\n * there is no previous value in that case.\n *\n * @example <caption>On every click (starting from the second), emit the relative distance to the previous click</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var pairs = clicks.pairwise();\n * var distance = pairs.map(pair => {\n *   var x0 = pair[0].clientX;\n *   var y0 = pair[0].clientY;\n *   var x1 = pair[1].clientX;\n *   var y1 = pair[1].clientY;\n *   return Math.sqrt(Math.pow(x0 - x1, 2) + Math.pow(y0 - y1, 2));\n * });\n * distance.subscribe(x => console.log(x));\n *\n * @see {@link buffer}\n * @see {@link bufferCount}\n *\n * @return {Observable<Array<T>>} An Observable of pairs (as arrays) of\n * consecutive values from the source Observable.\n * @method pairwise\n * @owner Observable\n */\nfunction pairwise() {\n    return this.lift(new PairwiseOperator());\n}\nexports.pairwise = pairwise;\nvar PairwiseOperator = (function () {\n    function PairwiseOperator() {\n    }\n    PairwiseOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new PairwiseSubscriber(subscriber));\n    };\n    return PairwiseOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar PairwiseSubscriber = (function (_super) {\n    __extends(PairwiseSubscriber, _super);\n    function PairwiseSubscriber(destination) {\n        _super.call(this, destination);\n        this.hasPrev = false;\n    }\n    PairwiseSubscriber.prototype._next = function (value) {\n        if (this.hasPrev) {\n            this.destination.next([this.prev, value]);\n        }\n        else {\n            this.hasPrev = true;\n        }\n        this.prev = value;\n    };\n    return PairwiseSubscriber;\n}(Subscriber_1.Subscriber));\n//# sourceMappingURL=pairwise.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/pairwise.js\n// module id = 1230\n// module chunks = 0","\"use strict\";\nvar not_1 = require('../util/not');\nvar filter_1 = require('./filter');\n/**\n * Splits the source Observable into two, one with values that satisfy a\n * predicate, and another with values that don't satisfy the predicate.\n *\n * <span class=\"informal\">It's like {@link filter}, but returns two Observables:\n * one like the output of {@link filter}, and the other with values that did not\n * pass the condition.</span>\n *\n * <img src=\"./img/partition.png\" width=\"100%\">\n *\n * `partition` outputs an array with two Observables that partition the values\n * from the source Observable through the given `predicate` function. The first\n * Observable in that array emits source values for which the predicate argument\n * returns true. The second Observable emits source values for which the\n * predicate returns false. The first behaves like {@link filter} and the second\n * behaves like {@link filter} with the predicate negated.\n *\n * @example <caption>Partition click events into those on DIV elements and those elsewhere</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var parts = clicks.partition(ev => ev.target.tagName === 'DIV');\n * var clicksOnDivs = parts[0];\n * var clicksElsewhere = parts[1];\n * clicksOnDivs.subscribe(x => console.log('DIV clicked: ', x));\n * clicksElsewhere.subscribe(x => console.log('Other clicked: ', x));\n *\n * @see {@link filter}\n *\n * @param {function(value: T, index: number): boolean} predicate A function that\n * evaluates each value emitted by the source Observable. If it returns `true`,\n * the value is emitted on the first Observable in the returned array, if\n * `false` the value is emitted on the second Observable in the array. The\n * `index` parameter is the number `i` for the i-th source emission that has\n * happened since the subscription, starting from the number `0`.\n * @param {any} [thisArg] An optional argument to determine the value of `this`\n * in the `predicate` function.\n * @return {[Observable<T>, Observable<T>]} An array with two Observables: one\n * with values that passed the predicate, and another with values that did not\n * pass the predicate.\n * @method partition\n * @owner Observable\n */\nfunction partition(predicate, thisArg) {\n    return [\n        filter_1.filter.call(this, predicate, thisArg),\n        filter_1.filter.call(this, not_1.not(predicate, thisArg))\n    ];\n}\nexports.partition = partition;\n//# sourceMappingURL=partition.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/partition.js\n// module id = 1231\n// module chunks = 0","\"use strict\";\nvar map_1 = require('./map');\n/**\n * Maps each source value (an object) to its specified nested property.\n *\n * <span class=\"informal\">Like {@link map}, but meant only for picking one of\n * the nested properties of every emitted object.</span>\n *\n * <img src=\"./img/pluck.png\" width=\"100%\">\n *\n * Given a list of strings describing a path to an object property, retrieves\n * the value of a specified nested property from all values in the source\n * Observable. If a property can't be resolved, it will return `undefined` for\n * that value.\n *\n * @example <caption>Map every every click to the tagName of the clicked target element</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var tagNames = clicks.pluck('target', 'tagName');\n * tagNames.subscribe(x => console.log(x));\n *\n * @see {@link map}\n *\n * @param {...string} properties The nested properties to pluck from each source\n * value (an object).\n * @return {Observable} Returns a new Observable of property values from the\n * source values.\n * @method pluck\n * @owner Observable\n */\nfunction pluck() {\n    var properties = [];\n    for (var _i = 0; _i < arguments.length; _i++) {\n        properties[_i - 0] = arguments[_i];\n    }\n    var length = properties.length;\n    if (length === 0) {\n        throw new Error('list of properties cannot be empty.');\n    }\n    return map_1.map.call(this, plucker(properties, length));\n}\nexports.pluck = pluck;\nfunction plucker(props, length) {\n    var mapper = function (x) {\n        var currentProp = x;\n        for (var i = 0; i < length; i++) {\n            var p = currentProp[props[i]];\n            if (typeof p !== 'undefined') {\n                currentProp = p;\n            }\n            else {\n                return undefined;\n            }\n        }\n        return currentProp;\n    };\n    return mapper;\n}\n//# sourceMappingURL=pluck.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/pluck.js\n// module id = 1232\n// module chunks = 0","\"use strict\";\nvar Subject_1 = require('../Subject');\nvar multicast_1 = require('./multicast');\n/* tslint:disable:max-line-length */\n/**\n * Returns a ConnectableObservable, which is a variety of Observable that waits until its connect method is called\n * before it begins emitting items to those Observers that have subscribed to it.\n *\n * <img src=\"./img/publish.png\" width=\"100%\">\n *\n * @param {Function} Optional selector function which can use the multicasted source sequence as many times as needed,\n * without causing multiple subscriptions to the source sequence.\n * Subscribers to the given source will receive all notifications of the source from the time of the subscription on.\n * @return a ConnectableObservable that upon connection causes the source Observable to emit items to its Observers.\n * @method publish\n * @owner Observable\n */\nfunction publish(selector) {\n    return selector ? multicast_1.multicast.call(this, function () { return new Subject_1.Subject(); }, selector) :\n        multicast_1.multicast.call(this, new Subject_1.Subject());\n}\nexports.publish = publish;\n//# sourceMappingURL=publish.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/publish.js\n// module id = 1233\n// module chunks = 0","\"use strict\";\nvar BehaviorSubject_1 = require('../BehaviorSubject');\nvar multicast_1 = require('./multicast');\n/**\n * @param value\n * @return {ConnectableObservable<T>}\n * @method publishBehavior\n * @owner Observable\n */\nfunction publishBehavior(value) {\n    return multicast_1.multicast.call(this, new BehaviorSubject_1.BehaviorSubject(value));\n}\nexports.publishBehavior = publishBehavior;\n//# sourceMappingURL=publishBehavior.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/publishBehavior.js\n// module id = 1234\n// module chunks = 0","\"use strict\";\nvar AsyncSubject_1 = require('../AsyncSubject');\nvar multicast_1 = require('./multicast');\n/**\n * @return {ConnectableObservable<T>}\n * @method publishLast\n * @owner Observable\n */\nfunction publishLast() {\n    return multicast_1.multicast.call(this, new AsyncSubject_1.AsyncSubject());\n}\nexports.publishLast = publishLast;\n//# sourceMappingURL=publishLast.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/publishLast.js\n// module id = 1235\n// module chunks = 0","\"use strict\";\nvar ReplaySubject_1 = require('../ReplaySubject');\nvar multicast_1 = require('./multicast');\n/**\n * @param bufferSize\n * @param windowTime\n * @param scheduler\n * @return {ConnectableObservable<T>}\n * @method publishReplay\n * @owner Observable\n */\nfunction publishReplay(bufferSize, windowTime, scheduler) {\n    if (bufferSize === void 0) { bufferSize = Number.POSITIVE_INFINITY; }\n    if (windowTime === void 0) { windowTime = Number.POSITIVE_INFINITY; }\n    return multicast_1.multicast.call(this, new ReplaySubject_1.ReplaySubject(bufferSize, windowTime, scheduler));\n}\nexports.publishReplay = publishReplay;\n//# sourceMappingURL=publishReplay.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/publishReplay.js\n// module id = 1236\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = require('../Subscriber');\nvar EmptyObservable_1 = require('../observable/EmptyObservable');\n/**\n * Returns an Observable that repeats the stream of items emitted by the source Observable at most count times,\n * on a particular Scheduler.\n *\n * <img src=\"./img/repeat.png\" width=\"100%\">\n *\n * @param {Scheduler} [scheduler] the Scheduler to emit the items on.\n * @param {number} [count] the number of times the source Observable items are repeated, a count of 0 will yield\n * an empty Observable.\n * @return {Observable} an Observable that repeats the stream of items emitted by the source Observable at most\n * count times.\n * @method repeat\n * @owner Observable\n */\nfunction repeat(count) {\n    if (count === void 0) { count = -1; }\n    if (count === 0) {\n        return new EmptyObservable_1.EmptyObservable();\n    }\n    else if (count < 0) {\n        return this.lift(new RepeatOperator(-1, this));\n    }\n    else {\n        return this.lift(new RepeatOperator(count - 1, this));\n    }\n}\nexports.repeat = repeat;\nvar RepeatOperator = (function () {\n    function RepeatOperator(count, source) {\n        this.count = count;\n        this.source = source;\n    }\n    RepeatOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new RepeatSubscriber(subscriber, this.count, this.source));\n    };\n    return RepeatOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar RepeatSubscriber = (function (_super) {\n    __extends(RepeatSubscriber, _super);\n    function RepeatSubscriber(destination, count, source) {\n        _super.call(this, destination);\n        this.count = count;\n        this.source = source;\n    }\n    RepeatSubscriber.prototype.complete = function () {\n        if (!this.isStopped) {\n            var _a = this, source = _a.source, count = _a.count;\n            if (count === 0) {\n                return _super.prototype.complete.call(this);\n            }\n            else if (count > -1) {\n                this.count = count - 1;\n            }\n            this.unsubscribe();\n            this.isStopped = false;\n            this.closed = false;\n            source.subscribe(this);\n        }\n    };\n    return RepeatSubscriber;\n}(Subscriber_1.Subscriber));\n//# sourceMappingURL=repeat.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/repeat.js\n// module id = 1237\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subject_1 = require('../Subject');\nvar tryCatch_1 = require('../util/tryCatch');\nvar errorObject_1 = require('../util/errorObject');\nvar OuterSubscriber_1 = require('../OuterSubscriber');\nvar subscribeToResult_1 = require('../util/subscribeToResult');\n/**\n * Returns an Observable that emits the same values as the source observable with the exception of a `complete`.\n * A `complete` will cause the emission of the Throwable that cause the complete to the Observable returned from\n * notificationHandler. If that Observable calls onComplete or `complete` then retry will call `complete` or `error`\n * on the child subscription. Otherwise, this Observable will resubscribe to the source observable, on a particular\n * Scheduler.\n *\n * <img src=\"./img/repeatWhen.png\" width=\"100%\">\n *\n * @param {notificationHandler} receives an Observable of notifications with which a user can `complete` or `error`,\n * aborting the retry.\n * @param {scheduler} the Scheduler on which to subscribe to the source Observable.\n * @return {Observable} the source Observable modified with retry logic.\n * @method repeatWhen\n * @owner Observable\n */\nfunction repeatWhen(notifier) {\n    return this.lift(new RepeatWhenOperator(notifier, this));\n}\nexports.repeatWhen = repeatWhen;\nvar RepeatWhenOperator = (function () {\n    function RepeatWhenOperator(notifier, source) {\n        this.notifier = notifier;\n        this.source = source;\n    }\n    RepeatWhenOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new RepeatWhenSubscriber(subscriber, this.notifier, this.source));\n    };\n    return RepeatWhenOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar RepeatWhenSubscriber = (function (_super) {\n    __extends(RepeatWhenSubscriber, _super);\n    function RepeatWhenSubscriber(destination, notifier, source) {\n        _super.call(this, destination);\n        this.notifier = notifier;\n        this.source = source;\n    }\n    RepeatWhenSubscriber.prototype.complete = function () {\n        if (!this.isStopped) {\n            var notifications = this.notifications;\n            var retries = this.retries;\n            var retriesSubscription = this.retriesSubscription;\n            if (!retries) {\n                notifications = new Subject_1.Subject();\n                retries = tryCatch_1.tryCatch(this.notifier)(notifications);\n                if (retries === errorObject_1.errorObject) {\n                    return _super.prototype.complete.call(this);\n                }\n                retriesSubscription = subscribeToResult_1.subscribeToResult(this, retries);\n            }\n            else {\n                this.notifications = null;\n                this.retriesSubscription = null;\n            }\n            this.unsubscribe();\n            this.closed = false;\n            this.notifications = notifications;\n            this.retries = retries;\n            this.retriesSubscription = retriesSubscription;\n            notifications.next();\n        }\n    };\n    RepeatWhenSubscriber.prototype._unsubscribe = function () {\n        var _a = this, notifications = _a.notifications, retriesSubscription = _a.retriesSubscription;\n        if (notifications) {\n            notifications.unsubscribe();\n            this.notifications = null;\n        }\n        if (retriesSubscription) {\n            retriesSubscription.unsubscribe();\n            this.retriesSubscription = null;\n        }\n        this.retries = null;\n    };\n    RepeatWhenSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n        var _a = this, notifications = _a.notifications, retries = _a.retries, retriesSubscription = _a.retriesSubscription;\n        this.notifications = null;\n        this.retries = null;\n        this.retriesSubscription = null;\n        this.unsubscribe();\n        this.isStopped = false;\n        this.closed = false;\n        this.notifications = notifications;\n        this.retries = retries;\n        this.retriesSubscription = retriesSubscription;\n        this.source.subscribe(this);\n    };\n    return RepeatWhenSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\n//# sourceMappingURL=repeatWhen.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/repeatWhen.js\n// module id = 1238\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = require('../Subscriber');\n/**\n * Returns an Observable that mirrors the source Observable, resubscribing to it if it calls `error` and the\n * predicate returns true for that specific exception and retry count.\n * If the source Observable calls `error`, this method will resubscribe to the source Observable for a maximum of\n * count resubscriptions (given as a number parameter) rather than propagating the `error` call.\n *\n * <img src=\"./img/retry.png\" width=\"100%\">\n *\n * Any and all items emitted by the source Observable will be emitted by the resulting Observable, even those emitted\n * during failed subscriptions. For example, if an Observable fails at first but emits [1, 2] then succeeds the second\n * time and emits: [1, 2, 3, 4, 5] then the complete stream of emissions and notifications\n * would be: [1, 2, 1, 2, 3, 4, 5, `complete`].\n * @param {number} number of retry attempts before failing.\n * @return {Observable} the source Observable modified with the retry logic.\n * @method retry\n * @owner Observable\n */\nfunction retry(count) {\n    if (count === void 0) { count = -1; }\n    return this.lift(new RetryOperator(count, this));\n}\nexports.retry = retry;\nvar RetryOperator = (function () {\n    function RetryOperator(count, source) {\n        this.count = count;\n        this.source = source;\n    }\n    RetryOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new RetrySubscriber(subscriber, this.count, this.source));\n    };\n    return RetryOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar RetrySubscriber = (function (_super) {\n    __extends(RetrySubscriber, _super);\n    function RetrySubscriber(destination, count, source) {\n        _super.call(this, destination);\n        this.count = count;\n        this.source = source;\n    }\n    RetrySubscriber.prototype.error = function (err) {\n        if (!this.isStopped) {\n            var _a = this, source = _a.source, count = _a.count;\n            if (count === 0) {\n                return _super.prototype.error.call(this, err);\n            }\n            else if (count > -1) {\n                this.count = count - 1;\n            }\n            this.unsubscribe();\n            this.isStopped = false;\n            this.closed = false;\n            source.subscribe(this);\n        }\n    };\n    return RetrySubscriber;\n}(Subscriber_1.Subscriber));\n//# sourceMappingURL=retry.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/retry.js\n// module id = 1239\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subject_1 = require('../Subject');\nvar tryCatch_1 = require('../util/tryCatch');\nvar errorObject_1 = require('../util/errorObject');\nvar OuterSubscriber_1 = require('../OuterSubscriber');\nvar subscribeToResult_1 = require('../util/subscribeToResult');\n/**\n * Returns an Observable that emits the same values as the source observable with the exception of an `error`.\n * An `error` will cause the emission of the Throwable that cause the error to the Observable returned from\n * notificationHandler. If that Observable calls onComplete or `error` then retry will call `complete` or `error`\n * on the child subscription. Otherwise, this Observable will resubscribe to the source observable, on a particular\n * Scheduler.\n *\n * <img src=\"./img/retryWhen.png\" width=\"100%\">\n *\n * @param {notificationHandler} receives an Observable of notifications with which a user can `complete` or `error`,\n * aborting the retry.\n * @param {scheduler} the Scheduler on which to subscribe to the source Observable.\n * @return {Observable} the source Observable modified with retry logic.\n * @method retryWhen\n * @owner Observable\n */\nfunction retryWhen(notifier) {\n    return this.lift(new RetryWhenOperator(notifier, this));\n}\nexports.retryWhen = retryWhen;\nvar RetryWhenOperator = (function () {\n    function RetryWhenOperator(notifier, source) {\n        this.notifier = notifier;\n        this.source = source;\n    }\n    RetryWhenOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new RetryWhenSubscriber(subscriber, this.notifier, this.source));\n    };\n    return RetryWhenOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar RetryWhenSubscriber = (function (_super) {\n    __extends(RetryWhenSubscriber, _super);\n    function RetryWhenSubscriber(destination, notifier, source) {\n        _super.call(this, destination);\n        this.notifier = notifier;\n        this.source = source;\n    }\n    RetryWhenSubscriber.prototype.error = function (err) {\n        if (!this.isStopped) {\n            var errors = this.errors;\n            var retries = this.retries;\n            var retriesSubscription = this.retriesSubscription;\n            if (!retries) {\n                errors = new Subject_1.Subject();\n                retries = tryCatch_1.tryCatch(this.notifier)(errors);\n                if (retries === errorObject_1.errorObject) {\n                    return _super.prototype.error.call(this, errorObject_1.errorObject.e);\n                }\n                retriesSubscription = subscribeToResult_1.subscribeToResult(this, retries);\n            }\n            else {\n                this.errors = null;\n                this.retriesSubscription = null;\n            }\n            this.unsubscribe();\n            this.closed = false;\n            this.errors = errors;\n            this.retries = retries;\n            this.retriesSubscription = retriesSubscription;\n            errors.next(err);\n        }\n    };\n    RetryWhenSubscriber.prototype._unsubscribe = function () {\n        var _a = this, errors = _a.errors, retriesSubscription = _a.retriesSubscription;\n        if (errors) {\n            errors.unsubscribe();\n            this.errors = null;\n        }\n        if (retriesSubscription) {\n            retriesSubscription.unsubscribe();\n            this.retriesSubscription = null;\n        }\n        this.retries = null;\n    };\n    RetryWhenSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n        var _a = this, errors = _a.errors, retries = _a.retries, retriesSubscription = _a.retriesSubscription;\n        this.errors = null;\n        this.retries = null;\n        this.retriesSubscription = null;\n        this.unsubscribe();\n        this.isStopped = false;\n        this.closed = false;\n        this.errors = errors;\n        this.retries = retries;\n        this.retriesSubscription = retriesSubscription;\n        this.source.subscribe(this);\n    };\n    return RetryWhenSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\n//# sourceMappingURL=retryWhen.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/retryWhen.js\n// module id = 1240\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar OuterSubscriber_1 = require('../OuterSubscriber');\nvar subscribeToResult_1 = require('../util/subscribeToResult');\n/**\n * Emits the most recently emitted value from the source Observable whenever\n * another Observable, the `notifier`, emits.\n *\n * <span class=\"informal\">It's like {@link sampleTime}, but samples whenever\n * the `notifier` Observable emits something.</span>\n *\n * <img src=\"./img/sample.png\" width=\"100%\">\n *\n * Whenever the `notifier` Observable emits a value or completes, `sample`\n * looks at the source Observable and emits whichever value it has most recently\n * emitted since the previous sampling, unless the source has not emitted\n * anything since the previous sampling. The `notifier` is subscribed to as soon\n * as the output Observable is subscribed.\n *\n * @example <caption>On every click, sample the most recent \"seconds\" timer</caption>\n * var seconds = Rx.Observable.interval(1000);\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = seconds.sample(clicks);\n * result.subscribe(x => console.log(x));\n *\n * @see {@link audit}\n * @see {@link debounce}\n * @see {@link sampleTime}\n * @see {@link throttle}\n *\n * @param {Observable<any>} notifier The Observable to use for sampling the\n * source Observable.\n * @return {Observable<T>} An Observable that emits the results of sampling the\n * values emitted by the source Observable whenever the notifier Observable\n * emits value or completes.\n * @method sample\n * @owner Observable\n */\nfunction sample(notifier) {\n    return this.lift(new SampleOperator(notifier));\n}\nexports.sample = sample;\nvar SampleOperator = (function () {\n    function SampleOperator(notifier) {\n        this.notifier = notifier;\n    }\n    SampleOperator.prototype.call = function (subscriber, source) {\n        var sampleSubscriber = new SampleSubscriber(subscriber);\n        var subscription = source.subscribe(sampleSubscriber);\n        subscription.add(subscribeToResult_1.subscribeToResult(sampleSubscriber, this.notifier));\n        return subscription;\n    };\n    return SampleOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar SampleSubscriber = (function (_super) {\n    __extends(SampleSubscriber, _super);\n    function SampleSubscriber() {\n        _super.apply(this, arguments);\n        this.hasValue = false;\n    }\n    SampleSubscriber.prototype._next = function (value) {\n        this.value = value;\n        this.hasValue = true;\n    };\n    SampleSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n        this.emitValue();\n    };\n    SampleSubscriber.prototype.notifyComplete = function () {\n        this.emitValue();\n    };\n    SampleSubscriber.prototype.emitValue = function () {\n        if (this.hasValue) {\n            this.hasValue = false;\n            this.destination.next(this.value);\n        }\n    };\n    return SampleSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\n//# sourceMappingURL=sample.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/sample.js\n// module id = 1241\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = require('../Subscriber');\nvar async_1 = require('../scheduler/async');\n/**\n * Emits the most recently emitted value from the source Observable within\n * periodic time intervals.\n *\n * <span class=\"informal\">Samples the source Observable at periodic time\n * intervals, emitting what it samples.</span>\n *\n * <img src=\"./img/sampleTime.png\" width=\"100%\">\n *\n * `sampleTime` periodically looks at the source Observable and emits whichever\n * value it has most recently emitted since the previous sampling, unless the\n * source has not emitted anything since the previous sampling. The sampling\n * happens periodically in time every `period` milliseconds (or the time unit\n * defined by the optional `scheduler` argument). The sampling starts as soon as\n * the output Observable is subscribed.\n *\n * @example <caption>Every second, emit the most recent click at most once</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.sampleTime(1000);\n * result.subscribe(x => console.log(x));\n *\n * @see {@link auditTime}\n * @see {@link debounceTime}\n * @see {@link delay}\n * @see {@link sample}\n * @see {@link throttleTime}\n *\n * @param {number} period The sampling period expressed in milliseconds or the\n * time unit determined internally by the optional `scheduler`.\n * @param {Scheduler} [scheduler=async] The {@link Scheduler} to use for\n * managing the timers that handle the sampling.\n * @return {Observable<T>} An Observable that emits the results of sampling the\n * values emitted by the source Observable at the specified time interval.\n * @method sampleTime\n * @owner Observable\n */\nfunction sampleTime(period, scheduler) {\n    if (scheduler === void 0) { scheduler = async_1.async; }\n    return this.lift(new SampleTimeOperator(period, scheduler));\n}\nexports.sampleTime = sampleTime;\nvar SampleTimeOperator = (function () {\n    function SampleTimeOperator(period, scheduler) {\n        this.period = period;\n        this.scheduler = scheduler;\n    }\n    SampleTimeOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new SampleTimeSubscriber(subscriber, this.period, this.scheduler));\n    };\n    return SampleTimeOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar SampleTimeSubscriber = (function (_super) {\n    __extends(SampleTimeSubscriber, _super);\n    function SampleTimeSubscriber(destination, period, scheduler) {\n        _super.call(this, destination);\n        this.period = period;\n        this.scheduler = scheduler;\n        this.hasValue = false;\n        this.add(scheduler.schedule(dispatchNotification, period, { subscriber: this, period: period }));\n    }\n    SampleTimeSubscriber.prototype._next = function (value) {\n        this.lastValue = value;\n        this.hasValue = true;\n    };\n    SampleTimeSubscriber.prototype.notifyNext = function () {\n        if (this.hasValue) {\n            this.hasValue = false;\n            this.destination.next(this.lastValue);\n        }\n    };\n    return SampleTimeSubscriber;\n}(Subscriber_1.Subscriber));\nfunction dispatchNotification(state) {\n    var subscriber = state.subscriber, period = state.period;\n    subscriber.notifyNext();\n    this.schedule(state, period);\n}\n//# sourceMappingURL=sampleTime.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/sampleTime.js\n// module id = 1242\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = require('../Subscriber');\n/* tslint:disable:max-line-length */\n/**\n * Applies an accumulator function over the source Observable, and returns each\n * intermediate result, with an optional seed value.\n *\n * <span class=\"informal\">It's like {@link reduce}, but emits the current\n * accumulation whenever the source emits a value.</span>\n *\n * <img src=\"./img/scan.png\" width=\"100%\">\n *\n * Combines together all values emitted on the source, using an accumulator\n * function that knows how to join a new source value into the accumulation from\n * the past. Is similar to {@link reduce}, but emits the intermediate\n * accumulations.\n *\n * Returns an Observable that applies a specified `accumulator` function to each\n * item emitted by the source Observable. If a `seed` value is specified, then\n * that value will be used as the initial value for the accumulator. If no seed\n * value is specified, the first item of the source is used as the seed.\n *\n * @example <caption>Count the number of click events</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var ones = clicks.mapTo(1);\n * var seed = 0;\n * var count = ones.scan((acc, one) => acc + one, seed);\n * count.subscribe(x => console.log(x));\n *\n * @see {@link expand}\n * @see {@link mergeScan}\n * @see {@link reduce}\n *\n * @param {function(acc: R, value: T, index: number): R} accumulator\n * The accumulator function called on each source value.\n * @param {T|R} [seed] The initial accumulation value.\n * @return {Observable<R>} An observable of the accumulated values.\n * @method scan\n * @owner Observable\n */\nfunction scan(accumulator, seed) {\n    var hasSeed = false;\n    // providing a seed of `undefined` *should* be valid and trigger\n    // hasSeed! so don't use `seed !== undefined` checks!\n    // For this reason, we have to check it here at the original call site\n    // otherwise inside Operator/Subscriber we won't know if `undefined`\n    // means they didn't provide anything or if they literally provided `undefined`\n    if (arguments.length >= 2) {\n        hasSeed = true;\n    }\n    return this.lift(new ScanOperator(accumulator, seed, hasSeed));\n}\nexports.scan = scan;\nvar ScanOperator = (function () {\n    function ScanOperator(accumulator, seed, hasSeed) {\n        if (hasSeed === void 0) { hasSeed = false; }\n        this.accumulator = accumulator;\n        this.seed = seed;\n        this.hasSeed = hasSeed;\n    }\n    ScanOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new ScanSubscriber(subscriber, this.accumulator, this.seed, this.hasSeed));\n    };\n    return ScanOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar ScanSubscriber = (function (_super) {\n    __extends(ScanSubscriber, _super);\n    function ScanSubscriber(destination, accumulator, _seed, hasSeed) {\n        _super.call(this, destination);\n        this.accumulator = accumulator;\n        this._seed = _seed;\n        this.hasSeed = hasSeed;\n        this.index = 0;\n    }\n    Object.defineProperty(ScanSubscriber.prototype, \"seed\", {\n        get: function () {\n            return this._seed;\n        },\n        set: function (value) {\n            this.hasSeed = true;\n            this._seed = value;\n        },\n        enumerable: true,\n        configurable: true\n    });\n    ScanSubscriber.prototype._next = function (value) {\n        if (!this.hasSeed) {\n            this.seed = value;\n            this.destination.next(value);\n        }\n        else {\n            return this._tryNext(value);\n        }\n    };\n    ScanSubscriber.prototype._tryNext = function (value) {\n        var index = this.index++;\n        var result;\n        try {\n            result = this.accumulator(this.seed, value, index);\n        }\n        catch (err) {\n            this.destination.error(err);\n        }\n        this.seed = result;\n        this.destination.next(result);\n    };\n    return ScanSubscriber;\n}(Subscriber_1.Subscriber));\n//# sourceMappingURL=scan.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/scan.js\n// module id = 1243\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = require('../Subscriber');\nvar tryCatch_1 = require('../util/tryCatch');\nvar errorObject_1 = require('../util/errorObject');\n/**\n * Compares all values of two observables in sequence using an optional comparor function\n * and returns an observable of a single boolean value representing whether or not the two sequences\n * are equal.\n *\n * <span class=\"informal\">Checks to see of all values emitted by both observables are equal, in order.</span>\n *\n * <img src=\"./img/sequenceEqual.png\" width=\"100%\">\n *\n * `sequenceEqual` subscribes to two observables and buffers incoming values from each observable. Whenever either\n * observable emits a value, the value is buffered and the buffers are shifted and compared from the bottom\n * up; If any value pair doesn't match, the returned observable will emit `false` and complete. If one of the\n * observables completes, the operator will wait for the other observable to complete; If the other\n * observable emits before completing, the returned observable will emit `false` and complete. If one observable never\n * completes or emits after the other complets, the returned observable will never complete.\n *\n * @example <caption>figure out if the Konami code matches</caption>\n * var code = Rx.Observable.from([\n *  \"ArrowUp\",\n *  \"ArrowUp\",\n *  \"ArrowDown\",\n *  \"ArrowDown\",\n *  \"ArrowLeft\",\n *  \"ArrowRight\",\n *  \"ArrowLeft\",\n *  \"ArrowRight\",\n *  \"KeyB\",\n *  \"KeyA\",\n *  \"Enter\" // no start key, clearly.\n * ]);\n *\n * var keys = Rx.Observable.fromEvent(document, 'keyup')\n *  .map(e => e.code);\n * var matches = keys.bufferCount(11, 1)\n *  .mergeMap(\n *    last11 =>\n *      Rx.Observable.from(last11)\n *        .sequenceEqual(code)\n *   );\n * matches.subscribe(matched => console.log('Successful cheat at Contra? ', matched));\n *\n * @see {@link combineLatest}\n * @see {@link zip}\n * @see {@link withLatestFrom}\n *\n * @param {Observable} compareTo the observable sequence to compare the source sequence to.\n * @param {function} [comparor] An optional function to compare each value pair\n * @return {Observable} An Observable of a single boolean value representing whether or not\n * the values emitted by both observables were equal in sequence\n * @method sequenceEqual\n * @owner Observable\n */\nfunction sequenceEqual(compareTo, comparor) {\n    return this.lift(new SequenceEqualOperator(compareTo, comparor));\n}\nexports.sequenceEqual = sequenceEqual;\nvar SequenceEqualOperator = (function () {\n    function SequenceEqualOperator(compareTo, comparor) {\n        this.compareTo = compareTo;\n        this.comparor = comparor;\n    }\n    SequenceEqualOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new SequenceEqualSubscriber(subscriber, this.compareTo, this.comparor));\n    };\n    return SequenceEqualOperator;\n}());\nexports.SequenceEqualOperator = SequenceEqualOperator;\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar SequenceEqualSubscriber = (function (_super) {\n    __extends(SequenceEqualSubscriber, _super);\n    function SequenceEqualSubscriber(destination, compareTo, comparor) {\n        _super.call(this, destination);\n        this.compareTo = compareTo;\n        this.comparor = comparor;\n        this._a = [];\n        this._b = [];\n        this._oneComplete = false;\n        this.add(compareTo.subscribe(new SequenceEqualCompareToSubscriber(destination, this)));\n    }\n    SequenceEqualSubscriber.prototype._next = function (value) {\n        if (this._oneComplete && this._b.length === 0) {\n            this.emit(false);\n        }\n        else {\n            this._a.push(value);\n            this.checkValues();\n        }\n    };\n    SequenceEqualSubscriber.prototype._complete = function () {\n        if (this._oneComplete) {\n            this.emit(this._a.length === 0 && this._b.length === 0);\n        }\n        else {\n            this._oneComplete = true;\n        }\n    };\n    SequenceEqualSubscriber.prototype.checkValues = function () {\n        var _c = this, _a = _c._a, _b = _c._b, comparor = _c.comparor;\n        while (_a.length > 0 && _b.length > 0) {\n            var a = _a.shift();\n            var b = _b.shift();\n            var areEqual = false;\n            if (comparor) {\n                areEqual = tryCatch_1.tryCatch(comparor)(a, b);\n                if (areEqual === errorObject_1.errorObject) {\n                    this.destination.error(errorObject_1.errorObject.e);\n                }\n            }\n            else {\n                areEqual = a === b;\n            }\n            if (!areEqual) {\n                this.emit(false);\n            }\n        }\n    };\n    SequenceEqualSubscriber.prototype.emit = function (value) {\n        var destination = this.destination;\n        destination.next(value);\n        destination.complete();\n    };\n    SequenceEqualSubscriber.prototype.nextB = function (value) {\n        if (this._oneComplete && this._a.length === 0) {\n            this.emit(false);\n        }\n        else {\n            this._b.push(value);\n            this.checkValues();\n        }\n    };\n    return SequenceEqualSubscriber;\n}(Subscriber_1.Subscriber));\nexports.SequenceEqualSubscriber = SequenceEqualSubscriber;\nvar SequenceEqualCompareToSubscriber = (function (_super) {\n    __extends(SequenceEqualCompareToSubscriber, _super);\n    function SequenceEqualCompareToSubscriber(destination, parent) {\n        _super.call(this, destination);\n        this.parent = parent;\n    }\n    SequenceEqualCompareToSubscriber.prototype._next = function (value) {\n        this.parent.nextB(value);\n    };\n    SequenceEqualCompareToSubscriber.prototype._error = function (err) {\n        this.parent.error(err);\n    };\n    SequenceEqualCompareToSubscriber.prototype._complete = function () {\n        this.parent._complete();\n    };\n    return SequenceEqualCompareToSubscriber;\n}(Subscriber_1.Subscriber));\n//# sourceMappingURL=sequenceEqual.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/sequenceEqual.js\n// module id = 1244\n// module chunks = 0","\"use strict\";\nvar multicast_1 = require('./multicast');\nvar Subject_1 = require('../Subject');\nfunction shareSubjectFactory() {\n    return new Subject_1.Subject();\n}\n/**\n * Returns a new Observable that multicasts (shares) the original Observable. As long as there is at least one\n * Subscriber this Observable will be subscribed and emitting data. When all subscribers have unsubscribed it will\n * unsubscribe from the source Observable. Because the Observable is multicasting it makes the stream `hot`.\n * This is an alias for .publish().refCount().\n *\n * <img src=\"./img/share.png\" width=\"100%\">\n *\n * @return {Observable<T>} an Observable that upon connection causes the source Observable to emit items to its Observers\n * @method share\n * @owner Observable\n */\nfunction share() {\n    return multicast_1.multicast.call(this, shareSubjectFactory).refCount();\n}\nexports.share = share;\n;\n//# sourceMappingURL=share.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/share.js\n// module id = 1245\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = require('../Subscriber');\nvar EmptyError_1 = require('../util/EmptyError');\n/**\n * Returns an Observable that emits the single item emitted by the source Observable that matches a specified\n * predicate, if that Observable emits one such item. If the source Observable emits more than one such item or no\n * such items, notify of an IllegalArgumentException or NoSuchElementException respectively.\n *\n * <img src=\"./img/single.png\" width=\"100%\">\n *\n * @throws {EmptyError} Delivers an EmptyError to the Observer's `error`\n * callback if the Observable completes before any `next` notification was sent.\n * @param {Function} a predicate function to evaluate items emitted by the source Observable.\n * @return {Observable<T>} an Observable that emits the single item emitted by the source Observable that matches\n * the predicate.\n .\n * @method single\n * @owner Observable\n */\nfunction single(predicate) {\n    return this.lift(new SingleOperator(predicate, this));\n}\nexports.single = single;\nvar SingleOperator = (function () {\n    function SingleOperator(predicate, source) {\n        this.predicate = predicate;\n        this.source = source;\n    }\n    SingleOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new SingleSubscriber(subscriber, this.predicate, this.source));\n    };\n    return SingleOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar SingleSubscriber = (function (_super) {\n    __extends(SingleSubscriber, _super);\n    function SingleSubscriber(destination, predicate, source) {\n        _super.call(this, destination);\n        this.predicate = predicate;\n        this.source = source;\n        this.seenValue = false;\n        this.index = 0;\n    }\n    SingleSubscriber.prototype.applySingleValue = function (value) {\n        if (this.seenValue) {\n            this.destination.error('Sequence contains more than one element');\n        }\n        else {\n            this.seenValue = true;\n            this.singleValue = value;\n        }\n    };\n    SingleSubscriber.prototype._next = function (value) {\n        var predicate = this.predicate;\n        this.index++;\n        if (predicate) {\n            this.tryNext(value);\n        }\n        else {\n            this.applySingleValue(value);\n        }\n    };\n    SingleSubscriber.prototype.tryNext = function (value) {\n        try {\n            var result = this.predicate(value, this.index, this.source);\n            if (result) {\n                this.applySingleValue(value);\n            }\n        }\n        catch (err) {\n            this.destination.error(err);\n        }\n    };\n    SingleSubscriber.prototype._complete = function () {\n        var destination = this.destination;\n        if (this.index > 0) {\n            destination.next(this.seenValue ? this.singleValue : undefined);\n            destination.complete();\n        }\n        else {\n            destination.error(new EmptyError_1.EmptyError);\n        }\n    };\n    return SingleSubscriber;\n}(Subscriber_1.Subscriber));\n//# sourceMappingURL=single.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/single.js\n// module id = 1246\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = require('../Subscriber');\n/**\n * Returns an Observable that skips `n` items emitted by an Observable.\n *\n * <img src=\"./img/skip.png\" width=\"100%\">\n *\n * @param {Number} the `n` of times, items emitted by source Observable should be skipped.\n * @return {Observable} an Observable that skips values emitted by the source Observable.\n *\n * @method skip\n * @owner Observable\n */\nfunction skip(total) {\n    return this.lift(new SkipOperator(total));\n}\nexports.skip = skip;\nvar SkipOperator = (function () {\n    function SkipOperator(total) {\n        this.total = total;\n    }\n    SkipOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new SkipSubscriber(subscriber, this.total));\n    };\n    return SkipOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar SkipSubscriber = (function (_super) {\n    __extends(SkipSubscriber, _super);\n    function SkipSubscriber(destination, total) {\n        _super.call(this, destination);\n        this.total = total;\n        this.count = 0;\n    }\n    SkipSubscriber.prototype._next = function (x) {\n        if (++this.count > this.total) {\n            this.destination.next(x);\n        }\n    };\n    return SkipSubscriber;\n}(Subscriber_1.Subscriber));\n//# sourceMappingURL=skip.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/skip.js\n// module id = 1247\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar OuterSubscriber_1 = require('../OuterSubscriber');\nvar subscribeToResult_1 = require('../util/subscribeToResult');\n/**\n * Returns an Observable that skips items emitted by the source Observable until a second Observable emits an item.\n *\n * <img src=\"./img/skipUntil.png\" width=\"100%\">\n *\n * @param {Observable} the second Observable that has to emit an item before the source Observable's elements begin to\n * be mirrored by the resulting Observable.\n * @return {Observable<T>} an Observable that skips items from the source Observable until the second Observable emits\n * an item, then emits the remaining items.\n * @method skipUntil\n * @owner Observable\n */\nfunction skipUntil(notifier) {\n    return this.lift(new SkipUntilOperator(notifier));\n}\nexports.skipUntil = skipUntil;\nvar SkipUntilOperator = (function () {\n    function SkipUntilOperator(notifier) {\n        this.notifier = notifier;\n    }\n    SkipUntilOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new SkipUntilSubscriber(subscriber, this.notifier));\n    };\n    return SkipUntilOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar SkipUntilSubscriber = (function (_super) {\n    __extends(SkipUntilSubscriber, _super);\n    function SkipUntilSubscriber(destination, notifier) {\n        _super.call(this, destination);\n        this.hasValue = false;\n        this.isInnerStopped = false;\n        this.add(subscribeToResult_1.subscribeToResult(this, notifier));\n    }\n    SkipUntilSubscriber.prototype._next = function (value) {\n        if (this.hasValue) {\n            _super.prototype._next.call(this, value);\n        }\n    };\n    SkipUntilSubscriber.prototype._complete = function () {\n        if (this.isInnerStopped) {\n            _super.prototype._complete.call(this);\n        }\n        else {\n            this.unsubscribe();\n        }\n    };\n    SkipUntilSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n        this.hasValue = true;\n    };\n    SkipUntilSubscriber.prototype.notifyComplete = function () {\n        this.isInnerStopped = true;\n        if (this.isStopped) {\n            _super.prototype._complete.call(this);\n        }\n    };\n    return SkipUntilSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\n//# sourceMappingURL=skipUntil.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/skipUntil.js\n// module id = 1248\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = require('../Subscriber');\n/**\n * Returns an Observable that skips all items emitted by the source Observable as long as a specified condition holds\n * true, but emits all further source items as soon as the condition becomes false.\n *\n * <img src=\"./img/skipWhile.png\" width=\"100%\">\n *\n * @param {Function} predicate - a function to test each item emitted from the source Observable.\n * @return {Observable<T>} an Observable that begins emitting items emitted by the source Observable when the\n * specified predicate becomes false.\n * @method skipWhile\n * @owner Observable\n */\nfunction skipWhile(predicate) {\n    return this.lift(new SkipWhileOperator(predicate));\n}\nexports.skipWhile = skipWhile;\nvar SkipWhileOperator = (function () {\n    function SkipWhileOperator(predicate) {\n        this.predicate = predicate;\n    }\n    SkipWhileOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new SkipWhileSubscriber(subscriber, this.predicate));\n    };\n    return SkipWhileOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar SkipWhileSubscriber = (function (_super) {\n    __extends(SkipWhileSubscriber, _super);\n    function SkipWhileSubscriber(destination, predicate) {\n        _super.call(this, destination);\n        this.predicate = predicate;\n        this.skipping = true;\n        this.index = 0;\n    }\n    SkipWhileSubscriber.prototype._next = function (value) {\n        var destination = this.destination;\n        if (this.skipping) {\n            this.tryCallPredicate(value);\n        }\n        if (!this.skipping) {\n            destination.next(value);\n        }\n    };\n    SkipWhileSubscriber.prototype.tryCallPredicate = function (value) {\n        try {\n            var result = this.predicate(value, this.index++);\n            this.skipping = Boolean(result);\n        }\n        catch (err) {\n            this.destination.error(err);\n        }\n    };\n    return SkipWhileSubscriber;\n}(Subscriber_1.Subscriber));\n//# sourceMappingURL=skipWhile.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/skipWhile.js\n// module id = 1249\n// module chunks = 0","\"use strict\";\nvar ArrayObservable_1 = require('../observable/ArrayObservable');\nvar ScalarObservable_1 = require('../observable/ScalarObservable');\nvar EmptyObservable_1 = require('../observable/EmptyObservable');\nvar concat_1 = require('./concat');\nvar isScheduler_1 = require('../util/isScheduler');\n/* tslint:disable:max-line-length */\n/**\n * Returns an Observable that emits the items in a specified Iterable before it begins to emit items emitted by the\n * source Observable.\n *\n * <img src=\"./img/startWith.png\" width=\"100%\">\n *\n * @param {Values} an Iterable that contains the items you want the modified Observable to emit first.\n * @return {Observable} an Observable that emits the items in the specified Iterable and then emits the items\n * emitted by the source Observable.\n * @method startWith\n * @owner Observable\n */\nfunction startWith() {\n    var array = [];\n    for (var _i = 0; _i < arguments.length; _i++) {\n        array[_i - 0] = arguments[_i];\n    }\n    var scheduler = array[array.length - 1];\n    if (isScheduler_1.isScheduler(scheduler)) {\n        array.pop();\n    }\n    else {\n        scheduler = null;\n    }\n    var len = array.length;\n    if (len === 1) {\n        return concat_1.concatStatic(new ScalarObservable_1.ScalarObservable(array[0], scheduler), this);\n    }\n    else if (len > 1) {\n        return concat_1.concatStatic(new ArrayObservable_1.ArrayObservable(array, scheduler), this);\n    }\n    else {\n        return concat_1.concatStatic(new EmptyObservable_1.EmptyObservable(scheduler), this);\n    }\n}\nexports.startWith = startWith;\n//# sourceMappingURL=startWith.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/startWith.js\n// module id = 1250\n// module chunks = 0","\"use strict\";\nvar SubscribeOnObservable_1 = require('../observable/SubscribeOnObservable');\n/**\n * Asynchronously subscribes Observers to this Observable on the specified Scheduler.\n *\n * <img src=\"./img/subscribeOn.png\" width=\"100%\">\n *\n * @param {Scheduler} the Scheduler to perform subscription actions on.\n * @return {Observable<T>} the source Observable modified so that its subscriptions happen on the specified Scheduler\n .\n * @method subscribeOn\n * @owner Observable\n */\nfunction subscribeOn(scheduler, delay) {\n    if (delay === void 0) { delay = 0; }\n    return this.lift(new SubscribeOnOperator(scheduler, delay));\n}\nexports.subscribeOn = subscribeOn;\nvar SubscribeOnOperator = (function () {\n    function SubscribeOnOperator(scheduler, delay) {\n        this.scheduler = scheduler;\n        this.delay = delay;\n    }\n    SubscribeOnOperator.prototype.call = function (subscriber, source) {\n        return new SubscribeOnObservable_1.SubscribeOnObservable(source, this.delay, this.scheduler).subscribe(subscriber);\n    };\n    return SubscribeOnOperator;\n}());\n//# sourceMappingURL=subscribeOn.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/subscribeOn.js\n// module id = 1251\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar OuterSubscriber_1 = require('../OuterSubscriber');\nvar subscribeToResult_1 = require('../util/subscribeToResult');\n/**\n * Converts a higher-order Observable into a first-order Observable by\n * subscribing to only the most recently emitted of those inner Observables.\n *\n * <span class=\"informal\">Flattens an Observable-of-Observables by dropping the\n * previous inner Observable once a new one appears.</span>\n *\n * <img src=\"./img/switch.png\" width=\"100%\">\n *\n * `switch` subscribes to an Observable that emits Observables, also known as a\n * higher-order Observable. Each time it observes one of these emitted inner\n * Observables, the output Observable subscribes to the inner Observable and\n * begins emitting the items emitted by that. So far, it behaves\n * like {@link mergeAll}. However, when a new inner Observable is emitted,\n * `switch` unsubscribes from the earlier-emitted inner Observable and\n * subscribes to the new inner Observable and begins emitting items from it. It\n * continues to behave like this for subsequent inner Observables.\n *\n * @example <caption>Rerun an interval Observable on every click event</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * // Each click event is mapped to an Observable that ticks every second\n * var higherOrder = clicks.map((ev) => Rx.Observable.interval(1000));\n * var switched = higherOrder.switch();\n * // The outcome is that `switched` is essentially a timer that restarts\n * // on every click. The interval Observables from older clicks do not merge\n * // with the current interval Observable.\n * switched.subscribe(x => console.log(x));\n *\n * @see {@link combineAll}\n * @see {@link concatAll}\n * @see {@link exhaust}\n * @see {@link mergeAll}\n * @see {@link switchMap}\n * @see {@link switchMapTo}\n * @see {@link zipAll}\n *\n * @return {Observable<T>} An Observable that emits the items emitted by the\n * Observable most recently emitted by the source Observable.\n * @method switch\n * @name switch\n * @owner Observable\n */\nfunction _switch() {\n    return this.lift(new SwitchOperator());\n}\nexports._switch = _switch;\nvar SwitchOperator = (function () {\n    function SwitchOperator() {\n    }\n    SwitchOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new SwitchSubscriber(subscriber));\n    };\n    return SwitchOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar SwitchSubscriber = (function (_super) {\n    __extends(SwitchSubscriber, _super);\n    function SwitchSubscriber(destination) {\n        _super.call(this, destination);\n        this.active = 0;\n        this.hasCompleted = false;\n    }\n    SwitchSubscriber.prototype._next = function (value) {\n        this.unsubscribeInner();\n        this.active++;\n        this.add(this.innerSubscription = subscribeToResult_1.subscribeToResult(this, value));\n    };\n    SwitchSubscriber.prototype._complete = function () {\n        this.hasCompleted = true;\n        if (this.active === 0) {\n            this.destination.complete();\n        }\n    };\n    SwitchSubscriber.prototype.unsubscribeInner = function () {\n        this.active = this.active > 0 ? this.active - 1 : 0;\n        var innerSubscription = this.innerSubscription;\n        if (innerSubscription) {\n            innerSubscription.unsubscribe();\n            this.remove(innerSubscription);\n        }\n    };\n    SwitchSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n        this.destination.next(innerValue);\n    };\n    SwitchSubscriber.prototype.notifyError = function (err) {\n        this.destination.error(err);\n    };\n    SwitchSubscriber.prototype.notifyComplete = function () {\n        this.unsubscribeInner();\n        if (this.hasCompleted && this.active === 0) {\n            this.destination.complete();\n        }\n    };\n    return SwitchSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\n//# sourceMappingURL=switch.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/switch.js\n// module id = 1252\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar OuterSubscriber_1 = require('../OuterSubscriber');\nvar subscribeToResult_1 = require('../util/subscribeToResult');\n/* tslint:disable:max-line-length */\n/**\n * Projects each source value to an Observable which is merged in the output\n * Observable, emitting values only from the most recently projected Observable.\n *\n * <span class=\"informal\">Maps each value to an Observable, then flattens all of\n * these inner Observables using {@link switch}.</span>\n *\n * <img src=\"./img/switchMap.png\" width=\"100%\">\n *\n * Returns an Observable that emits items based on applying a function that you\n * supply to each item emitted by the source Observable, where that function\n * returns an (so-called \"inner\") Observable. Each time it observes one of these\n * inner Observables, the output Observable begins emitting the items emitted by\n * that inner Observable. When a new inner Observable is emitted, `switchMap`\n * stops emitting items from the earlier-emitted inner Observable and begins\n * emitting items from the new one. It continues to behave like this for\n * subsequent inner Observables.\n *\n * @example <caption>Rerun an interval Observable on every click event</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.switchMap((ev) => Rx.Observable.interval(1000));\n * result.subscribe(x => console.log(x));\n *\n * @see {@link concatMap}\n * @see {@link exhaustMap}\n * @see {@link mergeMap}\n * @see {@link switch}\n * @see {@link switchMapTo}\n *\n * @param {function(value: T, ?index: number): Observable} project A function\n * that, when applied to an item emitted by the source Observable, returns an\n * Observable.\n * @param {function(outerValue: T, innerValue: I, outerIndex: number, innerIndex: number): any} [resultSelector]\n * A function to produce the value on the output Observable based on the values\n * and the indices of the source (outer) emission and the inner Observable\n * emission. The arguments passed to this function are:\n * - `outerValue`: the value that came from the source\n * - `innerValue`: the value that came from the projected Observable\n * - `outerIndex`: the \"index\" of the value that came from the source\n * - `innerIndex`: the \"index\" of the value from the projected Observable\n * @return {Observable} An Observable that emits the result of applying the\n * projection function (and the optional `resultSelector`) to each item emitted\n * by the source Observable and taking only the values from the most recently\n * projected inner Observable.\n * @method switchMap\n * @owner Observable\n */\nfunction switchMap(project, resultSelector) {\n    return this.lift(new SwitchMapOperator(project, resultSelector));\n}\nexports.switchMap = switchMap;\nvar SwitchMapOperator = (function () {\n    function SwitchMapOperator(project, resultSelector) {\n        this.project = project;\n        this.resultSelector = resultSelector;\n    }\n    SwitchMapOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new SwitchMapSubscriber(subscriber, this.project, this.resultSelector));\n    };\n    return SwitchMapOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar SwitchMapSubscriber = (function (_super) {\n    __extends(SwitchMapSubscriber, _super);\n    function SwitchMapSubscriber(destination, project, resultSelector) {\n        _super.call(this, destination);\n        this.project = project;\n        this.resultSelector = resultSelector;\n        this.index = 0;\n    }\n    SwitchMapSubscriber.prototype._next = function (value) {\n        var result;\n        var index = this.index++;\n        try {\n            result = this.project(value, index);\n        }\n        catch (error) {\n            this.destination.error(error);\n            return;\n        }\n        this._innerSub(result, value, index);\n    };\n    SwitchMapSubscriber.prototype._innerSub = function (result, value, index) {\n        var innerSubscription = this.innerSubscription;\n        if (innerSubscription) {\n            innerSubscription.unsubscribe();\n        }\n        this.add(this.innerSubscription = subscribeToResult_1.subscribeToResult(this, result, value, index));\n    };\n    SwitchMapSubscriber.prototype._complete = function () {\n        var innerSubscription = this.innerSubscription;\n        if (!innerSubscription || innerSubscription.closed) {\n            _super.prototype._complete.call(this);\n        }\n    };\n    SwitchMapSubscriber.prototype._unsubscribe = function () {\n        this.innerSubscription = null;\n    };\n    SwitchMapSubscriber.prototype.notifyComplete = function (innerSub) {\n        this.remove(innerSub);\n        this.innerSubscription = null;\n        if (this.isStopped) {\n            _super.prototype._complete.call(this);\n        }\n    };\n    SwitchMapSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n        if (this.resultSelector) {\n            this._tryNotifyNext(outerValue, innerValue, outerIndex, innerIndex);\n        }\n        else {\n            this.destination.next(innerValue);\n        }\n    };\n    SwitchMapSubscriber.prototype._tryNotifyNext = function (outerValue, innerValue, outerIndex, innerIndex) {\n        var result;\n        try {\n            result = this.resultSelector(outerValue, innerValue, outerIndex, innerIndex);\n        }\n        catch (err) {\n            this.destination.error(err);\n            return;\n        }\n        this.destination.next(result);\n    };\n    return SwitchMapSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\n//# sourceMappingURL=switchMap.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/switchMap.js\n// module id = 1253\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar OuterSubscriber_1 = require('../OuterSubscriber');\nvar subscribeToResult_1 = require('../util/subscribeToResult');\n/* tslint:disable:max-line-length */\n/**\n * Projects each source value to the same Observable which is flattened multiple\n * times with {@link switch} in the output Observable.\n *\n * <span class=\"informal\">It's like {@link switchMap}, but maps each value\n * always to the same inner Observable.</span>\n *\n * <img src=\"./img/switchMapTo.png\" width=\"100%\">\n *\n * Maps each source value to the given Observable `innerObservable` regardless\n * of the source value, and then flattens those resulting Observables into one\n * single Observable, which is the output Observable. The output Observables\n * emits values only from the most recently emitted instance of\n * `innerObservable`.\n *\n * @example <caption>Rerun an interval Observable on every click event</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.switchMapTo(Rx.Observable.interval(1000));\n * result.subscribe(x => console.log(x));\n *\n * @see {@link concatMapTo}\n * @see {@link switch}\n * @see {@link switchMap}\n * @see {@link mergeMapTo}\n *\n * @param {Observable} innerObservable An Observable to replace each value from\n * the source Observable.\n * @param {function(outerValue: T, innerValue: I, outerIndex: number, innerIndex: number): any} [resultSelector]\n * A function to produce the value on the output Observable based on the values\n * and the indices of the source (outer) emission and the inner Observable\n * emission. The arguments passed to this function are:\n * - `outerValue`: the value that came from the source\n * - `innerValue`: the value that came from the projected Observable\n * - `outerIndex`: the \"index\" of the value that came from the source\n * - `innerIndex`: the \"index\" of the value from the projected Observable\n * @return {Observable} An Observable that emits items from the given\n * `innerObservable` every time a value is emitted on the source Observable.\n * @return {Observable} An Observable that emits items from the given\n * `innerObservable` (and optionally transformed through `resultSelector`) every\n * time a value is emitted on the source Observable, and taking only the values\n * from the most recently projected inner Observable.\n * @method switchMapTo\n * @owner Observable\n */\nfunction switchMapTo(innerObservable, resultSelector) {\n    return this.lift(new SwitchMapToOperator(innerObservable, resultSelector));\n}\nexports.switchMapTo = switchMapTo;\nvar SwitchMapToOperator = (function () {\n    function SwitchMapToOperator(observable, resultSelector) {\n        this.observable = observable;\n        this.resultSelector = resultSelector;\n    }\n    SwitchMapToOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new SwitchMapToSubscriber(subscriber, this.observable, this.resultSelector));\n    };\n    return SwitchMapToOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar SwitchMapToSubscriber = (function (_super) {\n    __extends(SwitchMapToSubscriber, _super);\n    function SwitchMapToSubscriber(destination, inner, resultSelector) {\n        _super.call(this, destination);\n        this.inner = inner;\n        this.resultSelector = resultSelector;\n        this.index = 0;\n    }\n    SwitchMapToSubscriber.prototype._next = function (value) {\n        var innerSubscription = this.innerSubscription;\n        if (innerSubscription) {\n            innerSubscription.unsubscribe();\n        }\n        this.add(this.innerSubscription = subscribeToResult_1.subscribeToResult(this, this.inner, value, this.index++));\n    };\n    SwitchMapToSubscriber.prototype._complete = function () {\n        var innerSubscription = this.innerSubscription;\n        if (!innerSubscription || innerSubscription.closed) {\n            _super.prototype._complete.call(this);\n        }\n    };\n    SwitchMapToSubscriber.prototype._unsubscribe = function () {\n        this.innerSubscription = null;\n    };\n    SwitchMapToSubscriber.prototype.notifyComplete = function (innerSub) {\n        this.remove(innerSub);\n        this.innerSubscription = null;\n        if (this.isStopped) {\n            _super.prototype._complete.call(this);\n        }\n    };\n    SwitchMapToSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n        var _a = this, resultSelector = _a.resultSelector, destination = _a.destination;\n        if (resultSelector) {\n            this.tryResultSelector(outerValue, innerValue, outerIndex, innerIndex);\n        }\n        else {\n            destination.next(innerValue);\n        }\n    };\n    SwitchMapToSubscriber.prototype.tryResultSelector = function (outerValue, innerValue, outerIndex, innerIndex) {\n        var _a = this, resultSelector = _a.resultSelector, destination = _a.destination;\n        var result;\n        try {\n            result = resultSelector(outerValue, innerValue, outerIndex, innerIndex);\n        }\n        catch (err) {\n            destination.error(err);\n            return;\n        }\n        destination.next(result);\n    };\n    return SwitchMapToSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\n//# sourceMappingURL=switchMapTo.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/switchMapTo.js\n// module id = 1254\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = require('../Subscriber');\nvar ArgumentOutOfRangeError_1 = require('../util/ArgumentOutOfRangeError');\nvar EmptyObservable_1 = require('../observable/EmptyObservable');\n/**\n * Emits only the first `count` values emitted by the source Observable.\n *\n * <span class=\"informal\">Takes the first `count` values from the source, then\n * completes.</span>\n *\n * <img src=\"./img/take.png\" width=\"100%\">\n *\n * `take` returns an Observable that emits only the first `count` values emitted\n * by the source Observable. If the source emits fewer than `count` values then\n * all of its values are emitted. After that, it completes, regardless if the\n * source completes.\n *\n * @example <caption>Take the first 5 seconds of an infinite 1-second interval Observable</caption>\n * var interval = Rx.Observable.interval(1000);\n * var five = interval.take(5);\n * five.subscribe(x => console.log(x));\n *\n * @see {@link takeLast}\n * @see {@link takeUntil}\n * @see {@link takeWhile}\n * @see {@link skip}\n *\n * @throws {ArgumentOutOfRangeError} When using `take(i)`, it delivers an\n * ArgumentOutOrRangeError to the Observer's `error` callback if `i < 0`.\n *\n * @param {number} count The maximum number of `next` values to emit.\n * @return {Observable<T>} An Observable that emits only the first `count`\n * values emitted by the source Observable, or all of the values from the source\n * if the source emits fewer than `count` values.\n * @method take\n * @owner Observable\n */\nfunction take(count) {\n    if (count === 0) {\n        return new EmptyObservable_1.EmptyObservable();\n    }\n    else {\n        return this.lift(new TakeOperator(count));\n    }\n}\nexports.take = take;\nvar TakeOperator = (function () {\n    function TakeOperator(total) {\n        this.total = total;\n        if (this.total < 0) {\n            throw new ArgumentOutOfRangeError_1.ArgumentOutOfRangeError;\n        }\n    }\n    TakeOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new TakeSubscriber(subscriber, this.total));\n    };\n    return TakeOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar TakeSubscriber = (function (_super) {\n    __extends(TakeSubscriber, _super);\n    function TakeSubscriber(destination, total) {\n        _super.call(this, destination);\n        this.total = total;\n        this.count = 0;\n    }\n    TakeSubscriber.prototype._next = function (value) {\n        var total = this.total;\n        var count = ++this.count;\n        if (count <= total) {\n            this.destination.next(value);\n            if (count === total) {\n                this.destination.complete();\n                this.unsubscribe();\n            }\n        }\n    };\n    return TakeSubscriber;\n}(Subscriber_1.Subscriber));\n//# sourceMappingURL=take.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/take.js\n// module id = 1255\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = require('../Subscriber');\nvar ArgumentOutOfRangeError_1 = require('../util/ArgumentOutOfRangeError');\nvar EmptyObservable_1 = require('../observable/EmptyObservable');\n/**\n * Emits only the last `count` values emitted by the source Observable.\n *\n * <span class=\"informal\">Remembers the latest `count` values, then emits those\n * only when the source completes.</span>\n *\n * <img src=\"./img/takeLast.png\" width=\"100%\">\n *\n * `takeLast` returns an Observable that emits at most the last `count` values\n * emitted by the source Observable. If the source emits fewer than `count`\n * values then all of its values are emitted. This operator must wait until the\n * `complete` notification emission from the source in order to emit the `next`\n * values on the output Observable, because otherwise it is impossible to know\n * whether or not more values will be emitted on the source. For this reason,\n * all values are emitted synchronously, followed by the complete notification.\n *\n * @example <caption>Take the last 3 values of an Observable with many values</caption>\n * var many = Rx.Observable.range(1, 100);\n * var lastThree = many.takeLast(3);\n * lastThree.subscribe(x => console.log(x));\n *\n * @see {@link take}\n * @see {@link takeUntil}\n * @see {@link takeWhile}\n * @see {@link skip}\n *\n * @throws {ArgumentOutOfRangeError} When using `takeLast(i)`, it delivers an\n * ArgumentOutOrRangeError to the Observer's `error` callback if `i < 0`.\n *\n * @param {number} count The maximum number of values to emit from the end of\n * the sequence of values emitted by the source Observable.\n * @return {Observable<T>} An Observable that emits at most the last count\n * values emitted by the source Observable.\n * @method takeLast\n * @owner Observable\n */\nfunction takeLast(count) {\n    if (count === 0) {\n        return new EmptyObservable_1.EmptyObservable();\n    }\n    else {\n        return this.lift(new TakeLastOperator(count));\n    }\n}\nexports.takeLast = takeLast;\nvar TakeLastOperator = (function () {\n    function TakeLastOperator(total) {\n        this.total = total;\n        if (this.total < 0) {\n            throw new ArgumentOutOfRangeError_1.ArgumentOutOfRangeError;\n        }\n    }\n    TakeLastOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new TakeLastSubscriber(subscriber, this.total));\n    };\n    return TakeLastOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar TakeLastSubscriber = (function (_super) {\n    __extends(TakeLastSubscriber, _super);\n    function TakeLastSubscriber(destination, total) {\n        _super.call(this, destination);\n        this.total = total;\n        this.ring = new Array();\n        this.count = 0;\n    }\n    TakeLastSubscriber.prototype._next = function (value) {\n        var ring = this.ring;\n        var total = this.total;\n        var count = this.count++;\n        if (ring.length < total) {\n            ring.push(value);\n        }\n        else {\n            var index = count % total;\n            ring[index] = value;\n        }\n    };\n    TakeLastSubscriber.prototype._complete = function () {\n        var destination = this.destination;\n        var count = this.count;\n        if (count > 0) {\n            var total = this.count >= this.total ? this.total : this.count;\n            var ring = this.ring;\n            for (var i = 0; i < total; i++) {\n                var idx = (count++) % total;\n                destination.next(ring[idx]);\n            }\n        }\n        destination.complete();\n    };\n    return TakeLastSubscriber;\n}(Subscriber_1.Subscriber));\n//# sourceMappingURL=takeLast.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/takeLast.js\n// module id = 1256\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar OuterSubscriber_1 = require('../OuterSubscriber');\nvar subscribeToResult_1 = require('../util/subscribeToResult');\n/**\n * Emits the values emitted by the source Observable until a `notifier`\n * Observable emits a value.\n *\n * <span class=\"informal\">Lets values pass until a second Observable,\n * `notifier`, emits something. Then, it completes.</span>\n *\n * <img src=\"./img/takeUntil.png\" width=\"100%\">\n *\n * `takeUntil` subscribes and begins mirroring the source Observable. It also\n * monitors a second Observable, `notifier` that you provide. If the `notifier`\n * emits a value or a complete notification, the output Observable stops\n * mirroring the source Observable and completes.\n *\n * @example <caption>Tick every second until the first click happens</caption>\n * var interval = Rx.Observable.interval(1000);\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = interval.takeUntil(clicks);\n * result.subscribe(x => console.log(x));\n *\n * @see {@link take}\n * @see {@link takeLast}\n * @see {@link takeWhile}\n * @see {@link skip}\n *\n * @param {Observable} notifier The Observable whose first emitted value will\n * cause the output Observable of `takeUntil` to stop emitting values from the\n * source Observable.\n * @return {Observable<T>} An Observable that emits the values from the source\n * Observable until such time as `notifier` emits its first value.\n * @method takeUntil\n * @owner Observable\n */\nfunction takeUntil(notifier) {\n    return this.lift(new TakeUntilOperator(notifier));\n}\nexports.takeUntil = takeUntil;\nvar TakeUntilOperator = (function () {\n    function TakeUntilOperator(notifier) {\n        this.notifier = notifier;\n    }\n    TakeUntilOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new TakeUntilSubscriber(subscriber, this.notifier));\n    };\n    return TakeUntilOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar TakeUntilSubscriber = (function (_super) {\n    __extends(TakeUntilSubscriber, _super);\n    function TakeUntilSubscriber(destination, notifier) {\n        _super.call(this, destination);\n        this.notifier = notifier;\n        this.add(subscribeToResult_1.subscribeToResult(this, notifier));\n    }\n    TakeUntilSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n        this.complete();\n    };\n    TakeUntilSubscriber.prototype.notifyComplete = function () {\n        // noop\n    };\n    return TakeUntilSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\n//# sourceMappingURL=takeUntil.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/takeUntil.js\n// module id = 1257\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = require('../Subscriber');\n/**\n * Emits values emitted by the source Observable so long as each value satisfies\n * the given `predicate`, and then completes as soon as this `predicate` is not\n * satisfied.\n *\n * <span class=\"informal\">Takes values from the source only while they pass the\n * condition given. When the first value does not satisfy, it completes.</span>\n *\n * <img src=\"./img/takeWhile.png\" width=\"100%\">\n *\n * `takeWhile` subscribes and begins mirroring the source Observable. Each value\n * emitted on the source is given to the `predicate` function which returns a\n * boolean, representing a condition to be satisfied by the source values. The\n * output Observable emits the source values until such time as the `predicate`\n * returns false, at which point `takeWhile` stops mirroring the source\n * Observable and completes the output Observable.\n *\n * @example <caption>Emit click events only while the clientX property is greater than 200</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.takeWhile(ev => ev.clientX > 200);\n * result.subscribe(x => console.log(x));\n *\n * @see {@link take}\n * @see {@link takeLast}\n * @see {@link takeUntil}\n * @see {@link skip}\n *\n * @param {function(value: T, index: number): boolean} predicate A function that\n * evaluates a value emitted by the source Observable and returns a boolean.\n * Also takes the (zero-based) index as the second argument.\n * @return {Observable<T>} An Observable that emits the values from the source\n * Observable so long as each value satisfies the condition defined by the\n * `predicate`, then completes.\n * @method takeWhile\n * @owner Observable\n */\nfunction takeWhile(predicate) {\n    return this.lift(new TakeWhileOperator(predicate));\n}\nexports.takeWhile = takeWhile;\nvar TakeWhileOperator = (function () {\n    function TakeWhileOperator(predicate) {\n        this.predicate = predicate;\n    }\n    TakeWhileOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new TakeWhileSubscriber(subscriber, this.predicate));\n    };\n    return TakeWhileOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar TakeWhileSubscriber = (function (_super) {\n    __extends(TakeWhileSubscriber, _super);\n    function TakeWhileSubscriber(destination, predicate) {\n        _super.call(this, destination);\n        this.predicate = predicate;\n        this.index = 0;\n    }\n    TakeWhileSubscriber.prototype._next = function (value) {\n        var destination = this.destination;\n        var result;\n        try {\n            result = this.predicate(value, this.index++);\n        }\n        catch (err) {\n            destination.error(err);\n            return;\n        }\n        this.nextOrComplete(value, result);\n    };\n    TakeWhileSubscriber.prototype.nextOrComplete = function (value, predicateResult) {\n        var destination = this.destination;\n        if (Boolean(predicateResult)) {\n            destination.next(value);\n        }\n        else {\n            destination.complete();\n        }\n    };\n    return TakeWhileSubscriber;\n}(Subscriber_1.Subscriber));\n//# sourceMappingURL=takeWhile.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/takeWhile.js\n// module id = 1258\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar OuterSubscriber_1 = require('../OuterSubscriber');\nvar subscribeToResult_1 = require('../util/subscribeToResult');\n/**\n * Emits a value from the source Observable, then ignores subsequent source\n * values for a duration determined by another Observable, then repeats this\n * process.\n *\n * <span class=\"informal\">It's like {@link throttleTime}, but the silencing\n * duration is determined by a second Observable.</span>\n *\n * <img src=\"./img/throttle.png\" width=\"100%\">\n *\n * `throttle` emits the source Observable values on the output Observable\n * when its internal timer is disabled, and ignores source values when the timer\n * is enabled. Initially, the timer is disabled. As soon as the first source\n * value arrives, it is forwarded to the output Observable, and then the timer\n * is enabled by calling the `durationSelector` function with the source value,\n * which returns the \"duration\" Observable. When the duration Observable emits a\n * value or completes, the timer is disabled, and this process repeats for the\n * next source value.\n *\n * @example <caption>Emit clicks at a rate of at most one click per second</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.throttle(ev => Rx.Observable.interval(1000));\n * result.subscribe(x => console.log(x));\n *\n * @see {@link audit}\n * @see {@link debounce}\n * @see {@link delayWhen}\n * @see {@link sample}\n * @see {@link throttleTime}\n *\n * @param {function(value: T): Observable|Promise} durationSelector A function\n * that receives a value from the source Observable, for computing the silencing\n * duration for each source value, returned as an Observable or a Promise.\n * @return {Observable<T>} An Observable that performs the throttle operation to\n * limit the rate of emissions from the source.\n * @method throttle\n * @owner Observable\n */\nfunction throttle(durationSelector) {\n    return this.lift(new ThrottleOperator(durationSelector));\n}\nexports.throttle = throttle;\nvar ThrottleOperator = (function () {\n    function ThrottleOperator(durationSelector) {\n        this.durationSelector = durationSelector;\n    }\n    ThrottleOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new ThrottleSubscriber(subscriber, this.durationSelector));\n    };\n    return ThrottleOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar ThrottleSubscriber = (function (_super) {\n    __extends(ThrottleSubscriber, _super);\n    function ThrottleSubscriber(destination, durationSelector) {\n        _super.call(this, destination);\n        this.destination = destination;\n        this.durationSelector = durationSelector;\n    }\n    ThrottleSubscriber.prototype._next = function (value) {\n        if (!this.throttled) {\n            this.tryDurationSelector(value);\n        }\n    };\n    ThrottleSubscriber.prototype.tryDurationSelector = function (value) {\n        var duration = null;\n        try {\n            duration = this.durationSelector(value);\n        }\n        catch (err) {\n            this.destination.error(err);\n            return;\n        }\n        this.emitAndThrottle(value, duration);\n    };\n    ThrottleSubscriber.prototype.emitAndThrottle = function (value, duration) {\n        this.add(this.throttled = subscribeToResult_1.subscribeToResult(this, duration));\n        this.destination.next(value);\n    };\n    ThrottleSubscriber.prototype._unsubscribe = function () {\n        var throttled = this.throttled;\n        if (throttled) {\n            this.remove(throttled);\n            this.throttled = null;\n            throttled.unsubscribe();\n        }\n    };\n    ThrottleSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n        this._unsubscribe();\n    };\n    ThrottleSubscriber.prototype.notifyComplete = function () {\n        this._unsubscribe();\n    };\n    return ThrottleSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\n//# sourceMappingURL=throttle.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/throttle.js\n// module id = 1259\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = require('../Subscriber');\nvar async_1 = require('../scheduler/async');\n/**\n * Emits a value from the source Observable, then ignores subsequent source\n * values for `duration` milliseconds, then repeats this process.\n *\n * <span class=\"informal\">Lets a value pass, then ignores source values for the\n * next `duration` milliseconds.</span>\n *\n * <img src=\"./img/throttleTime.png\" width=\"100%\">\n *\n * `throttleTime` emits the source Observable values on the output Observable\n * when its internal timer is disabled, and ignores source values when the timer\n * is enabled. Initially, the timer is disabled. As soon as the first source\n * value arrives, it is forwarded to the output Observable, and then the timer\n * is enabled. After `duration` milliseconds (or the time unit determined\n * internally by the optional `scheduler`) has passed, the timer is disabled,\n * and this process repeats for the next source value. Optionally takes a\n * {@link Scheduler} for managing timers.\n *\n * @example <caption>Emit clicks at a rate of at most one click per second</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.throttleTime(1000);\n * result.subscribe(x => console.log(x));\n *\n * @see {@link auditTime}\n * @see {@link debounceTime}\n * @see {@link delay}\n * @see {@link sampleTime}\n * @see {@link throttle}\n *\n * @param {number} duration Time to wait before emitting another value after\n * emitting the last value, measured in milliseconds or the time unit determined\n * internally by the optional `scheduler`.\n * @param {Scheduler} [scheduler=async] The {@link Scheduler} to use for\n * managing the timers that handle the sampling.\n * @return {Observable<T>} An Observable that performs the throttle operation to\n * limit the rate of emissions from the source.\n * @method throttleTime\n * @owner Observable\n */\nfunction throttleTime(duration, scheduler) {\n    if (scheduler === void 0) { scheduler = async_1.async; }\n    return this.lift(new ThrottleTimeOperator(duration, scheduler));\n}\nexports.throttleTime = throttleTime;\nvar ThrottleTimeOperator = (function () {\n    function ThrottleTimeOperator(duration, scheduler) {\n        this.duration = duration;\n        this.scheduler = scheduler;\n    }\n    ThrottleTimeOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new ThrottleTimeSubscriber(subscriber, this.duration, this.scheduler));\n    };\n    return ThrottleTimeOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar ThrottleTimeSubscriber = (function (_super) {\n    __extends(ThrottleTimeSubscriber, _super);\n    function ThrottleTimeSubscriber(destination, duration, scheduler) {\n        _super.call(this, destination);\n        this.duration = duration;\n        this.scheduler = scheduler;\n    }\n    ThrottleTimeSubscriber.prototype._next = function (value) {\n        if (!this.throttled) {\n            this.add(this.throttled = this.scheduler.schedule(dispatchNext, this.duration, { subscriber: this }));\n            this.destination.next(value);\n        }\n    };\n    ThrottleTimeSubscriber.prototype.clearThrottle = function () {\n        var throttled = this.throttled;\n        if (throttled) {\n            throttled.unsubscribe();\n            this.remove(throttled);\n            this.throttled = null;\n        }\n    };\n    return ThrottleTimeSubscriber;\n}(Subscriber_1.Subscriber));\nfunction dispatchNext(arg) {\n    var subscriber = arg.subscriber;\n    subscriber.clearThrottle();\n}\n//# sourceMappingURL=throttleTime.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/throttleTime.js\n// module id = 1260\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar async_1 = require('../scheduler/async');\nvar isDate_1 = require('../util/isDate');\nvar Subscriber_1 = require('../Subscriber');\nvar TimeoutError_1 = require('../util/TimeoutError');\n/**\n * @param {number} due\n * @param {Scheduler} [scheduler]\n * @return {Observable<R>|WebSocketSubject<T>|Observable<T>}\n * @method timeout\n * @owner Observable\n */\nfunction timeout(due, scheduler) {\n    if (scheduler === void 0) { scheduler = async_1.async; }\n    var absoluteTimeout = isDate_1.isDate(due);\n    var waitFor = absoluteTimeout ? (+due - scheduler.now()) : Math.abs(due);\n    return this.lift(new TimeoutOperator(waitFor, absoluteTimeout, scheduler, new TimeoutError_1.TimeoutError()));\n}\nexports.timeout = timeout;\nvar TimeoutOperator = (function () {\n    function TimeoutOperator(waitFor, absoluteTimeout, scheduler, errorInstance) {\n        this.waitFor = waitFor;\n        this.absoluteTimeout = absoluteTimeout;\n        this.scheduler = scheduler;\n        this.errorInstance = errorInstance;\n    }\n    TimeoutOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new TimeoutSubscriber(subscriber, this.absoluteTimeout, this.waitFor, this.scheduler, this.errorInstance));\n    };\n    return TimeoutOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar TimeoutSubscriber = (function (_super) {\n    __extends(TimeoutSubscriber, _super);\n    function TimeoutSubscriber(destination, absoluteTimeout, waitFor, scheduler, errorInstance) {\n        _super.call(this, destination);\n        this.absoluteTimeout = absoluteTimeout;\n        this.waitFor = waitFor;\n        this.scheduler = scheduler;\n        this.errorInstance = errorInstance;\n        this.index = 0;\n        this._previousIndex = 0;\n        this._hasCompleted = false;\n        this.scheduleTimeout();\n    }\n    Object.defineProperty(TimeoutSubscriber.prototype, \"previousIndex\", {\n        get: function () {\n            return this._previousIndex;\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(TimeoutSubscriber.prototype, \"hasCompleted\", {\n        get: function () {\n            return this._hasCompleted;\n        },\n        enumerable: true,\n        configurable: true\n    });\n    TimeoutSubscriber.dispatchTimeout = function (state) {\n        var source = state.subscriber;\n        var currentIndex = state.index;\n        if (!source.hasCompleted && source.previousIndex === currentIndex) {\n            source.notifyTimeout();\n        }\n    };\n    TimeoutSubscriber.prototype.scheduleTimeout = function () {\n        var currentIndex = this.index;\n        this.scheduler.schedule(TimeoutSubscriber.dispatchTimeout, this.waitFor, { subscriber: this, index: currentIndex });\n        this.index++;\n        this._previousIndex = currentIndex;\n    };\n    TimeoutSubscriber.prototype._next = function (value) {\n        this.destination.next(value);\n        if (!this.absoluteTimeout) {\n            this.scheduleTimeout();\n        }\n    };\n    TimeoutSubscriber.prototype._error = function (err) {\n        this.destination.error(err);\n        this._hasCompleted = true;\n    };\n    TimeoutSubscriber.prototype._complete = function () {\n        this.destination.complete();\n        this._hasCompleted = true;\n    };\n    TimeoutSubscriber.prototype.notifyTimeout = function () {\n        this.error(this.errorInstance);\n    };\n    return TimeoutSubscriber;\n}(Subscriber_1.Subscriber));\n//# sourceMappingURL=timeout.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/timeout.js\n// module id = 1261\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar async_1 = require('../scheduler/async');\nvar isDate_1 = require('../util/isDate');\nvar OuterSubscriber_1 = require('../OuterSubscriber');\nvar subscribeToResult_1 = require('../util/subscribeToResult');\n/* tslint:disable:max-line-length */\n/**\n * @param due\n * @param withObservable\n * @param scheduler\n * @return {Observable<R>|WebSocketSubject<T>|Observable<T>}\n * @method timeoutWith\n * @owner Observable\n */\nfunction timeoutWith(due, withObservable, scheduler) {\n    if (scheduler === void 0) { scheduler = async_1.async; }\n    var absoluteTimeout = isDate_1.isDate(due);\n    var waitFor = absoluteTimeout ? (+due - scheduler.now()) : Math.abs(due);\n    return this.lift(new TimeoutWithOperator(waitFor, absoluteTimeout, withObservable, scheduler));\n}\nexports.timeoutWith = timeoutWith;\nvar TimeoutWithOperator = (function () {\n    function TimeoutWithOperator(waitFor, absoluteTimeout, withObservable, scheduler) {\n        this.waitFor = waitFor;\n        this.absoluteTimeout = absoluteTimeout;\n        this.withObservable = withObservable;\n        this.scheduler = scheduler;\n    }\n    TimeoutWithOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new TimeoutWithSubscriber(subscriber, this.absoluteTimeout, this.waitFor, this.withObservable, this.scheduler));\n    };\n    return TimeoutWithOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar TimeoutWithSubscriber = (function (_super) {\n    __extends(TimeoutWithSubscriber, _super);\n    function TimeoutWithSubscriber(destination, absoluteTimeout, waitFor, withObservable, scheduler) {\n        _super.call(this);\n        this.destination = destination;\n        this.absoluteTimeout = absoluteTimeout;\n        this.waitFor = waitFor;\n        this.withObservable = withObservable;\n        this.scheduler = scheduler;\n        this.timeoutSubscription = undefined;\n        this.index = 0;\n        this._previousIndex = 0;\n        this._hasCompleted = false;\n        destination.add(this);\n        this.scheduleTimeout();\n    }\n    Object.defineProperty(TimeoutWithSubscriber.prototype, \"previousIndex\", {\n        get: function () {\n            return this._previousIndex;\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(TimeoutWithSubscriber.prototype, \"hasCompleted\", {\n        get: function () {\n            return this._hasCompleted;\n        },\n        enumerable: true,\n        configurable: true\n    });\n    TimeoutWithSubscriber.dispatchTimeout = function (state) {\n        var source = state.subscriber;\n        var currentIndex = state.index;\n        if (!source.hasCompleted && source.previousIndex === currentIndex) {\n            source.handleTimeout();\n        }\n    };\n    TimeoutWithSubscriber.prototype.scheduleTimeout = function () {\n        var currentIndex = this.index;\n        var timeoutState = { subscriber: this, index: currentIndex };\n        this.scheduler.schedule(TimeoutWithSubscriber.dispatchTimeout, this.waitFor, timeoutState);\n        this.index++;\n        this._previousIndex = currentIndex;\n    };\n    TimeoutWithSubscriber.prototype._next = function (value) {\n        this.destination.next(value);\n        if (!this.absoluteTimeout) {\n            this.scheduleTimeout();\n        }\n    };\n    TimeoutWithSubscriber.prototype._error = function (err) {\n        this.destination.error(err);\n        this._hasCompleted = true;\n    };\n    TimeoutWithSubscriber.prototype._complete = function () {\n        this.destination.complete();\n        this._hasCompleted = true;\n    };\n    TimeoutWithSubscriber.prototype.handleTimeout = function () {\n        if (!this.closed) {\n            var withObservable = this.withObservable;\n            this.unsubscribe();\n            this.destination.add(this.timeoutSubscription = subscribeToResult_1.subscribeToResult(this, withObservable));\n        }\n    };\n    return TimeoutWithSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\n//# sourceMappingURL=timeoutWith.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/timeoutWith.js\n// module id = 1262\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = require('../Subscriber');\n/**\n * @return {Observable<any[]>|WebSocketSubject<T>|Observable<T>}\n * @method toArray\n * @owner Observable\n */\nfunction toArray() {\n    return this.lift(new ToArrayOperator());\n}\nexports.toArray = toArray;\nvar ToArrayOperator = (function () {\n    function ToArrayOperator() {\n    }\n    ToArrayOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new ToArraySubscriber(subscriber));\n    };\n    return ToArrayOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar ToArraySubscriber = (function (_super) {\n    __extends(ToArraySubscriber, _super);\n    function ToArraySubscriber(destination) {\n        _super.call(this, destination);\n        this.array = [];\n    }\n    ToArraySubscriber.prototype._next = function (x) {\n        this.array.push(x);\n    };\n    ToArraySubscriber.prototype._complete = function () {\n        this.destination.next(this.array);\n        this.destination.complete();\n    };\n    return ToArraySubscriber;\n}(Subscriber_1.Subscriber));\n//# sourceMappingURL=toArray.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/toArray.js\n// module id = 1263\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subject_1 = require('../Subject');\nvar OuterSubscriber_1 = require('../OuterSubscriber');\nvar subscribeToResult_1 = require('../util/subscribeToResult');\n/**\n * Branch out the source Observable values as a nested Observable whenever\n * `windowBoundaries` emits.\n *\n * <span class=\"informal\">It's like {@link buffer}, but emits a nested Observable\n * instead of an array.</span>\n *\n * <img src=\"./img/window.png\" width=\"100%\">\n *\n * Returns an Observable that emits windows of items it collects from the source\n * Observable. The output Observable emits connected, non-overlapping\n * windows. It emits the current window and opens a new one whenever the\n * Observable `windowBoundaries` emits an item. Because each window is an\n * Observable, the output is a higher-order Observable.\n *\n * @example <caption>In every window of 1 second each, emit at most 2 click events</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var interval = Rx.Observable.interval(1000);\n * var result = clicks.window(interval)\n *   .map(win => win.take(2)) // each window has at most 2 emissions\n *   .mergeAll(); // flatten the Observable-of-Observables\n * result.subscribe(x => console.log(x));\n *\n * @see {@link windowCount}\n * @see {@link windowTime}\n * @see {@link windowToggle}\n * @see {@link windowWhen}\n * @see {@link buffer}\n *\n * @param {Observable<any>} windowBoundaries An Observable that completes the\n * previous window and starts a new window.\n * @return {Observable<Observable<T>>} An Observable of windows, which are\n * Observables emitting values of the source Observable.\n * @method window\n * @owner Observable\n */\nfunction window(windowBoundaries) {\n    return this.lift(new WindowOperator(windowBoundaries));\n}\nexports.window = window;\nvar WindowOperator = (function () {\n    function WindowOperator(windowBoundaries) {\n        this.windowBoundaries = windowBoundaries;\n    }\n    WindowOperator.prototype.call = function (subscriber, source) {\n        var windowSubscriber = new WindowSubscriber(subscriber);\n        var sourceSubscription = source.subscribe(windowSubscriber);\n        if (!sourceSubscription.closed) {\n            windowSubscriber.add(subscribeToResult_1.subscribeToResult(windowSubscriber, this.windowBoundaries));\n        }\n        return sourceSubscription;\n    };\n    return WindowOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar WindowSubscriber = (function (_super) {\n    __extends(WindowSubscriber, _super);\n    function WindowSubscriber(destination) {\n        _super.call(this, destination);\n        this.window = new Subject_1.Subject();\n        destination.next(this.window);\n    }\n    WindowSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n        this.openWindow();\n    };\n    WindowSubscriber.prototype.notifyError = function (error, innerSub) {\n        this._error(error);\n    };\n    WindowSubscriber.prototype.notifyComplete = function (innerSub) {\n        this._complete();\n    };\n    WindowSubscriber.prototype._next = function (value) {\n        this.window.next(value);\n    };\n    WindowSubscriber.prototype._error = function (err) {\n        this.window.error(err);\n        this.destination.error(err);\n    };\n    WindowSubscriber.prototype._complete = function () {\n        this.window.complete();\n        this.destination.complete();\n    };\n    WindowSubscriber.prototype._unsubscribe = function () {\n        this.window = null;\n    };\n    WindowSubscriber.prototype.openWindow = function () {\n        var prevWindow = this.window;\n        if (prevWindow) {\n            prevWindow.complete();\n        }\n        var destination = this.destination;\n        var newWindow = this.window = new Subject_1.Subject();\n        destination.next(newWindow);\n    };\n    return WindowSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\n//# sourceMappingURL=window.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/window.js\n// module id = 1264\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = require('../Subscriber');\nvar Subject_1 = require('../Subject');\n/**\n * Branch out the source Observable values as a nested Observable with each\n * nested Observable emitting at most `windowSize` values.\n *\n * <span class=\"informal\">It's like {@link bufferCount}, but emits a nested\n * Observable instead of an array.</span>\n *\n * <img src=\"./img/windowCount.png\" width=\"100%\">\n *\n * Returns an Observable that emits windows of items it collects from the source\n * Observable. The output Observable emits windows every `startWindowEvery`\n * items, each containing no more than `windowSize` items. When the source\n * Observable completes or encounters an error, the output Observable emits\n * the current window and propagates the notification from the source\n * Observable. If `startWindowEvery` is not provided, then new windows are\n * started immediately at the start of the source and when each window completes\n * with size `windowSize`.\n *\n * @example <caption>Ignore every 3rd click event, starting from the first one</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.windowCount(3)\n *   .map(win => win.skip(1)) // skip first of every 3 clicks\n *   .mergeAll(); // flatten the Observable-of-Observables\n * result.subscribe(x => console.log(x));\n *\n * @example <caption>Ignore every 3rd click event, starting from the third one</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.windowCount(2, 3)\n *   .mergeAll(); // flatten the Observable-of-Observables\n * result.subscribe(x => console.log(x));\n *\n * @see {@link window}\n * @see {@link windowTime}\n * @see {@link windowToggle}\n * @see {@link windowWhen}\n * @see {@link bufferCount}\n *\n * @param {number} windowSize The maximum number of values emitted by each\n * window.\n * @param {number} [startWindowEvery] Interval at which to start a new window.\n * For example if `startWindowEvery` is `2`, then a new window will be started\n * on every other value from the source. A new window is started at the\n * beginning of the source by default.\n * @return {Observable<Observable<T>>} An Observable of windows, which in turn\n * are Observable of values.\n * @method windowCount\n * @owner Observable\n */\nfunction windowCount(windowSize, startWindowEvery) {\n    if (startWindowEvery === void 0) { startWindowEvery = 0; }\n    return this.lift(new WindowCountOperator(windowSize, startWindowEvery));\n}\nexports.windowCount = windowCount;\nvar WindowCountOperator = (function () {\n    function WindowCountOperator(windowSize, startWindowEvery) {\n        this.windowSize = windowSize;\n        this.startWindowEvery = startWindowEvery;\n    }\n    WindowCountOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new WindowCountSubscriber(subscriber, this.windowSize, this.startWindowEvery));\n    };\n    return WindowCountOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar WindowCountSubscriber = (function (_super) {\n    __extends(WindowCountSubscriber, _super);\n    function WindowCountSubscriber(destination, windowSize, startWindowEvery) {\n        _super.call(this, destination);\n        this.destination = destination;\n        this.windowSize = windowSize;\n        this.startWindowEvery = startWindowEvery;\n        this.windows = [new Subject_1.Subject()];\n        this.count = 0;\n        destination.next(this.windows[0]);\n    }\n    WindowCountSubscriber.prototype._next = function (value) {\n        var startWindowEvery = (this.startWindowEvery > 0) ? this.startWindowEvery : this.windowSize;\n        var destination = this.destination;\n        var windowSize = this.windowSize;\n        var windows = this.windows;\n        var len = windows.length;\n        for (var i = 0; i < len && !this.closed; i++) {\n            windows[i].next(value);\n        }\n        var c = this.count - windowSize + 1;\n        if (c >= 0 && c % startWindowEvery === 0 && !this.closed) {\n            windows.shift().complete();\n        }\n        if (++this.count % startWindowEvery === 0 && !this.closed) {\n            var window_1 = new Subject_1.Subject();\n            windows.push(window_1);\n            destination.next(window_1);\n        }\n    };\n    WindowCountSubscriber.prototype._error = function (err) {\n        var windows = this.windows;\n        if (windows) {\n            while (windows.length > 0 && !this.closed) {\n                windows.shift().error(err);\n            }\n        }\n        this.destination.error(err);\n    };\n    WindowCountSubscriber.prototype._complete = function () {\n        var windows = this.windows;\n        if (windows) {\n            while (windows.length > 0 && !this.closed) {\n                windows.shift().complete();\n            }\n        }\n        this.destination.complete();\n    };\n    WindowCountSubscriber.prototype._unsubscribe = function () {\n        this.count = 0;\n        this.windows = null;\n    };\n    return WindowCountSubscriber;\n}(Subscriber_1.Subscriber));\n//# sourceMappingURL=windowCount.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/windowCount.js\n// module id = 1265\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subject_1 = require('../Subject');\nvar async_1 = require('../scheduler/async');\nvar Subscriber_1 = require('../Subscriber');\n/**\n * Branch out the source Observable values as a nested Observable periodically\n * in time.\n *\n * <span class=\"informal\">It's like {@link bufferTime}, but emits a nested\n * Observable instead of an array.</span>\n *\n * <img src=\"./img/windowTime.png\" width=\"100%\">\n *\n * Returns an Observable that emits windows of items it collects from the source\n * Observable. The output Observable starts a new window periodically, as\n * determined by the `windowCreationInterval` argument. It emits each window\n * after a fixed timespan, specified by the `windowTimeSpan` argument. When the\n * source Observable completes or encounters an error, the output Observable\n * emits the current window and propagates the notification from the source\n * Observable. If `windowCreationInterval` is not provided, the output\n * Observable starts a new window when the previous window of duration\n * `windowTimeSpan` completes.\n *\n * @example <caption>In every window of 1 second each, emit at most 2 click events</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.windowTime(1000)\n *   .map(win => win.take(2)) // each window has at most 2 emissions\n *   .mergeAll(); // flatten the Observable-of-Observables\n * result.subscribe(x => console.log(x));\n *\n * @example <caption>Every 5 seconds start a window 1 second long, and emit at most 2 click events per window</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.windowTime(1000, 5000)\n *   .map(win => win.take(2)) // each window has at most 2 emissions\n *   .mergeAll(); // flatten the Observable-of-Observables\n * result.subscribe(x => console.log(x));\n *\n * @see {@link window}\n * @see {@link windowCount}\n * @see {@link windowToggle}\n * @see {@link windowWhen}\n * @see {@link bufferTime}\n *\n * @param {number} windowTimeSpan The amount of time to fill each window.\n * @param {number} [windowCreationInterval] The interval at which to start new\n * windows.\n * @param {Scheduler} [scheduler=async] The scheduler on which to schedule the\n * intervals that determine window boundaries.\n * @return {Observable<Observable<T>>} An observable of windows, which in turn\n * are Observables.\n * @method windowTime\n * @owner Observable\n */\nfunction windowTime(windowTimeSpan, windowCreationInterval, scheduler) {\n    if (windowCreationInterval === void 0) { windowCreationInterval = null; }\n    if (scheduler === void 0) { scheduler = async_1.async; }\n    return this.lift(new WindowTimeOperator(windowTimeSpan, windowCreationInterval, scheduler));\n}\nexports.windowTime = windowTime;\nvar WindowTimeOperator = (function () {\n    function WindowTimeOperator(windowTimeSpan, windowCreationInterval, scheduler) {\n        this.windowTimeSpan = windowTimeSpan;\n        this.windowCreationInterval = windowCreationInterval;\n        this.scheduler = scheduler;\n    }\n    WindowTimeOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new WindowTimeSubscriber(subscriber, this.windowTimeSpan, this.windowCreationInterval, this.scheduler));\n    };\n    return WindowTimeOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar WindowTimeSubscriber = (function (_super) {\n    __extends(WindowTimeSubscriber, _super);\n    function WindowTimeSubscriber(destination, windowTimeSpan, windowCreationInterval, scheduler) {\n        _super.call(this, destination);\n        this.destination = destination;\n        this.windowTimeSpan = windowTimeSpan;\n        this.windowCreationInterval = windowCreationInterval;\n        this.scheduler = scheduler;\n        this.windows = [];\n        if (windowCreationInterval !== null && windowCreationInterval >= 0) {\n            var window_1 = this.openWindow();\n            var closeState = { subscriber: this, window: window_1, context: null };\n            var creationState = { windowTimeSpan: windowTimeSpan, windowCreationInterval: windowCreationInterval, subscriber: this, scheduler: scheduler };\n            this.add(scheduler.schedule(dispatchWindowClose, windowTimeSpan, closeState));\n            this.add(scheduler.schedule(dispatchWindowCreation, windowCreationInterval, creationState));\n        }\n        else {\n            var window_2 = this.openWindow();\n            var timeSpanOnlyState = { subscriber: this, window: window_2, windowTimeSpan: windowTimeSpan };\n            this.add(scheduler.schedule(dispatchWindowTimeSpanOnly, windowTimeSpan, timeSpanOnlyState));\n        }\n    }\n    WindowTimeSubscriber.prototype._next = function (value) {\n        var windows = this.windows;\n        var len = windows.length;\n        for (var i = 0; i < len; i++) {\n            var window_3 = windows[i];\n            if (!window_3.closed) {\n                window_3.next(value);\n            }\n        }\n    };\n    WindowTimeSubscriber.prototype._error = function (err) {\n        var windows = this.windows;\n        while (windows.length > 0) {\n            windows.shift().error(err);\n        }\n        this.destination.error(err);\n    };\n    WindowTimeSubscriber.prototype._complete = function () {\n        var windows = this.windows;\n        while (windows.length > 0) {\n            var window_4 = windows.shift();\n            if (!window_4.closed) {\n                window_4.complete();\n            }\n        }\n        this.destination.complete();\n    };\n    WindowTimeSubscriber.prototype.openWindow = function () {\n        var window = new Subject_1.Subject();\n        this.windows.push(window);\n        var destination = this.destination;\n        destination.next(window);\n        return window;\n    };\n    WindowTimeSubscriber.prototype.closeWindow = function (window) {\n        window.complete();\n        var windows = this.windows;\n        windows.splice(windows.indexOf(window), 1);\n    };\n    return WindowTimeSubscriber;\n}(Subscriber_1.Subscriber));\nfunction dispatchWindowTimeSpanOnly(state) {\n    var subscriber = state.subscriber, windowTimeSpan = state.windowTimeSpan, window = state.window;\n    if (window) {\n        window.complete();\n    }\n    state.window = subscriber.openWindow();\n    this.schedule(state, windowTimeSpan);\n}\nfunction dispatchWindowCreation(state) {\n    var windowTimeSpan = state.windowTimeSpan, subscriber = state.subscriber, scheduler = state.scheduler, windowCreationInterval = state.windowCreationInterval;\n    var window = subscriber.openWindow();\n    var action = this;\n    var context = { action: action, subscription: null };\n    var timeSpanState = { subscriber: subscriber, window: window, context: context };\n    context.subscription = scheduler.schedule(dispatchWindowClose, windowTimeSpan, timeSpanState);\n    action.add(context.subscription);\n    action.schedule(state, windowCreationInterval);\n}\nfunction dispatchWindowClose(arg) {\n    var subscriber = arg.subscriber, window = arg.window, context = arg.context;\n    if (context && context.action && context.subscription) {\n        context.action.remove(context.subscription);\n    }\n    subscriber.closeWindow(window);\n}\n//# sourceMappingURL=windowTime.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/windowTime.js\n// module id = 1266\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subject_1 = require('../Subject');\nvar Subscription_1 = require('../Subscription');\nvar tryCatch_1 = require('../util/tryCatch');\nvar errorObject_1 = require('../util/errorObject');\nvar OuterSubscriber_1 = require('../OuterSubscriber');\nvar subscribeToResult_1 = require('../util/subscribeToResult');\n/**\n * Branch out the source Observable values as a nested Observable starting from\n * an emission from `openings` and ending when the output of `closingSelector`\n * emits.\n *\n * <span class=\"informal\">It's like {@link bufferToggle}, but emits a nested\n * Observable instead of an array.</span>\n *\n * <img src=\"./img/windowToggle.png\" width=\"100%\">\n *\n * Returns an Observable that emits windows of items it collects from the source\n * Observable. The output Observable emits windows that contain those items\n * emitted by the source Observable between the time when the `openings`\n * Observable emits an item and when the Observable returned by\n * `closingSelector` emits an item.\n *\n * @example <caption>Every other second, emit the click events from the next 500ms</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var openings = Rx.Observable.interval(1000);\n * var result = clicks.windowToggle(openings, i =>\n *   i % 2 ? Rx.Observable.interval(500) : Rx.Observable.empty()\n * ).mergeAll();\n * result.subscribe(x => console.log(x));\n *\n * @see {@link window}\n * @see {@link windowCount}\n * @see {@link windowTime}\n * @see {@link windowWhen}\n * @see {@link bufferToggle}\n *\n * @param {Observable<O>} openings An observable of notifications to start new\n * windows.\n * @param {function(value: O): Observable} closingSelector A function that takes\n * the value emitted by the `openings` observable and returns an Observable,\n * which, when it emits (either `next` or `complete`), signals that the\n * associated window should complete.\n * @return {Observable<Observable<T>>} An observable of windows, which in turn\n * are Observables.\n * @method windowToggle\n * @owner Observable\n */\nfunction windowToggle(openings, closingSelector) {\n    return this.lift(new WindowToggleOperator(openings, closingSelector));\n}\nexports.windowToggle = windowToggle;\nvar WindowToggleOperator = (function () {\n    function WindowToggleOperator(openings, closingSelector) {\n        this.openings = openings;\n        this.closingSelector = closingSelector;\n    }\n    WindowToggleOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new WindowToggleSubscriber(subscriber, this.openings, this.closingSelector));\n    };\n    return WindowToggleOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar WindowToggleSubscriber = (function (_super) {\n    __extends(WindowToggleSubscriber, _super);\n    function WindowToggleSubscriber(destination, openings, closingSelector) {\n        _super.call(this, destination);\n        this.openings = openings;\n        this.closingSelector = closingSelector;\n        this.contexts = [];\n        this.add(this.openSubscription = subscribeToResult_1.subscribeToResult(this, openings, openings));\n    }\n    WindowToggleSubscriber.prototype._next = function (value) {\n        var contexts = this.contexts;\n        if (contexts) {\n            var len = contexts.length;\n            for (var i = 0; i < len; i++) {\n                contexts[i].window.next(value);\n            }\n        }\n    };\n    WindowToggleSubscriber.prototype._error = function (err) {\n        var contexts = this.contexts;\n        this.contexts = null;\n        if (contexts) {\n            var len = contexts.length;\n            var index = -1;\n            while (++index < len) {\n                var context = contexts[index];\n                context.window.error(err);\n                context.subscription.unsubscribe();\n            }\n        }\n        _super.prototype._error.call(this, err);\n    };\n    WindowToggleSubscriber.prototype._complete = function () {\n        var contexts = this.contexts;\n        this.contexts = null;\n        if (contexts) {\n            var len = contexts.length;\n            var index = -1;\n            while (++index < len) {\n                var context = contexts[index];\n                context.window.complete();\n                context.subscription.unsubscribe();\n            }\n        }\n        _super.prototype._complete.call(this);\n    };\n    WindowToggleSubscriber.prototype._unsubscribe = function () {\n        var contexts = this.contexts;\n        this.contexts = null;\n        if (contexts) {\n            var len = contexts.length;\n            var index = -1;\n            while (++index < len) {\n                var context = contexts[index];\n                context.window.unsubscribe();\n                context.subscription.unsubscribe();\n            }\n        }\n    };\n    WindowToggleSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n        if (outerValue === this.openings) {\n            var closingSelector = this.closingSelector;\n            var closingNotifier = tryCatch_1.tryCatch(closingSelector)(innerValue);\n            if (closingNotifier === errorObject_1.errorObject) {\n                return this.error(errorObject_1.errorObject.e);\n            }\n            else {\n                var window_1 = new Subject_1.Subject();\n                var subscription = new Subscription_1.Subscription();\n                var context = { window: window_1, subscription: subscription };\n                this.contexts.push(context);\n                var innerSubscription = subscribeToResult_1.subscribeToResult(this, closingNotifier, context);\n                if (innerSubscription.closed) {\n                    this.closeWindow(this.contexts.length - 1);\n                }\n                else {\n                    innerSubscription.context = context;\n                    subscription.add(innerSubscription);\n                }\n                this.destination.next(window_1);\n            }\n        }\n        else {\n            this.closeWindow(this.contexts.indexOf(outerValue));\n        }\n    };\n    WindowToggleSubscriber.prototype.notifyError = function (err) {\n        this.error(err);\n    };\n    WindowToggleSubscriber.prototype.notifyComplete = function (inner) {\n        if (inner !== this.openSubscription) {\n            this.closeWindow(this.contexts.indexOf(inner.context));\n        }\n    };\n    WindowToggleSubscriber.prototype.closeWindow = function (index) {\n        if (index === -1) {\n            return;\n        }\n        var contexts = this.contexts;\n        var context = contexts[index];\n        var window = context.window, subscription = context.subscription;\n        contexts.splice(index, 1);\n        window.complete();\n        subscription.unsubscribe();\n    };\n    return WindowToggleSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\n//# sourceMappingURL=windowToggle.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/windowToggle.js\n// module id = 1267\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subject_1 = require('../Subject');\nvar tryCatch_1 = require('../util/tryCatch');\nvar errorObject_1 = require('../util/errorObject');\nvar OuterSubscriber_1 = require('../OuterSubscriber');\nvar subscribeToResult_1 = require('../util/subscribeToResult');\n/**\n * Branch out the source Observable values as a nested Observable using a\n * factory function of closing Observables to determine when to start a new\n * window.\n *\n * <span class=\"informal\">It's like {@link bufferWhen}, but emits a nested\n * Observable instead of an array.</span>\n *\n * <img src=\"./img/windowWhen.png\" width=\"100%\">\n *\n * Returns an Observable that emits windows of items it collects from the source\n * Observable. The output Observable emits connected, non-overlapping windows.\n * It emits the current window and opens a new one whenever the Observable\n * produced by the specified `closingSelector` function emits an item. The first\n * window is opened immediately when subscribing to the output Observable.\n *\n * @example <caption>Emit only the first two clicks events in every window of [1-5] random seconds</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks\n *   .windowWhen(() => Rx.Observable.interval(1000 + Math.random() * 4000))\n *   .map(win => win.take(2)) // each window has at most 2 emissions\n *   .mergeAll(); // flatten the Observable-of-Observables\n * result.subscribe(x => console.log(x));\n *\n * @see {@link window}\n * @see {@link windowCount}\n * @see {@link windowTime}\n * @see {@link windowToggle}\n * @see {@link bufferWhen}\n *\n * @param {function(): Observable} closingSelector A function that takes no\n * arguments and returns an Observable that signals (on either `next` or\n * `complete`) when to close the previous window and start a new one.\n * @return {Observable<Observable<T>>} An observable of windows, which in turn\n * are Observables.\n * @method windowWhen\n * @owner Observable\n */\nfunction windowWhen(closingSelector) {\n    return this.lift(new WindowOperator(closingSelector));\n}\nexports.windowWhen = windowWhen;\nvar WindowOperator = (function () {\n    function WindowOperator(closingSelector) {\n        this.closingSelector = closingSelector;\n    }\n    WindowOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new WindowSubscriber(subscriber, this.closingSelector));\n    };\n    return WindowOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar WindowSubscriber = (function (_super) {\n    __extends(WindowSubscriber, _super);\n    function WindowSubscriber(destination, closingSelector) {\n        _super.call(this, destination);\n        this.destination = destination;\n        this.closingSelector = closingSelector;\n        this.openWindow();\n    }\n    WindowSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n        this.openWindow(innerSub);\n    };\n    WindowSubscriber.prototype.notifyError = function (error, innerSub) {\n        this._error(error);\n    };\n    WindowSubscriber.prototype.notifyComplete = function (innerSub) {\n        this.openWindow(innerSub);\n    };\n    WindowSubscriber.prototype._next = function (value) {\n        this.window.next(value);\n    };\n    WindowSubscriber.prototype._error = function (err) {\n        this.window.error(err);\n        this.destination.error(err);\n        this.unsubscribeClosingNotification();\n    };\n    WindowSubscriber.prototype._complete = function () {\n        this.window.complete();\n        this.destination.complete();\n        this.unsubscribeClosingNotification();\n    };\n    WindowSubscriber.prototype.unsubscribeClosingNotification = function () {\n        if (this.closingNotification) {\n            this.closingNotification.unsubscribe();\n        }\n    };\n    WindowSubscriber.prototype.openWindow = function (innerSub) {\n        if (innerSub === void 0) { innerSub = null; }\n        if (innerSub) {\n            this.remove(innerSub);\n            innerSub.unsubscribe();\n        }\n        var prevWindow = this.window;\n        if (prevWindow) {\n            prevWindow.complete();\n        }\n        var window = this.window = new Subject_1.Subject();\n        this.destination.next(window);\n        var closingNotifier = tryCatch_1.tryCatch(this.closingSelector)();\n        if (closingNotifier === errorObject_1.errorObject) {\n            var err = errorObject_1.errorObject.e;\n            this.destination.error(err);\n            this.window.error(err);\n        }\n        else {\n            this.add(this.closingNotification = subscribeToResult_1.subscribeToResult(this, closingNotifier));\n        }\n    };\n    return WindowSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\n//# sourceMappingURL=windowWhen.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/windowWhen.js\n// module id = 1268\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar OuterSubscriber_1 = require('../OuterSubscriber');\nvar subscribeToResult_1 = require('../util/subscribeToResult');\n/* tslint:disable:max-line-length */\n/**\n * Combines the source Observable with other Observables to create an Observable\n * whose values are calculated from the latest values of each, only when the\n * source emits.\n *\n * <span class=\"informal\">Whenever the source Observable emits a value, it\n * computes a formula using that value plus the latest values from other input\n * Observables, then emits the output of that formula.</span>\n *\n * <img src=\"./img/withLatestFrom.png\" width=\"100%\">\n *\n * `withLatestFrom` combines each value from the source Observable (the\n * instance) with the latest values from the other input Observables only when\n * the source emits a value, optionally using a `project` function to determine\n * the value to be emitted on the output Observable. All input Observables must\n * emit at least one value before the output Observable will emit a value.\n *\n * @example <caption>On every click event, emit an array with the latest timer event plus the click event</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var timer = Rx.Observable.interval(1000);\n * var result = clicks.withLatestFrom(timer);\n * result.subscribe(x => console.log(x));\n *\n * @see {@link combineLatest}\n *\n * @param {Observable} other An input Observable to combine with the source\n * Observable. More than one input Observables may be given as argument.\n * @param {Function} [project] Projection function for combining values\n * together. Receives all values in order of the Observables passed, where the\n * first parameter is a value from the source Observable. (e.g.\n * `a.withLatestFrom(b, c, (a1, b1, c1) => a1 + b1 + c1)`). If this is not\n * passed, arrays will be emitted on the output Observable.\n * @return {Observable} An Observable of projected values from the most recent\n * values from each input Observable, or an array of the most recent values from\n * each input Observable.\n * @method withLatestFrom\n * @owner Observable\n */\nfunction withLatestFrom() {\n    var args = [];\n    for (var _i = 0; _i < arguments.length; _i++) {\n        args[_i - 0] = arguments[_i];\n    }\n    var project;\n    if (typeof args[args.length - 1] === 'function') {\n        project = args.pop();\n    }\n    var observables = args;\n    return this.lift(new WithLatestFromOperator(observables, project));\n}\nexports.withLatestFrom = withLatestFrom;\nvar WithLatestFromOperator = (function () {\n    function WithLatestFromOperator(observables, project) {\n        this.observables = observables;\n        this.project = project;\n    }\n    WithLatestFromOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new WithLatestFromSubscriber(subscriber, this.observables, this.project));\n    };\n    return WithLatestFromOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar WithLatestFromSubscriber = (function (_super) {\n    __extends(WithLatestFromSubscriber, _super);\n    function WithLatestFromSubscriber(destination, observables, project) {\n        _super.call(this, destination);\n        this.observables = observables;\n        this.project = project;\n        this.toRespond = [];\n        var len = observables.length;\n        this.values = new Array(len);\n        for (var i = 0; i < len; i++) {\n            this.toRespond.push(i);\n        }\n        for (var i = 0; i < len; i++) {\n            var observable = observables[i];\n            this.add(subscribeToResult_1.subscribeToResult(this, observable, observable, i));\n        }\n    }\n    WithLatestFromSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n        this.values[outerIndex] = innerValue;\n        var toRespond = this.toRespond;\n        if (toRespond.length > 0) {\n            var found = toRespond.indexOf(outerIndex);\n            if (found !== -1) {\n                toRespond.splice(found, 1);\n            }\n        }\n    };\n    WithLatestFromSubscriber.prototype.notifyComplete = function () {\n        // noop\n    };\n    WithLatestFromSubscriber.prototype._next = function (value) {\n        if (this.toRespond.length === 0) {\n            var args = [value].concat(this.values);\n            if (this.project) {\n                this._tryProject(args);\n            }\n            else {\n                this.destination.next(args);\n            }\n        }\n    };\n    WithLatestFromSubscriber.prototype._tryProject = function (args) {\n        var result;\n        try {\n            result = this.project.apply(this, args);\n        }\n        catch (err) {\n            this.destination.error(err);\n            return;\n        }\n        this.destination.next(result);\n    };\n    return WithLatestFromSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\n//# sourceMappingURL=withLatestFrom.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/withLatestFrom.js\n// module id = 1269\n// module chunks = 0","\"use strict\";\nvar zip_1 = require('./zip');\n/**\n * @param project\n * @return {Observable<R>|WebSocketSubject<T>|Observable<T>}\n * @method zipAll\n * @owner Observable\n */\nfunction zipAll(project) {\n    return this.lift(new zip_1.ZipOperator(project));\n}\nexports.zipAll = zipAll;\n//# sourceMappingURL=zipAll.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/zipAll.js\n// module id = 1270\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscription_1 = require('../Subscription');\n/**\n * A unit of work to be executed in a {@link Scheduler}. An action is typically\n * created from within a Scheduler and an RxJS user does not need to concern\n * themselves about creating and manipulating an Action.\n *\n * ```ts\n * class Action<T> extends Subscription {\n *   new (scheduler: Scheduler, work: (state?: T) => void);\n *   schedule(state?: T, delay: number = 0): Subscription;\n * }\n * ```\n *\n * @class Action<T>\n */\nvar Action = (function (_super) {\n    __extends(Action, _super);\n    function Action(scheduler, work) {\n        _super.call(this);\n    }\n    /**\n     * Schedules this action on its parent Scheduler for execution. May be passed\n     * some context object, `state`. May happen at some point in the future,\n     * according to the `delay` parameter, if specified.\n     * @param {T} [state] Some contextual data that the `work` function uses when\n     * called by the Scheduler.\n     * @param {number} [delay] Time to wait before executing the work, where the\n     * time unit is implicit and defined by the Scheduler.\n     * @return {void}\n     */\n    Action.prototype.schedule = function (state, delay) {\n        if (delay === void 0) { delay = 0; }\n        return this;\n    };\n    return Action;\n}(Subscription_1.Subscription));\nexports.Action = Action;\n//# sourceMappingURL=Action.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/scheduler/Action.js\n// module id = 1271\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar AsyncAction_1 = require('./AsyncAction');\nvar AnimationFrame_1 = require('../util/AnimationFrame');\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar AnimationFrameAction = (function (_super) {\n    __extends(AnimationFrameAction, _super);\n    function AnimationFrameAction(scheduler, work) {\n        _super.call(this, scheduler, work);\n        this.scheduler = scheduler;\n        this.work = work;\n    }\n    AnimationFrameAction.prototype.requestAsyncId = function (scheduler, id, delay) {\n        if (delay === void 0) { delay = 0; }\n        // If delay is greater than 0, request as an async action.\n        if (delay !== null && delay > 0) {\n            return _super.prototype.requestAsyncId.call(this, scheduler, id, delay);\n        }\n        // Push the action to the end of the scheduler queue.\n        scheduler.actions.push(this);\n        // If an animation frame has already been requested, don't request another\n        // one. If an animation frame hasn't been requested yet, request one. Return\n        // the current animation frame request id.\n        return scheduler.scheduled || (scheduler.scheduled = AnimationFrame_1.AnimationFrame.requestAnimationFrame(scheduler.flush.bind(scheduler, null)));\n    };\n    AnimationFrameAction.prototype.recycleAsyncId = function (scheduler, id, delay) {\n        if (delay === void 0) { delay = 0; }\n        // If delay exists and is greater than 0, or if the delay is null (the\n        // action wasn't rescheduled) but was originally scheduled as an async\n        // action, then recycle as an async action.\n        if ((delay !== null && delay > 0) || (delay === null && this.delay > 0)) {\n            return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay);\n        }\n        // If the scheduler queue is empty, cancel the requested animation frame and\n        // set the scheduled flag to undefined so the next AnimationFrameAction will\n        // request its own.\n        if (scheduler.actions.length === 0) {\n            AnimationFrame_1.AnimationFrame.cancelAnimationFrame(id);\n            scheduler.scheduled = undefined;\n        }\n        // Return undefined so the action knows to request a new async id if it's rescheduled.\n        return undefined;\n    };\n    return AnimationFrameAction;\n}(AsyncAction_1.AsyncAction));\nexports.AnimationFrameAction = AnimationFrameAction;\n//# sourceMappingURL=AnimationFrameAction.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/scheduler/AnimationFrameAction.js\n// module id = 1272\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar AsyncScheduler_1 = require('./AsyncScheduler');\nvar AnimationFrameScheduler = (function (_super) {\n    __extends(AnimationFrameScheduler, _super);\n    function AnimationFrameScheduler() {\n        _super.apply(this, arguments);\n    }\n    AnimationFrameScheduler.prototype.flush = function (action) {\n        this.active = true;\n        this.scheduled = undefined;\n        var actions = this.actions;\n        var error;\n        var index = -1;\n        var count = actions.length;\n        action = action || actions.shift();\n        do {\n            if (error = action.execute(action.state, action.delay)) {\n                break;\n            }\n        } while (++index < count && (action = actions.shift()));\n        this.active = false;\n        if (error) {\n            while (++index < count && (action = actions.shift())) {\n                action.unsubscribe();\n            }\n            throw error;\n        }\n    };\n    return AnimationFrameScheduler;\n}(AsyncScheduler_1.AsyncScheduler));\nexports.AnimationFrameScheduler = AnimationFrameScheduler;\n//# sourceMappingURL=AnimationFrameScheduler.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/scheduler/AnimationFrameScheduler.js\n// module id = 1273\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Immediate_1 = require('../util/Immediate');\nvar AsyncAction_1 = require('./AsyncAction');\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar AsapAction = (function (_super) {\n    __extends(AsapAction, _super);\n    function AsapAction(scheduler, work) {\n        _super.call(this, scheduler, work);\n        this.scheduler = scheduler;\n        this.work = work;\n    }\n    AsapAction.prototype.requestAsyncId = function (scheduler, id, delay) {\n        if (delay === void 0) { delay = 0; }\n        // If delay is greater than 0, request as an async action.\n        if (delay !== null && delay > 0) {\n            return _super.prototype.requestAsyncId.call(this, scheduler, id, delay);\n        }\n        // Push the action to the end of the scheduler queue.\n        scheduler.actions.push(this);\n        // If a microtask has already been scheduled, don't schedule another\n        // one. If a microtask hasn't been scheduled yet, schedule one now. Return\n        // the current scheduled microtask id.\n        return scheduler.scheduled || (scheduler.scheduled = Immediate_1.Immediate.setImmediate(scheduler.flush.bind(scheduler, null)));\n    };\n    AsapAction.prototype.recycleAsyncId = function (scheduler, id, delay) {\n        if (delay === void 0) { delay = 0; }\n        // If delay exists and is greater than 0, or if the delay is null (the\n        // action wasn't rescheduled) but was originally scheduled as an async\n        // action, then recycle as an async action.\n        if ((delay !== null && delay > 0) || (delay === null && this.delay > 0)) {\n            return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay);\n        }\n        // If the scheduler queue is empty, cancel the requested microtask and\n        // set the scheduled flag to undefined so the next AsapAction will schedule\n        // its own.\n        if (scheduler.actions.length === 0) {\n            Immediate_1.Immediate.clearImmediate(id);\n            scheduler.scheduled = undefined;\n        }\n        // Return undefined so the action knows to request a new async id if it's rescheduled.\n        return undefined;\n    };\n    return AsapAction;\n}(AsyncAction_1.AsyncAction));\nexports.AsapAction = AsapAction;\n//# sourceMappingURL=AsapAction.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/scheduler/AsapAction.js\n// module id = 1274\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar AsyncScheduler_1 = require('./AsyncScheduler');\nvar AsapScheduler = (function (_super) {\n    __extends(AsapScheduler, _super);\n    function AsapScheduler() {\n        _super.apply(this, arguments);\n    }\n    AsapScheduler.prototype.flush = function (action) {\n        this.active = true;\n        this.scheduled = undefined;\n        var actions = this.actions;\n        var error;\n        var index = -1;\n        var count = actions.length;\n        action = action || actions.shift();\n        do {\n            if (error = action.execute(action.state, action.delay)) {\n                break;\n            }\n        } while (++index < count && (action = actions.shift()));\n        this.active = false;\n        if (error) {\n            while (++index < count && (action = actions.shift())) {\n                action.unsubscribe();\n            }\n            throw error;\n        }\n    };\n    return AsapScheduler;\n}(AsyncScheduler_1.AsyncScheduler));\nexports.AsapScheduler = AsapScheduler;\n//# sourceMappingURL=AsapScheduler.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/scheduler/AsapScheduler.js\n// module id = 1275\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar AsyncAction_1 = require('./AsyncAction');\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar QueueAction = (function (_super) {\n    __extends(QueueAction, _super);\n    function QueueAction(scheduler, work) {\n        _super.call(this, scheduler, work);\n        this.scheduler = scheduler;\n        this.work = work;\n    }\n    QueueAction.prototype.schedule = function (state, delay) {\n        if (delay === void 0) { delay = 0; }\n        if (delay > 0) {\n            return _super.prototype.schedule.call(this, state, delay);\n        }\n        this.delay = delay;\n        this.state = state;\n        this.scheduler.flush(this);\n        return this;\n    };\n    QueueAction.prototype.execute = function (state, delay) {\n        return (delay > 0 || this.closed) ?\n            _super.prototype.execute.call(this, state, delay) :\n            this._execute(state, delay);\n    };\n    QueueAction.prototype.requestAsyncId = function (scheduler, id, delay) {\n        if (delay === void 0) { delay = 0; }\n        // If delay exists and is greater than 0, or if the delay is null (the\n        // action wasn't rescheduled) but was originally scheduled as an async\n        // action, then recycle as an async action.\n        if ((delay !== null && delay > 0) || (delay === null && this.delay > 0)) {\n            return _super.prototype.requestAsyncId.call(this, scheduler, id, delay);\n        }\n        // Otherwise flush the scheduler starting with this action.\n        return scheduler.flush(this);\n    };\n    return QueueAction;\n}(AsyncAction_1.AsyncAction));\nexports.QueueAction = QueueAction;\n//# sourceMappingURL=QueueAction.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/scheduler/QueueAction.js\n// module id = 1276\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar AsyncScheduler_1 = require('./AsyncScheduler');\nvar QueueScheduler = (function (_super) {\n    __extends(QueueScheduler, _super);\n    function QueueScheduler() {\n        _super.apply(this, arguments);\n    }\n    return QueueScheduler;\n}(AsyncScheduler_1.AsyncScheduler));\nexports.QueueScheduler = QueueScheduler;\n//# sourceMappingURL=QueueScheduler.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/scheduler/QueueScheduler.js\n// module id = 1277\n// module chunks = 0","\"use strict\";\nvar AnimationFrameAction_1 = require('./AnimationFrameAction');\nvar AnimationFrameScheduler_1 = require('./AnimationFrameScheduler');\nexports.animationFrame = new AnimationFrameScheduler_1.AnimationFrameScheduler(AnimationFrameAction_1.AnimationFrameAction);\n//# sourceMappingURL=animationFrame.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/scheduler/animationFrame.js\n// module id = 1278\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Observable_1 = require('../Observable');\nvar Subscription_1 = require('../Subscription');\nvar SubscriptionLoggable_1 = require('./SubscriptionLoggable');\nvar applyMixins_1 = require('../util/applyMixins');\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar ColdObservable = (function (_super) {\n    __extends(ColdObservable, _super);\n    function ColdObservable(messages, scheduler) {\n        _super.call(this, function (subscriber) {\n            var observable = this;\n            var index = observable.logSubscribedFrame();\n            subscriber.add(new Subscription_1.Subscription(function () {\n                observable.logUnsubscribedFrame(index);\n            }));\n            observable.scheduleMessages(subscriber);\n            return subscriber;\n        });\n        this.messages = messages;\n        this.subscriptions = [];\n        this.scheduler = scheduler;\n    }\n    ColdObservable.prototype.scheduleMessages = function (subscriber) {\n        var messagesLength = this.messages.length;\n        for (var i = 0; i < messagesLength; i++) {\n            var message = this.messages[i];\n            subscriber.add(this.scheduler.schedule(function (_a) {\n                var message = _a.message, subscriber = _a.subscriber;\n                message.notification.observe(subscriber);\n            }, message.frame, { message: message, subscriber: subscriber }));\n        }\n    };\n    return ColdObservable;\n}(Observable_1.Observable));\nexports.ColdObservable = ColdObservable;\napplyMixins_1.applyMixins(ColdObservable, [SubscriptionLoggable_1.SubscriptionLoggable]);\n//# sourceMappingURL=ColdObservable.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/testing/ColdObservable.js\n// module id = 1279\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subject_1 = require('../Subject');\nvar Subscription_1 = require('../Subscription');\nvar SubscriptionLoggable_1 = require('./SubscriptionLoggable');\nvar applyMixins_1 = require('../util/applyMixins');\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar HotObservable = (function (_super) {\n    __extends(HotObservable, _super);\n    function HotObservable(messages, scheduler) {\n        _super.call(this);\n        this.messages = messages;\n        this.subscriptions = [];\n        this.scheduler = scheduler;\n    }\n    HotObservable.prototype._subscribe = function (subscriber) {\n        var subject = this;\n        var index = subject.logSubscribedFrame();\n        subscriber.add(new Subscription_1.Subscription(function () {\n            subject.logUnsubscribedFrame(index);\n        }));\n        return _super.prototype._subscribe.call(this, subscriber);\n    };\n    HotObservable.prototype.setup = function () {\n        var subject = this;\n        var messagesLength = subject.messages.length;\n        /* tslint:disable:no-var-keyword */\n        for (var i = 0; i < messagesLength; i++) {\n            (function () {\n                var message = subject.messages[i];\n                /* tslint:enable */\n                subject.scheduler.schedule(function () { message.notification.observe(subject); }, message.frame);\n            })();\n        }\n    };\n    return HotObservable;\n}(Subject_1.Subject));\nexports.HotObservable = HotObservable;\napplyMixins_1.applyMixins(HotObservable, [SubscriptionLoggable_1.SubscriptionLoggable]);\n//# sourceMappingURL=HotObservable.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/testing/HotObservable.js\n// module id = 1280\n// module chunks = 0","\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Observable_1 = require('../Observable');\nvar Notification_1 = require('../Notification');\nvar ColdObservable_1 = require('./ColdObservable');\nvar HotObservable_1 = require('./HotObservable');\nvar SubscriptionLog_1 = require('./SubscriptionLog');\nvar VirtualTimeScheduler_1 = require('../scheduler/VirtualTimeScheduler');\nvar defaultMaxFrame = 750;\nvar TestScheduler = (function (_super) {\n    __extends(TestScheduler, _super);\n    function TestScheduler(assertDeepEqual) {\n        _super.call(this, VirtualTimeScheduler_1.VirtualAction, defaultMaxFrame);\n        this.assertDeepEqual = assertDeepEqual;\n        this.hotObservables = [];\n        this.coldObservables = [];\n        this.flushTests = [];\n    }\n    TestScheduler.prototype.createTime = function (marbles) {\n        var indexOf = marbles.indexOf('|');\n        if (indexOf === -1) {\n            throw new Error('marble diagram for time should have a completion marker \"|\"');\n        }\n        return indexOf * TestScheduler.frameTimeFactor;\n    };\n    TestScheduler.prototype.createColdObservable = function (marbles, values, error) {\n        if (marbles.indexOf('^') !== -1) {\n            throw new Error('cold observable cannot have subscription offset \"^\"');\n        }\n        if (marbles.indexOf('!') !== -1) {\n            throw new Error('cold observable cannot have unsubscription marker \"!\"');\n        }\n        var messages = TestScheduler.parseMarbles(marbles, values, error);\n        var cold = new ColdObservable_1.ColdObservable(messages, this);\n        this.coldObservables.push(cold);\n        return cold;\n    };\n    TestScheduler.prototype.createHotObservable = function (marbles, values, error) {\n        if (marbles.indexOf('!') !== -1) {\n            throw new Error('hot observable cannot have unsubscription marker \"!\"');\n        }\n        var messages = TestScheduler.parseMarbles(marbles, values, error);\n        var subject = new HotObservable_1.HotObservable(messages, this);\n        this.hotObservables.push(subject);\n        return subject;\n    };\n    TestScheduler.prototype.materializeInnerObservable = function (observable, outerFrame) {\n        var _this = this;\n        var messages = [];\n        observable.subscribe(function (value) {\n            messages.push({ frame: _this.frame - outerFrame, notification: Notification_1.Notification.createNext(value) });\n        }, function (err) {\n            messages.push({ frame: _this.frame - outerFrame, notification: Notification_1.Notification.createError(err) });\n        }, function () {\n            messages.push({ frame: _this.frame - outerFrame, notification: Notification_1.Notification.createComplete() });\n        });\n        return messages;\n    };\n    TestScheduler.prototype.expectObservable = function (observable, unsubscriptionMarbles) {\n        var _this = this;\n        if (unsubscriptionMarbles === void 0) { unsubscriptionMarbles = null; }\n        var actual = [];\n        var flushTest = { actual: actual, ready: false };\n        var unsubscriptionFrame = TestScheduler\n            .parseMarblesAsSubscriptions(unsubscriptionMarbles).unsubscribedFrame;\n        var subscription;\n        this.schedule(function () {\n            subscription = observable.subscribe(function (x) {\n                var value = x;\n                // Support Observable-of-Observables\n                if (x instanceof Observable_1.Observable) {\n                    value = _this.materializeInnerObservable(value, _this.frame);\n                }\n                actual.push({ frame: _this.frame, notification: Notification_1.Notification.createNext(value) });\n            }, function (err) {\n                actual.push({ frame: _this.frame, notification: Notification_1.Notification.createError(err) });\n            }, function () {\n                actual.push({ frame: _this.frame, notification: Notification_1.Notification.createComplete() });\n            });\n        }, 0);\n        if (unsubscriptionFrame !== Number.POSITIVE_INFINITY) {\n            this.schedule(function () { return subscription.unsubscribe(); }, unsubscriptionFrame);\n        }\n        this.flushTests.push(flushTest);\n        return {\n            toBe: function (marbles, values, errorValue) {\n                flushTest.ready = true;\n                flushTest.expected = TestScheduler.parseMarbles(marbles, values, errorValue, true);\n            }\n        };\n    };\n    TestScheduler.prototype.expectSubscriptions = function (actualSubscriptionLogs) {\n        var flushTest = { actual: actualSubscriptionLogs, ready: false };\n        this.flushTests.push(flushTest);\n        return {\n            toBe: function (marbles) {\n                var marblesArray = (typeof marbles === 'string') ? [marbles] : marbles;\n                flushTest.ready = true;\n                flushTest.expected = marblesArray.map(function (marbles) {\n                    return TestScheduler.parseMarblesAsSubscriptions(marbles);\n                });\n            }\n        };\n    };\n    TestScheduler.prototype.flush = function () {\n        var hotObservables = this.hotObservables;\n        while (hotObservables.length > 0) {\n            hotObservables.shift().setup();\n        }\n        _super.prototype.flush.call(this);\n        var readyFlushTests = this.flushTests.filter(function (test) { return test.ready; });\n        while (readyFlushTests.length > 0) {\n            var test = readyFlushTests.shift();\n            this.assertDeepEqual(test.actual, test.expected);\n        }\n    };\n    TestScheduler.parseMarblesAsSubscriptions = function (marbles) {\n        if (typeof marbles !== 'string') {\n            return new SubscriptionLog_1.SubscriptionLog(Number.POSITIVE_INFINITY);\n        }\n        var len = marbles.length;\n        var groupStart = -1;\n        var subscriptionFrame = Number.POSITIVE_INFINITY;\n        var unsubscriptionFrame = Number.POSITIVE_INFINITY;\n        for (var i = 0; i < len; i++) {\n            var frame = i * this.frameTimeFactor;\n            var c = marbles[i];\n            switch (c) {\n                case '-':\n                case ' ':\n                    break;\n                case '(':\n                    groupStart = frame;\n                    break;\n                case ')':\n                    groupStart = -1;\n                    break;\n                case '^':\n                    if (subscriptionFrame !== Number.POSITIVE_INFINITY) {\n                        throw new Error('found a second subscription point \\'^\\' in a ' +\n                            'subscription marble diagram. There can only be one.');\n                    }\n                    subscriptionFrame = groupStart > -1 ? groupStart : frame;\n                    break;\n                case '!':\n                    if (unsubscriptionFrame !== Number.POSITIVE_INFINITY) {\n                        throw new Error('found a second subscription point \\'^\\' in a ' +\n                            'subscription marble diagram. There can only be one.');\n                    }\n                    unsubscriptionFrame = groupStart > -1 ? groupStart : frame;\n                    break;\n                default:\n                    throw new Error('there can only be \\'^\\' and \\'!\\' markers in a ' +\n                        'subscription marble diagram. Found instead \\'' + c + '\\'.');\n            }\n        }\n        if (unsubscriptionFrame < 0) {\n            return new SubscriptionLog_1.SubscriptionLog(subscriptionFrame);\n        }\n        else {\n            return new SubscriptionLog_1.SubscriptionLog(subscriptionFrame, unsubscriptionFrame);\n        }\n    };\n    TestScheduler.parseMarbles = function (marbles, values, errorValue, materializeInnerObservables) {\n        if (materializeInnerObservables === void 0) { materializeInnerObservables = false; }\n        if (marbles.indexOf('!') !== -1) {\n            throw new Error('conventional marble diagrams cannot have the ' +\n                'unsubscription marker \"!\"');\n        }\n        var len = marbles.length;\n        var testMessages = [];\n        var subIndex = marbles.indexOf('^');\n        var frameOffset = subIndex === -1 ? 0 : (subIndex * -this.frameTimeFactor);\n        var getValue = typeof values !== 'object' ?\n            function (x) { return x; } :\n            function (x) {\n                // Support Observable-of-Observables\n                if (materializeInnerObservables && values[x] instanceof ColdObservable_1.ColdObservable) {\n                    return values[x].messages;\n                }\n                return values[x];\n            };\n        var groupStart = -1;\n        for (var i = 0; i < len; i++) {\n            var frame = i * this.frameTimeFactor + frameOffset;\n            var notification = void 0;\n            var c = marbles[i];\n            switch (c) {\n                case '-':\n                case ' ':\n                    break;\n                case '(':\n                    groupStart = frame;\n                    break;\n                case ')':\n                    groupStart = -1;\n                    break;\n                case '|':\n                    notification = Notification_1.Notification.createComplete();\n                    break;\n                case '^':\n                    break;\n                case '#':\n                    notification = Notification_1.Notification.createError(errorValue || 'error');\n                    break;\n                default:\n                    notification = Notification_1.Notification.createNext(getValue(c));\n                    break;\n            }\n            if (notification) {\n                testMessages.push({ frame: groupStart > -1 ? groupStart : frame, notification: notification });\n            }\n        }\n        return testMessages;\n    };\n    return TestScheduler;\n}(VirtualTimeScheduler_1.VirtualTimeScheduler));\nexports.TestScheduler = TestScheduler;\n//# sourceMappingURL=TestScheduler.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/testing/TestScheduler.js\n// module id = 1281\n// module chunks = 0","\"use strict\";\nvar root_1 = require('./root');\nvar RequestAnimationFrameDefinition = (function () {\n    function RequestAnimationFrameDefinition(root) {\n        if (root.requestAnimationFrame) {\n            this.cancelAnimationFrame = root.cancelAnimationFrame.bind(root);\n            this.requestAnimationFrame = root.requestAnimationFrame.bind(root);\n        }\n        else if (root.mozRequestAnimationFrame) {\n            this.cancelAnimationFrame = root.mozCancelAnimationFrame.bind(root);\n            this.requestAnimationFrame = root.mozRequestAnimationFrame.bind(root);\n        }\n        else if (root.webkitRequestAnimationFrame) {\n            this.cancelAnimationFrame = root.webkitCancelAnimationFrame.bind(root);\n            this.requestAnimationFrame = root.webkitRequestAnimationFrame.bind(root);\n        }\n        else if (root.msRequestAnimationFrame) {\n            this.cancelAnimationFrame = root.msCancelAnimationFrame.bind(root);\n            this.requestAnimationFrame = root.msRequestAnimationFrame.bind(root);\n        }\n        else if (root.oRequestAnimationFrame) {\n            this.cancelAnimationFrame = root.oCancelAnimationFrame.bind(root);\n            this.requestAnimationFrame = root.oRequestAnimationFrame.bind(root);\n        }\n        else {\n            this.cancelAnimationFrame = root.clearTimeout.bind(root);\n            this.requestAnimationFrame = function (cb) { return root.setTimeout(cb, 1000 / 60); };\n        }\n    }\n    return RequestAnimationFrameDefinition;\n}());\nexports.RequestAnimationFrameDefinition = RequestAnimationFrameDefinition;\nexports.AnimationFrame = new RequestAnimationFrameDefinition(root_1.root);\n//# sourceMappingURL=AnimationFrame.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/util/AnimationFrame.js\n// module id = 1282\n// module chunks = 0","\"use strict\";\nvar FastMap = (function () {\n    function FastMap() {\n        this.values = {};\n    }\n    FastMap.prototype.delete = function (key) {\n        this.values[key] = null;\n        return true;\n    };\n    FastMap.prototype.set = function (key, value) {\n        this.values[key] = value;\n        return this;\n    };\n    FastMap.prototype.get = function (key) {\n        return this.values[key];\n    };\n    FastMap.prototype.forEach = function (cb, thisArg) {\n        var values = this.values;\n        for (var key in values) {\n            if (values.hasOwnProperty(key) && values[key] !== null) {\n                cb.call(thisArg, values[key], key);\n            }\n        }\n    };\n    FastMap.prototype.clear = function () {\n        this.values = {};\n    };\n    return FastMap;\n}());\nexports.FastMap = FastMap;\n//# sourceMappingURL=FastMap.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/util/FastMap.js\n// module id = 1283\n// module chunks = 0","/**\nSome credit for this helper goes to http://github.com/YuzuJS/setImmediate\n*/\n\"use strict\";\nvar root_1 = require('./root');\nvar ImmediateDefinition = (function () {\n    function ImmediateDefinition(root) {\n        this.root = root;\n        if (root.setImmediate && typeof root.setImmediate === 'function') {\n            this.setImmediate = root.setImmediate.bind(root);\n            this.clearImmediate = root.clearImmediate.bind(root);\n        }\n        else {\n            this.nextHandle = 1;\n            this.tasksByHandle = {};\n            this.currentlyRunningATask = false;\n            // Don't get fooled by e.g. browserify environments.\n            if (this.canUseProcessNextTick()) {\n                // For Node.js before 0.9\n                this.setImmediate = this.createProcessNextTickSetImmediate();\n            }\n            else if (this.canUsePostMessage()) {\n                // For non-IE10 modern browsers\n                this.setImmediate = this.createPostMessageSetImmediate();\n            }\n            else if (this.canUseMessageChannel()) {\n                // For web workers, where supported\n                this.setImmediate = this.createMessageChannelSetImmediate();\n            }\n            else if (this.canUseReadyStateChange()) {\n                // For IE 6–8\n                this.setImmediate = this.createReadyStateChangeSetImmediate();\n            }\n            else {\n                // For older browsers\n                this.setImmediate = this.createSetTimeoutSetImmediate();\n            }\n            var ci = function clearImmediate(handle) {\n                delete clearImmediate.instance.tasksByHandle[handle];\n            };\n            ci.instance = this;\n            this.clearImmediate = ci;\n        }\n    }\n    ImmediateDefinition.prototype.identify = function (o) {\n        return this.root.Object.prototype.toString.call(o);\n    };\n    ImmediateDefinition.prototype.canUseProcessNextTick = function () {\n        return this.identify(this.root.process) === '[object process]';\n    };\n    ImmediateDefinition.prototype.canUseMessageChannel = function () {\n        return Boolean(this.root.MessageChannel);\n    };\n    ImmediateDefinition.prototype.canUseReadyStateChange = function () {\n        var document = this.root.document;\n        return Boolean(document && 'onreadystatechange' in document.createElement('script'));\n    };\n    ImmediateDefinition.prototype.canUsePostMessage = function () {\n        var root = this.root;\n        // The test against `importScripts` prevents this implementation from being installed inside a web worker,\n        // where `root.postMessage` means something completely different and can't be used for this purpose.\n        if (root.postMessage && !root.importScripts) {\n            var postMessageIsAsynchronous_1 = true;\n            var oldOnMessage = root.onmessage;\n            root.onmessage = function () {\n                postMessageIsAsynchronous_1 = false;\n            };\n            root.postMessage('', '*');\n            root.onmessage = oldOnMessage;\n            return postMessageIsAsynchronous_1;\n        }\n        return false;\n    };\n    // This function accepts the same arguments as setImmediate, but\n    // returns a function that requires no arguments.\n    ImmediateDefinition.prototype.partiallyApplied = function (handler) {\n        var args = [];\n        for (var _i = 1; _i < arguments.length; _i++) {\n            args[_i - 1] = arguments[_i];\n        }\n        var fn = function result() {\n            var _a = result, handler = _a.handler, args = _a.args;\n            if (typeof handler === 'function') {\n                handler.apply(undefined, args);\n            }\n            else {\n                (new Function('' + handler))();\n            }\n        };\n        fn.handler = handler;\n        fn.args = args;\n        return fn;\n    };\n    ImmediateDefinition.prototype.addFromSetImmediateArguments = function (args) {\n        this.tasksByHandle[this.nextHandle] = this.partiallyApplied.apply(undefined, args);\n        return this.nextHandle++;\n    };\n    ImmediateDefinition.prototype.createProcessNextTickSetImmediate = function () {\n        var fn = function setImmediate() {\n            var instance = setImmediate.instance;\n            var handle = instance.addFromSetImmediateArguments(arguments);\n            instance.root.process.nextTick(instance.partiallyApplied(instance.runIfPresent, handle));\n            return handle;\n        };\n        fn.instance = this;\n        return fn;\n    };\n    ImmediateDefinition.prototype.createPostMessageSetImmediate = function () {\n        // Installs an event handler on `global` for the `message` event: see\n        // * https://developer.mozilla.org/en/DOM/window.postMessage\n        // * http://www.whatwg.org/specs/web-apps/current-work/multipage/comms.html#crossDocumentMessages\n        var root = this.root;\n        var messagePrefix = 'setImmediate$' + root.Math.random() + '$';\n        var onGlobalMessage = function globalMessageHandler(event) {\n            var instance = globalMessageHandler.instance;\n            if (event.source === root &&\n                typeof event.data === 'string' &&\n                event.data.indexOf(messagePrefix) === 0) {\n                instance.runIfPresent(+event.data.slice(messagePrefix.length));\n            }\n        };\n        onGlobalMessage.instance = this;\n        root.addEventListener('message', onGlobalMessage, false);\n        var fn = function setImmediate() {\n            var _a = setImmediate, messagePrefix = _a.messagePrefix, instance = _a.instance;\n            var handle = instance.addFromSetImmediateArguments(arguments);\n            instance.root.postMessage(messagePrefix + handle, '*');\n            return handle;\n        };\n        fn.instance = this;\n        fn.messagePrefix = messagePrefix;\n        return fn;\n    };\n    ImmediateDefinition.prototype.runIfPresent = function (handle) {\n        // From the spec: 'Wait until any invocations of this algorithm started before this one have completed.'\n        // So if we're currently running a task, we'll need to delay this invocation.\n        if (this.currentlyRunningATask) {\n            // Delay by doing a setTimeout. setImmediate was tried instead, but in Firefox 7 it generated a\n            // 'too much recursion' error.\n            this.root.setTimeout(this.partiallyApplied(this.runIfPresent, handle), 0);\n        }\n        else {\n            var task = this.tasksByHandle[handle];\n            if (task) {\n                this.currentlyRunningATask = true;\n                try {\n                    task();\n                }\n                finally {\n                    this.clearImmediate(handle);\n                    this.currentlyRunningATask = false;\n                }\n            }\n        }\n    };\n    ImmediateDefinition.prototype.createMessageChannelSetImmediate = function () {\n        var _this = this;\n        var channel = new this.root.MessageChannel();\n        channel.port1.onmessage = function (event) {\n            var handle = event.data;\n            _this.runIfPresent(handle);\n        };\n        var fn = function setImmediate() {\n            var _a = setImmediate, channel = _a.channel, instance = _a.instance;\n            var handle = instance.addFromSetImmediateArguments(arguments);\n            channel.port2.postMessage(handle);\n            return handle;\n        };\n        fn.channel = channel;\n        fn.instance = this;\n        return fn;\n    };\n    ImmediateDefinition.prototype.createReadyStateChangeSetImmediate = function () {\n        var fn = function setImmediate() {\n            var instance = setImmediate.instance;\n            var root = instance.root;\n            var doc = root.document;\n            var html = doc.documentElement;\n            var handle = instance.addFromSetImmediateArguments(arguments);\n            // Create a <script> element; its readystatechange event will be fired asynchronously once it is inserted\n            // into the document. Do so, thus queuing up the task. Remember to clean up once it's been called.\n            var script = doc.createElement('script');\n            script.onreadystatechange = function () {\n                instance.runIfPresent(handle);\n                script.onreadystatechange = null;\n                html.removeChild(script);\n                script = null;\n            };\n            html.appendChild(script);\n            return handle;\n        };\n        fn.instance = this;\n        return fn;\n    };\n    ImmediateDefinition.prototype.createSetTimeoutSetImmediate = function () {\n        var fn = function setImmediate() {\n            var instance = setImmediate.instance;\n            var handle = instance.addFromSetImmediateArguments(arguments);\n            instance.root.setTimeout(instance.partiallyApplied(instance.runIfPresent, handle), 0);\n            return handle;\n        };\n        fn.instance = this;\n        return fn;\n    };\n    return ImmediateDefinition;\n}());\nexports.ImmediateDefinition = ImmediateDefinition;\nexports.Immediate = new ImmediateDefinition(root_1.root);\n//# sourceMappingURL=Immediate.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/util/Immediate.js\n// module id = 1284\n// module chunks = 0","\"use strict\";\nvar root_1 = require('./root');\nvar MapPolyfill_1 = require('./MapPolyfill');\nexports.Map = root_1.root.Map || (function () { return MapPolyfill_1.MapPolyfill; })();\n//# sourceMappingURL=Map.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/util/Map.js\n// module id = 1285\n// module chunks = 0","\"use strict\";\nvar MapPolyfill = (function () {\n    function MapPolyfill() {\n        this.size = 0;\n        this._values = [];\n        this._keys = [];\n    }\n    MapPolyfill.prototype.get = function (key) {\n        var i = this._keys.indexOf(key);\n        return i === -1 ? undefined : this._values[i];\n    };\n    MapPolyfill.prototype.set = function (key, value) {\n        var i = this._keys.indexOf(key);\n        if (i === -1) {\n            this._keys.push(key);\n            this._values.push(value);\n            this.size++;\n        }\n        else {\n            this._values[i] = value;\n        }\n        return this;\n    };\n    MapPolyfill.prototype.delete = function (key) {\n        var i = this._keys.indexOf(key);\n        if (i === -1) {\n            return false;\n        }\n        this._values.splice(i, 1);\n        this._keys.splice(i, 1);\n        this.size--;\n        return true;\n    };\n    MapPolyfill.prototype.clear = function () {\n        this._keys.length = 0;\n        this._values.length = 0;\n        this.size = 0;\n    };\n    MapPolyfill.prototype.forEach = function (cb, thisArg) {\n        for (var i = 0; i < this.size; i++) {\n            cb.call(thisArg, this._values[i], this._keys[i]);\n        }\n    };\n    return MapPolyfill;\n}());\nexports.MapPolyfill = MapPolyfill;\n//# sourceMappingURL=MapPolyfill.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/util/MapPolyfill.js\n// module id = 1286\n// module chunks = 0","\"use strict\";\nvar root_1 = require('./root');\nfunction minimalSetImpl() {\n    // THIS IS NOT a full impl of Set, this is just the minimum\n    // bits of functionality we need for this library.\n    return (function () {\n        function MinimalSet() {\n            this._values = [];\n        }\n        MinimalSet.prototype.add = function (value) {\n            if (!this.has(value)) {\n                this._values.push(value);\n            }\n        };\n        MinimalSet.prototype.has = function (value) {\n            return this._values.indexOf(value) !== -1;\n        };\n        Object.defineProperty(MinimalSet.prototype, \"size\", {\n            get: function () {\n                return this._values.length;\n            },\n            enumerable: true,\n            configurable: true\n        });\n        MinimalSet.prototype.clear = function () {\n            this._values.length = 0;\n        };\n        return MinimalSet;\n    }());\n}\nexports.minimalSetImpl = minimalSetImpl;\nexports.Set = root_1.root.Set || minimalSetImpl();\n//# sourceMappingURL=Set.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/util/Set.js\n// module id = 1287\n// module chunks = 0","\"use strict\";\nvar root_1 = require('./root');\nfunction assignImpl(target) {\n    var sources = [];\n    for (var _i = 1; _i < arguments.length; _i++) {\n        sources[_i - 1] = arguments[_i];\n    }\n    var len = sources.length;\n    for (var i = 0; i < len; i++) {\n        var source = sources[i];\n        for (var k in source) {\n            if (source.hasOwnProperty(k)) {\n                target[k] = source[k];\n            }\n        }\n    }\n    return target;\n}\nexports.assignImpl = assignImpl;\n;\nfunction getAssign(root) {\n    return root.Object.assign || assignImpl;\n}\nexports.getAssign = getAssign;\nexports.assign = getAssign(root_1.root);\n//# sourceMappingURL=assign.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/util/assign.js\n// module id = 1288\n// module chunks = 0","\"use strict\";\nfunction not(pred, thisArg) {\n    function notPred() {\n        return !(notPred.pred.apply(notPred.thisArg, arguments));\n    }\n    notPred.pred = pred;\n    notPred.thisArg = thisArg;\n    return notPred;\n}\nexports.not = not;\n//# sourceMappingURL=not.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/util/not.js\n// module id = 1289\n// module chunks = 0","/*\n\nTypeScript Md5\n==============\n\nBased on work by\n* Joseph Myers: http://www.myersdaily.org/joseph/javascript/md5-text.html\n* André Cruz: https://github.com/satazor/SparkMD5\n* Raymond Hill: https://github.com/gorhill/yamd5.js\n\nEffectively a TypeScrypt re-write of Raymond Hill JS Library\n\nThe MIT License (MIT)\n\nCopyright (C) 2014 Raymond Hill\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n\n\n            DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n                    Version 2, December 2004\n\n Copyright (C) 2015 André Cruz <amdfcruz@gmail.com>\n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n            DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n  0. You just DO WHAT THE FUCK YOU WANT TO.\n  \n\n*/\nvar Md5 = (function () {\n    function Md5() {\n        this._state = new Int32Array(4);\n        this._buffer = new ArrayBuffer(68);\n        this._buffer8 = new Uint8Array(this._buffer, 0, 68);\n        this._buffer32 = new Uint32Array(this._buffer, 0, 17);\n        this.start();\n    }\n    // One time hashing functions\n    Md5.hashStr = function (str, raw) {\n        if (raw === void 0) { raw = false; }\n        return this.onePassHasher\n            .start()\n            .appendStr(str)\n            .end(raw);\n    };\n    ;\n    Md5.hashAsciiStr = function (str, raw) {\n        if (raw === void 0) { raw = false; }\n        return this.onePassHasher\n            .start()\n            .appendAsciiStr(str)\n            .end(raw);\n    };\n    ;\n    Md5.prototype.start = function () {\n        this._dataLength = 0;\n        this._bufferLength = 0;\n        this._state.set(Md5.stateIdentity);\n        return this;\n    };\n    // Char to code point to to array conversion:\n    // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/charCodeAt\n    // #Example.3A_Fixing_charCodeAt_to_handle_non-Basic-Multilingual-Plane_characters_if_their_presence_earlier_in_the_string_is_unknown\n    Md5.prototype.appendStr = function (str) {\n        var buf8 = this._buffer8, buf32 = this._buffer32, bufLen = this._bufferLength, code, i;\n        for (i = 0; i < str.length; i += 1) {\n            code = str.charCodeAt(i);\n            if (code < 128) {\n                buf8[bufLen++] = code;\n            }\n            else if (code < 0x800) {\n                buf8[bufLen++] = (code >>> 6) + 0xC0;\n                buf8[bufLen++] = code & 0x3F | 0x80;\n            }\n            else if (code < 0xD800 || code > 0xDBFF) {\n                buf8[bufLen++] = (code >>> 12) + 0xE0;\n                buf8[bufLen++] = (code >>> 6 & 0x3F) | 0x80;\n                buf8[bufLen++] = (code & 0x3F) | 0x80;\n            }\n            else {\n                code = ((code - 0xD800) * 0x400) + (str.charCodeAt(++i) - 0xDC00) + 0x10000;\n                if (code > 0x10FFFF) {\n                    throw 'Unicode standard supports code points up to U+10FFFF';\n                }\n                buf8[bufLen++] = (code >>> 18) + 0xF0;\n                buf8[bufLen++] = (code >>> 12 & 0x3F) | 0x80;\n                buf8[bufLen++] = (code >>> 6 & 0x3F) | 0x80;\n                buf8[bufLen++] = (code & 0x3F) | 0x80;\n            }\n            if (bufLen >= 64) {\n                this._dataLength += 64;\n                Md5._md5cycle(this._state, buf32);\n                bufLen -= 64;\n                buf32[0] = buf32[16];\n            }\n        }\n        this._bufferLength = bufLen;\n        return this;\n    };\n    Md5.prototype.appendAsciiStr = function (str) {\n        var buf8 = this._buffer8, buf32 = this._buffer32, bufLen = this._bufferLength, i, j = 0;\n        for (;;) {\n            i = Math.min(str.length - j, 64 - bufLen);\n            while (i--) {\n                buf8[bufLen++] = str.charCodeAt(j++);\n            }\n            if (bufLen < 64) {\n                break;\n            }\n            this._dataLength += 64;\n            Md5._md5cycle(this._state, buf32);\n            bufLen = 0;\n        }\n        this._bufferLength = bufLen;\n        return this;\n    };\n    Md5.prototype.appendByteArray = function (input) {\n        var buf8 = this._buffer8, buf32 = this._buffer32, bufLen = this._bufferLength, i, j = 0;\n        for (;;) {\n            i = Math.min(input.length - j, 64 - bufLen);\n            while (i--) {\n                buf8[bufLen++] = input[j++];\n            }\n            if (bufLen < 64) {\n                break;\n            }\n            this._dataLength += 64;\n            Md5._md5cycle(this._state, buf32);\n            bufLen = 0;\n        }\n        this._bufferLength = bufLen;\n        return this;\n    };\n    Md5.prototype.getState = function () {\n        var self = this, s = self._state;\n        return {\n            buffer: String.fromCharCode.apply(null, self._buffer8),\n            buflen: self._bufferLength,\n            length: self._dataLength,\n            state: [s[0], s[1], s[2], s[3]]\n        };\n    };\n    Md5.prototype.setState = function (state) {\n        var buf = state.buffer, x = state.state, s = this._state, i;\n        this._dataLength = state.length;\n        this._bufferLength = state.buflen;\n        s[0] = x[0];\n        s[1] = x[1];\n        s[2] = x[2];\n        s[3] = x[3];\n        for (i = 0; i < buf.length; i += 1) {\n            this._buffer8[i] = buf.charCodeAt(i);\n        }\n    };\n    Md5.prototype.end = function (raw) {\n        if (raw === void 0) { raw = false; }\n        var bufLen = this._bufferLength, buf8 = this._buffer8, buf32 = this._buffer32, i = (bufLen >> 2) + 1, dataBitsLen;\n        this._dataLength += bufLen;\n        buf8[bufLen] = 0x80;\n        buf8[bufLen + 1] = buf8[bufLen + 2] = buf8[bufLen + 3] = 0;\n        buf32.set(Md5.buffer32Identity.subarray(i), i);\n        if (bufLen > 55) {\n            Md5._md5cycle(this._state, buf32);\n            buf32.set(Md5.buffer32Identity);\n        }\n        // Do the final computation based on the tail and length\n        // Beware that the final length may not fit in 32 bits so we take care of that\n        dataBitsLen = this._dataLength * 8;\n        if (dataBitsLen <= 0xFFFFFFFF) {\n            buf32[14] = dataBitsLen;\n        }\n        else {\n            var matches = dataBitsLen.toString(16).match(/(.*?)(.{0,8})$/), lo = parseInt(matches[2], 16), hi = parseInt(matches[1], 16) || 0;\n            buf32[14] = lo;\n            buf32[15] = hi;\n        }\n        Md5._md5cycle(this._state, buf32);\n        return raw ? this._state : Md5._hex(this._state);\n    };\n    Md5._hex = function (x) {\n        var hc = Md5.hexChars, ho = Md5.hexOut, n, offset, j, i;\n        for (i = 0; i < 4; i += 1) {\n            offset = i * 8;\n            n = x[i];\n            for (j = 0; j < 8; j += 2) {\n                ho[offset + 1 + j] = hc.charAt(n & 0x0F);\n                n >>>= 4;\n                ho[offset + 0 + j] = hc.charAt(n & 0x0F);\n                n >>>= 4;\n            }\n        }\n        return ho.join('');\n    };\n    Md5._md5cycle = function (x, k) {\n        var a = x[0], b = x[1], c = x[2], d = x[3];\n        // ff()\n        a += (b & c | ~b & d) + k[0] - 680876936 | 0;\n        a = (a << 7 | a >>> 25) + b | 0;\n        d += (a & b | ~a & c) + k[1] - 389564586 | 0;\n        d = (d << 12 | d >>> 20) + a | 0;\n        c += (d & a | ~d & b) + k[2] + 606105819 | 0;\n        c = (c << 17 | c >>> 15) + d | 0;\n        b += (c & d | ~c & a) + k[3] - 1044525330 | 0;\n        b = (b << 22 | b >>> 10) + c | 0;\n        a += (b & c | ~b & d) + k[4] - 176418897 | 0;\n        a = (a << 7 | a >>> 25) + b | 0;\n        d += (a & b | ~a & c) + k[5] + 1200080426 | 0;\n        d = (d << 12 | d >>> 20) + a | 0;\n        c += (d & a | ~d & b) + k[6] - 1473231341 | 0;\n        c = (c << 17 | c >>> 15) + d | 0;\n        b += (c & d | ~c & a) + k[7] - 45705983 | 0;\n        b = (b << 22 | b >>> 10) + c | 0;\n        a += (b & c | ~b & d) + k[8] + 1770035416 | 0;\n        a = (a << 7 | a >>> 25) + b | 0;\n        d += (a & b | ~a & c) + k[9] - 1958414417 | 0;\n        d = (d << 12 | d >>> 20) + a | 0;\n        c += (d & a | ~d & b) + k[10] - 42063 | 0;\n        c = (c << 17 | c >>> 15) + d | 0;\n        b += (c & d | ~c & a) + k[11] - 1990404162 | 0;\n        b = (b << 22 | b >>> 10) + c | 0;\n        a += (b & c | ~b & d) + k[12] + 1804603682 | 0;\n        a = (a << 7 | a >>> 25) + b | 0;\n        d += (a & b | ~a & c) + k[13] - 40341101 | 0;\n        d = (d << 12 | d >>> 20) + a | 0;\n        c += (d & a | ~d & b) + k[14] - 1502002290 | 0;\n        c = (c << 17 | c >>> 15) + d | 0;\n        b += (c & d | ~c & a) + k[15] + 1236535329 | 0;\n        b = (b << 22 | b >>> 10) + c | 0;\n        // gg()\n        a += (b & d | c & ~d) + k[1] - 165796510 | 0;\n        a = (a << 5 | a >>> 27) + b | 0;\n        d += (a & c | b & ~c) + k[6] - 1069501632 | 0;\n        d = (d << 9 | d >>> 23) + a | 0;\n        c += (d & b | a & ~b) + k[11] + 643717713 | 0;\n        c = (c << 14 | c >>> 18) + d | 0;\n        b += (c & a | d & ~a) + k[0] - 373897302 | 0;\n        b = (b << 20 | b >>> 12) + c | 0;\n        a += (b & d | c & ~d) + k[5] - 701558691 | 0;\n        a = (a << 5 | a >>> 27) + b | 0;\n        d += (a & c | b & ~c) + k[10] + 38016083 | 0;\n        d = (d << 9 | d >>> 23) + a | 0;\n        c += (d & b | a & ~b) + k[15] - 660478335 | 0;\n        c = (c << 14 | c >>> 18) + d | 0;\n        b += (c & a | d & ~a) + k[4] - 405537848 | 0;\n        b = (b << 20 | b >>> 12) + c | 0;\n        a += (b & d | c & ~d) + k[9] + 568446438 | 0;\n        a = (a << 5 | a >>> 27) + b | 0;\n        d += (a & c | b & ~c) + k[14] - 1019803690 | 0;\n        d = (d << 9 | d >>> 23) + a | 0;\n        c += (d & b | a & ~b) + k[3] - 187363961 | 0;\n        c = (c << 14 | c >>> 18) + d | 0;\n        b += (c & a | d & ~a) + k[8] + 1163531501 | 0;\n        b = (b << 20 | b >>> 12) + c | 0;\n        a += (b & d | c & ~d) + k[13] - 1444681467 | 0;\n        a = (a << 5 | a >>> 27) + b | 0;\n        d += (a & c | b & ~c) + k[2] - 51403784 | 0;\n        d = (d << 9 | d >>> 23) + a | 0;\n        c += (d & b | a & ~b) + k[7] + 1735328473 | 0;\n        c = (c << 14 | c >>> 18) + d | 0;\n        b += (c & a | d & ~a) + k[12] - 1926607734 | 0;\n        b = (b << 20 | b >>> 12) + c | 0;\n        // hh()\n        a += (b ^ c ^ d) + k[5] - 378558 | 0;\n        a = (a << 4 | a >>> 28) + b | 0;\n        d += (a ^ b ^ c) + k[8] - 2022574463 | 0;\n        d = (d << 11 | d >>> 21) + a | 0;\n        c += (d ^ a ^ b) + k[11] + 1839030562 | 0;\n        c = (c << 16 | c >>> 16) + d | 0;\n        b += (c ^ d ^ a) + k[14] - 35309556 | 0;\n        b = (b << 23 | b >>> 9) + c | 0;\n        a += (b ^ c ^ d) + k[1] - 1530992060 | 0;\n        a = (a << 4 | a >>> 28) + b | 0;\n        d += (a ^ b ^ c) + k[4] + 1272893353 | 0;\n        d = (d << 11 | d >>> 21) + a | 0;\n        c += (d ^ a ^ b) + k[7] - 155497632 | 0;\n        c = (c << 16 | c >>> 16) + d | 0;\n        b += (c ^ d ^ a) + k[10] - 1094730640 | 0;\n        b = (b << 23 | b >>> 9) + c | 0;\n        a += (b ^ c ^ d) + k[13] + 681279174 | 0;\n        a = (a << 4 | a >>> 28) + b | 0;\n        d += (a ^ b ^ c) + k[0] - 358537222 | 0;\n        d = (d << 11 | d >>> 21) + a | 0;\n        c += (d ^ a ^ b) + k[3] - 722521979 | 0;\n        c = (c << 16 | c >>> 16) + d | 0;\n        b += (c ^ d ^ a) + k[6] + 76029189 | 0;\n        b = (b << 23 | b >>> 9) + c | 0;\n        a += (b ^ c ^ d) + k[9] - 640364487 | 0;\n        a = (a << 4 | a >>> 28) + b | 0;\n        d += (a ^ b ^ c) + k[12] - 421815835 | 0;\n        d = (d << 11 | d >>> 21) + a | 0;\n        c += (d ^ a ^ b) + k[15] + 530742520 | 0;\n        c = (c << 16 | c >>> 16) + d | 0;\n        b += (c ^ d ^ a) + k[2] - 995338651 | 0;\n        b = (b << 23 | b >>> 9) + c | 0;\n        // ii()\n        a += (c ^ (b | ~d)) + k[0] - 198630844 | 0;\n        a = (a << 6 | a >>> 26) + b | 0;\n        d += (b ^ (a | ~c)) + k[7] + 1126891415 | 0;\n        d = (d << 10 | d >>> 22) + a | 0;\n        c += (a ^ (d | ~b)) + k[14] - 1416354905 | 0;\n        c = (c << 15 | c >>> 17) + d | 0;\n        b += (d ^ (c | ~a)) + k[5] - 57434055 | 0;\n        b = (b << 21 | b >>> 11) + c | 0;\n        a += (c ^ (b | ~d)) + k[12] + 1700485571 | 0;\n        a = (a << 6 | a >>> 26) + b | 0;\n        d += (b ^ (a | ~c)) + k[3] - 1894986606 | 0;\n        d = (d << 10 | d >>> 22) + a | 0;\n        c += (a ^ (d | ~b)) + k[10] - 1051523 | 0;\n        c = (c << 15 | c >>> 17) + d | 0;\n        b += (d ^ (c | ~a)) + k[1] - 2054922799 | 0;\n        b = (b << 21 | b >>> 11) + c | 0;\n        a += (c ^ (b | ~d)) + k[8] + 1873313359 | 0;\n        a = (a << 6 | a >>> 26) + b | 0;\n        d += (b ^ (a | ~c)) + k[15] - 30611744 | 0;\n        d = (d << 10 | d >>> 22) + a | 0;\n        c += (a ^ (d | ~b)) + k[6] - 1560198380 | 0;\n        c = (c << 15 | c >>> 17) + d | 0;\n        b += (d ^ (c | ~a)) + k[13] + 1309151649 | 0;\n        b = (b << 21 | b >>> 11) + c | 0;\n        a += (c ^ (b | ~d)) + k[4] - 145523070 | 0;\n        a = (a << 6 | a >>> 26) + b | 0;\n        d += (b ^ (a | ~c)) + k[11] - 1120210379 | 0;\n        d = (d << 10 | d >>> 22) + a | 0;\n        c += (a ^ (d | ~b)) + k[2] + 718787259 | 0;\n        c = (c << 15 | c >>> 17) + d | 0;\n        b += (d ^ (c | ~a)) + k[9] - 343485551 | 0;\n        b = (b << 21 | b >>> 11) + c | 0;\n        x[0] = a + x[0] | 0;\n        x[1] = b + x[1] | 0;\n        x[2] = c + x[2] | 0;\n        x[3] = d + x[3] | 0;\n    };\n    Md5.stateIdentity = new Int32Array([1732584193, -271733879, -1732584194, 271733878]);\n    Md5.buffer32Identity = new Int32Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);\n    Md5.hexChars = '0123456789abcdef';\n    Md5.hexOut = [];\n    // Permanent instance is to use for one-call hashing\n    Md5.onePassHasher = new Md5();\n    return Md5;\n})();\nexports.Md5 = Md5;\nif (Md5.hashStr('hello') !== '5d41402abc4b2a76b9719d911017c592') {\n    console.error('Md5 self test failed.');\n}\n//# sourceMappingURL=md5.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ts-md5/dist/md5.js\n// module id = 1291\n// module chunks = 0","module.exports = function(module) {\r\n\tif(!module.webpackPolyfill) {\r\n\t\tmodule.deprecate = function() {};\r\n\t\tmodule.paths = [];\r\n\t\t// module.parent = undefined by default\r\n\t\tif(!module.children) module.children = [];\r\n\t\tObject.defineProperty(module, \"loaded\", {\r\n\t\t\tenumerable: true,\r\n\t\t\tget: function() {\r\n\t\t\t\treturn module.l;\r\n\t\t\t}\r\n\t\t});\r\n\t\tObject.defineProperty(module, \"id\", {\r\n\t\t\tenumerable: true,\r\n\t\t\tget: function() {\r\n\t\t\t\treturn module.i;\r\n\t\t\t}\r\n\t\t});\r\n\t\tmodule.webpackPolyfill = 1;\r\n\t}\r\n\treturn module;\r\n};\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// (webpack)/buildin/module.js\n// module id = 1292\n// module chunks = 0","/*\n * Angular bootstraping\n */\nimport { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\nimport { decorateModuleRef } from './app/environment';\nimport { bootloader } from '@angularclass/hmr';\n/*\n * App Module\n * our top level module that holds all of our components\n */\nimport { AppModule } from './app';\n\n/*\n * Bootstrap our Angular app with a top level NgModule\n */\nexport function main(): Promise<any> {\n  return platformBrowserDynamic()\n    .bootstrapModule(AppModule)\n    .then(decorateModuleRef)\n    .catch(err => console.error(err));\n}\n\n// needed for hmr\n// in prod this is replace for document ready\nbootloader(main);\n\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src!./src/main.browser.ts"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACtjLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACXA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAIA;AAgBA;AAAA;AACA;AACA;AAfA;AACA;AACA;AACA;AACA;AACA;AAaA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAAA;AACA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAAA;AACA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AAAA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AAAA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AAAA;AAjZA;AAFA;AAkBA;AACA;AACA;AAlBA;AAAA;;;;;;;;;;;;;;ACZA;AAGA;AAMA;AAEA;AAAA;AAAA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AAAA;AACA;AAAA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAIA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AA5eA;AAFA;AAIA;AAFA;AAAA;;;;;;;;;;;;;;;;;;;;;ACTA;AAEA;AAMA;AAAA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AAAA;AAAA;;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAnCA;;;;;;;;;;;;;;;ACFA;AAIA;AAGA;AACA;AAAA;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAEA;AACA;AACA;AAAA;AACA;AAAA;AACA;AACA;AAEA;AACA;AACA;AAAA;AACA;AAAA;AACA;AACA;AAEA;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAEA;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAEA;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAEA;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAEA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAEA;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAEA;AACA;AACA;AAAA;AACA;AAAA;AACA;AACA;AAEA;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAEA;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAEA;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAEA;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAEA;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AAAA;AApyBA;AADA;AAEA;AADA;AAAA;;;;;;;;;;ACPA;AAEA;AAMA;AAAA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AAAA;AAAA;;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAtCA;;;;;;;;;;ACFA;AACA;AACA;AACA;AACA;;;;;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;AC7FA;AAEA;AACA;AACA;AACA;AAOA;AAMA;AAAA;AACA;AAHA;AAKA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AAAA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;;;AAAA;AAGA;AAAA;AACA;AACA;AACA;AACA;;;AAAA;AAGA;AAAA;AACA;AACA;;;AAAA;AAEA;AACA;AACA;AAEA;AAAA;AAxCA;AAAA;;AAAA;AAyBA;AADA;;;AAKA;AAGA;AADA;;;AAGA;AAtCA;AALA;AACA;AACA;AACA;AASA;AAPA;AAAA;;;;;;;;;;ACZA;AAGA;AAOA;AA6BA;AAAA;AAzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AA5OA;AAFA;AA+BA;AA7BA;AAAA;;;;;;;;;;ACVA;AACA;AAKA;AAEA;AAAA;AAAA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AAAA;AApTA;AAFA;AAIA;AAFA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACNA;AACA;AACA;AAEA;AACA;AACA;AACA;AAGA;AAEA;AACA;AACA;AACA;AAOA;AAiDA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AAGA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AA/NA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AA3BA;AALA;AACA;AACA;AACA;AAoDA;AACA;AACA;AACA;AACA;AAtDA;AAAA;;;;;;;;;;ACtBA;AAGA;AAOA;AAEA;AAAA;AAEA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AApTA;AAFA;AAIA;AAFA;AAAA;;;;;;;;;;;;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;ACNA;AAGA;AAIA;AAEA;AAAA;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AAlFA;AAFA;AAIA;AAFA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;ACPA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAIA;AACA;AAEA;AACA;AACA;AACA;AAOA;AAsBA;AACA;AACA;AAEA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AAAA;AAjGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAfA;AALA;AACA;AACA;AACA;AAyBA;AACA;AAxBA;AAAA;AA2GA;AAyGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA9DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAiDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAGA;AAOA;AACA;AACA;AATA;AACA;AACA;AACA;AACA;AACA;;;AAAA;AAMA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AAn2BA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAiIA;AADA;;;AAMA;AAlLA;AALA;AACA;AACA;AACA;AA4GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAnHA;AAAA;;;;;;;;;;ACzIA;AACA;AAEA;AACA;AAOA;AAeA;AACA;AACA;AAEA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AA/CA;AADA;AACA;AAAA;AAEA;AAAA;;AAAA;AALA;AALA;AACA;AACA;AACA;AAkBA;AACA;AAjBA;AAAA;;;;;;;;;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACjJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACxDA;AACA;AAEA;AAEA;AACA;AACA;AAEA;AAGA;AACA;AAOA;AAgCA;AACA;AACA;AACA;AACA;AACA;AACA;AAhBA;AAkBA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AA5JA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAfA;AALA;AACA;AACA;AACA;AAmCA;AACA;AACA;AACA;AACA;AACA;AAtCA;AAAA;;;;;;;;;;ACpBA;AACA;AAGA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AAOA;AA2CA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAkQA;AAMA;AAMA;AAMA;AA1QA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AAIA;AACA;AACA;AANA;AACA;AACA;;;AAAA;AAOA;AAIA;AACA;AACA;AANA;AACA;AACA;;;AAAA;AAOA;AAAA;AADA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAAA;AAGA;AAAA;AADA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAIA;AACA;AACA;AAIA;AACA;AACA;AAIA;AACA;AACA;AAIA;AACA;AACA;AAEA;AAAA;AAhUA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAgFA;AADA;;;AAGA;AAOA;AADA;;;AAGA;AAOA;AADA;AACA;AAAA;AA4CA;AAGA;AADA;AACA;AAAA;AAuBA;AAoHA;AAAA;;AAAA;AAMA;AAAA;;AAAA;AAMA;AAAA;;AAAA;AAMA;AAAA;;AAAA;AA7TA;AALA;AACA;AACA;AACA;AA8CA;AACA;AACA;AACA;AACA;AACA;AAjDA;AAAA;;;;;;;;;;ACtBA;AACA;AACA;AAEA;AACA;AACA;AAGA;AACA;AAEA;AACA;AACA;AACA;AAOA;AAmGA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AAEA;AAEA;AAEA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAEA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;;;AAGA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AAAA;AA98BA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAtCA;AALA;AACA;AACA;AACA;AAsGA;AACA;AACA;AACA;AACA;AAxGA;AAAA;;;;;;;;;;;ACtBA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAOA;AAwCA;AAAA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AAAA;AAxPA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;;AACA;AAGA;AADA;AACA;AAAA;AArBA;AALA;AACA;AACA;AACA;AA2CA;AACA;AACA;AACA;AA5CA;AAAA;;;;;;;;;;;;;;;;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC7IA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AClDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AChCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;AChHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;AC/CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC3BA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACLA;AACA;AACA;AAEA;AACA;AAQA;AA+CA;AAAA;AACA;AACA;AACA;AA7BA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAEA;AAAA;AAzJA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AATA;AALA;AACA;AACA;AACA;AAkDA;AACA;AACA;AAlDA;AAAA;;;;;;;;;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAOA;AA0BA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AAAA;AACA;AACA;AACA;AACA;AACA;;;AAAA;AAGA;AAOA;AACA;AACA;AATA;AACA;AACA;AACA;AACA;AACA;;;AAAA;AAOA;AAQA;AACA;AACA;AAVA;AADA;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAAA;AAOA;AAAA;AACA;AACA;AAEA;AACA;AACA;;;AAJA;AAOA;AAAA;AACA;AACA;AAEA;AACA;AACA;;;AAJA;AAOA;AAAA;AACA;AACA;AAEA;AACA;AACA;;;AAJA;AAOA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAPA;AAUA;AAAA;AACA;AACA;;;AAAA;AAGA;AAAA;AACA;AACA;;;AAAA;AAGA;AAAA;AACA;AACA;;;AAAA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AAEA;AACA;AACA;AAEA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAEA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AAAA;AACA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AAvVA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AA6CA;AADA;;;AAMA;AAGA;AADA;;;AAMA;AAOA;AADA;;;AAOA;AAOA;AADA;;;AAGA;AAOA;AADA;;;AAGA;AAOA;AADA;;;AAGA;AAOA;AADA;;;AAGA;AAUA;AADA;;;AAGA;AAGA;AADA;;;AAGA;AAGA;AADA;;;AAGA;AAvIA;AALA;AACA;AACA;AACA;AA6BA;AACA;AACA;AACA;AACA;AACA;AACA;AAjCA;AAAA;;;;;;;;;;ACfA;AACA;AAEA;AACA;AAQA;AAiDA;AACA;AACA;AAEA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AAGA;AAAA;AADA;AAEA;AACA;AACA;AACA;AACA;;;AAAA;AAEA;AACA;AAAA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AAAA;AA1YA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAsCA;AADA;;;AAMA;AAtEA;AALA;AACA;AACA;AACA;AAoDA;AACA;AAnDA;AAAA;;;;;;;;;;ACZA;AAIA;AACA;AACA;AAGA;AACA;AACA;AACA;AAOA;AAUA;AACA;AAJA;AAMA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AAAA;AA1EA;AADA;AACA;AAAA;AAHA;AALA;AACA;AACA;AACA;AAaA;AAXA;AAAA;;;;;;;;;;ACnBA;AACA;AACA;AAEA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AANA;AAaA;AA0CA;AAAA;AACA;AACA;AACA;AA3BA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAOA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAEA;AAAA;AA/IA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AATA;AALA;AACA;AACA;AACA;AA6CA;AACA;AACA;AA7CA;AAAA;;;;;;;;;;ACrBA;AACA;AAEA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAEA;AAKA;AACA;AACA;AACA;AAOA;AAiHA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAhBA;AACA;AACA;AAiBA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAAA;AACA;AACA;AACA;AAEA;AAEA;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAEA;AAEA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAEA;AAAA;AACA;AACA;AACA;AAAA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AA1yBA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAhDA;AALA;AACA;AACA;AACA;AAoHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA3HA;AAAA;;;;;;;;AChCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC/HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC5BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACtCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC3BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC7BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC7BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACrGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AClOA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACvJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACjIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC1PA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACVA;AACA;AACA;AACA;AACA;AACA;AAIA;AACA;AACA;AAEA;AACA;AAEA;AACA;AACA;AAEA;AACA;AAEA;AAKA;AAAA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAKA;AAEA;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACpDA;AACA;AAGA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AAQA;AAwCA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAGA;AAQA;AACA;AACA;AAVA;AADA;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAAA;AAMA;AAAA;AACA;AACA;AAEA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AAzPA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAyCA;AADA;AACA;AAAA;AAMA;AApEA;AALA;AACA;AACA;AACA;AA2CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAhDA;AAAA;;;;;;;;;;AC1BA;AACA;AAEA;AACA;AAEA;AACA;AACA;AAMA;AAkDA;AACA;AACA;AA5BA;AA8BA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAAA;AACA;AAAA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAAA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAGA;AAUA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AAKA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAKA;AACA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AAIA;AAGA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAIA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;AA1jBA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAjBA;AAJA;AACA;AACA;AACA;AAoDA;AACA;AApDA;AAAA;;;;;;;;;;ACdA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAEA;AAOA;AAkHA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AAIA;AACA;AACA;AANA;AACA;AACA;;;AAAA;AAOA;AAAA;AADA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAAA;AAEA;AAAA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAPA;AAAA;AAAA;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAEA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AAEA;AACA;AAEA;AACA;AACA;AAEA;AAAA;AAzzBA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAyFA;AADA;;;AAGA;AAOA;AADA;AACA;AAAA;AAQA;AA/KA;AALA;AACA;AACA;AACA;AAqHA;AACA;AACA;AACA;AACA;AACA;AAxHA;AAAA;;;;;;;;;;AClCA;AASA;AAMA;AAHA;AA4EA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAnGA;AACA;AASA;AAKA;AALA;AACA;AACA;AACA;;;AAAA;AAIA;AACA;AACA;AACA;AACA;AACA;AAEA;AAEA;AAEA;AACA;AACA;AACA;AACA;AAEA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AAEA;AACA;AACA;AAAA;AACA;AACA;AAAA;AACA;AACA;AAAA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AAEA;AAEA;AA+BA;AAAA;AAxGA;AAOA;AADA;;AACA;AAGA;AADA;;AACA;AAGA;AADA;;;AAIA;AApBA;AALA;AACA;AACA;AACA;;AAEA;AAAA;;;;;;;;;;;ACTA;AAUA;AAAA;AA6BA;AAtBA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;;;AAAA;AAEA;AAAA;AA3BA;AAAA;;AAAA;AAKA;AADA;;;AAqBA;AA3BA;AALA;AACA;AACA;AACA;AAEA;AAAA;;;;;;;;;;ACVA;AAMA;AAJA;AAWA;AACA;AACA;AAYA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAqBA;AA3DA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAgCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAAA;AAnEA;AAAA;AAAA;AAAA;AAEA;AAAA;AAAA;AAAA;AALA;AAJA;AACA;AACA;AACA;AACA;AAAA;;;;;;;;;;ACLA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAOA;AA6DA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAGA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AA3XA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AA3BA;AALA;AACA;AACA;AACA;AAgEA;AACA;AACA;AACA;AAjEA;AAAA;;;;;;;;;;ACvBA;AAEA;AAEA;AACA;AACA;AACA;AACA;AAOA;AAkCA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AA3BA;AAAA;AACA;AACA;AACA;AACA;;;AAAA;AAEA;AAAA;AACA;AACA;;;AAAA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAAA;AAaA;AAEA;AAEA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AAEA;AACA;AACA;AACA;AAEA;AAAA;AAAA;AAEA;AACA;AAEA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;AAmBA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAEA;AAEA;AAAA;AApXA;AADA;AACA;AAAA;AAaA;AAAA;;;AAIA;AAEA;AAAA;;;AAEA;AAEA;AAAA;AAAA;AAAA;AAMA;AAhCA;AALA;AACA;AACA;AACA;AAqCA;AACA;AACA;AACA;AACA;AAvCA;AAAA;;;;;;;;;;ACfA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAOA;AAqCA;AAAA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AAAA;AA/MA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;;AACA;AAGA;AADA;AACA;AAAA;AArBA;AALA;AACA;AACA;AACA;AAwCA;AACA;AACA;AACA;AAzCA;AAAA;;;;;;;;;;AClBA;AACA;AAEA;AACA;AAEA;AAGA;AAOA;AA+BA;AACA;AACA;AAEA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AAEA;AAAA;AArGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAIA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAtBA;AALA;AACA;AACA;AACA;AAkCA;AACA;AAjCA;AAAA;;;;;;;;;;;;;AChBA;;;;;;;;;;ACAA;AAGA;AAIA;AAEA;AAAA;AAAA;AAEA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;AAAA;AAhBA;AAFA;AAIA;AAFA;AAAA;;;;;;;;;;ACPA;AAMA;AAAA;AAAA;AAAA;AAAA;AAAA;AAJA;AACA;AACA;AAEA;AAAA;;;;;;;;;;ACNA;AAMA;AAAA;AAAA;AAAA;AAAA;AAAA;AAJA;AACA;AACA;AAEA;AAAA;;;;;;;;;;ACNA;AAMA;AAAA;AAAA;AAAA;AAAA;AAAA;AAJA;AACA;AACA;AAEA;AAAA;;;;;;;;;;ACNA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAMA;AAmDA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AAEA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAEA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AA/XA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAwBA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AApCA;AAJA;AACA;AACA;AAsDA;AACA;AACA;AACA;AACA;AAxDA;AAAA;;;;;;;;;;;ACfA;AAMA;AAAA;AAAA;AAAA;AAAA;AAAA;AAJA;AACA;AACA;AAEA;AAAA;;;;;;;;;;ACNA;AAEA;AAMA;AAUA;AACA;AAEA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;AAAA;AA1DA;AAJA;AACA;AACA;AAaA;AAXA;AAAA;;;;;;;;;;ACRA;AAMA;AAAA;AAAA;AAAA;AAAA;AAAA;AAJA;AACA;AACA;AAEA;AAAA;;;;;;;;;;ACNA;AACA;AAIA;AACA;AACA;AAEA;AAMA;AAkCA;AACA;AACA;AACA;AACA;AArBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAEA;AAAA;AA1JA;AADA;AACA;AAAA;AAHA;AAJA;AACA;AACA;AAqCA;AACA;AACA;AACA;AAtCA;AAAA;;;;;;;;;;ACfA;AAMA;AAAA;AAAA;AAAA;AAAA;AAAA;AAJA;AACA;AACA;AAEA;AAAA;;;;;;;;;;ACNA;AACA;AACA;AAEA;AAMA;AAqCA;AAAA;AACA;AACA;AACA;AAhCA;AACA;AACA;AAIA;AAEA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;AAOA;AACA;AACA;AACA;AAAA;AAEA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAAA;AA3KA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AANA;AAJA;AACA;AACA;AAwCA;AACA;AACA;AAxCA;AAAA;;;;;;;;;;ACVA;AACA;AACA;AACA;AACA;AACA;AAMA;AAiBA;AACA;AACA;AACA;AACA;AAbA;AACA;AACA;AAcA;AACA;AACA;AAGA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AAEA;AAEA;AACA;AACA;AAGA;AACA;AACA;AACA;AAEA;AAAA;AA1EA;AADA;AACA;AAAA;AAHA;AAJA;AACA;AACA;AAoBA;AACA;AACA;AACA;AArBA;AAAA;;;;;;;;;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAMA;AAgCA;AAAA;AACA;AACA;AACA;AACA;AAIA;AAEA;AAEA;AACA;AACA;AAAA;AAAA;AAEA;AACA;AACA;AACA;AAAA;AAAA;AAEA;AACA;AAEA;AAEA;AAEA;AACA;AACA;AAAA;AACA;AACA;AACA;AAEA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AAEA;AAEA;AAEA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AAAA;AA3IA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAfA;AAJA;AACA;AACA;AAmCA;AACA;AACA;AACA;AApCA;AAAA;;;;;;;;;;ACdA;AAMA;AAAA;AAAA;AAAA;AAAA;AAAA;AAJA;AACA;AACA;AAEA;AAAA;;;;;;;;;;ACNA;AAMA;AAAA;AAAA;AAAA;AAAA;AAAA;AAJA;AACA;AACA;AAEA;AAAA;;;;;;;;;;ACNA;AAMA;AAAA;AAAA;AAAA;AAAA;AAAA;AAJA;AACA;AACA;AAEA;AAAA;;;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC9vDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACrBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC7BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AChFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACrKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AChEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACpLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACjEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AClHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AChEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACtMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC/GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACvJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AChGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC5DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC1IA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AChIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACrIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACjLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC/JA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC7GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC7LA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACxEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC3GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC9DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACxFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACrFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACvFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACnGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACnHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC7EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACzEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC7EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC7EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACzEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC7EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC7EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC7EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC7EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACrHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACvHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACvHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACvHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACvFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC1EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC1HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACrIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACnEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AClEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC/EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACnFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACrHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACpFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACxGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACxGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACpFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACvIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACrIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACnIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACvGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACjLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACrKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC/HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACvGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACrFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACrJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACzEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACnHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC7JA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACrFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACrGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC3FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AChHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACrIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACpFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC/HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC7FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AClJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC3EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACtIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACvGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC9HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACrEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC/FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC3FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC7GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACpNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACrFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACpFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACjEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACpGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACrEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AClIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC/GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACjHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACpEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC9FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACnIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACrJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACnEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACxEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACrFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC9NA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC1FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AClEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC9EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC1JA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACpLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC1EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACxIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC1IA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC7FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC7EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AChEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC5IA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACjGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC7EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC9HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC1EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACpGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AClEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACrIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACnHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AClGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC/DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC/DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACxHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AChLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC3FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC/DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC5DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACzFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AClFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC9DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACjIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC9GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC7GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC5GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC/BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACpCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC5FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC1FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC7HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACzCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACnGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACTA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACjKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACvZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC7EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACpGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC/IA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC1JA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC3EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC9GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC1DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACjDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACjGA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACZA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACJA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACDA;;AAEA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAEA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;;;AAGA;AAOA;AA2CA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AAEA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;;;;AAIA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AAIA;AACA;AACA;AACA;AAEA;AAAA;AA7PA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAlBA;AANA;AACA;AACA;AACA;AACA;AA8CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAnDA;AAAA;;;;;;;;;;ACrCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAEA;AAEA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAQA;;AAEA;AAkDA;AACA;AAAA;AAAA;AAAA;AAEA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;AAAA;AAtCA;AAjDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AADA;AAAA;;;;;;;;;;ACzKA;AACA;AACA;AAGA;AACA;AAEA;AACA;AACA;AACA;AACA;AAAA;AAPA;AADA;;AACA;AAAA;AASA;AACA;AACA;AACA;;;;;;;;;;ACjBA;AAIA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;ACxKA;AAOA;AAGA;AAFA;AAIA;AAGA;AADA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAJA;AAOA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AAAA;AAjCA;AADA;;AACA;AAAA;;;;;;;;;;ACPA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AAKA;AAOA;AAyCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AAEA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAEA;AAEA;AAEA;AAAA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;;;;;;AAMA;AACA;AAEA;AACA;;;;;;AAMA;AACA;AAEA;AAAA;AA9bA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AANA;AALA;AACA;AACA;AACA;AA4CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAlDA;AAAA;;;;;;;;;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAYA;AA4BA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AAAA;AACA;AACA;AAEA;AACA;AACA;;;AAJA;AAOA;AAAA;AACA;AACA;AAEA;AACA;AACA;;;AAJA;AAOA;AAAA;AACA;AACA;AAEA;AACA;AACA;;;AAJA;AAOA;AAAA;AACA;AACA;;;AAAA;AAGA;AAAA;AACA;AACA;;;AAAA;AAEA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AAAA;AACA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AAAA;AACA;AAAA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AA7UA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAgJA;AADA;;;AAGA;AAOA;AADA;;;AAGA;AAOA;AADA;;;AAGA;AAOA;AADA;;;AAGA;AAGA;AADA;;;AAGA;AAxLA;AALA;AACA;AACA;AACA;AA+BA;AACA;AACA;AACA;AACA;AACA;AAlCA;AAAA;;;;;;;;;;ACnBA;AACA;AAIA;AAEA;AACA;AAYA;AAwCA;AACA;AACA;AACA;AACA;AACA;AAvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AASA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;;;;;;AAMA;AACA;AAEA;AACA;;;;;;AAMA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AACA;AACA;AACA;AAEA;AAAA;AA5MA;AANA;AACA;AACA;AACA;AA4CA;AACA;AACA;AACA;AACA;AA7CA;AAAA;;;;;;;;;;ACpBA;AACA;AAEA;AAEA;AACA;AACA;AACA;AAMA;AAGA;AACA;AACA;AACA;AAOA;AA6CA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAWA;AAEA;AACA;AAEA;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAEA;AAAA;AACA;AACA;AAEA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAEA;AAEA;AACA;AAAA;AACA;AACA;AACA;AAEA;AAAA;AA3NA;AADA;AACA;AAAA;AAEA;AAAA;;AAAA;AAGA;AADA;AACA;AAAA;AARA;AALA;AACA;AACA;AACA;AAgDA;AACA;AACA;AACA;AACA;AACA;AAnDA;AAAA;;;;;;;;;;AC3BA;AAEA;AACA;AAEA;AAEA;AACA;AACA;AACA;AAOA;AAKA;AAAA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAAA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AAEA;AAEA;AAGA;AAAA;AA7DA;AALA;AACA;AACA;AACA;AAQA;AACA;AACA;AAEA;AAVA;AAAA;;;;;;;;;;ACjBA;AACA;AACA;AAEA;AACA;AAEA;AACA;AAEA;AAEA;AACA;AACA;AACA;AAOA;AAoDA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AACA;AACA;AACA;AAEA;AAAA;AAnbA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAjCA;AALA;AACA;AACA;AACA;AAuDA;AACA;AACA;AACA;AAxDA;AAAA;;;;;;;;;;ACtBA;AAGA;AAQA;AAOA;AACA;AAGA;AAGA;AAAA;AADA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;;;AAAA;AAEA;AAAA;AAjBA;AADA;;;AAgBA;AA7BA;AALA;AACA;AACA;AACA;AAUA;AARA;AAAA;;;;;;;;;;ACXA;AAOA;AAMA;AACA;AACA;AAGA;AAAA;AACA;AACA;AACA;;;AAAA;AAEA;AAAA;;;AAAA;AAEA;AAAA;AAPA;AADA;;;AAIA;AAdA;AALA;AACA;AACA;AACA;;AAEA;AAAA;;;;;;;;;;ACPA;AACA;AAEA;AAEA;AAEA;AACA;AAEA;AAUA;AAmBA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAEA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AACA;AACA;AACA;AAEA;AAAA;AAvHA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AANA;AANA;AACA;AACA;AACA;AAuBA;AACA;AACA;AACA;AACA;AAxBA;AAAA;;;;;;;;;;ACpBA;AACA;AAEA;AAEA;AAGA;AACA;AAKA;AACA;AACA;AACA;AAOA;AAkCA;AAAA;AACA;AACA;AACA;AACA;AAPA;AACA;AAQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAEA;AAAA;AA/VA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAZA;AALA;AACA;AACA;AACA;AAqCA;AACA;AACA;AACA;AAtCA;AAAA;;;;;;;;;;ACxBA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AAEA;AAEA;AAOA;AA0BA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAIA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AACA;AACA;AACA;AAEA;AAAA;AA3JA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAZA;AALA;AACA;AACA;AACA;AA6BA;AACA;AACA;AACA;AACA;AA/BA;AAAA;;;;;;;;;;ACpBA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AASA;AA2DA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA5BA;AACA;AA8BA;AACA;AACA;AAEA;AAEA;AACA;AACA;AAAA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;;;;;;AAMA;AACA;AAEA;AACA;;;;;;AAMA;AACA;AAEA;AAAA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AA/tBA;AADA;AACA;AAAA;AAGA;AADA;AACA;AAAA;AAEA;AAAA;;AAAA;AAGA;AADA;AACA;AAAA;AAIA;AADA;AACA;AAAA;AAfA;AALA;AACA;AACA;AACA;AA8DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AApEA;AAAA;;;;;;;;;;AChBA;AAkBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AAhCA;;;;;;;;;;ACFA;AAAA;AAsBA;AAAA;AAAA;AAtBA;AAwBA;AAAA;AAGA;AAAA;AAAA;AAHA;;;;;;;;;;ACxBA;AAAA;AAWA;AAAA;AAAA;AAXA;AAaA;AAAA;AAKA;AAAA;AAAA;AALA;AAOA;AAAA;AAGA;AAAA;AAAA;AAHA;;;;;;;;;;AClBA;AAAA;AAkCA;AAAA;AAAA;AAlCA;;;;;;;;;;ACFA;AAUA;AAAA;AAEA;AAAA;AAAA;AAFA;AARA;AACA;AACA;AAKA;AACA;AAAA;;;;;;;;;;ACVA;AACA;AAMA;AAAA;AAOA;AANA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAPA;AAJA;AACA;AACA;AAEA;AAAA;;;;;;;;;;ACPA;AACA;AAMA;AAAA;AASA;AARA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AATA;AAJA;AACA;AACA;AAEA;AAAA;;;;;;;;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC5BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACzWA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACrJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC3yfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACvCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACpFA;AACA;AACA;;;;;;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC9RA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AChCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC7CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC5SA;AACA;AACA;AACA;AACA;;;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACjKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACpZA;AACA;AACA;AACA;AACA;;;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACvDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACZA;;;;;;ACAA;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACxBA;;;;;;ACAA;;;;;;ACAA;;;;;;ACAA;;;;;;ACAA;;;;;;ACAA;;;;;;ACAA;;;;;;ACAA;;;;;;ACAA;;;;;;ACAA;;;;;;ACAA;;;;;;ACAA;;;;;;ACAA;;;;;;ACAA;;;;;;ACAA;;;;;;ACAA;;;;;;ACAA;;;;;;ACAA;;;;;;ACAA;;;;;;ACAA;;;;;;ACAA;;;;;;ACAA;;;;;;ACAA;;;;;;ACAA;;;;;;ACAA;;;;;;ACAA;;;;;;ACAA;;;;;;ACAA;;;;;;ACAA;;;;;;ACAA;;;;;;ACAA;;;;;;ACAA;;;;;;ACAA;;;;;;ACAA;;;;;;ACAA;;;;;;ACAA;;;;;;ACAA;;;;;;ACAA;;;;;;ACAA;;;;;;ACAA;;;;;;ACAA;;;;;;ACAA;;;;;;ACAA;;;;;;ACAA;;;;;;ACAA;;;;;;ACAA;;;;;;ACAA;;;;;;ACAA;;;;;;ACAA;;;;;;ACAA;;;;;;ACAA;;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AChDA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACLA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACLA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACLA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACLA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACLA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACLA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACnKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC/KA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AClGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACjFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC/GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC3IA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC3GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACtIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC5DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACvFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC1DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACpFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC/FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AClDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC1GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC5DA;AACA;AACA;AACA;;;;;;;ACHA;AACA;AACA;AACA;;;;;;;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC3EA;AACA;AACA;AACA;;;;;;;ACHA;AACA;AACA;AACA;;;;;;;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACvNA;AACA;AACA;AACA;;;;;;;ACHA;AACA;AACA;AACA;;;;;;;ACHA;AACA;AACA;AACA;;;;;;;ACHA;AACA;AACA;AACA;;;;;;;ACHA;AACA;AACA;AACA;;;;;;;ACHA;AACA;AACA;AACA;;;;;;;ACHA;AACA;AACA;AACA;;;;;;;ACHA;AACA;AACA;AACA;;;;;;;ACHA;AACA;AACA;AACA;;;;;;;ACHA;AACA;AACA;AACA;;;;;;;ACHA;AACA;AACA;AACA;;;;;;;ACHA;AACA;AACA;AACA;;;;;;;ACHA;AACA;AACA;AACA;;;;;;;ACHA;AACA;AACA;AACA;;;;;;;ACHA;AACA;AACA;AACA;;;;;;;ACHA;AACA;AACA;AACA;;;;;;;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC7GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACvGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC3EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC1GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACtMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACvJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACzHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC9CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC/DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC9GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC9HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACnHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC5EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACtIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC7LA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC1EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC1FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AChHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACnGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACzFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACzIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACtJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC1CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACxCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC1OA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC9CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACnDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC9DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACzFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACrBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACzGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC5EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACnDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACzDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC1EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACzGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACpEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACzGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACvFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC1FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACtHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACnKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC9FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AClDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACtEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACjEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC3CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC5BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC3GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC3IA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC9HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACxFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC1GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC1EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC3FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC3GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC9FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACpGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC9GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC5CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC7GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AClIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACxKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACnLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC9HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACjIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC3CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACtDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACpCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACtDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACpCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AChDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACfA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC7CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC/CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC9NA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACjCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC9BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AChNA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC9CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AChCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AC/WA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;ACrBA;;AAEA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AALA;AAOA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","sourceRoot":""}